From 3f3a655be41afc78dab6bf96d24be35a90127b2c Mon Sep 17 00:00:00 2001 From: Kentaro Suzuki Date: Wed, 11 Dec 2024 20:14:47 +0900 Subject: [PATCH] [GitHub] Regenerate GraphQL related code with latest schema (#15755) * chore(github): regenerate github graphql code with latest schema * docs(github): Update GraphQL generated types --- extensions/github/CHANGELOG.md | 4 + extensions/github/src/generated/graphql.ts | 447 +++++++++++++++++---- 2 files changed, 376 insertions(+), 75 deletions(-) diff --git a/extensions/github/CHANGELOG.md b/extensions/github/CHANGELOG.md index 2e83eabef69..9e54dde205c 100644 --- a/extensions/github/CHANGELOG.md +++ b/extensions/github/CHANGELOG.md @@ -1,5 +1,9 @@ # GitHub Changelog +## [Update GraphQL generated types] - 2024-12-09 + +- Updated auto-generated GraphQL codes with the latest schema. + ## [Handle notification icon retrieval error] - 2024-11-08 - Unread Notifications Menu Bar: Display a fallback icon when the notification icon retrieval fails. diff --git a/extensions/github/src/generated/graphql.ts b/extensions/github/src/generated/graphql.ts index 1dd3804d682..2876b6c0f36 100644 --- a/extensions/github/src/generated/graphql.ts +++ b/extensions/github/src/generated/graphql.ts @@ -614,6 +614,31 @@ export type AddStarPayload = { starrable?: Maybe; }; +/** Autogenerated input type of AddSubIssue */ +export type AddSubIssueInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + /** The id of the issue. */ + issueId: Scalars["ID"]["input"]; + /** Option to replace parent issue if one already exists */ + replaceParent?: InputMaybe; + /** The id of the sub-issue. */ + subIssueId?: InputMaybe; + /** The url of the sub-issue. */ + subIssueUrl?: InputMaybe; +}; + +/** Autogenerated return type of AddSubIssue. */ +export type AddSubIssuePayload = { + __typename?: "AddSubIssuePayload"; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** The parent issue that the sub-issue was added to. */ + issue?: Maybe; + /** The sub-issue of the parent. */ + subIssue?: Maybe; +}; + /** Autogenerated input type of AddUpvote */ export type AddUpvoteInput = { /** A unique identifier for the client performing the mutation. */ @@ -687,7 +712,7 @@ export type AddedToProjectEvent = Node & { }; /** Represents an announcement banner. */ -export type AnnouncementBanner = { +export type AnnouncementBannerI = { /** The text of the announcement */ announcement?: Maybe; /** The date the announcement was created */ @@ -701,6 +726,8 @@ export type AnnouncementBanner = { /** A GitHub App. */ export type App = Node & { __typename?: "App"; + /** The client ID of the app. */ + clientId?: Maybe; /** Identifies the date and time when the object was created. */ createdAt: Scalars["DateTime"]["output"]; /** Identifies the primary key from the database. */ @@ -3770,6 +3797,8 @@ export type CreateIssueInput = { labelIds?: InputMaybe>; /** The Node ID of the milestone for this issue. */ milestoneId?: InputMaybe; + /** The Node ID of the parent issue to add this new issue to */ + parentIssueId?: InputMaybe; /** An array of Node IDs for projects associated with this issue. */ projectIds?: InputMaybe>; /** The Node ID of the repository. */ @@ -5272,6 +5301,8 @@ export type DeployKey = Node & { __typename?: "DeployKey"; /** Identifies the date and time when the object was created. */ createdAt: Scalars["DateTime"]["output"]; + /** Whether or not the deploy key is enabled by policy at the Enterprise or Organization level. */ + enabled: Scalars["Boolean"]["output"]; /** The Node ID of the DeployKey object */ id: Scalars["ID"]["output"]; /** The deploy key. */ @@ -6363,6 +6394,15 @@ export type DraftPullRequestReviewThread = { startSide?: InputMaybe; }; +/** The Exploit Prediction Scoring System */ +export type Epss = { + __typename?: "EPSS"; + /** The EPSS percentage represents the likelihood of a CVE being exploited. */ + percentage?: Maybe; + /** The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. */ + percentile?: Maybe; +}; + /** Autogenerated input type of EnablePullRequestAutoMerge */ export type EnablePullRequestAutoMergeInput = { /** The email address to associate with this merge. */ @@ -6414,7 +6454,7 @@ export type EnqueuePullRequestPayload = { }; /** An account to manage multiple organizations with consolidated policy and billing. */ -export type Enterprise = AnnouncementBanner & +export type Enterprise = AnnouncementBannerI & Node & { __typename?: "Enterprise"; /** The text of the announcement */ @@ -6457,6 +6497,10 @@ export type Enterprise = AnnouncementBanner & readmeHTML: Scalars["HTML"]["output"]; /** The HTTP path for this enterprise. */ resourcePath: Scalars["URI"]["output"]; + /** Returns a single ruleset from the current enterprise by ID. */ + ruleset?: Maybe; + /** A list of rulesets for this enterprise. */ + rulesets?: Maybe; /** The URL-friendly identifier for the enterprise. */ slug: Scalars["String"]["output"]; /** The HTTP URL for this enterprise. */ @@ -6484,6 +6528,7 @@ export type EnterpriseMembersArgs = { organizationLogins?: InputMaybe>; query?: InputMaybe; role?: InputMaybe; + twoFactorMethodSecurity?: InputMaybe; }; /** An account to manage multiple organizations with consolidated policy and billing. */ @@ -6497,6 +6542,19 @@ export type EnterpriseOrganizationsArgs = { viewerOrganizationRole?: InputMaybe; }; +/** An account to manage multiple organizations with consolidated policy and billing. */ +export type EnterpriseRulesetArgs = { + databaseId: Scalars["Int"]["input"]; +}; + +/** An account to manage multiple organizations with consolidated policy and billing. */ +export type EnterpriseRulesetsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + /** The connection type for User. */ export type EnterpriseAdministratorConnection = { __typename?: "EnterpriseAdministratorConnection"; @@ -6662,6 +6720,14 @@ export enum EnterpriseDefaultRepositoryPermissionSettingValue { Write = "WRITE", } +/** The possible values for an enabled/no policy enterprise setting. */ +export enum EnterpriseDisallowedMethodsSettingValue { + /** The setting prevents insecure 2FA methods from being used by members of the enterprise. */ + Insecure = "INSECURE", + /** There is no policy set for preventing insecure 2FA methods from being used by members of the enterprise. */ + NoPolicy = "NO_POLICY", +} + /** An edge in a connection. */ export type EnterpriseEdge = { __typename?: "EnterpriseEdge"; @@ -7035,6 +7101,10 @@ export type EnterpriseOwnerInfo = { pendingMemberInvitations: EnterprisePendingMemberInvitationConnection; /** A list of pending unaffiliated member invitations for the enterprise. */ pendingUnaffiliatedMemberInvitations: EnterpriseMemberInvitationConnection; + /** The setting value for whether deploy keys are enabled for repositories in organizations in this enterprise. */ + repositoryDeployKeySetting: EnterpriseEnabledDisabledSettingValue; + /** A list of enterprise organizations configured with the provided deploy keys setting value. */ + repositoryDeployKeySettingOrganizations: OrganizationConnection; /** The setting value for whether repository projects are enabled in this enterprise. */ repositoryProjectsSetting: EnterpriseEnabledDisabledSettingValue; /** A list of enterprise organizations configured with the provided repository projects setting value. */ @@ -7049,6 +7119,8 @@ export type EnterpriseOwnerInfo = { teamDiscussionsSetting: EnterpriseEnabledDisabledSettingValue; /** A list of enterprise organizations configured with the provided team discussions setting value. */ teamDiscussionsSettingOrganizations: OrganizationConnection; + /** The setting value for what methods of two-factor authentication the enterprise prevents its users from having. */ + twoFactorDisallowedMethodsSetting: EnterpriseDisallowedMethodsSettingValue; /** The setting value for whether the enterprise requires two-factor authentication for its organizations and users. */ twoFactorRequiredSetting: EnterpriseEnabledSettingValue; /** A list of enterprise organizations configured with the two-factor authentication setting value. */ @@ -7066,6 +7138,7 @@ export type EnterpriseOwnerInfoAdminsArgs = { organizationLogins?: InputMaybe>; query?: InputMaybe; role?: InputMaybe; + twoFactorMethodSecurity?: InputMaybe; }; /** Enterprise information visible to enterprise owners or enterprise owners' personal access tokens (classic) with read:enterprise or admin:enterprise scope. */ @@ -7226,6 +7299,7 @@ export type EnterpriseOwnerInfoOutsideCollaboratorsArgs = { orderBy?: InputMaybe; organizationLogins?: InputMaybe>; query?: InputMaybe; + twoFactorMethodSecurity?: InputMaybe; visibility?: InputMaybe; }; @@ -7271,6 +7345,16 @@ export type EnterpriseOwnerInfoPendingUnaffiliatedMemberInvitationsArgs = { query?: InputMaybe; }; +/** Enterprise information visible to enterprise owners or enterprise owners' personal access tokens (classic) with read:enterprise or admin:enterprise scope. */ +export type EnterpriseOwnerInfoRepositoryDeployKeySettingOrganizationsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + orderBy?: InputMaybe; + value: Scalars["Boolean"]["input"]; +}; + /** Enterprise information visible to enterprise owners or enterprise owners' personal access tokens (classic) with read:enterprise or admin:enterprise scope. */ export type EnterpriseOwnerInfoRepositoryProjectsSettingOrganizationsArgs = { after?: InputMaybe; @@ -8041,27 +8125,27 @@ export type FileDeletion = { path: Scalars["String"]["input"]; }; -/** Prevent commits that include files with specified file extensions from being pushed to the commit graph. NOTE: This rule is in beta and subject to change */ +/** Prevent commits that include files with specified file extensions from being pushed to the commit graph. */ export type FileExtensionRestrictionParameters = { __typename?: "FileExtensionRestrictionParameters"; /** The file extensions that are restricted from being pushed to the commit graph. */ restrictedFileExtensions: Array; }; -/** Prevent commits that include files with specified file extensions from being pushed to the commit graph. NOTE: This rule is in beta and subject to change */ +/** Prevent commits that include files with specified file extensions from being pushed to the commit graph. */ export type FileExtensionRestrictionParametersInput = { /** The file extensions that are restricted from being pushed to the commit graph. */ restrictedFileExtensions: Array; }; -/** Prevent commits that include changes in specified file paths from being pushed to the commit graph. NOTE: This rule is in beta and subject to change */ +/** Prevent commits that include changes in specified file paths from being pushed to the commit graph. */ export type FilePathRestrictionParameters = { __typename?: "FilePathRestrictionParameters"; /** The file paths that are restricted from being pushed to the commit graph. */ restrictedFilePaths: Array; }; -/** Prevent commits that include changes in specified file paths from being pushed to the commit graph. NOTE: This rule is in beta and subject to change */ +/** Prevent commits that include changes in specified file paths from being pushed to the commit graph. */ export type FilePathRestrictionParametersInput = { /** The file paths that are restricted from being pushed to the commit graph. */ restrictedFilePaths: Array; @@ -8516,6 +8600,8 @@ export type GitSignature = { signer?: Maybe; /** The state of this signature. `VALID` if signature is valid and verified by GitHub, otherwise represents reason why signature is considered invalid. */ state: GitSignatureState; + /** The date the signature was verified, if valid */ + verifiedAt?: Maybe; /** True if the signature was made with GitHub's signing key. */ wasSignedByGitHub: Scalars["Boolean"]["output"]; }; @@ -8575,6 +8661,8 @@ export type GpgSignature = GitSignature & { signer?: Maybe; /** The state of this signature. `VALID` if signature is valid and verified by GitHub, otherwise represents reason why signature is considered invalid. */ state: GitSignatureState; + /** The date the signature was verified, if valid */ + verifiedAt?: Maybe; /** True if the signature was made with GitHub's signing key. */ wasSignedByGitHub: Scalars["Boolean"]["output"]; }; @@ -8921,6 +9009,8 @@ export type Issue = Assignable & milestone?: Maybe; /** Identifies the issue number. */ number: Scalars["Int"]["output"]; + /** The parent entity of the issue. */ + parent?: Maybe; /** A list of Users that are participating in the Issue conversation. */ participants: UserConnection; /** List of project cards associated with this issue. */ @@ -8945,6 +9035,10 @@ export type Issue = Assignable & state: IssueState; /** Identifies the reason for the issue state. */ stateReason?: Maybe; + /** A list of sub-issues associated with the Issue. */ + subIssues: IssueConnection; + /** Summary of the state of an issue's sub-issues */ + subIssuesSummary: SubIssuesSummary; /** * A list of events, comments, commits, etc. associated with the issue. * @deprecated `timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC. @@ -9096,6 +9190,14 @@ export type IssueReactionsArgs = { orderBy?: InputMaybe; }; +/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ +export type IssueSubIssuesArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + /** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ export type IssueTimelineArgs = { after?: InputMaybe; @@ -9149,6 +9251,8 @@ export type IssueUserContentEditsArgs = { export enum IssueClosedStateReason { /** An issue that has been closed as completed */ Completed = "COMPLETED", + /** An issue that has been closed as a duplicate */ + Duplicate = "DUPLICATE", /** An issue that has been closed as not planned */ NotPlanned = "NOT_PLANNED", } @@ -9380,6 +9484,8 @@ export enum IssueState { export enum IssueStateReason { /** An issue that has been closed as completed */ Completed = "COMPLETED", + /** An issue that has been closed as a duplicate */ + Duplicate = "DUPLICATE", /** An issue that has been closed as not planned */ NotPlanned = "NOT_PLANNED", /** An issue that has been reopened */ @@ -10088,25 +10194,6 @@ export type MarkFileAsViewedPayload = { pullRequest?: Maybe; }; -/** Autogenerated input type of MarkNotificationAsDone */ -export type MarkNotificationAsDoneInput = { - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; - /** The NotificationThread id. */ - id: Scalars["ID"]["input"]; -}; - -/** Autogenerated return type of MarkNotificationAsDone. */ -export type MarkNotificationAsDonePayload = { - __typename?: "MarkNotificationAsDonePayload"; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** Did the operation succeed? */ - success?: Maybe; - /** The user that the notification belongs to. */ - viewer?: Maybe; -}; - /** Autogenerated input type of MarkProjectV2AsTemplate */ export type MarkProjectV2AsTemplateInput = { /** A unique identifier for the client performing the mutation. */ @@ -10351,27 +10438,27 @@ export type MarketplaceListingEdge = { node?: Maybe; }; -/** Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph. NOTE: This rule is in beta and subject to change */ +/** Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph. */ export type MaxFilePathLengthParameters = { __typename?: "MaxFilePathLengthParameters"; /** The maximum amount of characters allowed in file paths */ maxFilePathLength: Scalars["Int"]["output"]; }; -/** Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph. NOTE: This rule is in beta and subject to change */ +/** Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph. */ export type MaxFilePathLengthParametersInput = { /** The maximum amount of characters allowed in file paths */ maxFilePathLength: Scalars["Int"]["input"]; }; -/** Prevent commits that exceed a specified file size limit from being pushed to the commit. NOTE: This rule is in beta and subject to change */ +/** Prevent commits that exceed a specified file size limit from being pushed to the commit. */ export type MaxFileSizeParameters = { __typename?: "MaxFileSizeParameters"; /** The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS). */ maxFileSize: Scalars["Int"]["output"]; }; -/** Prevent commits that exceed a specified file size limit from being pushed to the commit. NOTE: This rule is in beta and subject to change */ +/** Prevent commits that exceed a specified file size limit from being pushed to the commit. */ export type MaxFileSizeParametersInput = { /** The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS). */ maxFileSize: Scalars["Int"]["input"]; @@ -11213,6 +11300,8 @@ export type Mutation = { addReaction?: Maybe; /** Adds a star to a Starrable. */ addStar?: Maybe; + /** Adds a sub-issue to a given issue */ + addSubIssue?: Maybe; /** Add an upvote to a discussion or discussion comment. */ addUpvote?: Maybe; /** Adds a verifiable domain to an owning account. */ @@ -11453,8 +11542,6 @@ export type Mutation = { markDiscussionCommentAsAnswer?: Maybe; /** Mark a pull request file as viewed */ markFileAsViewed?: Maybe; - /** Marks a notification as done */ - markNotificationAsDone?: Maybe; /** Mark a project as a template. Note that only projects which are owned by an Organization can be marked as a template. */ markProjectV2AsTemplate?: Maybe; /** Marks a pull request ready for review. */ @@ -11501,6 +11588,8 @@ export type Mutation = { removeReaction?: Maybe; /** Removes a star from a Starrable. */ removeStar?: Maybe; + /** Removes a sub-issue from a given issue */ + removeSubIssue?: Maybe; /** Remove an upvote to a discussion or discussion comment. */ removeUpvote?: Maybe; /** Reopen a discussion. */ @@ -11511,6 +11600,8 @@ export type Mutation = { reopenPullRequest?: Maybe; /** Reorder a pinned repository environment */ reorderEnvironment?: Maybe; + /** Reprioritizes a sub-issue to a different position in the parent list. */ + reprioritizeSubIssue?: Maybe; /** Set review requests on a pull request. */ requestReviews?: Maybe; /** Rerequests an existing check suite. */ @@ -11573,8 +11664,6 @@ export type Mutation = { unpinIssue?: Maybe; /** Marks a review thread as unresolved. */ unresolveReviewThread?: Maybe; - /** Unsubscribes from notifications */ - unsubscribeFromNotifications?: Maybe; /** Update a branch protection rule */ updateBranchProtectionRule?: Maybe; /** Update a check run */ @@ -11591,6 +11680,8 @@ export type Mutation = { updateEnterpriseAllowPrivateRepositoryForkingSetting?: Maybe; /** Sets the base repository permission for organizations in an enterprise. */ updateEnterpriseDefaultRepositoryPermissionSetting?: Maybe; + /** Sets whether deploy keys are allowed to be created and used for an enterprise. */ + updateEnterpriseDeployKeySetting?: Maybe; /** Sets whether organization members with admin permissions on a repository can change repository visibility. */ updateEnterpriseMembersCanChangeRepositoryVisibilitySetting?: Maybe; /** Sets the members can create repositories setting for an enterprise. */ @@ -11617,6 +11708,8 @@ export type Mutation = { updateEnterpriseRepositoryProjectsSetting?: Maybe; /** Sets whether team discussions are enabled for an enterprise. */ updateEnterpriseTeamDiscussionsSetting?: Maybe; + /** Sets the two-factor authentication methods that users of an enterprise may not use. */ + updateEnterpriseTwoFactorAuthenticationDisallowedMethodsSetting?: Maybe; /** Sets whether two factor authentication is required for all users in an enterprise. */ updateEnterpriseTwoFactorAuthenticationRequiredSetting?: Maybe; /** Updates an environment. */ @@ -11653,6 +11746,8 @@ export type Mutation = { updateProjectV2Collaborators?: Maybe; /** Updates a draft issue within a Project. */ updateProjectV2DraftIssue?: Maybe; + /** Update a project field. */ + updateProjectV2Field?: Maybe; /** This mutation updates the value of a field for an item in a Project. Currently only single-select, text, number, date, and iteration fields are supported. */ updateProjectV2ItemFieldValue?: Maybe; /** This mutation updates the position of the item in the project, where the position represents the priority of an item. */ @@ -11829,6 +11924,11 @@ export type MutationAddStarArgs = { input: AddStarInput; }; +/** The root query for implementing GraphQL mutations. */ +export type MutationAddSubIssueArgs = { + input: AddSubIssueInput; +}; + /** The root query for implementing GraphQL mutations. */ export type MutationAddUpvoteArgs = { input: AddUpvoteInput; @@ -12319,11 +12419,6 @@ export type MutationMarkFileAsViewedArgs = { input: MarkFileAsViewedInput; }; -/** The root query for implementing GraphQL mutations. */ -export type MutationMarkNotificationAsDoneArgs = { - input: MarkNotificationAsDoneInput; -}; - /** The root query for implementing GraphQL mutations. */ export type MutationMarkProjectV2AsTemplateArgs = { input: MarkProjectV2AsTemplateInput; @@ -12439,6 +12534,11 @@ export type MutationRemoveStarArgs = { input: RemoveStarInput; }; +/** The root query for implementing GraphQL mutations. */ +export type MutationRemoveSubIssueArgs = { + input: RemoveSubIssueInput; +}; + /** The root query for implementing GraphQL mutations. */ export type MutationRemoveUpvoteArgs = { input: RemoveUpvoteInput; @@ -12464,6 +12564,11 @@ export type MutationReorderEnvironmentArgs = { input: ReorderEnvironmentInput; }; +/** The root query for implementing GraphQL mutations. */ +export type MutationReprioritizeSubIssueArgs = { + input: ReprioritizeSubIssueInput; +}; + /** The root query for implementing GraphQL mutations. */ export type MutationRequestReviewsArgs = { input: RequestReviewsInput; @@ -12619,11 +12724,6 @@ export type MutationUnresolveReviewThreadArgs = { input: UnresolveReviewThreadInput; }; -/** The root query for implementing GraphQL mutations. */ -export type MutationUnsubscribeFromNotificationsArgs = { - input: UnsubscribeFromNotificationsInput; -}; - /** The root query for implementing GraphQL mutations. */ export type MutationUpdateBranchProtectionRuleArgs = { input: UpdateBranchProtectionRuleInput; @@ -12664,6 +12764,11 @@ export type MutationUpdateEnterpriseDefaultRepositoryPermissionSettingArgs = { input: UpdateEnterpriseDefaultRepositoryPermissionSettingInput; }; +/** The root query for implementing GraphQL mutations. */ +export type MutationUpdateEnterpriseDeployKeySettingArgs = { + input: UpdateEnterpriseDeployKeySettingInput; +}; + /** The root query for implementing GraphQL mutations. */ export type MutationUpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingArgs = { input: UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput; @@ -12729,6 +12834,11 @@ export type MutationUpdateEnterpriseTeamDiscussionsSettingArgs = { input: UpdateEnterpriseTeamDiscussionsSettingInput; }; +/** The root query for implementing GraphQL mutations. */ +export type MutationUpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSettingArgs = { + input: UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSettingInput; +}; + /** The root query for implementing GraphQL mutations. */ export type MutationUpdateEnterpriseTwoFactorAuthenticationRequiredSettingArgs = { input: UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput; @@ -12819,6 +12929,11 @@ export type MutationUpdateProjectV2DraftIssueArgs = { input: UpdateProjectV2DraftIssueInput; }; +/** The root query for implementing GraphQL mutations. */ +export type MutationUpdateProjectV2FieldArgs = { + input: UpdateProjectV2FieldInput; +}; + /** The root query for implementing GraphQL mutations. */ export type MutationUpdateProjectV2ItemFieldValueArgs = { input: UpdateProjectV2ItemFieldValueInput; @@ -14586,7 +14701,7 @@ export type OrgUpdateMemberRepositoryInvitationPermissionAuditEntry = AuditEntry /** An account on GitHub, with one or more owners, that has repositories, members and teams. */ export type Organization = Actor & - AnnouncementBanner & + AnnouncementBannerI & MemberStatusable & Node & PackageOwner & @@ -15009,6 +15124,7 @@ export type OrganizationRepositoryMigrationsArgs = { /** An account on GitHub, with one or more owners, that has repositories, members and teams. */ export type OrganizationRulesetArgs = { databaseId: Scalars["Int"]["input"]; + includeParents?: InputMaybe; }; /** An account on GitHub, with one or more owners, that has repositories, members and teams. */ @@ -15018,6 +15134,7 @@ export type OrganizationRulesetsArgs = { first?: InputMaybe; includeParents?: InputMaybe; last?: InputMaybe; + targets?: InputMaybe>; }; /** An account on GitHub, with one or more owners, that has repositories, members and teams. */ @@ -16668,12 +16785,17 @@ export type ProjectV2 = Closable & createdAt: Scalars["DateTime"]["output"]; /** The actor who originally created the project. */ creator?: Maybe; - /** Identifies the primary key from the database. */ + /** + * Identifies the primary key from the database. + * @deprecated `databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2025-04-01 UTC. + */ databaseId?: Maybe; /** A field of the project */ field?: Maybe; /** List of fields and their constraints in the project */ fields: ProjectV2FieldConfigurationConnection; + /** Identifies the primary key from the database as a BigInt. */ + fullDatabaseId?: Maybe; /** The Node ID of the ProjectV2 object */ id: Scalars["ID"]["output"]; /** List of items in the project */ @@ -17031,7 +17153,10 @@ export type ProjectV2Item = Node & { createdAt: Scalars["DateTime"]["output"]; /** The actor who created the item. */ creator?: Maybe; - /** Identifies the primary key from the database. */ + /** + * Identifies the primary key from the database. + * @deprecated `databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2025-04-01 UTC. + */ databaseId?: Maybe; /** The field value of the first project field which matches the 'name' argument that is set on the item. */ fieldValueByName?: Maybe; @@ -17694,8 +17819,13 @@ export type ProjectV2StatusUpdate = Node & { createdAt: Scalars["DateTime"]["output"]; /** The actor who created the status update. */ creator?: Maybe; - /** Identifies the primary key from the database. */ + /** + * Identifies the primary key from the database. + * @deprecated `databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2025-04-01 UTC. + */ databaseId?: Maybe; + /** Identifies the primary key from the database as a BigInt. */ + fullDatabaseId?: Maybe; /** The Node ID of the ProjectV2StatusUpdate object */ id: Scalars["ID"]["output"]; /** The project that contains this status update. */ @@ -17757,12 +17887,17 @@ export type ProjectV2View = Node & { __typename?: "ProjectV2View"; /** Identifies the date and time when the object was created. */ createdAt: Scalars["DateTime"]["output"]; - /** Identifies the primary key from the database. */ + /** + * Identifies the primary key from the database. + * @deprecated `databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2025-04-01 UTC. + */ databaseId?: Maybe; /** The view's visible fields. */ fields?: Maybe; /** The project view's filter. */ filter?: Maybe; + /** Identifies the primary key from the database as a BigInt. */ + fullDatabaseId?: Maybe; /** * The view's group-by field. * @deprecated The `ProjectV2View#order_by` API is deprecated in favour of the more capable `ProjectV2View#group_by_field` API. Check out the `ProjectV2View#group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC. @@ -17928,10 +18063,15 @@ export type ProjectV2Workflow = Node & { __typename?: "ProjectV2Workflow"; /** Identifies the date and time when the object was created. */ createdAt: Scalars["DateTime"]["output"]; - /** Identifies the primary key from the database. */ + /** + * Identifies the primary key from the database. + * @deprecated `databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2025-04-01 UTC. + */ databaseId?: Maybe; /** Whether the workflow is enabled. */ enabled: Scalars["Boolean"]["output"]; + /** Identifies the primary key from the database as a BigInt. */ + fullDatabaseId?: Maybe; /** The Node ID of the ProjectV2Workflow object */ id: Scalars["ID"]["output"]; /** The name of the workflow. */ @@ -18118,7 +18258,7 @@ export type PullRequest = Assignable & closed: Scalars["Boolean"]["output"]; /** Identifies the date and time when the object was closed. */ closedAt?: Maybe; - /** List of issues that were may be closed by this pull request */ + /** List of issues that may be closed by this pull request */ closingIssuesReferences?: Maybe; /** A list of comments associated with the pull request. */ comments: IssueCommentConnection; @@ -18676,6 +18816,8 @@ export enum PullRequestOrderField { /** Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. */ export type PullRequestParameters = { __typename?: "PullRequestParameters"; + /** When merging pull requests, you can allow any combination of merge commits, squashing, or rebasing. At least one option must be enabled. */ + allowedMergeMethods?: Maybe>; /** New, reviewable commits pushed will dismiss previous pull request review approvals. */ dismissStaleReviewsOnPush: Scalars["Boolean"]["output"]; /** Require an approving review in pull requests that modify files that have a designated code owner. */ @@ -18690,6 +18832,8 @@ export type PullRequestParameters = { /** Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. */ export type PullRequestParametersInput = { + /** When merging pull requests, you can allow any combination of merge commits, squashing, or rebasing. At least one option must be enabled. */ + allowedMergeMethods?: InputMaybe>; /** New, reviewable commits pushed will dismiss previous pull request review approvals. */ dismissStaleReviewsOnPush: Scalars["Boolean"]["input"]; /** Require an approving review in pull requests that modify files that have a designated code owner. */ @@ -19551,7 +19695,7 @@ export type PushAllowanceEdge = { }; /** The query root of GitHub's GraphQL interface. */ -export type Query = { +export type Query = Node & { __typename?: "Query"; /** Look up a code of conduct by its key */ codeOfConduct?: Maybe; @@ -19567,6 +19711,8 @@ export type Query = { enterpriseMemberInvitation?: Maybe; /** Look up a pending enterprise unaffiliated member invitation by invitation token. */ enterpriseMemberInvitationByToken?: Maybe; + /** ID of the object. */ + id: Scalars["ID"]["output"]; /** Look up an open source license by its key */ license?: Maybe; /** Return a list of known open source licenses */ @@ -19741,6 +19887,8 @@ export type QuerySecurityAdvisoriesArgs = { after?: InputMaybe; before?: InputMaybe; classifications?: InputMaybe>; + epssPercentage?: InputMaybe; + epssPercentile?: InputMaybe; first?: InputMaybe; identifier?: InputMaybe; last?: InputMaybe; @@ -20615,6 +20763,27 @@ export type RemoveStarPayload = { starrable?: Maybe; }; +/** Autogenerated input type of RemoveSubIssue */ +export type RemoveSubIssueInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + /** The id of the issue. */ + issueId: Scalars["ID"]["input"]; + /** The id of the sub-issue. */ + subIssueId: Scalars["ID"]["input"]; +}; + +/** Autogenerated return type of RemoveSubIssue. */ +export type RemoveSubIssuePayload = { + __typename?: "RemoveSubIssuePayload"; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** The parent of the sub-issue. */ + issue?: Maybe; + /** The sub-issue of the parent. */ + subIssue?: Maybe; +}; + /** Autogenerated input type of RemoveUpvote */ export type RemoveUpvoteInput = { /** A unique identifier for the client performing the mutation. */ @@ -22522,6 +22691,7 @@ export type RepositoryRulesetsArgs = { first?: InputMaybe; includeParents?: InputMaybe; last?: InputMaybe; + targets?: InputMaybe>; }; /** A repository contains the content for a project. */ @@ -23256,15 +23426,15 @@ export enum RepositoryRuleType { Creation = "CREATION", /** Only allow users with bypass permissions to delete matching refs. */ Deletion = "DELETION", - /** Prevent commits that include files with specified file extensions from being pushed to the commit graph. NOTE: This rule is in beta and subject to change */ + /** Prevent commits that include files with specified file extensions from being pushed to the commit graph. */ FileExtensionRestriction = "FILE_EXTENSION_RESTRICTION", - /** Prevent commits that include changes in specified file paths from being pushed to the commit graph. NOTE: This rule is in beta and subject to change */ + /** Prevent commits that include changes in specified file paths from being pushed to the commit graph. */ FilePathRestriction = "FILE_PATH_RESTRICTION", /** Branch is read-only. Users cannot push to the branch. */ LockBranch = "LOCK_BRANCH", - /** Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph. NOTE: This rule is in beta and subject to change */ + /** Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph. */ MaxFilePathLength = "MAX_FILE_PATH_LENGTH", - /** Prevent commits that exceed a specified file size limit from being pushed to the commit. NOTE: This rule is in beta and subject to change */ + /** Prevent commits that exceed a specified file size limit from being pushed to the commit. */ MaxFileSize = "MAX_FILE_SIZE", /** Max ref updates */ MaxRefUpdates = "MAX_REF_UPDATES", @@ -23355,6 +23525,8 @@ export type RepositoryRulesetBypassActor = Node & { bypassMode?: Maybe; /** This actor represents the ability for a deploy key to bypass */ deployKey: Scalars["Boolean"]["output"]; + /** This actor represents the ability for an enterprise owner to bypass */ + enterpriseOwner: Scalars["Boolean"]["output"]; /** The Node ID of the RepositoryRulesetBypassActor object */ id: Scalars["ID"]["output"]; /** This actor represents the ability for an organization owner to bypass */ @@ -23405,6 +23577,8 @@ export type RepositoryRulesetBypassActorInput = { bypassMode: RepositoryRulesetBypassActorBypassMode; /** For deploy key bypasses, true. Can only use ALWAYS as the bypass mode */ deployKey?: InputMaybe; + /** For enterprise owner bypasses, true */ + enterpriseOwner?: InputMaybe; /** For organization owner bypasses, true */ organizationAdmin?: InputMaybe; /** For role bypasses, the role database ID */ @@ -23433,12 +23607,14 @@ export type RepositoryRulesetEdge = { node?: Maybe; }; -/** The targets supported for rulesets. NOTE: The push target is in beta and subject to change. */ +/** The targets supported for rulesets. */ export enum RepositoryRulesetTarget { /** Branch */ Branch = "BRANCH", /** Push */ Push = "PUSH", + /** repository */ + Repository = "REPOSITORY", /** Tag */ Tag = "TAG", } @@ -23673,6 +23849,29 @@ export enum RepositoryVulnerabilityAlertState { Open = "OPEN", } +/** Autogenerated input type of ReprioritizeSubIssue */ +export type ReprioritizeSubIssueInput = { + /** The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified). */ + afterId?: InputMaybe; + /** The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified). */ + beforeId?: InputMaybe; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + /** The id of the parent issue. */ + issueId: Scalars["ID"]["input"]; + /** The id of the sub-issue to reprioritize. */ + subIssueId: Scalars["ID"]["input"]; +}; + +/** Autogenerated return type of ReprioritizeSubIssue. */ +export type ReprioritizeSubIssuePayload = { + __typename?: "ReprioritizeSubIssuePayload"; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** The parent issue that the sub-issue was reprioritized in. */ + issue?: Maybe; +}; + /** Autogenerated input type of RequestReviews */ export type RequestReviewsInput = { /** A unique identifier for the client performing the mutation. */ @@ -24175,7 +24374,7 @@ export type RuleParametersInput = { }; /** Types which can have `RepositoryRule` objects. */ -export type RuleSource = Organization | Repository; +export type RuleSource = Enterprise | Organization | Repository; /** The possible digest algorithms used to sign SAML requests for an identity provider. */ export enum SamlDigestAlgorithm { @@ -24316,7 +24515,10 @@ export type SecurityAdvisory = Node & { __typename?: "SecurityAdvisory"; /** The classification of the advisory */ classification: SecurityAdvisoryClassification; - /** The CVSS associated with this advisory */ + /** + * The CVSS associated with this advisory + * @deprecated `cvss` will be removed. New `cvss_severities` field will now contain both `cvss_v3` and `cvss_v4` properties. Removal on 2025-10-01 UTC. + */ cvss: Cvss; /** CWEs associated with this Advisory */ cwes: CweConnection; @@ -24324,6 +24526,8 @@ export type SecurityAdvisory = Node & { databaseId?: Maybe; /** This is a long plaintext description of the advisory */ description: Scalars["String"]["output"]; + /** The Exploit Prediction Scoring System */ + epss?: Maybe; /** The GitHub Security Advisory ID */ ghsaId: Scalars["String"]["output"]; /** The Node ID of the SecurityAdvisory object */ @@ -24466,6 +24670,10 @@ export type SecurityAdvisoryOrder = { /** Properties by which security advisory connections can be ordered. */ export enum SecurityAdvisoryOrderField { + /** Order advisories by EPSS percentage */ + EpssPercentage = "EPSS_PERCENTAGE", + /** Order advisories by EPSS percentile */ + EpssPercentile = "EPSS_PERCENTILE", /** Order advisories by publication time */ PublishedAt = "PUBLISHED_AT", /** Order advisories by update time */ @@ -24674,6 +24882,8 @@ export type SmimeSignature = GitSignature & { signer?: Maybe; /** The state of this signature. `VALID` if signature is valid and verified by GitHub, otherwise represents reason why signature is considered invalid. */ state: GitSignatureState; + /** The date the signature was verified, if valid */ + verifiedAt?: Maybe; /** True if the signature was made with GitHub's signing key. */ wasSignedByGitHub: Scalars["Boolean"]["output"]; }; @@ -24713,6 +24923,8 @@ export type SocialAccountEdge = { /** Software or company that hosts social media accounts. */ export enum SocialAccountProvider { + /** Decentralized microblogging social platform. */ + Bluesky = "BLUESKY", /** Social media and networking website. */ Facebook = "FACEBOOK", /** Catch-all for social media providers that do not yet have specific handling. */ @@ -25985,6 +26197,8 @@ export type SshSignature = GitSignature & { signer?: Maybe; /** The state of this signature. `VALID` if signature is valid and verified by GitHub, otherwise represents reason why signature is considered invalid. */ state: GitSignatureState; + /** The date the signature was verified, if valid */ + verifiedAt?: Maybe; /** True if the signature was made with GitHub's signing key. */ wasSignedByGitHub: Scalars["Boolean"]["output"]; }; @@ -26315,6 +26529,17 @@ export type StripeConnectAccount = { stripeDashboardUrl: Scalars["URI"]["output"]; }; +/** Summary of the state of an issue's sub-issues */ +export type SubIssuesSummary = { + __typename?: "SubIssuesSummary"; + /** Count of completed sub-issues */ + completed: Scalars["Int"]["output"]; + /** Percent of sub-issues which are completed */ + percentCompleted: Scalars["Int"]["output"]; + /** Count of total number of sub-issues */ + total: Scalars["Int"]["output"]; +}; + /** Autogenerated input type of SubmitPullRequestReview */ export type SubmitPullRequestReviewInput = { /** The text field to set on the Pull Request Review. */ @@ -27751,6 +27976,16 @@ export type TreeEntry = { type: Scalars["String"]["output"]; }; +/** Filters by whether or not 2FA is enabled and if the method configured is considered secure or insecure. */ +export enum TwoFactorCredentialSecurityType { + /** No method of two-factor authentication. */ + Disabled = "DISABLED", + /** Has an insecure method of two-factor authentication. GitHub currently defines this as SMS two-factor authentication. */ + Insecure = "INSECURE", + /** Has only secure methods of two-factor authentication. */ + Secure = "SECURE", +} + /** Autogenerated input type of UnarchiveProjectV2Item */ export type UnarchiveProjectV2ItemInput = { /** A unique identifier for the client performing the mutation. */ @@ -27864,6 +28099,8 @@ export type UnknownSignature = GitSignature & { signer?: Maybe; /** The state of this signature. `VALID` if signature is valid and verified by GitHub, otherwise represents reason why signature is considered invalid. */ state: GitSignatureState; + /** The date the signature was verified, if valid */ + verifiedAt?: Maybe; /** True if the signature was made with GitHub's signing key. */ wasSignedByGitHub: Scalars["Boolean"]["output"]; }; @@ -28129,23 +28366,6 @@ export type UnresolveReviewThreadPayload = { thread?: Maybe; }; -/** Autogenerated input type of UnsubscribeFromNotifications */ -export type UnsubscribeFromNotificationsInput = { - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; - /** The NotificationThread IDs of the objects to unsubscribe from. */ - ids: Array; -}; - -/** Autogenerated return type of UnsubscribeFromNotifications. */ -export type UnsubscribeFromNotificationsPayload = { - __typename?: "UnsubscribeFromNotificationsPayload"; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** Did the operation succeed? */ - success?: Maybe; -}; - /** Represents an 'unsubscribed' event on a given `Subscribable`. */ export type UnsubscribedEvent = Node & { __typename?: "UnsubscribedEvent"; @@ -28405,6 +28625,27 @@ export type UpdateEnterpriseDefaultRepositoryPermissionSettingPayload = { message?: Maybe; }; +/** Autogenerated input type of UpdateEnterpriseDeployKeySetting */ +export type UpdateEnterpriseDeployKeySettingInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + /** The ID of the enterprise on which to set the deploy key setting. */ + enterpriseId: Scalars["ID"]["input"]; + /** The value for the deploy key setting on the enterprise. */ + settingValue: EnterpriseEnabledDisabledSettingValue; +}; + +/** Autogenerated return type of UpdateEnterpriseDeployKeySetting. */ +export type UpdateEnterpriseDeployKeySettingPayload = { + __typename?: "UpdateEnterpriseDeployKeySettingPayload"; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** The enterprise with the updated deploy key setting. */ + enterprise?: Maybe; + /** A message confirming the result of updating the deploy key setting. */ + message?: Maybe; +}; + /** Autogenerated input type of UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting */ export type UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput = { /** A unique identifier for the client performing the mutation. */ @@ -28690,6 +28931,27 @@ export type UpdateEnterpriseTeamDiscussionsSettingPayload = { message?: Maybe; }; +/** Autogenerated input type of UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSetting */ +export type UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSettingInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + /** The ID of the enterprise on which to set the two-factor authentication disallowed methods setting. */ + enterpriseId: Scalars["ID"]["input"]; + /** The value for the two-factor authentication disallowed methods setting on the enterprise. */ + settingValue: EnterpriseDisallowedMethodsSettingValue; +}; + +/** Autogenerated return type of UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSetting. */ +export type UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSettingPayload = { + __typename?: "UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSettingPayload"; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** The enterprise with the updated two-factor authentication disallowed methods setting. */ + enterprise?: Maybe; + /** A message confirming the result of updating the two-factor authentication disallowed methods setting. */ + message?: Maybe; +}; + /** Autogenerated input type of UpdateEnterpriseTwoFactorAuthenticationRequiredSetting */ export type UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput = { /** A unique identifier for the client performing the mutation. */ @@ -29078,6 +29340,27 @@ export type UpdateProjectV2DraftIssuePayload = { draftIssue?: Maybe; }; +/** Autogenerated input type of UpdateProjectV2Field */ +export type UpdateProjectV2FieldInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + /** The ID of the field to update. */ + fieldId: Scalars["ID"]["input"]; + /** The name to update. */ + name?: InputMaybe; + /** Options for a field of type SINGLE_SELECT. If empty, no changes will be made to the options. If values are present, they will overwrite the existing options for the field. */ + singleSelectOptions?: InputMaybe>; +}; + +/** Autogenerated return type of UpdateProjectV2Field. */ +export type UpdateProjectV2FieldPayload = { + __typename?: "UpdateProjectV2FieldPayload"; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** The updated field. */ + projectV2Field?: Maybe; +}; + /** Autogenerated input type of UpdateProjectV2 */ export type UpdateProjectV2Input = { /** A unique identifier for the client performing the mutation. */ @@ -29811,6 +30094,8 @@ export type User = Actor & updatedAt: Scalars["DateTime"]["output"]; /** The HTTP URL for this user */ url: Scalars["URI"]["output"]; + /** Whether the request returns publicly visible information or privately visible information about the user */ + userViewType: UserViewType; /** Can the viewer pin repositories and gists to the profile? */ viewerCanChangePinnedItems: Scalars["Boolean"]["output"]; /** Can the current viewer create new projects on this owner. */ @@ -30514,6 +30799,14 @@ export enum UserStatusOrderField { UpdatedAt = "UPDATED_AT", } +/** Whether a user being viewed contains public or private information. */ +export enum UserViewType { + /** A user containing information only visible to the authenticated user. */ + Private = "PRIVATE", + /** A user that is publicly visible. */ + Public = "PUBLIC", +} + /** A domain that can be verified or approved for an organization or an enterprise. */ export type VerifiableDomain = Node & { __typename?: "VerifiableDomain"; @@ -31486,6 +31779,7 @@ export type IssueDetailsQuery = { | { __typename?: "PullRequestThread" } | { __typename?: "Push" } | { __typename?: "PushAllowance" } + | { __typename?: "Query" } | { __typename?: "Reaction" } | { __typename?: "ReadyForReviewEvent" } | { __typename?: "Ref" } @@ -32025,6 +32319,7 @@ export type ProjectDetailsQuery = { | { __typename?: "PullRequestThread" } | { __typename?: "Push" } | { __typename?: "PushAllowance" } + | { __typename?: "Query" } | { __typename?: "Reaction" } | { __typename?: "ReadyForReviewEvent" } | { __typename?: "Ref" } @@ -32699,6 +32994,7 @@ export type PullRequestDetailsQuery = { | { __typename?: "PullRequestThread" } | { __typename?: "Push" } | { __typename?: "PushAllowance" } + | { __typename?: "Query" } | { __typename?: "Reaction" } | { __typename?: "ReadyForReviewEvent" } | { __typename?: "Ref" } @@ -33055,6 +33351,7 @@ export type PullRequestCommitsQuery = { | { __typename?: "PullRequestThread" } | { __typename?: "Push" } | { __typename?: "PushAllowance" } + | { __typename?: "Query" } | { __typename?: "Reaction" } | { __typename?: "ReadyForReviewEvent" } | { __typename?: "Ref" }