From b3739ec5c04e41765cd972a070eacd29d96fd3b2 Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Mon, 5 Jun 2023 19:40:42 +0300 Subject: [PATCH] Reduce schema size (#9) Here reduced schema size from by enablinng codegen options to not include unused data in types. Though it still generates every enum. dist/__generated__/index.d.ts: 1,155,205b -> 260,449b dist/__generated__/index.js: 174,603b -> 6,209b --- codegen.yml | 4 + package.json | 1 + src/__generated__/index.ts | 23327 +++++++---------------------------- 3 files changed, 4339 insertions(+), 18993 deletions(-) diff --git a/codegen.yml b/codegen.yml index 958f05d..eae0583 100644 --- a/codegen.yml +++ b/codegen.yml @@ -5,6 +5,10 @@ schema: Authorization: Bearer ${GITHUB_INTROSPECTION_TOKEN} generates: ./src/__generated__/index.ts: + config: + preResolveTypes: true + onlyOperationTypes: true + enumsAsTypes: true plugins: - typescript - typescript-operations diff --git a/package.json b/package.json index c796748..660247b 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "packageManager": "yarn@1.22.19", "name": "@rena.to/github-blog", "version": "0.4.2", "description": "Turn your github issues in CMS for your blog", diff --git a/src/__generated__/index.ts b/src/__generated__/index.ts index 8abacbd..f5376c0 100644 --- a/src/__generated__/index.ts +++ b/src/__generated__/index.ts @@ -14,6 +14,8 @@ export type Scalars = { Float: number; /** A (potentially binary) string encoded using base64. */ Base64String: any; + /** Represents non-fractional signed whole numeric values. Since the value may exceed the size of a 32-bit integer, it's encoded as a string. */ + BigInt: any; /** An ISO-8601 encoded date string. */ Date: any; /** An ISO-8601 encoded UTC date string. */ @@ -34,6 +36,16 @@ export type Scalars = { X509Certificate: any; }; + +/** Autogenerated input type of AbortQueuedMigrations */ +export type AbortQueuedMigrationsInput = { + /** The ID of the organization that is running the migrations. */ + ownerId: Scalars['ID']; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; +}; + + /** Autogenerated input type of AcceptEnterpriseAdministratorInvitation */ export type AcceptEnterpriseAdministratorInvitationInput = { /** The id of the invitation being accepted */ @@ -42,16 +54,6 @@ export type AcceptEnterpriseAdministratorInvitationInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AcceptEnterpriseAdministratorInvitation */ -export type AcceptEnterpriseAdministratorInvitationPayload = { - __typename?: 'AcceptEnterpriseAdministratorInvitationPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The invitation that was accepted. */ - invitation?: Maybe; - /** A message confirming the result of accepting an administrator invitation. */ - message?: Maybe; -}; /** Autogenerated input type of AcceptTopicSuggestion */ export type AcceptTopicSuggestionInput = { @@ -63,47 +65,15 @@ export type AcceptTopicSuggestionInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AcceptTopicSuggestion */ -export type AcceptTopicSuggestionPayload = { - __typename?: 'AcceptTopicSuggestionPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The accepted topic. */ - topic?: Maybe; -}; - -/** Represents an object which can take actions on GitHub. Typically a User or Bot. */ -export type Actor = { - /** A URL pointing to the actor's public avatar. */ - avatarUrl: Scalars['URI']; - /** The username of the actor. */ - login: Scalars['String']; - /** The HTTP path for this actor. */ - resourcePath: Scalars['URI']; - /** The HTTP URL for this actor. */ - url: Scalars['URI']; -}; -/** Represents an object which can take actions on GitHub. Typically a User or Bot. */ -export type ActorAvatarUrlArgs = { - size?: Maybe; -}; -/** Location information for an actor */ -export type ActorLocation = { - __typename?: 'ActorLocation'; - /** City */ - city?: Maybe; - /** Country name */ - country?: Maybe; - /** Country code */ - countryCode?: Maybe; - /** Region name */ - region?: Maybe; - /** Region or state code */ - regionCode?: Maybe; -}; +/** The actor's type. */ +export type ActorType = + /** Indicates a user actor. */ + | 'USER' + /** Indicates a team actor. */ + | 'TEAM'; /** Autogenerated input type of AddAssigneesToAssignable */ export type AddAssigneesToAssignableInput = { @@ -115,14 +85,6 @@ export type AddAssigneesToAssignableInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AddAssigneesToAssignable */ -export type AddAssigneesToAssignablePayload = { - __typename?: 'AddAssigneesToAssignablePayload'; - /** The item that was assigned. */ - assignable?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; /** Autogenerated input type of AddComment */ export type AddCommentInput = { @@ -134,18 +96,6 @@ export type AddCommentInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AddComment */ -export type AddCommentPayload = { - __typename?: 'AddCommentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The edge from the subject's comment connection. */ - commentEdge?: Maybe; - /** The subject */ - subject?: Maybe; - /** The edge from the subject's timeline connection. */ - timelineEdge?: Maybe; -}; /** Autogenerated input type of AddDiscussionComment */ export type AddDiscussionCommentInput = { @@ -159,15 +109,31 @@ export type AddDiscussionCommentInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AddDiscussionComment */ -export type AddDiscussionCommentPayload = { - __typename?: 'AddDiscussionCommentPayload'; + +/** Autogenerated input type of AddDiscussionPollVote */ +export type AddDiscussionPollVoteInput = { + /** The Node ID of the discussion poll option to vote for. */ + pollOptionId: Scalars['ID']; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; +}; + + +/** Autogenerated input type of AddEnterpriseOrganizationMember */ +export type AddEnterpriseOrganizationMemberInput = { + /** The ID of the enterprise which owns the organization. */ + enterpriseId: Scalars['ID']; + /** The ID of the organization the users will be added to. */ + organizationId: Scalars['ID']; + /** The IDs of the enterprise members to add. */ + userIds: Array; + /** The role to assign the users in the organization */ + role?: Maybe; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The newly created discussion comment. */ - comment?: Maybe; }; + /** Autogenerated input type of AddEnterpriseSupportEntitlement */ export type AddEnterpriseSupportEntitlementInput = { /** The ID of the Enterprise which the admin belongs to. */ @@ -178,14 +144,6 @@ export type AddEnterpriseSupportEntitlementInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AddEnterpriseSupportEntitlement */ -export type AddEnterpriseSupportEntitlementPayload = { - __typename?: 'AddEnterpriseSupportEntitlementPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** A message confirming the result of adding the support entitlement. */ - message?: Maybe; -}; /** Autogenerated input type of AddLabelsToLabelable */ export type AddLabelsToLabelableInput = { @@ -197,14 +155,6 @@ export type AddLabelsToLabelableInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AddLabelsToLabelable */ -export type AddLabelsToLabelablePayload = { - __typename?: 'AddLabelsToLabelablePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The item that was labeled. */ - labelable?: Maybe; -}; /** Autogenerated input type of AddProjectCard */ export type AddProjectCardInput = { @@ -218,16 +168,6 @@ export type AddProjectCardInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AddProjectCard */ -export type AddProjectCardPayload = { - __typename?: 'AddProjectCardPayload'; - /** The edge from the ProjectColumn's card connection. */ - cardEdge?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The ProjectColumn */ - projectColumn?: Maybe; -}; /** Autogenerated input type of AddProjectColumn */ export type AddProjectColumnInput = { @@ -239,47 +179,95 @@ export type AddProjectColumnInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AddProjectColumn */ -export type AddProjectColumnPayload = { - __typename?: 'AddProjectColumnPayload'; + +/** Autogenerated input type of AddProjectV2DraftIssue */ +export type AddProjectV2DraftIssueInput = { + /** The ID of the Project to add the draft issue to. */ + projectId: Scalars['ID']; + /** The title of the draft issue. A project item can also be created by providing the URL of an Issue or Pull Request if you have access. */ + title: Scalars['String']; + /** The body of the draft issue. */ + body?: Maybe; + /** The IDs of the assignees of the draft issue. */ + assigneeIds?: Maybe>; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; +}; + + +/** Autogenerated input type of AddProjectV2ItemById */ +export type AddProjectV2ItemByIdInput = { + /** The ID of the Project to add the item to. */ + projectId: Scalars['ID']; + /** The id of the Issue or Pull Request to add. */ + contentId: Scalars['ID']; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The edge from the project's column connection. */ - columnEdge?: Maybe; - /** The project */ - project?: Maybe; }; + /** Autogenerated input type of AddPullRequestReviewComment */ export type AddPullRequestReviewCommentInput = { - /** The node ID of the pull request reviewing */ + /** + * The node ID of the pull request reviewing + * + * **Upcoming Change on 2023-10-01 UTC** + * **Description:** `pullRequestId` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead + * **Reason:** We are deprecating the addPullRequestReviewComment mutation + */ pullRequestId?: Maybe; - /** The Node ID of the review to modify. */ + /** + * The Node ID of the review to modify. + * + * **Upcoming Change on 2023-10-01 UTC** + * **Description:** `pullRequestReviewId` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead + * **Reason:** We are deprecating the addPullRequestReviewComment mutation + */ pullRequestReviewId?: Maybe; - /** The SHA of the commit to comment on. */ + /** + * The SHA of the commit to comment on. + * + * **Upcoming Change on 2023-10-01 UTC** + * **Description:** `commitOID` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead + * **Reason:** We are deprecating the addPullRequestReviewComment mutation + */ commitOID?: Maybe; - /** The text of the comment. */ - body: Scalars['String']; - /** The relative path of the file to comment on. */ + /** + * The text of the comment. This field is required + * + * **Upcoming Change on 2023-10-01 UTC** + * **Description:** `body` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead + * **Reason:** We are deprecating the addPullRequestReviewComment mutation + */ + body?: Maybe; + /** + * The relative path of the file to comment on. + * + * **Upcoming Change on 2023-10-01 UTC** + * **Description:** `path` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead + * **Reason:** We are deprecating the addPullRequestReviewComment mutation + */ path?: Maybe; - /** The line index in the diff to comment on. */ + /** + * The line index in the diff to comment on. + * + * **Upcoming Change on 2023-10-01 UTC** + * **Description:** `position` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead + * **Reason:** We are deprecating the addPullRequestReviewComment mutation + */ position?: Maybe; - /** The comment id to reply to. */ + /** + * The comment id to reply to. + * + * **Upcoming Change on 2023-10-01 UTC** + * **Description:** `inReplyTo` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead + * **Reason:** We are deprecating the addPullRequestReviewComment mutation + */ inReplyTo?: Maybe; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; }; -/** Autogenerated return type of AddPullRequestReviewComment */ -export type AddPullRequestReviewCommentPayload = { - __typename?: 'AddPullRequestReviewCommentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The newly created comment. */ - comment?: Maybe; - /** The edge from the review's comment connection. */ - commentEdge?: Maybe; -}; /** Autogenerated input type of AddPullRequestReview */ export type AddPullRequestReviewInput = { @@ -291,7 +279,13 @@ export type AddPullRequestReviewInput = { body?: Maybe; /** The event to perform on the pull request review. */ event?: Maybe; - /** The review line comments. */ + /** + * The review line comments. + * + * **Upcoming Change on 2023-10-01 UTC** + * **Description:** `comments` will be removed. use the `threads` argument instead + * **Reason:** We are deprecating comment fields that use diff-relative positioning + */ comments?: Maybe>>; /** The review line comment threads. */ threads?: Maybe>>; @@ -299,16 +293,6 @@ export type AddPullRequestReviewInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AddPullRequestReview */ -export type AddPullRequestReviewPayload = { - __typename?: 'AddPullRequestReviewPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The newly created pull request review. */ - pullRequestReview?: Maybe; - /** The edge from the pull request's review connection. */ - reviewEdge?: Maybe; -}; /** Autogenerated input type of AddPullRequestReviewThread */ export type AddPullRequestReviewThreadInput = { @@ -320,26 +304,20 @@ export type AddPullRequestReviewThreadInput = { pullRequestId?: Maybe; /** The Node ID of the review to modify. */ pullRequestReviewId?: Maybe; - /** The line of the blob to which the thread refers. The end of the line range for multi-line comments. */ - line: Scalars['Int']; + /** The line of the blob to which the thread refers, required for line-level threads. The end of the line range for multi-line comments. */ + line?: Maybe; /** The side of the diff on which the line resides. For multi-line comments, this is the side for the end of the line range. */ side?: Maybe; /** The first line of the range to which the comment refers. */ startLine?: Maybe; /** The side of the diff on which the start line resides. */ startSide?: Maybe; + /** The level at which the comments in the corresponding thread are targeted, can be a diff line or a file */ + subjectType?: Maybe; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; }; -/** Autogenerated return type of AddPullRequestReviewThread */ -export type AddPullRequestReviewThreadPayload = { - __typename?: 'AddPullRequestReviewThreadPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The newly created thread. */ - thread?: Maybe; -}; /** Autogenerated input type of AddReaction */ export type AddReactionInput = { @@ -351,16 +329,6 @@ export type AddReactionInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AddReaction */ -export type AddReactionPayload = { - __typename?: 'AddReactionPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The reaction object. */ - reaction?: Maybe; - /** The reactable subject. */ - subject?: Maybe; -}; /** Autogenerated input type of AddStar */ export type AddStarInput = { @@ -370,14 +338,6 @@ export type AddStarInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AddStar */ -export type AddStarPayload = { - __typename?: 'AddStarPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The starrable. */ - starrable?: Maybe; -}; /** Autogenerated input type of AddUpvote */ export type AddUpvoteInput = { @@ -387,14 +347,6 @@ export type AddUpvoteInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AddUpvote */ -export type AddUpvotePayload = { - __typename?: 'AddUpvotePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The votable subject. */ - subject?: Maybe; -}; /** Autogenerated input type of AddVerifiableDomain */ export type AddVerifiableDomainInput = { @@ -406,68 +358,10 @@ export type AddVerifiableDomainInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of AddVerifiableDomain */ -export type AddVerifiableDomainPayload = { - __typename?: 'AddVerifiableDomainPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The verifiable domain that was added. */ - domain?: Maybe; -}; - -/** Represents a 'added_to_project' event on a given issue or pull request. */ -export type AddedToProjectEvent = Node & { - __typename?: 'AddedToProjectEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - id: Scalars['ID']; -}; - -/** A GitHub App. */ -export type App = Node & { - __typename?: 'App'; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The description of the app. */ - description?: Maybe; - id: Scalars['ID']; - /** The IP addresses of the app. */ - ipAllowListEntries: IpAllowListEntryConnection; - /** The hex color code, without the leading '#', for the logo background. */ - logoBackgroundColor: Scalars['String']; - /** A URL pointing to the app's logo. */ - logoUrl: Scalars['URI']; - /** The name of the app. */ - name: Scalars['String']; - /** A slug based on the name of the app for use in URLs. */ - slug: Scalars['String']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** The URL to the app's homepage. */ - url: Scalars['URI']; -}; -/** A GitHub App. */ -export type AppIpAllowListEntriesArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - orderBy?: Maybe; -}; -/** A GitHub App. */ -export type AppLogoUrlArgs = { - size?: Maybe; -}; /** Autogenerated input type of ApproveDeployments */ export type ApproveDeploymentsInput = { @@ -481,14 +375,6 @@ export type ApproveDeploymentsInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of ApproveDeployments */ -export type ApproveDeploymentsPayload = { - __typename?: 'ApproveDeploymentsPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The affected deployments. */ - deployments?: Maybe>; -}; /** Autogenerated input type of ApproveVerifiableDomain */ export type ApproveVerifiableDomainInput = { @@ -498,15 +384,18 @@ export type ApproveVerifiableDomainInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of ApproveVerifiableDomain */ -export type ApproveVerifiableDomainPayload = { - __typename?: 'ApproveVerifiableDomainPayload'; + +/** Autogenerated input type of ArchiveProjectV2Item */ +export type ArchiveProjectV2ItemInput = { + /** The ID of the Project to archive the item from. */ + projectId: Scalars['ID']; + /** The ID of the ProjectV2Item to archive. */ + itemId: Scalars['ID']; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The verifiable domain that was approved. */ - domain?: Maybe; }; + /** Autogenerated input type of ArchiveRepository */ export type ArchiveRepositoryInput = { /** The ID of the repository to mark as archived. */ @@ -515,84 +404,11 @@ export type ArchiveRepositoryInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of ArchiveRepository */ -export type ArchiveRepositoryPayload = { - __typename?: 'ArchiveRepositoryPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The repository that was marked as archived. */ - repository?: Maybe; -}; -/** An object that can have users assigned to it. */ -export type Assignable = { - /** A list of Users assigned to this object. */ - assignees: UserConnection; -}; -/** An object that can have users assigned to it. */ -export type AssignableAssigneesArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** Represents an 'assigned' event on any assignable object. */ -export type AssignedEvent = Node & { - __typename?: 'AssignedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the assignable associated with the event. */ - assignable: Assignable; - /** Identifies the user or mannequin that was assigned. */ - assignee?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** - * Identifies the user who was assigned. - * @deprecated Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC. - */ - user?: Maybe; -}; - -/** Types that can be assigned to issues. */ -export type Assignee = Bot | Mannequin | Organization | User; - -/** An entry in the audit log. */ -export type AuditEntry = { - /** The action name */ - action: Scalars['String']; - /** The user who initiated the action */ - actor?: Maybe; - /** The IP address of the actor */ - actorIp?: Maybe; - /** A readable representation of the actor's location */ - actorLocation?: Maybe; - /** The username of the user who initiated the action */ - actorLogin?: Maybe; - /** The HTTP path for the actor. */ - actorResourcePath?: Maybe; - /** The HTTP URL for the actor. */ - actorUrl?: Maybe; - /** The time the action was initiated */ - createdAt: Scalars['PreciseDateTime']; - /** The corresponding operation type for the action */ - operationType?: Maybe; - /** The user affected by the action */ - user?: Maybe; - /** For actions involving two users, the actor is the initiator and the user is the affected user. */ - userLogin?: Maybe; - /** The HTTP path for the user. */ - userResourcePath?: Maybe; - /** The HTTP URL for the user. */ - userUrl?: Maybe; -}; - -/** Types that can initiate an audit log event. */ -export type AuditEntryActor = Bot | Organization | User; + /** Ordering options for Audit Log connections. */ export type AuditLogOrder = { @@ -603,429 +419,66 @@ export type AuditLogOrder = { }; /** Properties by which Audit Log connections can be ordered. */ -export enum AuditLogOrderField { +export type AuditLogOrderField = /** Order audit log entries by timestamp */ - CreatedAt = 'CREATED_AT' -} + | 'CREATED_AT'; -/** Represents a 'auto_merge_disabled' event on a given pull request. */ -export type AutoMergeDisabledEvent = Node & { - __typename?: 'AutoMergeDisabledEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** The user who disabled auto-merge for this Pull Request */ - disabler?: Maybe; - id: Scalars['ID']; - /** PullRequest referenced by event */ - pullRequest?: Maybe; - /** The reason auto-merge was disabled */ - reason?: Maybe; - /** The reason_code relating to why auto-merge was disabled */ - reasonCode?: Maybe; -}; - -/** Represents a 'auto_merge_enabled' event on a given pull request. */ -export type AutoMergeEnabledEvent = Node & { - __typename?: 'AutoMergeEnabledEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** The user who enabled auto-merge for this Pull Request */ - enabler?: Maybe; - id: Scalars['ID']; - /** PullRequest referenced by event. */ - pullRequest?: Maybe; -}; -/** Represents an auto-merge request for a pull request */ -export type AutoMergeRequest = { - __typename?: 'AutoMergeRequest'; - /** The email address of the author of this auto-merge request. */ - authorEmail?: Maybe; - /** The commit message of the auto-merge request. */ - commitBody?: Maybe; - /** The commit title of the auto-merge request. */ - commitHeadline?: Maybe; - /** When was this auto-merge request was enabled. */ - enabledAt?: Maybe; - /** The actor who created the auto-merge request. */ - enabledBy?: Maybe; - /** The merge method of the auto-merge request. */ - mergeMethod: PullRequestMergeMethod; - /** The pull request that this auto-merge request is set against. */ - pullRequest: PullRequest; -}; - -/** Represents a 'auto_rebase_enabled' event on a given pull request. */ -export type AutoRebaseEnabledEvent = Node & { - __typename?: 'AutoRebaseEnabledEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** The user who enabled auto-merge (rebase) for this Pull Request */ - enabler?: Maybe; - id: Scalars['ID']; - /** PullRequest referenced by event. */ - pullRequest?: Maybe; -}; - -/** Represents a 'auto_squash_enabled' event on a given pull request. */ -export type AutoSquashEnabledEvent = Node & { - __typename?: 'AutoSquashEnabledEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** The user who enabled auto-merge (squash) for this Pull Request */ - enabler?: Maybe; - id: Scalars['ID']; - /** PullRequest referenced by event. */ - pullRequest?: Maybe; -}; -/** Represents a 'automatic_base_change_failed' event on a given pull request. */ -export type AutomaticBaseChangeFailedEvent = Node & { - __typename?: 'AutomaticBaseChangeFailedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** The new base for this PR */ - newBase: Scalars['String']; - /** The old base for this PR */ - oldBase: Scalars['String']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; -}; - -/** Represents a 'automatic_base_change_succeeded' event on a given pull request. */ -export type AutomaticBaseChangeSucceededEvent = Node & { - __typename?: 'AutomaticBaseChangeSucceededEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** The new base for this PR */ - newBase: Scalars['String']; - /** The old base for this PR */ - oldBase: Scalars['String']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; -}; - - -/** Represents a 'base_ref_changed' event on a given issue or pull request. */ -export type BaseRefChangedEvent = Node & { - __typename?: 'BaseRefChangedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Identifies the name of the base ref for the pull request after it was changed. */ - currentRefName: Scalars['String']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - id: Scalars['ID']; - /** Identifies the name of the base ref for the pull request before it was changed. */ - previousRefName: Scalars['String']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; -}; - -/** Represents a 'base_ref_deleted' event on a given pull request. */ -export type BaseRefDeletedEvent = Node & { - __typename?: 'BaseRefDeletedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the name of the Ref associated with the `base_ref_deleted` event. */ - baseRefName?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** PullRequest referenced by event. */ - pullRequest?: Maybe; -}; - -/** Represents a 'base_ref_force_pushed' event on a given pull request. */ -export type BaseRefForcePushedEvent = Node & { - __typename?: 'BaseRefForcePushedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the after commit SHA for the 'base_ref_force_pushed' event. */ - afterCommit?: Maybe; - /** Identifies the before commit SHA for the 'base_ref_force_pushed' event. */ - beforeCommit?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; - /** Identifies the fully qualified ref name for the 'base_ref_force_pushed' event. */ - ref?: Maybe; -}; - -/** Represents a Git blame. */ -export type Blame = { - __typename?: 'Blame'; - /** The list of ranges from a Git blame. */ - ranges: Array; -}; - -/** Represents a range of information from a Git blame. */ -export type BlameRange = { - __typename?: 'BlameRange'; - /** Identifies the recency of the change, from 1 (new) to 10 (old). This is calculated as a 2-quantile and determines the length of distance between the median age of all the changes in the file and the recency of the current range's change. */ - age: Scalars['Int']; - /** Identifies the line author */ - commit: Commit; - /** The ending line for the range */ - endingLine: Scalars['Int']; - /** The starting line for the range */ - startingLine: Scalars['Int']; -}; - -/** Represents a Git blob. */ -export type Blob = GitObject & Node & { - __typename?: 'Blob'; - /** An abbreviated version of the Git object ID */ - abbreviatedOid: Scalars['String']; - /** Byte size of Blob object */ - byteSize: Scalars['Int']; - /** The HTTP path for this Git object */ - commitResourcePath: Scalars['URI']; - /** The HTTP URL for this Git object */ - commitUrl: Scalars['URI']; - id: Scalars['ID']; - /** Indicates whether the Blob is binary or text. Returns null if unable to determine the encoding. */ - isBinary?: Maybe; - /** Indicates whether the contents is truncated */ - isTruncated: Scalars['Boolean']; - /** The Git object ID */ - oid: Scalars['GitObjectID']; - /** The Repository the Git object belongs to */ - repository: Repository; - /** UTF8 text data or null if the Blob is binary */ - text?: Maybe; -}; -/** A special type of user which takes actions on behalf of GitHub Apps. */ -export type Bot = Node & Actor & UniformResourceLocatable & { - __typename?: 'Bot'; - /** A URL pointing to the GitHub App's public avatar. */ - avatarUrl: Scalars['URI']; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - id: Scalars['ID']; - /** The username of the actor. */ - login: Scalars['String']; - /** The HTTP path for this bot */ - resourcePath: Scalars['URI']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** The HTTP URL for this bot */ - url: Scalars['URI']; -}; -/** A special type of user which takes actions on behalf of GitHub Apps. */ -export type BotAvatarUrlArgs = { - size?: Maybe; -}; -/** A branch protection rule. */ -export type BranchProtectionRule = Node & { - __typename?: 'BranchProtectionRule'; - /** Can this branch be deleted. */ - allowsDeletions: Scalars['Boolean']; - /** Are force pushes allowed on this branch. */ - allowsForcePushes: Scalars['Boolean']; - /** A list of conflicts matching branches protection rule and other branch protection rules */ - branchProtectionRuleConflicts: BranchProtectionRuleConflictConnection; - /** The actor who created this branch protection rule. */ - creator?: Maybe; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** Will new commits pushed to matching branches dismiss pull request review approvals. */ - dismissesStaleReviews: Scalars['Boolean']; - id: Scalars['ID']; - /** Can admins overwrite branch protection. */ - isAdminEnforced: Scalars['Boolean']; - /** Repository refs that are protected by this rule */ - matchingRefs: RefConnection; - /** Identifies the protection rule pattern. */ + + + + + + + + + + + + +/** Parameters to be used for the branch_name_pattern rule */ +export type BranchNamePatternParametersInput = { + /** How this rule will appear to users. */ + name?: Maybe; + /** If true, the rule will fail if the pattern matches. */ + negate?: Maybe; + /** The operator to use for matching. */ + operator: Scalars['String']; + /** The pattern to match with. */ pattern: Scalars['String']; - /** A list push allowances for this branch protection rule. */ - pushAllowances: PushAllowanceConnection; - /** The repository associated with this branch protection rule. */ - repository?: Maybe; - /** Number of approving reviews required to update matching branches. */ - requiredApprovingReviewCount?: Maybe; - /** List of required status check contexts that must pass for commits to be accepted to matching branches. */ - requiredStatusCheckContexts?: Maybe>>; - /** Are approving reviews required to update matching branches. */ - requiresApprovingReviews: Scalars['Boolean']; - /** Are reviews from code owners required to update matching branches. */ - requiresCodeOwnerReviews: Scalars['Boolean']; - /** Are commits required to be signed. */ - requiresCommitSignatures: Scalars['Boolean']; - /** Are conversations required to be resolved before merging. */ - requiresConversationResolution: Scalars['Boolean']; - /** Are merge commits prohibited from being pushed to this branch. */ - requiresLinearHistory: Scalars['Boolean']; - /** Are status checks required to update matching branches. */ - requiresStatusChecks: Scalars['Boolean']; - /** Are branches required to be up to date before merging. */ - requiresStrictStatusChecks: Scalars['Boolean']; - /** Is pushing to matching branches restricted. */ - restrictsPushes: Scalars['Boolean']; - /** Is dismissal of pull request reviews restricted. */ - restrictsReviewDismissals: Scalars['Boolean']; - /** A list review dismissal allowances for this branch protection rule. */ - reviewDismissalAllowances: ReviewDismissalAllowanceConnection; }; -/** A branch protection rule. */ -export type BranchProtectionRuleBranchProtectionRuleConflictsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** A branch protection rule. */ -export type BranchProtectionRuleMatchingRefsArgs = { - query?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** A branch protection rule. */ -export type BranchProtectionRulePushAllowancesArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; + +/** Information about a sponsorship to make for a user or organization with a GitHub Sponsors profile, as part of sponsoring many users or organizations at once. */ +export type BulkSponsorship = { + /** The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. */ + sponsorableId?: Maybe; + /** The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. */ + sponsorableLogin?: Maybe; + /** The amount to pay to the sponsorable in US dollars. Valid values: 1-12000. */ + amount: Scalars['Int']; }; -/** A branch protection rule. */ -export type BranchProtectionRuleReviewDismissalAllowancesArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** A conflict between two branch protection rules. */ -export type BranchProtectionRuleConflict = { - __typename?: 'BranchProtectionRuleConflict'; - /** Identifies the branch protection rule. */ - branchProtectionRule?: Maybe; - /** Identifies the conflicting branch protection rule. */ - conflictingBranchProtectionRule?: Maybe; - /** Identifies the branch ref that has conflicting rules */ - ref?: Maybe; -}; - -/** The connection type for BranchProtectionRuleConflict. */ -export type BranchProtectionRuleConflictConnection = { - __typename?: 'BranchProtectionRuleConflictConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type BranchProtectionRuleConflictEdge = { - __typename?: 'BranchProtectionRuleConflictEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** The connection type for BranchProtectionRule. */ -export type BranchProtectionRuleConnection = { - __typename?: 'BranchProtectionRuleConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type BranchProtectionRuleEdge = { - __typename?: 'BranchProtectionRuleEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** The Common Vulnerability Scoring System */ -export type Cvss = { - __typename?: 'CVSS'; - /** The CVSS score associated with this advisory */ - score: Scalars['Float']; - /** The CVSS vector string associated with this advisory */ - vectorString?: Maybe; -}; - -/** A common weakness enumeration */ -export type Cwe = Node & { - __typename?: 'CWE'; - /** The id of the CWE */ - cweId: Scalars['String']; - /** A detailed description of this CWE */ - description: Scalars['String']; - id: Scalars['ID']; - /** The name of this CWE */ - name: Scalars['String']; -}; -/** The connection type for CWE. */ -export type CweConnection = { - __typename?: 'CWEConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; -/** An edge in a connection. */ -export type CweEdge = { - __typename?: 'CWEEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; + + + + + + /** Autogenerated input type of CancelEnterpriseAdminInvitation */ export type CancelEnterpriseAdminInvitationInput = { @@ -1035,16 +488,6 @@ export type CancelEnterpriseAdminInvitationInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CancelEnterpriseAdminInvitation */ -export type CancelEnterpriseAdminInvitationPayload = { - __typename?: 'CancelEnterpriseAdminInvitationPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The invitation that was canceled. */ - invitation?: Maybe; - /** A message confirming the result of canceling an administrator invitation. */ - message?: Maybe; -}; /** Autogenerated input type of CancelSponsorship */ export type CancelSponsorshipInput = { @@ -1060,14 +503,6 @@ export type CancelSponsorshipInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CancelSponsorship */ -export type CancelSponsorshipPayload = { - __typename?: 'CancelSponsorshipPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The tier that was being used at the time of cancellation. */ - sponsorsTier?: Maybe; -}; /** Autogenerated input type of ChangeUserStatus */ export type ChangeUserStatusInput = { @@ -1085,48 +520,8 @@ export type ChangeUserStatusInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of ChangeUserStatus */ -export type ChangeUserStatusPayload = { - __typename?: 'ChangeUserStatusPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** Your updated status. */ - status?: Maybe; -}; - -/** A single check annotation. */ -export type CheckAnnotation = { - __typename?: 'CheckAnnotation'; - /** The annotation's severity level. */ - annotationLevel?: Maybe; - /** The path to the file that this annotation was made on. */ - blobUrl: Scalars['URI']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The position of this annotation. */ - location: CheckAnnotationSpan; - /** The annotation's message. */ - message: Scalars['String']; - /** The path that this annotation was made on. */ - path: Scalars['String']; - /** Additional information about the annotation. */ - rawDetails?: Maybe; - /** The annotation's title */ - title?: Maybe; -}; -/** The connection type for CheckAnnotation. */ -export type CheckAnnotationConnection = { - __typename?: 'CheckAnnotationConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; + /** Information from a check run analysis to specific lines of code. */ export type CheckAnnotationData = { @@ -1144,33 +539,16 @@ export type CheckAnnotationData = { rawDetails?: Maybe; }; -/** An edge in a connection. */ -export type CheckAnnotationEdge = { - __typename?: 'CheckAnnotationEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** Represents an annotation's information level. */ -export enum CheckAnnotationLevel { +export type CheckAnnotationLevel = /** An annotation indicating an inescapable error. */ - Failure = 'FAILURE', + | 'FAILURE' /** An annotation indicating some information. */ - Notice = 'NOTICE', + | 'NOTICE' /** An annotation indicating an ignorable error. */ - Warning = 'WARNING' -} + | 'WARNING'; -/** A character position in a check annotation. */ -export type CheckAnnotationPosition = { - __typename?: 'CheckAnnotationPosition'; - /** Column number (1 indexed). */ - column?: Maybe; - /** Line number (1 indexed). */ - line: Scalars['Int']; -}; /** Information from a check run analysis to specific lines of code. */ export type CheckAnnotationRange = { @@ -1184,111 +562,29 @@ export type CheckAnnotationRange = { endColumn?: Maybe; }; -/** An inclusive pair of positions for a check annotation. */ -export type CheckAnnotationSpan = { - __typename?: 'CheckAnnotationSpan'; - /** End position (inclusive). */ - end: CheckAnnotationPosition; - /** Start position (inclusive). */ - start: CheckAnnotationPosition; -}; /** The possible states for a check suite or run conclusion. */ -export enum CheckConclusionState { +export type CheckConclusionState = /** The check suite or run requires action. */ - ActionRequired = 'ACTION_REQUIRED', + | 'ACTION_REQUIRED' /** The check suite or run has timed out. */ - TimedOut = 'TIMED_OUT', + | 'TIMED_OUT' /** The check suite or run has been cancelled. */ - Cancelled = 'CANCELLED', + | 'CANCELLED' /** The check suite or run has failed. */ - Failure = 'FAILURE', + | 'FAILURE' /** The check suite or run has succeeded. */ - Success = 'SUCCESS', + | 'SUCCESS' /** The check suite or run was neutral. */ - Neutral = 'NEUTRAL', + | 'NEUTRAL' /** The check suite or run was skipped. */ - Skipped = 'SKIPPED', + | 'SKIPPED' /** The check suite or run has failed at startup. */ - StartupFailure = 'STARTUP_FAILURE', + | 'STARTUP_FAILURE' /** The check suite or run was marked stale by GitHub. Only GitHub can use this conclusion. */ - Stale = 'STALE' -} - -/** A check run. */ -export type CheckRun = Node & UniformResourceLocatable & RequirableByPullRequest & { - __typename?: 'CheckRun'; - /** The check run's annotations */ - annotations?: Maybe; - /** The check suite that this run is a part of. */ - checkSuite: CheckSuite; - /** Identifies the date and time when the check run was completed. */ - completedAt?: Maybe; - /** The conclusion of the check run. */ - conclusion?: Maybe; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The corresponding deployment for this job, if any */ - deployment?: Maybe; - /** The URL from which to find full details of the check run on the integrator's site. */ - detailsUrl?: Maybe; - /** A reference for the check run on the integrator's system. */ - externalId?: Maybe; - id: Scalars['ID']; - /** Whether this is required to pass before merging for a specific pull request. */ - isRequired: Scalars['Boolean']; - /** The name of the check for this check run. */ - name: Scalars['String']; - /** Information about a pending deployment, if any, in this check run */ - pendingDeploymentRequest?: Maybe; - /** The permalink to the check run summary. */ - permalink: Scalars['URI']; - /** The repository associated with this check run. */ - repository: Repository; - /** The HTTP path for this check run. */ - resourcePath: Scalars['URI']; - /** Identifies the date and time when the check run was started. */ - startedAt?: Maybe; - /** The current status of the check run. */ - status: CheckStatusState; - /** The check run's steps */ - steps?: Maybe; - /** A string representing the check run's summary */ - summary?: Maybe; - /** A string representing the check run's text */ - text?: Maybe; - /** A string representing the check run */ - title?: Maybe; - /** The HTTP URL for this check run. */ - url: Scalars['URI']; -}; - - -/** A check run. */ -export type CheckRunAnnotationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; + | 'STALE'; -/** A check run. */ -export type CheckRunIsRequiredArgs = { - pullRequestId?: Maybe; - pullRequestNumber?: Maybe; -}; - - -/** A check run. */ -export type CheckRunStepsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - number?: Maybe; -}; - /** Possible further actions the integrator can perform. */ export type CheckRunAction = { /** The text to be displayed on a button in the web UI. */ @@ -1299,27 +595,7 @@ export type CheckRunAction = { identifier: Scalars['String']; }; -/** The connection type for CheckRun. */ -export type CheckRunConnection = { - __typename?: 'CheckRunConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; -/** An edge in a connection. */ -export type CheckRunEdge = { - __typename?: 'CheckRunEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** The filters that are available when fetching check runs. */ export type CheckRunFilter = { @@ -1329,8 +605,12 @@ export type CheckRunFilter = { appId?: Maybe; /** Filters the check runs by this name. */ checkName?: Maybe; - /** Filters the check runs by this status. */ + /** Filters the check runs by this status. Superceded by statuses. */ status?: Maybe; + /** Filters the check runs by this status. Overrides status. */ + statuses?: Maybe>; + /** Filters the check runs by these conclusions. */ + conclusions?: Maybe>; }; /** Descriptive details about the check run. */ @@ -1357,134 +637,63 @@ export type CheckRunOutputImage = { caption?: Maybe; }; +/** The possible states of a check run in a status rollup. */ +export type CheckRunState = + /** The check run requires action. */ + | 'ACTION_REQUIRED' + /** The check run has been cancelled. */ + | 'CANCELLED' + /** The check run has been completed. */ + | 'COMPLETED' + /** The check run has failed. */ + | 'FAILURE' + /** The check run is in progress. */ + | 'IN_PROGRESS' + /** The check run was neutral. */ + | 'NEUTRAL' + /** The check run is in pending state. */ + | 'PENDING' + /** The check run has been queued. */ + | 'QUEUED' + /** The check run was skipped. */ + | 'SKIPPED' + /** The check run was marked stale by GitHub. Only GitHub can use this conclusion. */ + | 'STALE' + /** The check run has failed at startup. */ + | 'STARTUP_FAILURE' + /** The check run has succeeded. */ + | 'SUCCESS' + /** The check run has timed out. */ + | 'TIMED_OUT' + /** The check run is in waiting state. */ + | 'WAITING'; + + /** The possible types of check runs. */ -export enum CheckRunType { +export type CheckRunType = /** Every check run available. */ - All = 'ALL', + | 'ALL' /** The latest check run. */ - Latest = 'LATEST' -} + | 'LATEST'; /** The possible states for a check suite or run status. */ -export enum CheckStatusState { +export type CheckStatusState = /** The check suite or run has been queued. */ - Queued = 'QUEUED', + | 'QUEUED' /** The check suite or run is in progress. */ - InProgress = 'IN_PROGRESS', + | 'IN_PROGRESS' /** The check suite or run has been completed. */ - Completed = 'COMPLETED', + | 'COMPLETED' /** The check suite or run is in waiting state. */ - Waiting = 'WAITING', + | 'WAITING' /** The check suite or run is in pending state. */ - Pending = 'PENDING', + | 'PENDING' /** The check suite or run has been requested. */ - Requested = 'REQUESTED' -} + | 'REQUESTED'; + -/** A single check step. */ -export type CheckStep = { - __typename?: 'CheckStep'; - /** Identifies the date and time when the check step was completed. */ - completedAt?: Maybe; - /** The conclusion of the check step. */ - conclusion?: Maybe; - /** A reference for the check step on the integrator's system. */ - externalId?: Maybe; - /** The step's name. */ - name: Scalars['String']; - /** The index of the step in the list of steps of the parent check run. */ - number: Scalars['Int']; - /** Number of seconds to completion. */ - secondsToCompletion?: Maybe; - /** Identifies the date and time when the check step was started. */ - startedAt?: Maybe; - /** The current status of the check step. */ - status: CheckStatusState; -}; - -/** The connection type for CheckStep. */ -export type CheckStepConnection = { - __typename?: 'CheckStepConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type CheckStepEdge = { - __typename?: 'CheckStepEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** A check suite. */ -export type CheckSuite = Node & { - __typename?: 'CheckSuite'; - /** The GitHub App which created this check suite. */ - app?: Maybe; - /** The name of the branch for this check suite. */ - branch?: Maybe; - /** The check runs associated with a check suite. */ - checkRuns?: Maybe; - /** The commit for this check suite */ - commit: Commit; - /** The conclusion of this check suite. */ - conclusion?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** The user who triggered the check suite. */ - creator?: Maybe; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - id: Scalars['ID']; - /** A list of open pull requests matching the check suite. */ - matchingPullRequests?: Maybe; - /** The push that triggered this check suite. */ - push?: Maybe; - /** The repository associated with this check suite. */ - repository: Repository; - /** The HTTP path for this check suite */ - resourcePath: Scalars['URI']; - /** The status of this check suite. */ - status: CheckStatusState; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** The HTTP URL for this check suite */ - url: Scalars['URI']; - /** The workflow run associated with this check suite. */ - workflowRun?: Maybe; -}; - - -/** A check suite. */ -export type CheckSuiteCheckRunsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - filterBy?: Maybe; -}; -/** A check suite. */ -export type CheckSuiteMatchingPullRequestsArgs = { - states?: Maybe>; - labels?: Maybe>; - headRefName?: Maybe; - baseRefName?: Maybe; - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; /** The auto-trigger preferences that are available for check suites. */ export type CheckSuiteAutoTriggerPreference = { @@ -1494,27 +703,7 @@ export type CheckSuiteAutoTriggerPreference = { setting: Scalars['Boolean']; }; -/** The connection type for CheckSuite. */ -export type CheckSuiteConnection = { - __typename?: 'CheckSuiteConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; -/** An edge in a connection. */ -export type CheckSuiteEdge = { - __typename?: 'CheckSuiteEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** The filters that are available when fetching check suites. */ export type CheckSuiteFilter = { @@ -1524,6 +713,7 @@ export type CheckSuiteFilter = { checkName?: Maybe; }; + /** Autogenerated input type of ClearLabelsFromLabelable */ export type ClearLabelsFromLabelableInput = { /** The id of the labelable object to clear the labels from. */ @@ -1532,15 +722,20 @@ export type ClearLabelsFromLabelableInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of ClearLabelsFromLabelable */ -export type ClearLabelsFromLabelablePayload = { - __typename?: 'ClearLabelsFromLabelablePayload'; + +/** Autogenerated input type of ClearProjectV2ItemFieldValue */ +export type ClearProjectV2ItemFieldValueInput = { + /** The ID of the Project. */ + projectId: Scalars['ID']; + /** The ID of the item to be cleared. */ + itemId: Scalars['ID']; + /** The ID of the field to be cleared. */ + fieldId: Scalars['ID']; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The item that was unlabeled. */ - labelable?: Maybe; }; + /** Autogenerated input type of CloneProject */ export type CloneProjectInput = { /** The owner ID to create the project under. */ @@ -1559,16 +754,6 @@ export type CloneProjectInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CloneProject */ -export type CloneProjectPayload = { - __typename?: 'CloneProjectPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The id of the JobStatus for populating cloned fields. */ - jobStatusId?: Maybe; - /** The new cloned project. */ - project?: Maybe; -}; /** Autogenerated input type of CloneTemplateRepository */ export type CloneTemplateRepositoryInput = { @@ -1588,39 +773,29 @@ export type CloneTemplateRepositoryInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CloneTemplateRepository */ -export type CloneTemplateRepositoryPayload = { - __typename?: 'CloneTemplateRepositoryPayload'; + + +/** Autogenerated input type of CloseDiscussion */ +export type CloseDiscussionInput = { + /** ID of the discussion to be closed. */ + discussionId: Scalars['ID']; + /** The reason why the discussion is being closed. */ + reason?: Maybe; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The new repository. */ - repository?: Maybe; }; -/** An object that can be closed */ -export type Closable = { - /** `true` if the object is closed (definition of closed may depend on type) */ - closed: Scalars['Boolean']; - /** Identifies the date and time when the object was closed. */ - closedAt?: Maybe; -}; /** Autogenerated input type of CloseIssue */ export type CloseIssueInput = { /** ID of the issue to be closed. */ issueId: Scalars['ID']; + /** The reason the issue is to be closed. */ + stateReason?: Maybe; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; }; -/** Autogenerated return type of CloseIssue */ -export type CloseIssuePayload = { - __typename?: 'CloseIssuePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The issue that was closed. */ - issue?: Maybe; -}; /** Autogenerated input type of ClosePullRequest */ export type ClosePullRequestInput = { @@ -1630,348 +805,57 @@ export type ClosePullRequestInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of ClosePullRequest */ -export type ClosePullRequestPayload = { - __typename?: 'ClosePullRequestPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The pull request that was closed. */ - pullRequest?: Maybe; -}; - -/** Represents a 'closed' event on any `Closable`. */ -export type ClosedEvent = Node & UniformResourceLocatable & { - __typename?: 'ClosedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Object that was closed. */ - closable: Closable; - /** Object which triggered the creation of this event. */ - closer?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** The HTTP path for this closed event. */ - resourcePath: Scalars['URI']; - /** The HTTP URL for this closed event. */ - url: Scalars['URI']; -}; -/** The object which triggered a `ClosedEvent`. */ -export type Closer = Commit | PullRequest; -/** The Code of Conduct for a repository */ -export type CodeOfConduct = Node & { - __typename?: 'CodeOfConduct'; - /** The body of the Code of Conduct */ - body?: Maybe; - id: Scalars['ID']; - /** The key for the Code of Conduct */ - key: Scalars['String']; - /** The formal name of the Code of Conduct */ - name: Scalars['String']; - /** The HTTP path for this Code of Conduct */ - resourcePath?: Maybe; - /** The HTTP URL for this Code of Conduct */ - url?: Maybe; -}; + /** Collaborators affiliation level with a subject. */ -export enum CollaboratorAffiliation { +export type CollaboratorAffiliation = /** All outside collaborators of an organization-owned subject. */ - Outside = 'OUTSIDE', + | 'OUTSIDE' /** All collaborators with permissions to an organization-owned subject, regardless of organization membership status. */ - Direct = 'DIRECT', + | 'DIRECT' /** All collaborators the authenticated user can see. */ - All = 'ALL' -} + | 'ALL'; -/** Represents a comment. */ -export type Comment = { - /** The actor who authored the comment. */ - author?: Maybe; - /** Author's association with the subject of the comment. */ - authorAssociation: CommentAuthorAssociation; - /** The body as Markdown. */ - body: Scalars['String']; - /** The body rendered to HTML. */ - bodyHTML: Scalars['HTML']; - /** The body rendered to text. */ - bodyText: Scalars['String']; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Check if this comment was created via an email reply. */ - createdViaEmail: Scalars['Boolean']; - /** The actor who edited the comment. */ - editor?: Maybe; - id: Scalars['ID']; - /** Check if this comment was edited and includes an edit with the creation data */ - includesCreatedEdit: Scalars['Boolean']; - /** The moment the editor made the last edit */ - lastEditedAt?: Maybe; - /** Identifies when the comment was published at. */ - publishedAt?: Maybe; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** A list of edits to this content. */ - userContentEdits?: Maybe; - /** Did the viewer author this comment. */ - viewerDidAuthor: Scalars['Boolean']; -}; - - -/** Represents a comment. */ -export type CommentUserContentEditsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; /** A comment author association with repository. */ -export enum CommentAuthorAssociation { +export type CommentAuthorAssociation = /** Author is a member of the organization that owns the repository. */ - Member = 'MEMBER', + | 'MEMBER' /** Author is the owner of the repository. */ - Owner = 'OWNER', + | 'OWNER' /** Author is a placeholder for an unclaimed user. */ - Mannequin = 'MANNEQUIN', + | 'MANNEQUIN' /** Author has been invited to collaborate on the repository. */ - Collaborator = 'COLLABORATOR', + | 'COLLABORATOR' /** Author has previously committed to the repository. */ - Contributor = 'CONTRIBUTOR', + | 'CONTRIBUTOR' /** Author has not previously committed to the repository. */ - FirstTimeContributor = 'FIRST_TIME_CONTRIBUTOR', + | 'FIRST_TIME_CONTRIBUTOR' /** Author has not previously committed to GitHub. */ - FirstTimer = 'FIRST_TIMER', + | 'FIRST_TIMER' /** Author has no association with the repository. */ - None = 'NONE' -} + | 'NONE'; /** The possible errors that will prevent a user from updating a comment. */ -export enum CommentCannotUpdateReason { +export type CommentCannotUpdateReason = /** Unable to create comment because repository is archived. */ - Archived = 'ARCHIVED', + | 'ARCHIVED' /** You must be the author or have write access to this repository to update this comment. */ - InsufficientAccess = 'INSUFFICIENT_ACCESS', + | 'INSUFFICIENT_ACCESS' /** Unable to create comment because issue is locked. */ - Locked = 'LOCKED', + | 'LOCKED' /** You must be logged in to update this comment. */ - LoginRequired = 'LOGIN_REQUIRED', + | 'LOGIN_REQUIRED' /** Repository is under maintenance. */ - Maintenance = 'MAINTENANCE', + | 'MAINTENANCE' /** At least one email address must be verified to update this comment. */ - VerifiedEmailRequired = 'VERIFIED_EMAIL_REQUIRED', + | 'VERIFIED_EMAIL_REQUIRED' /** You cannot update this comment */ - Denied = 'DENIED' -} - -/** Represents a 'comment_deleted' event on a given issue or pull request. */ -export type CommentDeletedEvent = Node & { - __typename?: 'CommentDeletedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The user who authored the deleted comment. */ - deletedCommentAuthor?: Maybe; - id: Scalars['ID']; -}; - -/** Represents a Git commit. */ -export type Commit = Node & GitObject & Subscribable & UniformResourceLocatable & { - __typename?: 'Commit'; - /** An abbreviated version of the Git object ID */ - abbreviatedOid: Scalars['String']; - /** The number of additions in this commit. */ - additions: Scalars['Int']; - /** The merged Pull Request that introduced the commit to the repository. If the commit is not present in the default branch, additionally returns open Pull Requests associated with the commit */ - associatedPullRequests?: Maybe; - /** Authorship details of the commit. */ - author?: Maybe; - /** Check if the committer and the author match. */ - authoredByCommitter: Scalars['Boolean']; - /** The datetime when this commit was authored. */ - authoredDate: Scalars['DateTime']; - /** - * The list of authors for this commit based on the git author and the Co-authored-by - * message trailer. The git author will always be first. - */ - authors: GitActorConnection; - /** Fetches `git blame` information. */ - blame: Blame; - /** The number of changed files in this commit. */ - changedFiles: Scalars['Int']; - /** The check suites associated with a commit. */ - checkSuites?: Maybe; - /** Comments made on the commit. */ - comments: CommitCommentConnection; - /** The HTTP path for this Git object */ - commitResourcePath: Scalars['URI']; - /** The HTTP URL for this Git object */ - commitUrl: Scalars['URI']; - /** The datetime when this commit was committed. */ - committedDate: Scalars['DateTime']; - /** Check if committed via GitHub web UI. */ - committedViaWeb: Scalars['Boolean']; - /** Committer details of the commit. */ - committer?: Maybe; - /** The number of deletions in this commit. */ - deletions: Scalars['Int']; - /** The deployments associated with a commit. */ - deployments?: Maybe; - /** The tree entry representing the file located at the given path. */ - file?: Maybe; - /** The linear commit history starting from (and including) this commit, in the same order as `git log`. */ - history: CommitHistoryConnection; - id: Scalars['ID']; - /** The Git commit message */ - message: Scalars['String']; - /** The Git commit message body */ - messageBody: Scalars['String']; - /** The commit message body rendered to HTML. */ - messageBodyHTML: Scalars['HTML']; - /** The Git commit message headline */ - messageHeadline: Scalars['String']; - /** The commit message headline rendered to HTML. */ - messageHeadlineHTML: Scalars['HTML']; - /** The Git object ID */ - oid: Scalars['GitObjectID']; - /** The organization this commit was made on behalf of. */ - onBehalfOf?: Maybe; - /** The parents of a commit. */ - parents: CommitConnection; - /** The datetime when this commit was pushed. */ - pushedDate?: Maybe; - /** The Repository this commit belongs to */ - repository: Repository; - /** The HTTP path for this commit */ - resourcePath: Scalars['URI']; - /** Commit signing information, if present. */ - signature?: Maybe; - /** Status information for this commit */ - status?: Maybe; - /** Check and Status rollup information for this commit. */ - statusCheckRollup?: Maybe; - /** Returns a list of all submodules in this repository as of this Commit parsed from the .gitmodules file. */ - submodules: SubmoduleConnection; - /** - * Returns a URL to download a tarball archive for a repository. - * Note: For private repositories, these links are temporary and expire after five minutes. - */ - tarballUrl: Scalars['URI']; - /** Commit's root Tree */ - tree: Tree; - /** The HTTP path for the tree of this commit */ - treeResourcePath: Scalars['URI']; - /** The HTTP URL for the tree of this commit */ - treeUrl: Scalars['URI']; - /** The HTTP URL for this commit */ - url: Scalars['URI']; - /** Check if the viewer is able to change their subscription status for the repository. */ - viewerCanSubscribe: Scalars['Boolean']; - /** Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. */ - viewerSubscription?: Maybe; - /** - * Returns a URL to download a zipball archive for a repository. - * Note: For private repositories, these links are temporary and expire after five minutes. - */ - zipballUrl: Scalars['URI']; -}; - - -/** Represents a Git commit. */ -export type CommitAssociatedPullRequestsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - orderBy?: Maybe; -}; - - -/** Represents a Git commit. */ -export type CommitAuthorsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** Represents a Git commit. */ -export type CommitBlameArgs = { - path: Scalars['String']; -}; - - -/** Represents a Git commit. */ -export type CommitCheckSuitesArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - filterBy?: Maybe; -}; - - -/** Represents a Git commit. */ -export type CommitCommentsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** Represents a Git commit. */ -export type CommitDeploymentsArgs = { - environments?: Maybe>; - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** Represents a Git commit. */ -export type CommitFileArgs = { - path: Scalars['String']; -}; + | 'DENIED'; -/** Represents a Git commit. */ -export type CommitHistoryArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - path?: Maybe; - author?: Maybe; - since?: Maybe; - until?: Maybe; -}; - - -/** Represents a Git commit. */ -export type CommitParentsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** Represents a Git commit. */ -export type CommitSubmodulesArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; /** Specifies an author for filtering Git commits. */ export type CommitAuthor = { @@ -1981,151 +865,23 @@ export type CommitAuthor = { emails?: Maybe>; }; -/** Represents a comment on a given Commit. */ -export type CommitComment = Node & Comment & Deletable & Minimizable & Updatable & UpdatableComment & Reactable & RepositoryNode & { - __typename?: 'CommitComment'; - /** The actor who authored the comment. */ - author?: Maybe; - /** Author's association with the subject of the comment. */ - authorAssociation: CommentAuthorAssociation; - /** Identifies the comment body. */ - body: Scalars['String']; - /** The body rendered to HTML. */ - bodyHTML: Scalars['HTML']; - /** The body rendered to text. */ - bodyText: Scalars['String']; - /** Identifies the commit associated with the comment, if the commit exists. */ - commit?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Check if this comment was created via an email reply. */ - createdViaEmail: Scalars['Boolean']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The actor who edited the comment. */ - editor?: Maybe; - id: Scalars['ID']; - /** Check if this comment was edited and includes an edit with the creation data */ - includesCreatedEdit: Scalars['Boolean']; - /** Returns whether or not a comment has been minimized. */ - isMinimized: Scalars['Boolean']; - /** The moment the editor made the last edit */ - lastEditedAt?: Maybe; - /** Returns why the comment was minimized. */ - minimizedReason?: Maybe; - /** Identifies the file path associated with the comment. */ - path?: Maybe; - /** Identifies the line position associated with the comment. */ - position?: Maybe; - /** Identifies when the comment was published at. */ - publishedAt?: Maybe; - /** A list of reactions grouped by content left on the subject. */ - reactionGroups?: Maybe>; - /** A list of Reactions left on the Issue. */ - reactions: ReactionConnection; - /** The repository associated with this node. */ - repository: Repository; - /** The HTTP path permalink for this commit comment. */ - resourcePath: Scalars['URI']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** The HTTP URL permalink for this commit comment. */ - url: Scalars['URI']; - /** A list of edits to this content. */ - userContentEdits?: Maybe; - /** Check if the current viewer can delete this object. */ - viewerCanDelete: Scalars['Boolean']; - /** Check if the current viewer can minimize this object. */ - viewerCanMinimize: Scalars['Boolean']; - /** Can user react to this subject */ - viewerCanReact: Scalars['Boolean']; - /** Check if the current viewer can update this object. */ - viewerCanUpdate: Scalars['Boolean']; - /** Reasons why the current viewer can not update this comment. */ - viewerCannotUpdateReasons: Array; - /** Did the viewer author this comment. */ - viewerDidAuthor: Scalars['Boolean']; -}; - - -/** Represents a comment on a given Commit. */ -export type CommitCommentReactionsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - content?: Maybe; - orderBy?: Maybe; -}; - -/** Represents a comment on a given Commit. */ -export type CommitCommentUserContentEditsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; +/** Parameters to be used for the commit_author_email_pattern rule */ +export type CommitAuthorEmailPatternParametersInput = { + /** How this rule will appear to users. */ + name?: Maybe; + /** If true, the rule will fail if the pattern matches. */ + negate?: Maybe; + /** The operator to use for matching. */ + operator: Scalars['String']; + /** The pattern to match with. */ + pattern: Scalars['String']; }; -/** The connection type for CommitComment. */ -export type CommitCommentConnection = { - __typename?: 'CommitCommentConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type CommitCommentEdge = { - __typename?: 'CommitCommentEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** A thread of comments on a commit. */ -export type CommitCommentThread = Node & RepositoryNode & { - __typename?: 'CommitCommentThread'; - /** The comments that exist in this thread. */ - comments: CommitCommentConnection; - /** The commit the comments were made on. */ - commit?: Maybe; - id: Scalars['ID']; - /** The file the comments were made on. */ - path?: Maybe; - /** The position in the diff for the commit that the comment was made on. */ - position?: Maybe; - /** The repository associated with this node. */ - repository: Repository; -}; -/** A thread of comments on a commit. */ -export type CommitCommentThreadCommentsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** The connection type for Commit. */ -export type CommitConnection = { - __typename?: 'CommitConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; + /** Ordering options for commit contribution connections. */ export type CommitContributionOrder = { @@ -2136,57 +892,14 @@ export type CommitContributionOrder = { }; /** Properties by which commit contribution connections can be ordered. */ -export enum CommitContributionOrderField { +export type CommitContributionOrderField = /** Order commit contributions by when they were made. */ - OccurredAt = 'OCCURRED_AT', + | 'OCCURRED_AT' /** Order commit contributions by how many commits they represent. */ - CommitCount = 'COMMIT_COUNT' -} + | 'COMMIT_COUNT'; -/** This aggregates commits made by a user within one repository. */ -export type CommitContributionsByRepository = { - __typename?: 'CommitContributionsByRepository'; - /** The commit contributions, each representing a day. */ - contributions: CreatedCommitContributionConnection; - /** The repository in which the commits were made. */ - repository: Repository; - /** The HTTP path for the user's commits to the repository in this time range. */ - resourcePath: Scalars['URI']; - /** The HTTP URL for the user's commits to the repository in this time range. */ - url: Scalars['URI']; -}; - - -/** This aggregates commits made by a user within one repository. */ -export type CommitContributionsByRepositoryContributionsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - orderBy?: Maybe; -}; -/** An edge in a connection. */ -export type CommitEdge = { - __typename?: 'CommitEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; -/** The connection type for Commit. */ -export type CommitHistoryConnection = { - __typename?: 'CommitHistoryConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; /** A message to include with a new commit */ export type CommitMessage = { @@ -2196,6 +909,19 @@ export type CommitMessage = { body?: Maybe; }; + +/** Parameters to be used for the commit_message_pattern rule */ +export type CommitMessagePatternParametersInput = { + /** How this rule will appear to users. */ + name?: Maybe; + /** If true, the rule will fail if the pattern matches. */ + negate?: Maybe; + /** The operator to use for matching. */ + operator: Scalars['String']; + /** The pattern to match with. */ + pattern: Scalars['String']; +}; + /** * A git ref for a commit to be appended to. * @@ -2204,7 +930,7 @@ export type CommitMessage = { * qualified). * * The Ref may be specified by its global node ID or by the - * repository nameWithOwner and branch name. + * `repositoryNameWithOwner` and `branchName`. * * ### Examples * @@ -2212,10 +938,10 @@ export type CommitMessage = { * * { "id": "MDM6UmVmMTpyZWZzL2hlYWRzL21haW4=" } * - * Specify a branch using nameWithOwner and branch name: + * Specify a branch using `repositoryNameWithOwner` and `branchName`: * * { - * "nameWithOwner": "github/graphql-client", + * "repositoryNameWithOwner": "github/graphql-client", * "branchName": "main" * } */ @@ -2228,105 +954,50 @@ export type CommittableBranch = { branchName?: Maybe; }; -/** Represents a 'connected' event on a given issue or pull request. */ -export type ConnectedEvent = Node & { - __typename?: 'ConnectedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** Reference originated in a different repository. */ - isCrossRepository: Scalars['Boolean']; - /** Issue or pull request that made the reference. */ - source: ReferencedSubject; - /** Issue or pull request which was connected. */ - subject: ReferencedSubject; -}; -/** Represents a contribution a user made on GitHub, such as opening an issue. */ -export type Contribution = { - /** - * Whether this contribution is associated with a record you do not have access to. For - * example, your own 'first issue' contribution may have been made on a repository you can no - * longer access. - */ - isRestricted: Scalars['Boolean']; - /** When this contribution was made. */ - occurredAt: Scalars['DateTime']; - /** The HTTP path for this contribution. */ - resourcePath: Scalars['URI']; - /** The HTTP URL for this contribution. */ - url: Scalars['URI']; - /** The user who made this contribution. */ - user: User; -}; - -/** A calendar of contributions made on GitHub by a user. */ -export type ContributionCalendar = { - __typename?: 'ContributionCalendar'; - /** A list of hex color codes used in this calendar. The darker the color, the more contributions it represents. */ - colors: Array; - /** Determine if the color set was chosen because it's currently Halloween. */ - isHalloween: Scalars['Boolean']; - /** A list of the months of contributions in this calendar. */ - months: Array; - /** The count of total contributions in the calendar. */ - totalContributions: Scalars['Int']; - /** A list of the weeks of contributions in this calendar. */ - weeks: Array; -}; - -/** Represents a single day of contributions on GitHub by a user. */ -export type ContributionCalendarDay = { - __typename?: 'ContributionCalendarDay'; - /** The hex color code that represents how many contributions were made on this day compared to others in the calendar. */ - color: Scalars['String']; - /** How many contributions were made by the user on this day. */ - contributionCount: Scalars['Int']; - /** Indication of contributions, relative to other days. Can be used to indicate which color to represent this day on a calendar. */ - contributionLevel: ContributionLevel; - /** The day this square represents. */ - date: Scalars['Date']; - /** A number representing which day of the week this square represents, e.g., 1 is Monday. */ - weekday: Scalars['Int']; -}; - -/** A month of contributions in a user's contribution graph. */ -export type ContributionCalendarMonth = { - __typename?: 'ContributionCalendarMonth'; - /** The date of the first day of this month. */ - firstDay: Scalars['Date']; - /** The name of the month. */ - name: Scalars['String']; - /** How many weeks started in this month. */ - totalWeeks: Scalars['Int']; - /** The year the month occurred in. */ - year: Scalars['Int']; +/** Parameters to be used for the committer_email_pattern rule */ +export type CommitterEmailPatternParametersInput = { + /** How this rule will appear to users. */ + name?: Maybe; + /** If true, the rule will fail if the pattern matches. */ + negate?: Maybe; + /** The operator to use for matching. */ + operator: Scalars['String']; + /** The pattern to match with. */ + pattern: Scalars['String']; }; -/** A week of contributions in a user's contribution graph. */ -export type ContributionCalendarWeek = { - __typename?: 'ContributionCalendarWeek'; - /** The days of contributions in this week. */ - contributionDays: Array; - /** The date of the earliest square in this week. */ - firstDay: Scalars['Date']; -}; + + +/** The status of a git comparison between two refs. */ +export type ComparisonStatus = + /** The head ref is both ahead and behind of the base ref, indicating git history has diverged. */ + | 'DIVERGED' + /** The head ref is ahead of the base ref. */ + | 'AHEAD' + /** The head ref is behind the base ref. */ + | 'BEHIND' + /** The head ref and base ref are identical. */ + | 'IDENTICAL'; + + + + + + /** Varying levels of contributions from none to many. */ -export enum ContributionLevel { +export type ContributionLevel = /** No contributions occurred. */ - None = 'NONE', + | 'NONE' /** Lowest 25% of days of contributions. */ - FirstQuartile = 'FIRST_QUARTILE', + | 'FIRST_QUARTILE' /** Second lowest 25% of days of contributions. More contributions than the first quartile. */ - SecondQuartile = 'SECOND_QUARTILE', + | 'SECOND_QUARTILE' /** Second highest 25% of days of contributions. More contributions than second quartile, less than the fourth quartile. */ - ThirdQuartile = 'THIRD_QUARTILE', + | 'THIRD_QUARTILE' /** Highest 25% of days of contributions. More contributions than the third quartile. */ - FourthQuartile = 'FOURTH_QUARTILE' -} + | 'FOURTH_QUARTILE'; /** Ordering options for contribution connections. */ export type ContributionOrder = { @@ -2334,273 +1005,61 @@ export type ContributionOrder = { direction: OrderDirection; }; -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollection = { - __typename?: 'ContributionsCollection'; - /** Commit contributions made by the user, grouped by repository. */ - commitContributionsByRepository: Array; - /** A calendar of this user's contributions on GitHub. */ - contributionCalendar: ContributionCalendar; - /** The years the user has been making contributions with the most recent year first. */ - contributionYears: Array; - /** Determine if this collection's time span ends in the current month. */ - doesEndInCurrentMonth: Scalars['Boolean']; - /** The date of the first restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts. */ - earliestRestrictedContributionDate?: Maybe; - /** The ending date and time of this collection. */ - endedAt: Scalars['DateTime']; - /** The first issue the user opened on GitHub. This will be null if that issue was opened outside the collection's time range and ignoreTimeRange is false. If the issue is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned. */ - firstIssueContribution?: Maybe; - /** The first pull request the user opened on GitHub. This will be null if that pull request was opened outside the collection's time range and ignoreTimeRange is not true. If the pull request is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned. */ - firstPullRequestContribution?: Maybe; - /** The first repository the user created on GitHub. This will be null if that first repository was created outside the collection's time range and ignoreTimeRange is false. If the repository is not visible, then a RestrictedContribution is returned. */ - firstRepositoryContribution?: Maybe; - /** Does the user have any more activity in the timeline that occurred prior to the collection's time range? */ - hasActivityInThePast: Scalars['Boolean']; - /** Determine if there are any contributions in this collection. */ - hasAnyContributions: Scalars['Boolean']; - /** Determine if the user made any contributions in this time frame whose details are not visible because they were made in a private repository. Can only be true if the user enabled private contribution counts. */ - hasAnyRestrictedContributions: Scalars['Boolean']; - /** Whether or not the collector's time span is all within the same day. */ - isSingleDay: Scalars['Boolean']; - /** A list of issues the user opened. */ - issueContributions: CreatedIssueContributionConnection; - /** Issue contributions made by the user, grouped by repository. */ - issueContributionsByRepository: Array; - /** When the user signed up for GitHub. This will be null if that sign up date falls outside the collection's time range and ignoreTimeRange is false. */ - joinedGitHubContribution?: Maybe; - /** The date of the most recent restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts. */ - latestRestrictedContributionDate?: Maybe; - /** - * When this collection's time range does not include any activity from the user, use this - * to get a different collection from an earlier time range that does have activity. - */ - mostRecentCollectionWithActivity?: Maybe; - /** - * Returns a different contributions collection from an earlier time range than this one - * that does not have any contributions. - */ - mostRecentCollectionWithoutActivity?: Maybe; - /** - * The issue the user opened on GitHub that received the most comments in the specified - * time frame. - */ - popularIssueContribution?: Maybe; - /** - * The pull request the user opened on GitHub that received the most comments in the - * specified time frame. - */ - popularPullRequestContribution?: Maybe; - /** Pull request contributions made by the user. */ - pullRequestContributions: CreatedPullRequestContributionConnection; - /** Pull request contributions made by the user, grouped by repository. */ - pullRequestContributionsByRepository: Array; - /** Pull request review contributions made by the user. */ - pullRequestReviewContributions: CreatedPullRequestReviewContributionConnection; - /** Pull request review contributions made by the user, grouped by repository. */ - pullRequestReviewContributionsByRepository: Array; - /** A list of repositories owned by the user that the user created in this time range. */ - repositoryContributions: CreatedRepositoryContributionConnection; - /** A count of contributions made by the user that the viewer cannot access. Only non-zero when the user has chosen to share their private contribution counts. */ - restrictedContributionsCount: Scalars['Int']; - /** The beginning date and time of this collection. */ - startedAt: Scalars['DateTime']; - /** How many commits were made by the user in this time span. */ - totalCommitContributions: Scalars['Int']; - /** How many issues the user opened. */ - totalIssueContributions: Scalars['Int']; - /** How many pull requests the user opened. */ - totalPullRequestContributions: Scalars['Int']; - /** How many pull request reviews the user left. */ - totalPullRequestReviewContributions: Scalars['Int']; - /** How many different repositories the user committed to. */ - totalRepositoriesWithContributedCommits: Scalars['Int']; - /** How many different repositories the user opened issues in. */ - totalRepositoriesWithContributedIssues: Scalars['Int']; - /** How many different repositories the user left pull request reviews in. */ - totalRepositoriesWithContributedPullRequestReviews: Scalars['Int']; - /** How many different repositories the user opened pull requests in. */ - totalRepositoriesWithContributedPullRequests: Scalars['Int']; - /** How many repositories the user created. */ - totalRepositoryContributions: Scalars['Int']; - /** The user who made the contributions in this collection. */ - user: User; -}; - - -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollectionCommitContributionsByRepositoryArgs = { - maxRepositories?: Maybe; -}; - - -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollectionIssueContributionsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - excludeFirst?: Maybe; - excludePopular?: Maybe; - orderBy?: Maybe; + +/** Autogenerated input type of ConvertProjectCardNoteToIssue */ +export type ConvertProjectCardNoteToIssueInput = { + /** The ProjectCard ID to convert. */ + projectCardId: Scalars['ID']; + /** The ID of the repository to create the issue in. */ + repositoryId: Scalars['ID']; + /** The title of the newly created issue. Defaults to the card's note text. */ + title?: Maybe; + /** The body of the newly created issue. */ + body?: Maybe; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; }; -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollectionIssueContributionsByRepositoryArgs = { - maxRepositories?: Maybe; - excludeFirst?: Maybe; - excludePopular?: Maybe; +/** Autogenerated input type of ConvertPullRequestToDraft */ +export type ConvertPullRequestToDraftInput = { + /** ID of the pull request to convert to draft */ + pullRequestId: Scalars['ID']; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; }; -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollectionPullRequestContributionsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - excludeFirst?: Maybe; - excludePopular?: Maybe; - orderBy?: Maybe; -}; - - -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollectionPullRequestContributionsByRepositoryArgs = { - maxRepositories?: Maybe; - excludeFirst?: Maybe; - excludePopular?: Maybe; -}; - - -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollectionPullRequestReviewContributionsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - orderBy?: Maybe; -}; - - -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollectionPullRequestReviewContributionsByRepositoryArgs = { - maxRepositories?: Maybe; -}; - - -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollectionRepositoryContributionsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - excludeFirst?: Maybe; - orderBy?: Maybe; -}; - - -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollectionTotalIssueContributionsArgs = { - excludeFirst?: Maybe; - excludePopular?: Maybe; -}; - - -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollectionTotalPullRequestContributionsArgs = { - excludeFirst?: Maybe; - excludePopular?: Maybe; -}; - - -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollectionTotalRepositoriesWithContributedIssuesArgs = { - excludeFirst?: Maybe; - excludePopular?: Maybe; -}; - - -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollectionTotalRepositoriesWithContributedPullRequestsArgs = { - excludeFirst?: Maybe; - excludePopular?: Maybe; -}; -/** A contributions collection aggregates contributions such as opened issues and commits created by a user. */ -export type ContributionsCollectionTotalRepositoryContributionsArgs = { - excludeFirst?: Maybe; -}; - -/** Autogenerated input type of ConvertProjectCardNoteToIssue */ -export type ConvertProjectCardNoteToIssueInput = { - /** The ProjectCard ID to convert. */ - projectCardId: Scalars['ID']; - /** The ID of the repository to create the issue in. */ - repositoryId: Scalars['ID']; - /** The title of the newly created issue. Defaults to the card's note text. */ - title?: Maybe; - /** The body of the newly created issue. */ - body?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; -/** Autogenerated return type of ConvertProjectCardNoteToIssue */ -export type ConvertProjectCardNoteToIssuePayload = { - __typename?: 'ConvertProjectCardNoteToIssuePayload'; +/** Autogenerated input type of CopyProjectV2 */ +export type CopyProjectV2Input = { + /** The ID of the source Project to copy. */ + projectId: Scalars['ID']; + /** The owner ID of the new project. */ + ownerId: Scalars['ID']; + /** The title of the project. */ + title: Scalars['String']; + /** Include draft issues in the new project */ + includeDraftIssues?: Maybe; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The updated ProjectCard. */ - projectCard?: Maybe; }; -/** Autogenerated input type of ConvertPullRequestToDraft */ -export type ConvertPullRequestToDraftInput = { - /** ID of the pull request to convert to draft */ - pullRequestId: Scalars['ID']; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; -/** Autogenerated return type of ConvertPullRequestToDraft */ -export type ConvertPullRequestToDraftPayload = { - __typename?: 'ConvertPullRequestToDraftPayload'; +/** Autogenerated input type of CreateAttributionInvitation */ +export type CreateAttributionInvitationInput = { + /** The Node ID of the owner scoping the reattributable data. */ + ownerId: Scalars['ID']; + /** The Node ID of the account owning the data to reattribute. */ + sourceId: Scalars['ID']; + /** The Node ID of the account which may claim the data. */ + targetId: Scalars['ID']; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The pull request that is now a draft. */ - pullRequest?: Maybe; }; -/** Represents a 'convert_to_draft' event on a given pull request. */ -export type ConvertToDraftEvent = Node & UniformResourceLocatable & { - __typename?: 'ConvertToDraftEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; - /** The HTTP path for this convert to draft event. */ - resourcePath: Scalars['URI']; - /** The HTTP URL for this convert to draft event. */ - url: Scalars['URI']; -}; - -/** Represents a 'converted_note_to_issue' event on a given issue or pull request. */ -export type ConvertedNoteToIssueEvent = Node & { - __typename?: 'ConvertedNoteToIssueEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - id: Scalars['ID']; -}; /** Autogenerated input type of CreateBranchProtectionRule */ export type CreateBranchProtectionRuleInput = { @@ -2616,6 +1075,8 @@ export type CreateBranchProtectionRuleInput = { requiresCommitSignatures?: Maybe; /** Are merge commits prohibited from being pushed to this branch. */ requiresLinearHistory?: Maybe; + /** Is branch creation a protected operation. */ + blocksCreations?: Maybe; /** Are force pushes allowed on this branch. */ allowsForcePushes?: Maybe; /** Can this branch be deleted. */ @@ -2632,28 +1093,36 @@ export type CreateBranchProtectionRuleInput = { dismissesStaleReviews?: Maybe; /** Is dismissal of pull request reviews restricted. */ restrictsReviewDismissals?: Maybe; - /** A list of User or Team IDs allowed to dismiss reviews on pull requests targeting matching branches. */ + /** A list of User, Team, or App IDs allowed to dismiss reviews on pull requests targeting matching branches. */ reviewDismissalActorIds?: Maybe>; + /** A list of User, Team, or App IDs allowed to bypass pull requests targeting matching branches. */ + bypassPullRequestActorIds?: Maybe>; + /** A list of User, Team, or App IDs allowed to bypass force push targeting matching branches. */ + bypassForcePushActorIds?: Maybe>; /** Is pushing to matching branches restricted. */ restrictsPushes?: Maybe; - /** A list of User, Team or App IDs allowed to push to matching branches. */ + /** A list of User, Team, or App IDs allowed to push to matching branches. */ pushActorIds?: Maybe>; /** List of required status check contexts that must pass for commits to be accepted to matching branches. */ requiredStatusCheckContexts?: Maybe>; + /** The list of required status checks */ + requiredStatusChecks?: Maybe>; + /** Are successful deployments required before merging. */ + requiresDeployments?: Maybe; + /** The list of required deployment environments */ + requiredDeploymentEnvironments?: Maybe>; /** Are conversations required to be resolved before merging. */ requiresConversationResolution?: Maybe; + /** Whether the most recent push must be approved by someone other than the person who pushed it */ + requireLastPushApproval?: Maybe; + /** Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. */ + lockBranch?: Maybe; + /** 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. */ + lockAllowsFetchAndMerge?: Maybe; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateBranchProtectionRule */ -export type CreateBranchProtectionRulePayload = { - __typename?: 'CreateBranchProtectionRulePayload'; - /** The newly created BranchProtectionRule. */ - branchProtectionRule?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; /** Autogenerated input type of CreateCheckRun */ export type CreateCheckRunInput = { @@ -2683,14 +1152,6 @@ export type CreateCheckRunInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateCheckRun */ -export type CreateCheckRunPayload = { - __typename?: 'CreateCheckRunPayload'; - /** The newly created check run. */ - checkRun?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; /** Autogenerated input type of CreateCheckSuite */ export type CreateCheckSuiteInput = { @@ -2702,14 +1163,6 @@ export type CreateCheckSuiteInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateCheckSuite */ -export type CreateCheckSuitePayload = { - __typename?: 'CreateCheckSuitePayload'; - /** The newly created check suite. */ - checkSuite?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; /** Autogenerated input type of CreateCommitOnBranch */ export type CreateCommitOnBranchInput = { @@ -2725,16 +1178,6 @@ export type CreateCommitOnBranchInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateCommitOnBranch */ -export type CreateCommitOnBranchPayload = { - __typename?: 'CreateCommitOnBranchPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The new commit. */ - commit?: Maybe; - /** The ref which has been updated to point to the new commit. */ - ref?: Maybe; -}; /** Autogenerated input type of CreateDiscussion */ export type CreateDiscussionInput = { @@ -2750,14 +1193,6 @@ export type CreateDiscussionInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateDiscussion */ -export type CreateDiscussionPayload = { - __typename?: 'CreateDiscussionPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The discussion that was just created. */ - discussion?: Maybe; -}; /** Autogenerated input type of CreateEnterpriseOrganization */ export type CreateEnterpriseOrganizationInput = { @@ -2775,16 +1210,6 @@ export type CreateEnterpriseOrganizationInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateEnterpriseOrganization */ -export type CreateEnterpriseOrganizationPayload = { - __typename?: 'CreateEnterpriseOrganizationPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The enterprise that owns the created organization. */ - enterprise?: Maybe; - /** The organization that was created. */ - organization?: Maybe; -}; /** Autogenerated input type of CreateEnvironment */ export type CreateEnvironmentInput = { @@ -2796,14 +1221,6 @@ export type CreateEnvironmentInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateEnvironment */ -export type CreateEnvironmentPayload = { - __typename?: 'CreateEnvironmentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The new or existing environment. */ - environment?: Maybe; -}; /** Autogenerated input type of CreateIpAllowListEntry */ export type CreateIpAllowListEntryInput = { @@ -2819,14 +1236,6 @@ export type CreateIpAllowListEntryInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateIpAllowListEntry */ -export type CreateIpAllowListEntryPayload = { - __typename?: 'CreateIpAllowListEntryPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The IP allow list entry that was created. */ - ipAllowListEntry?: Maybe; -}; /** Autogenerated input type of CreateIssue */ export type CreateIssueInput = { @@ -2850,15 +1259,41 @@ export type CreateIssueInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateIssue */ -export type CreateIssuePayload = { - __typename?: 'CreateIssuePayload'; + +/** Autogenerated input type of CreateLinkedBranch */ +export type CreateLinkedBranchInput = { + /** ID of the issue to link to. */ + issueId: Scalars['ID']; + /** The commit SHA to base the new branch on. */ + oid: Scalars['GitObjectID']; + /** The name of the new branch. Defaults to issue number and title. */ + name?: Maybe; + /** ID of the repository to create the branch in. Defaults to the issue repository. */ + repositoryId?: Maybe; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; +}; + + +/** Autogenerated input type of CreateMigrationSource */ +export type CreateMigrationSourceInput = { + /** The migration source name. */ + name: Scalars['String']; + /** The migration source URL, for example `https://github.com` or `https://monalisa.ghe.com`. */ + url?: Maybe; + /** The migration source access token. */ + accessToken?: Maybe; + /** The migration source type. */ + type: MigrationSourceType; + /** The ID of the organization that will own the migration source. */ + ownerId: Scalars['ID']; + /** The GitHub personal access token of the user importing to the target repository. */ + githubPat?: Maybe; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The new issue. */ - issue?: Maybe; }; + /** Autogenerated input type of CreateProject */ export type CreateProjectInput = { /** The owner ID to create the project under. */ @@ -2875,15 +1310,37 @@ export type CreateProjectInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateProject */ -export type CreateProjectPayload = { - __typename?: 'CreateProjectPayload'; + +/** Autogenerated input type of CreateProjectV2Field */ +export type CreateProjectV2FieldInput = { + /** The ID of the Project to create the field in. */ + projectId: Scalars['ID']; + /** The data type of the field. */ + dataType: ProjectV2CustomFieldType; + /** The name of the field. */ + name: Scalars['String']; + /** Options for a single select field. At least one value is required if data_type is SINGLE_SELECT */ + singleSelectOptions?: Maybe>; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; +}; + + +/** Autogenerated input type of CreateProjectV2 */ +export type CreateProjectV2Input = { + /** The owner ID to create the project under. */ + ownerId: Scalars['ID']; + /** The title of the project. */ + title: Scalars['String']; + /** The repository to link the project to. */ + repositoryId?: Maybe; + /** The team to link the project to. The team will be granted read permissions. */ + teamId?: Maybe; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The new project. */ - project?: Maybe; }; + /** Autogenerated input type of CreatePullRequest */ export type CreatePullRequestInput = { /** The Node ID of the repository. */ @@ -2899,6 +1356,8 @@ export type CreatePullRequestInput = { * in the same network, namespace `head_ref_name` with a user like this: `username:branch`. */ headRefName: Scalars['String']; + /** The Node ID of the head repository. */ + headRepositoryId?: Maybe; /** The title of the pull request. */ title: Scalars['String']; /** The contents of the pull request. */ @@ -2911,14 +1370,6 @@ export type CreatePullRequestInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreatePullRequest */ -export type CreatePullRequestPayload = { - __typename?: 'CreatePullRequestPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The new pull request. */ - pullRequest?: Maybe; -}; /** Autogenerated input type of CreateRef */ export type CreateRefInput = { @@ -2932,14 +1383,6 @@ export type CreateRefInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateRef */ -export type CreateRefPayload = { - __typename?: 'CreateRefPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The newly created ref. */ - ref?: Maybe; -}; /** Autogenerated input type of CreateRepository */ export type CreateRepositoryInput = { @@ -2965,15 +1408,78 @@ export type CreateRepositoryInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateRepository */ -export type CreateRepositoryPayload = { - __typename?: 'CreateRepositoryPayload'; + +/** Autogenerated input type of CreateRepositoryRuleset */ +export type CreateRepositoryRulesetInput = { + /** The global relay id of the source in which a new ruleset should be created in. */ + sourceId: Scalars['ID']; + /** The name of the ruleset. */ + name: Scalars['String']; + /** The target of the ruleset. */ + target?: Maybe; + /** The list of rules for this ruleset */ + rules?: Maybe>; + /** The set of conditions for this ruleset */ + conditions: RepositoryRuleConditionsInput; + /** The enforcement level for this ruleset */ + enforcement: RuleEnforcement; + /** The bypass mode for this ruleset */ + bypassMode?: Maybe; + /** A list of Team or App IDs allowed to bypass rules in this ruleset. */ + bypassActorIds?: Maybe>; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; +}; + + +/** Autogenerated input type of CreateSponsorsListing */ +export type CreateSponsorsListingInput = { + /** The username of the organization to create a GitHub Sponsors profile for, if desired. Defaults to creating a GitHub Sponsors profile for the authenticated user if omitted. */ + sponsorableLogin?: Maybe; + /** The username of the supported fiscal host's GitHub organization, if you want to receive sponsorship payouts through a fiscal host rather than directly to a bank account. For example, 'Open-Source-Collective' for Open Source Collective or 'numfocus' for numFOCUS. Case insensitive. See https://docs.github.com/sponsors/receiving-sponsorships-through-github-sponsors/using-a-fiscal-host-to-receive-github-sponsors-payouts for more information. */ + fiscalHostLogin?: Maybe; + /** The URL for your profile page on the fiscal host's website, e.g., https://opencollective.com/babel or https://numfocus.org/project/bokeh. Required if fiscalHostLogin is specified. */ + fiscallyHostedProjectProfileUrl?: Maybe; + /** The country or region where the sponsorable's bank account is located. Required if fiscalHostLogin is not specified, ignored when fiscalHostLogin is specified. */ + billingCountryOrRegionCode?: Maybe; + /** The country or region where the sponsorable resides. This is for tax purposes. Required if the sponsorable is yourself, ignored when sponsorableLogin specifies an organization. */ + residenceCountryOrRegionCode?: Maybe; + /** The email address we should use to contact you about the GitHub Sponsors profile being created. This will not be shared publicly. Must be a verified email address already on your GitHub account. Only relevant when the sponsorable is yourself. Defaults to your primary email address on file if omitted. */ + contactEmail?: Maybe; + /** Provide an introduction to serve as the main focus that appears on your GitHub Sponsors profile. It's a great opportunity to help potential sponsors learn more about you, your work, and why their sponsorship is important to you. GitHub-flavored Markdown is supported. */ + fullDescription?: Maybe; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; +}; + + +/** Autogenerated input type of CreateSponsorsTier */ +export type CreateSponsorsTierInput = { + /** The ID of the user or organization who owns the GitHub Sponsors profile. Defaults to the current user if omitted and sponsorableLogin is not given. */ + sponsorableId?: Maybe; + /** The username of the user or organization who owns the GitHub Sponsors profile. Defaults to the current user if omitted and sponsorableId is not given. */ + sponsorableLogin?: Maybe; + /** The value of the new tier in US dollars. Valid values: 1-12000. */ + amount: Scalars['Int']; + /** Whether sponsorships using this tier should happen monthly/yearly or just once. */ + isRecurring?: Maybe; + /** Optional ID of the private repository that sponsors at this tier should gain read-only access to. Must be owned by an organization. */ + repositoryId?: Maybe; + /** Optional login of the organization owner of the private repository that sponsors at this tier should gain read-only access to. Necessary if repositoryName is given. Will be ignored if repositoryId is given. */ + repositoryOwnerLogin?: Maybe; + /** Optional name of the private repository that sponsors at this tier should gain read-only access to. Must be owned by an organization. Necessary if repositoryOwnerLogin is given. Will be ignored if repositoryId is given. */ + repositoryName?: Maybe; + /** Optional message new sponsors at this tier will receive. */ + welcomeMessage?: Maybe; + /** A description of what this tier is, what perks sponsors might receive, what a sponsorship at this tier means for you, etc. */ + description: Scalars['String']; + /** Whether to make the tier available immediately for sponsors to choose. Defaults to creating a draft tier that will not be publicly visible. */ + publish?: Maybe; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The new repository. */ - repository?: Maybe; }; + /** Autogenerated input type of CreateSponsorship */ export type CreateSponsorshipInput = { /** The ID of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorLogin is not given. */ @@ -2998,15 +1504,22 @@ export type CreateSponsorshipInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateSponsorship */ -export type CreateSponsorshipPayload = { - __typename?: 'CreateSponsorshipPayload'; + +/** Autogenerated input type of CreateSponsorships */ +export type CreateSponsorshipsInput = { + /** The username of the user or organization who is acting as the sponsor, paying for the sponsorships. */ + sponsorLogin: Scalars['String']; + /** The list of maintainers to sponsor and for how much apiece. */ + sponsorships: Array; + /** Whether the sponsor should receive email updates from the sponsorables. */ + receiveEmails?: Maybe; + /** Specify whether others should be able to see that the sponsor is sponsoring the sponsorables. Public visibility still does not reveal the dollar value of the sponsorship. */ + privacyLevel?: Maybe; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The sponsorship that was started. */ - sponsorship?: Maybe; }; + /** Autogenerated input type of CreateTeamDiscussionComment */ export type CreateTeamDiscussionCommentInput = { /** The ID of the discussion to which the comment belongs. */ @@ -3017,14 +1530,6 @@ export type CreateTeamDiscussionCommentInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateTeamDiscussionComment */ -export type CreateTeamDiscussionCommentPayload = { - __typename?: 'CreateTeamDiscussionCommentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The new comment. */ - teamDiscussionComment?: Maybe; -}; /** Autogenerated input type of CreateTeamDiscussion */ export type CreateTeamDiscussionInput = { @@ -3040,268 +1545,25 @@ export type CreateTeamDiscussionInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of CreateTeamDiscussion */ -export type CreateTeamDiscussionPayload = { - __typename?: 'CreateTeamDiscussionPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The new discussion. */ - teamDiscussion?: Maybe; -}; -/** Represents the contribution a user made by committing to a repository. */ -export type CreatedCommitContribution = Contribution & { - __typename?: 'CreatedCommitContribution'; - /** How many commits were made on this day to this repository by the user. */ - commitCount: Scalars['Int']; - /** - * Whether this contribution is associated with a record you do not have access to. For - * example, your own 'first issue' contribution may have been made on a repository you can no - * longer access. - */ - isRestricted: Scalars['Boolean']; - /** When this contribution was made. */ - occurredAt: Scalars['DateTime']; - /** The repository the user made a commit in. */ - repository: Repository; - /** The HTTP path for this contribution. */ - resourcePath: Scalars['URI']; - /** The HTTP URL for this contribution. */ - url: Scalars['URI']; - /** The user who made this contribution. */ - user: User; -}; - -/** The connection type for CreatedCommitContribution. */ -export type CreatedCommitContributionConnection = { - __typename?: 'CreatedCommitContributionConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of commits across days and repositories in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type CreatedCommitContributionEdge = { - __typename?: 'CreatedCommitContributionEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** Represents the contribution a user made on GitHub by opening an issue. */ -export type CreatedIssueContribution = Contribution & { - __typename?: 'CreatedIssueContribution'; - /** - * Whether this contribution is associated with a record you do not have access to. For - * example, your own 'first issue' contribution may have been made on a repository you can no - * longer access. - */ - isRestricted: Scalars['Boolean']; - /** The issue that was opened. */ - issue: Issue; - /** When this contribution was made. */ - occurredAt: Scalars['DateTime']; - /** The HTTP path for this contribution. */ - resourcePath: Scalars['URI']; - /** The HTTP URL for this contribution. */ - url: Scalars['URI']; - /** The user who made this contribution. */ - user: User; -}; - -/** The connection type for CreatedIssueContribution. */ -export type CreatedIssueContributionConnection = { - __typename?: 'CreatedIssueContributionConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type CreatedIssueContributionEdge = { - __typename?: 'CreatedIssueContributionEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** Represents either a issue the viewer can access or a restricted contribution. */ -export type CreatedIssueOrRestrictedContribution = CreatedIssueContribution | RestrictedContribution; - -/** Represents the contribution a user made on GitHub by opening a pull request. */ -export type CreatedPullRequestContribution = Contribution & { - __typename?: 'CreatedPullRequestContribution'; - /** - * Whether this contribution is associated with a record you do not have access to. For - * example, your own 'first issue' contribution may have been made on a repository you can no - * longer access. - */ - isRestricted: Scalars['Boolean']; - /** When this contribution was made. */ - occurredAt: Scalars['DateTime']; - /** The pull request that was opened. */ - pullRequest: PullRequest; - /** The HTTP path for this contribution. */ - resourcePath: Scalars['URI']; - /** The HTTP URL for this contribution. */ - url: Scalars['URI']; - /** The user who made this contribution. */ - user: User; -}; - -/** The connection type for CreatedPullRequestContribution. */ -export type CreatedPullRequestContributionConnection = { - __typename?: 'CreatedPullRequestContributionConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type CreatedPullRequestContributionEdge = { - __typename?: 'CreatedPullRequestContributionEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** Represents either a pull request the viewer can access or a restricted contribution. */ -export type CreatedPullRequestOrRestrictedContribution = CreatedPullRequestContribution | RestrictedContribution; - -/** Represents the contribution a user made by leaving a review on a pull request. */ -export type CreatedPullRequestReviewContribution = Contribution & { - __typename?: 'CreatedPullRequestReviewContribution'; - /** - * Whether this contribution is associated with a record you do not have access to. For - * example, your own 'first issue' contribution may have been made on a repository you can no - * longer access. - */ - isRestricted: Scalars['Boolean']; - /** When this contribution was made. */ - occurredAt: Scalars['DateTime']; - /** The pull request the user reviewed. */ - pullRequest: PullRequest; - /** The review the user left on the pull request. */ - pullRequestReview: PullRequestReview; - /** The repository containing the pull request that the user reviewed. */ - repository: Repository; - /** The HTTP path for this contribution. */ - resourcePath: Scalars['URI']; - /** The HTTP URL for this contribution. */ - url: Scalars['URI']; - /** The user who made this contribution. */ - user: User; -}; - -/** The connection type for CreatedPullRequestReviewContribution. */ -export type CreatedPullRequestReviewContributionConnection = { - __typename?: 'CreatedPullRequestReviewContributionConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type CreatedPullRequestReviewContributionEdge = { - __typename?: 'CreatedPullRequestReviewContributionEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** Represents the contribution a user made on GitHub by creating a repository. */ -export type CreatedRepositoryContribution = Contribution & { - __typename?: 'CreatedRepositoryContribution'; - /** - * Whether this contribution is associated with a record you do not have access to. For - * example, your own 'first issue' contribution may have been made on a repository you can no - * longer access. - */ - isRestricted: Scalars['Boolean']; - /** When this contribution was made. */ - occurredAt: Scalars['DateTime']; - /** The repository that was created. */ - repository: Repository; - /** The HTTP path for this contribution. */ - resourcePath: Scalars['URI']; - /** The HTTP URL for this contribution. */ - url: Scalars['URI']; - /** The user who made this contribution. */ - user: User; -}; - -/** The connection type for CreatedRepositoryContribution. */ -export type CreatedRepositoryContributionConnection = { - __typename?: 'CreatedRepositoryContributionConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type CreatedRepositoryContributionEdge = { - __typename?: 'CreatedRepositoryContributionEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** Represents either a repository the viewer can access or a restricted contribution. */ -export type CreatedRepositoryOrRestrictedContribution = CreatedRepositoryContribution | RestrictedContribution; - -/** Represents a mention made by one issue or pull request to another. */ -export type CrossReferencedEvent = UniformResourceLocatable & Node & { - __typename?: 'CrossReferencedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** Reference originated in a different repository. */ - isCrossRepository: Scalars['Boolean']; - /** Identifies when the reference was made. */ - referencedAt: Scalars['DateTime']; - /** The HTTP path for this pull request. */ - resourcePath: Scalars['URI']; - /** Issue or pull request that made the reference. */ - source: ReferencedSubject; - /** Issue or pull request to which the reference was made. */ - target: ReferencedSubject; - /** The HTTP URL for this pull request. */ - url: Scalars['URI']; - /** Checks if the target will be closed when the source is merged. */ - willCloseTarget: Scalars['Boolean']; -}; + + + + + + + + + + + + + + + + + + @@ -3317,32 +1579,18 @@ export type DeclineTopicSuggestionInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeclineTopicSuggestion */ -export type DeclineTopicSuggestionPayload = { - __typename?: 'DeclineTopicSuggestionPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The declined topic. */ - topic?: Maybe; -}; /** The possible base permissions for repositories. */ -export enum DefaultRepositoryPermissionField { +export type DefaultRepositoryPermissionField = /** No access */ - None = 'NONE', + | 'NONE' /** Can read repos by default */ - Read = 'READ', + | 'READ' /** Can read and write repos by default */ - Write = 'WRITE', + | 'WRITE' /** Can read, write, and administrate repos by default */ - Admin = 'ADMIN' -} + | 'ADMIN'; -/** Entities that can be deleted. */ -export type Deletable = { - /** Check if the current viewer can delete this object. */ - viewerCanDelete: Scalars['Boolean']; -}; /** Autogenerated input type of DeleteBranchProtectionRule */ export type DeleteBranchProtectionRuleInput = { @@ -3352,12 +1600,6 @@ export type DeleteBranchProtectionRuleInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteBranchProtectionRule */ -export type DeleteBranchProtectionRulePayload = { - __typename?: 'DeleteBranchProtectionRulePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; /** Autogenerated input type of DeleteDeployment */ export type DeleteDeploymentInput = { @@ -3367,12 +1609,6 @@ export type DeleteDeploymentInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteDeployment */ -export type DeleteDeploymentPayload = { - __typename?: 'DeleteDeploymentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; /** Autogenerated input type of DeleteDiscussionComment */ export type DeleteDiscussionCommentInput = { @@ -3382,14 +1618,6 @@ export type DeleteDiscussionCommentInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteDiscussionComment */ -export type DeleteDiscussionCommentPayload = { - __typename?: 'DeleteDiscussionCommentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The discussion comment that was just deleted. */ - comment?: Maybe; -}; /** Autogenerated input type of DeleteDiscussion */ export type DeleteDiscussionInput = { @@ -3399,14 +1627,6 @@ export type DeleteDiscussionInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteDiscussion */ -export type DeleteDiscussionPayload = { - __typename?: 'DeleteDiscussionPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The discussion that was just deleted. */ - discussion?: Maybe; -}; /** Autogenerated input type of DeleteEnvironment */ export type DeleteEnvironmentInput = { @@ -3416,12 +1636,6 @@ export type DeleteEnvironmentInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteEnvironment */ -export type DeleteEnvironmentPayload = { - __typename?: 'DeleteEnvironmentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; /** Autogenerated input type of DeleteIpAllowListEntry */ export type DeleteIpAllowListEntryInput = { @@ -3431,14 +1645,6 @@ export type DeleteIpAllowListEntryInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteIpAllowListEntry */ -export type DeleteIpAllowListEntryPayload = { - __typename?: 'DeleteIpAllowListEntryPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The IP allow list entry that was deleted. */ - ipAllowListEntry?: Maybe; -}; /** Autogenerated input type of DeleteIssueComment */ export type DeleteIssueCommentInput = { @@ -3448,12 +1654,6 @@ export type DeleteIssueCommentInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteIssueComment */ -export type DeleteIssueCommentPayload = { - __typename?: 'DeleteIssueCommentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; /** Autogenerated input type of DeleteIssue */ export type DeleteIssueInput = { @@ -3463,15 +1663,16 @@ export type DeleteIssueInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteIssue */ -export type DeleteIssuePayload = { - __typename?: 'DeleteIssuePayload'; + +/** Autogenerated input type of DeleteLinkedBranch */ +export type DeleteLinkedBranchInput = { + /** The ID of the linked branch */ + linkedBranchId: Scalars['ID']; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The repository the issue belonged to */ - repository?: Maybe; }; + /** Autogenerated input type of DeleteProjectCard */ export type DeleteProjectCardInput = { /** The id of the card to delete. */ @@ -3480,16 +1681,6 @@ export type DeleteProjectCardInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteProjectCard */ -export type DeleteProjectCardPayload = { - __typename?: 'DeleteProjectCardPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The column the deleted card was in. */ - column?: Maybe; - /** The deleted card ID. */ - deletedCardId?: Maybe; -}; /** Autogenerated input type of DeleteProjectColumn */ export type DeleteProjectColumnInput = { @@ -3499,16 +1690,6 @@ export type DeleteProjectColumnInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteProjectColumn */ -export type DeleteProjectColumnPayload = { - __typename?: 'DeleteProjectColumnPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The deleted column ID. */ - deletedColumnId?: Maybe; - /** The project the deleted column was in. */ - project?: Maybe; -}; /** Autogenerated input type of DeleteProject */ export type DeleteProjectInput = { @@ -3518,15 +1699,45 @@ export type DeleteProjectInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteProject */ -export type DeleteProjectPayload = { - __typename?: 'DeleteProjectPayload'; + +/** Autogenerated input type of DeleteProjectV2Field */ +export type DeleteProjectV2FieldInput = { + /** The ID of the field to delete. */ + fieldId: Scalars['ID']; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; +}; + + +/** Autogenerated input type of DeleteProjectV2 */ +export type DeleteProjectV2Input = { + /** The ID of the Project to delete. */ + projectId: Scalars['ID']; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; +}; + +/** Autogenerated input type of DeleteProjectV2Item */ +export type DeleteProjectV2ItemInput = { + /** The ID of the Project from which the item should be removed. */ + projectId: Scalars['ID']; + /** The ID of the item to be removed. */ + itemId: Scalars['ID']; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; +}; + + + +/** Autogenerated input type of DeleteProjectV2Workflow */ +export type DeleteProjectV2WorkflowInput = { + /** The ID of the workflow to be removed. */ + workflowId: Scalars['ID']; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The repository or organization the project was removed from. */ - owner?: Maybe; }; + /** Autogenerated input type of DeletePullRequestReviewComment */ export type DeletePullRequestReviewCommentInput = { /** The ID of the comment to delete. */ @@ -3535,14 +1746,6 @@ export type DeletePullRequestReviewCommentInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeletePullRequestReviewComment */ -export type DeletePullRequestReviewCommentPayload = { - __typename?: 'DeletePullRequestReviewCommentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The pull request review the deleted comment belonged to. */ - pullRequestReview?: Maybe; -}; /** Autogenerated input type of DeletePullRequestReview */ export type DeletePullRequestReviewInput = { @@ -3552,14 +1755,6 @@ export type DeletePullRequestReviewInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeletePullRequestReview */ -export type DeletePullRequestReviewPayload = { - __typename?: 'DeletePullRequestReviewPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The deleted pull request review. */ - pullRequestReview?: Maybe; -}; /** Autogenerated input type of DeleteRef */ export type DeleteRefInput = { @@ -3569,13 +1764,16 @@ export type DeleteRefInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteRef */ -export type DeleteRefPayload = { - __typename?: 'DeleteRefPayload'; + +/** Autogenerated input type of DeleteRepositoryRuleset */ +export type DeleteRepositoryRulesetInput = { + /** The global relay id of the repository ruleset to be deleted. */ + repositoryRulesetId: Scalars['ID']; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; }; + /** Autogenerated input type of DeleteTeamDiscussionComment */ export type DeleteTeamDiscussionCommentInput = { /** The ID of the comment to delete. */ @@ -3584,12 +1782,6 @@ export type DeleteTeamDiscussionCommentInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteTeamDiscussionComment */ -export type DeleteTeamDiscussionCommentPayload = { - __typename?: 'DeleteTeamDiscussionCommentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; /** Autogenerated input type of DeleteTeamDiscussion */ export type DeleteTeamDiscussionInput = { @@ -3599,12 +1791,6 @@ export type DeleteTeamDiscussionInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteTeamDiscussion */ -export type DeleteTeamDiscussionPayload = { - __typename?: 'DeleteTeamDiscussionPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; /** Autogenerated input type of DeleteVerifiableDomain */ export type DeleteVerifiableDomainInput = { @@ -3614,169 +1800,40 @@ export type DeleteVerifiableDomainInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DeleteVerifiableDomain */ -export type DeleteVerifiableDomainPayload = { - __typename?: 'DeleteVerifiableDomainPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The owning account from which the domain was deleted. */ - owner?: Maybe; -}; -/** Represents a 'demilestoned' event on a given issue or pull request. */ -export type DemilestonedEvent = Node & { - __typename?: 'DemilestonedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** Identifies the milestone title associated with the 'demilestoned' event. */ - milestoneTitle: Scalars['String']; - /** Object referenced by event. */ - subject: MilestoneItem; -}; -/** A repository deploy key. */ -export type DeployKey = Node & { - __typename?: 'DeployKey'; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** The deploy key. */ - key: Scalars['String']; - /** Whether or not the deploy key is read only. */ - readOnly: Scalars['Boolean']; - /** The deploy key title. */ - title: Scalars['String']; - /** Whether or not the deploy key has been verified. */ - verified: Scalars['Boolean']; -}; - -/** The connection type for DeployKey. */ -export type DeployKeyConnection = { - __typename?: 'DeployKeyConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type DeployKeyEdge = { - __typename?: 'DeployKeyEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** Represents a 'deployed' event on a given pull request. */ -export type DeployedEvent = Node & { - __typename?: 'DeployedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The deployment associated with the 'deployed' event. */ - deployment: Deployment; - id: Scalars['ID']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; - /** The ref associated with the 'deployed' event. */ - ref?: Maybe; -}; - -/** Represents triggered deployment instance. */ -export type Deployment = Node & { - __typename?: 'Deployment'; - /** Identifies the commit sha of the deployment. */ - commit?: Maybe; - /** Identifies the oid of the deployment commit, even if the commit has been deleted. */ - commitOid: Scalars['String']; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Identifies the actor who triggered the deployment. */ - creator: Actor; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The deployment description. */ - description?: Maybe; - /** The latest environment to which this deployment was made. */ - environment?: Maybe; - id: Scalars['ID']; - /** The latest environment to which this deployment was made. */ - latestEnvironment?: Maybe; - /** The latest status of this deployment. */ - latestStatus?: Maybe; - /** The original environment to which this deployment was made. */ - originalEnvironment?: Maybe; - /** Extra information that a deployment system might need. */ - payload?: Maybe; - /** Identifies the Ref of the deployment, if the deployment was created by ref. */ - ref?: Maybe; - /** Identifies the repository associated with the deployment. */ - repository: Repository; - /** The current state of the deployment. */ - state?: Maybe; - /** A list of statuses associated with the deployment. */ - statuses?: Maybe; - /** The deployment task. */ - task?: Maybe; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; -}; - - -/** Represents triggered deployment instance. */ -export type DeploymentStatusesArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** The connection type for Deployment. */ -export type DeploymentConnection = { - __typename?: 'DeploymentConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type DeploymentEdge = { - __typename?: 'DeploymentEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** Represents a 'deployment_environment_changed' event on a given pull request. */ -export type DeploymentEnvironmentChangedEvent = Node & { - __typename?: 'DeploymentEnvironmentChangedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** The deployment status that updated the deployment environment. */ - deploymentStatus: DeploymentStatus; - id: Scalars['ID']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; -}; + +/** The possible ecosystems of a dependency graph package. */ +export type DependencyGraphEcosystem = + /** Ruby gems hosted at RubyGems.org */ + | 'RUBYGEMS' + /** JavaScript packages hosted at npmjs.com */ + | 'NPM' + /** Python packages hosted at PyPI.org */ + | 'PIP' + /** Java artifacts hosted at the Maven central repository */ + | 'MAVEN' + /** .NET packages hosted at the NuGet Gallery */ + | 'NUGET' + /** PHP packages hosted at packagist.org */ + | 'COMPOSER' + /** Go modules */ + | 'GO' + /** GitHub Actions */ + | 'ACTIONS' + /** Rust crates */ + | 'RUST' + /** Dart packages hosted at pub.dev */ + | 'PUB'; + + + + + + + + /** Ordering options for deployment connections */ export type DeploymentOrder = { @@ -3787,284 +1844,98 @@ export type DeploymentOrder = { }; /** Properties by which deployment connections can be ordered. */ -export enum DeploymentOrderField { +export type DeploymentOrderField = /** Order collection by creation time */ - CreatedAt = 'CREATED_AT' -} - -/** A protection rule. */ -export type DeploymentProtectionRule = { - __typename?: 'DeploymentProtectionRule'; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The teams or users that can review the deployment */ - reviewers: DeploymentReviewerConnection; - /** The timeout in minutes for this protection rule. */ - timeout: Scalars['Int']; - /** The type of protection rule. */ - type: DeploymentProtectionRuleType; -}; + | 'CREATED_AT'; -/** A protection rule. */ -export type DeploymentProtectionRuleReviewersArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - -/** The connection type for DeploymentProtectionRule. */ -export type DeploymentProtectionRuleConnection = { - __typename?: 'DeploymentProtectionRuleConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; -/** An edge in a connection. */ -export type DeploymentProtectionRuleEdge = { - __typename?: 'DeploymentProtectionRuleEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** The possible protection rule types. */ -export enum DeploymentProtectionRuleType { +export type DeploymentProtectionRuleType = /** Required reviewers */ - RequiredReviewers = 'REQUIRED_REVIEWERS', + | 'REQUIRED_REVIEWERS' /** Wait timer */ - WaitTimer = 'WAIT_TIMER' -} - -/** A request to deploy a workflow run to an environment. */ -export type DeploymentRequest = { - __typename?: 'DeploymentRequest'; - /** Whether or not the current user can approve the deployment */ - currentUserCanApprove: Scalars['Boolean']; - /** The target environment of the deployment */ - environment: Environment; - /** The teams or users that can review the deployment */ - reviewers: DeploymentReviewerConnection; - /** The wait timer in minutes configured in the environment */ - waitTimer: Scalars['Int']; - /** The wait timer in minutes configured in the environment */ - waitTimerStartedAt?: Maybe; -}; - + | 'WAIT_TIMER'; -/** A request to deploy a workflow run to an environment. */ -export type DeploymentRequestReviewersArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** The connection type for DeploymentRequest. */ -export type DeploymentRequestConnection = { - __typename?: 'DeploymentRequestConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type DeploymentRequestEdge = { - __typename?: 'DeploymentRequestEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** A deployment review. */ -export type DeploymentReview = Node & { - __typename?: 'DeploymentReview'; - /** The comment the user left. */ - comment: Scalars['String']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The environments approved or rejected */ - environments: EnvironmentConnection; - id: Scalars['ID']; - /** The decision of the user. */ - state: DeploymentReviewState; - /** The user that reviewed the deployment. */ - user: User; -}; -/** A deployment review. */ -export type DeploymentReviewEnvironmentsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** The connection type for DeploymentReview. */ -export type DeploymentReviewConnection = { - __typename?: 'DeploymentReviewConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; -/** An edge in a connection. */ -export type DeploymentReviewEdge = { - __typename?: 'DeploymentReviewEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** The possible states for a deployment review. */ -export enum DeploymentReviewState { +export type DeploymentReviewState = /** The deployment was approved. */ - Approved = 'APPROVED', + | 'APPROVED' /** The deployment was rejected. */ - Rejected = 'REJECTED' -} + | 'REJECTED'; -/** Users and teams. */ -export type DeploymentReviewer = Team | User; -/** The connection type for DeploymentReviewer. */ -export type DeploymentReviewerConnection = { - __typename?: 'DeploymentReviewerConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; -/** An edge in a connection. */ -export type DeploymentReviewerEdge = { - __typename?: 'DeploymentReviewerEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** The possible states in which a deployment can be. */ -export enum DeploymentState { +export type DeploymentState = /** The pending deployment was not updated after 30 minutes. */ - Abandoned = 'ABANDONED', + | 'ABANDONED' /** The deployment is currently active. */ - Active = 'ACTIVE', + | 'ACTIVE' /** An inactive transient deployment. */ - Destroyed = 'DESTROYED', + | 'DESTROYED' /** The deployment experienced an error. */ - Error = 'ERROR', + | 'ERROR' /** The deployment has failed. */ - Failure = 'FAILURE', + | 'FAILURE' /** The deployment is inactive. */ - Inactive = 'INACTIVE', + | 'INACTIVE' /** The deployment is pending. */ - Pending = 'PENDING', + | 'PENDING' + /** The deployment was successful. */ + | 'SUCCESS' /** The deployment has queued */ - Queued = 'QUEUED', + | 'QUEUED' /** The deployment is in progress. */ - InProgress = 'IN_PROGRESS', + | 'IN_PROGRESS' /** The deployment is waiting. */ - Waiting = 'WAITING' -} + | 'WAITING'; + + -/** Describes the status of a given deployment attempt. */ -export type DeploymentStatus = Node & { - __typename?: 'DeploymentStatus'; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Identifies the actor who triggered the deployment. */ - creator: Actor; - /** Identifies the deployment associated with status. */ - deployment: Deployment; - /** Identifies the description of the deployment. */ - description?: Maybe; - /** Identifies the environment URL of the deployment. */ - environmentUrl?: Maybe; - id: Scalars['ID']; - /** Identifies the log URL of the deployment. */ - logUrl?: Maybe; - /** Identifies the current state of the deployment. */ - state: DeploymentStatusState; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; -}; - -/** The connection type for DeploymentStatus. */ -export type DeploymentStatusConnection = { - __typename?: 'DeploymentStatusConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type DeploymentStatusEdge = { - __typename?: 'DeploymentStatusEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** The possible states for a deployment status. */ -export enum DeploymentStatusState { +export type DeploymentStatusState = /** The deployment is pending. */ - Pending = 'PENDING', + | 'PENDING' /** The deployment was successful. */ - Success = 'SUCCESS', + | 'SUCCESS' /** The deployment has failed. */ - Failure = 'FAILURE', + | 'FAILURE' /** The deployment is inactive. */ - Inactive = 'INACTIVE', + | 'INACTIVE' /** The deployment experienced an error. */ - Error = 'ERROR', + | 'ERROR' /** The deployment is queued */ - Queued = 'QUEUED', + | 'QUEUED' /** The deployment is in progress. */ - InProgress = 'IN_PROGRESS', + | 'IN_PROGRESS' /** The deployment is waiting. */ - Waiting = 'WAITING' -} + | 'WAITING'; + +/** Autogenerated input type of DequeuePullRequest */ +export type DequeuePullRequestInput = { + /** The ID of the pull request to be dequeued. */ + id: Scalars['ID']; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; +}; + /** The possible sides of a diff. */ -export enum DiffSide { +export type DiffSide = /** The left side of the diff. */ - Left = 'LEFT', + | 'LEFT' /** The right side of the diff. */ - Right = 'RIGHT' -} + | 'RIGHT'; /** Autogenerated input type of DisablePullRequestAutoMerge */ export type DisablePullRequestAutoMergeInput = { @@ -4074,348 +1945,25 @@ export type DisablePullRequestAutoMergeInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DisablePullRequestAutoMerge */ -export type DisablePullRequestAutoMergePayload = { - __typename?: 'DisablePullRequestAutoMergePayload'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The pull request auto merge was disabled on. */ - pullRequest?: Maybe; -}; - -/** Represents a 'disconnected' event on a given issue or pull request. */ -export type DisconnectedEvent = Node & { - __typename?: 'DisconnectedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** Reference originated in a different repository. */ - isCrossRepository: Scalars['Boolean']; - /** Issue or pull request from which the issue was disconnected. */ - source: ReferencedSubject; - /** Issue or pull request which was disconnected. */ - subject: ReferencedSubject; -}; - -/** A discussion in a repository. */ -export type Discussion = Comment & Updatable & Deletable & Labelable & Lockable & RepositoryNode & Subscribable & Reactable & Votable & Node & { - __typename?: 'Discussion'; - /** Reason that the conversation was locked. */ - activeLockReason?: Maybe; - /** The comment chosen as this discussion's answer, if any. */ - answer?: Maybe; - /** The time when a user chose this discussion's answer, if answered. */ - answerChosenAt?: Maybe; - /** The user who chose this discussion's answer, if answered. */ - answerChosenBy?: Maybe; - /** The actor who authored the comment. */ - author?: Maybe; - /** Author's association with the subject of the comment. */ - authorAssociation: CommentAuthorAssociation; - /** The main text of the discussion post. */ - body: Scalars['String']; - /** The body rendered to HTML. */ - bodyHTML: Scalars['HTML']; - /** The body rendered to text. */ - bodyText: Scalars['String']; - /** The category for this discussion. */ - category: DiscussionCategory; - /** The replies to the discussion. */ - comments: DiscussionCommentConnection; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Check if this comment was created via an email reply. */ - createdViaEmail: Scalars['Boolean']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The actor who edited the comment. */ - editor?: Maybe; - id: Scalars['ID']; - /** Check if this comment was edited and includes an edit with the creation data */ - includesCreatedEdit: Scalars['Boolean']; - /** A list of labels associated with the object. */ - labels?: Maybe; - /** The moment the editor made the last edit */ - lastEditedAt?: Maybe; - /** `true` if the object is locked */ - locked: Scalars['Boolean']; - /** The number identifying this discussion within the repository. */ - number: Scalars['Int']; - /** Identifies when the comment was published at. */ - publishedAt?: Maybe; - /** A list of reactions grouped by content left on the subject. */ - reactionGroups?: Maybe>; - /** A list of Reactions left on the Issue. */ - reactions: ReactionConnection; - /** The repository associated with this node. */ - repository: Repository; - /** The path for this discussion. */ - resourcePath: Scalars['URI']; - /** The title of this discussion. */ - title: Scalars['String']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** Number of upvotes that this subject has received. */ - upvoteCount: Scalars['Int']; - /** The URL for this discussion. */ - url: Scalars['URI']; - /** A list of edits to this content. */ - userContentEdits?: Maybe; - /** Check if the current viewer can delete this object. */ - viewerCanDelete: Scalars['Boolean']; - /** Can user react to this subject */ - viewerCanReact: Scalars['Boolean']; - /** Check if the viewer is able to change their subscription status for the repository. */ - viewerCanSubscribe: Scalars['Boolean']; - /** Check if the current viewer can update this object. */ - viewerCanUpdate: Scalars['Boolean']; - /** Whether or not the current user can add or remove an upvote on this subject. */ - viewerCanUpvote: Scalars['Boolean']; - /** Did the viewer author this comment. */ - viewerDidAuthor: Scalars['Boolean']; - /** Whether or not the current user has already upvoted this subject. */ - viewerHasUpvoted: Scalars['Boolean']; - /** Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. */ - viewerSubscription?: Maybe; -}; - - -/** A discussion in a repository. */ -export type DiscussionCommentsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - -/** A discussion in a repository. */ -export type DiscussionLabelsArgs = { - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** A discussion in a repository. */ -export type DiscussionReactionsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - content?: Maybe; - orderBy?: Maybe; -}; -/** A discussion in a repository. */ -export type DiscussionUserContentEditsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** A category for discussions in a repository. */ -export type DiscussionCategory = Node & RepositoryNode & { - __typename?: 'DiscussionCategory'; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** A description of this category. */ - description?: Maybe; - /** An emoji representing this category. */ - emoji: Scalars['String']; - /** This category's emoji rendered as HTML. */ - emojiHTML: Scalars['HTML']; - id: Scalars['ID']; - /** Whether or not discussions in this category support choosing an answer with the markDiscussionCommentAsAnswer mutation. */ - isAnswerable: Scalars['Boolean']; - /** The name of this category. */ - name: Scalars['String']; - /** The repository associated with this node. */ - repository: Repository; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; -}; - -/** The connection type for DiscussionCategory. */ -export type DiscussionCategoryConnection = { - __typename?: 'DiscussionCategoryConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type DiscussionCategoryEdge = { - __typename?: 'DiscussionCategoryEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** A comment on a discussion. */ -export type DiscussionComment = Comment & Deletable & Minimizable & Updatable & UpdatableComment & Reactable & Votable & Node & { - __typename?: 'DiscussionComment'; - /** The actor who authored the comment. */ - author?: Maybe; - /** Author's association with the subject of the comment. */ - authorAssociation: CommentAuthorAssociation; - /** The body as Markdown. */ - body: Scalars['String']; - /** The body rendered to HTML. */ - bodyHTML: Scalars['HTML']; - /** The body rendered to text. */ - bodyText: Scalars['String']; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Check if this comment was created via an email reply. */ - createdViaEmail: Scalars['Boolean']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The time when this replied-to comment was deleted */ - deletedAt?: Maybe; - /** The discussion this comment was created in */ - discussion?: Maybe; - /** The actor who edited the comment. */ - editor?: Maybe; - id: Scalars['ID']; - /** Check if this comment was edited and includes an edit with the creation data */ - includesCreatedEdit: Scalars['Boolean']; - /** Has this comment been chosen as the answer of its discussion? */ - isAnswer: Scalars['Boolean']; - /** Returns whether or not a comment has been minimized. */ - isMinimized: Scalars['Boolean']; - /** The moment the editor made the last edit */ - lastEditedAt?: Maybe; - /** Returns why the comment was minimized. */ - minimizedReason?: Maybe; - /** Identifies when the comment was published at. */ - publishedAt?: Maybe; - /** A list of reactions grouped by content left on the subject. */ - reactionGroups?: Maybe>; - /** A list of Reactions left on the Issue. */ - reactions: ReactionConnection; - /** The threaded replies to this comment. */ - replies: DiscussionCommentConnection; - /** The discussion comment this comment is a reply to */ - replyTo?: Maybe; - /** The path for this discussion comment. */ - resourcePath: Scalars['URI']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** Number of upvotes that this subject has received. */ - upvoteCount: Scalars['Int']; - /** The URL for this discussion comment. */ - url: Scalars['URI']; - /** A list of edits to this content. */ - userContentEdits?: Maybe; - /** Check if the current viewer can delete this object. */ - viewerCanDelete: Scalars['Boolean']; - /** Can the current user mark this comment as an answer? */ - viewerCanMarkAsAnswer: Scalars['Boolean']; - /** Check if the current viewer can minimize this object. */ - viewerCanMinimize: Scalars['Boolean']; - /** Can user react to this subject */ - viewerCanReact: Scalars['Boolean']; - /** Can the current user unmark this comment as an answer? */ - viewerCanUnmarkAsAnswer: Scalars['Boolean']; - /** Check if the current viewer can update this object. */ - viewerCanUpdate: Scalars['Boolean']; - /** Whether or not the current user can add or remove an upvote on this subject. */ - viewerCanUpvote: Scalars['Boolean']; - /** Reasons why the current viewer can not update this comment. */ - viewerCannotUpdateReasons: Array; - /** Did the viewer author this comment. */ - viewerDidAuthor: Scalars['Boolean']; - /** Whether or not the current user has already upvoted this subject. */ - viewerHasUpvoted: Scalars['Boolean']; -}; - - -/** A comment on a discussion. */ -export type DiscussionCommentReactionsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - content?: Maybe; - orderBy?: Maybe; -}; +/** The possible reasons for closing a discussion. */ +export type DiscussionCloseReason = + /** The discussion has been resolved */ + | 'RESOLVED' + /** The discussion is no longer relevant */ + | 'OUTDATED' + /** The discussion is a duplicate of another */ + | 'DUPLICATE'; -/** A comment on a discussion. */ -export type DiscussionCommentRepliesArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** A comment on a discussion. */ -export type DiscussionCommentUserContentEditsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** The connection type for DiscussionComment. */ -export type DiscussionCommentConnection = { - __typename?: 'DiscussionCommentConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type DiscussionCommentEdge = { - __typename?: 'DiscussionCommentEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** The connection type for Discussion. */ -export type DiscussionConnection = { - __typename?: 'DiscussionConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type DiscussionEdge = { - __typename?: 'DiscussionEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** Ways in which lists of discussions can be ordered upon return. */ export type DiscussionOrder = { @@ -4426,12 +1974,48 @@ export type DiscussionOrder = { }; /** Properties by which discussion connections can be ordered. */ -export enum DiscussionOrderField { +export type DiscussionOrderField = /** Order discussions by creation time. */ - CreatedAt = 'CREATED_AT', + | 'CREATED_AT' /** Order discussions by most recent modification time. */ - UpdatedAt = 'UPDATED_AT' -} + | 'UPDATED_AT'; + + + + + +/** Ordering options for discussion poll option connections. */ +export type DiscussionPollOptionOrder = { + /** The field to order poll options by. */ + field: DiscussionPollOptionOrderField; + /** The ordering direction. */ + direction: OrderDirection; +}; + +/** Properties by which discussion poll option connections can be ordered. */ +export type DiscussionPollOptionOrderField = + /** Order poll options by the order that the poll author specified when creating the poll. */ + | 'AUTHORED_ORDER' + /** Order poll options by the number of votes it has. */ + | 'VOTE_COUNT'; + +/** The possible states of a discussion. */ +export type DiscussionState = + /** A discussion that is open */ + | 'OPEN' + /** A discussion that has been closed */ + | 'CLOSED'; + +/** The possible state reasons of a discussion. */ +export type DiscussionStateReason = + /** The discussion has been resolved */ + | 'RESOLVED' + /** The discussion is no longer relevant */ + | 'OUTDATED' + /** The discussion is a duplicate of another */ + | 'DUPLICATE' + /** The discussion was reopened */ + | 'REOPENED'; /** Autogenerated input type of DismissPullRequestReview */ export type DismissPullRequestReviewInput = { @@ -4443,15 +2027,32 @@ export type DismissPullRequestReviewInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of DismissPullRequestReview */ -export type DismissPullRequestReviewPayload = { - __typename?: 'DismissPullRequestReviewPayload'; + +/** The possible reasons that a Dependabot alert was dismissed. */ +export type DismissReason = + /** A fix has already been started */ + | 'FIX_STARTED' + /** No bandwidth to fix this */ + | 'NO_BANDWIDTH' + /** Risk is tolerable to this project */ + | 'TOLERABLE_RISK' + /** This alert is inaccurate or incorrect */ + | 'INACCURATE' + /** Vulnerable code is not actually used */ + | 'NOT_USED'; + +/** Autogenerated input type of DismissRepositoryVulnerabilityAlert */ +export type DismissRepositoryVulnerabilityAlertInput = { + /** The Dependabot alert ID to dismiss. */ + repositoryVulnerabilityAlertId: Scalars['ID']; + /** The reason the Dependabot alert is being dismissed. */ + dismissReason: DismissReason; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The dismissed pull request review. */ - pullRequestReview?: Maybe; }; + + /** Specifies a review comment to be left with a Pull Request Review. */ export type DraftPullRequestReviewComment = { /** Path to the file being commented on. */ @@ -4482,172 +2083,39 @@ export type DraftPullRequestReviewThread = { export type EnablePullRequestAutoMergeInput = { /** ID of the pull request to enable auto-merge on. */ pullRequestId: Scalars['ID']; - /** Commit headline to use for the commit when the PR is mergable; if omitted, a default message will be used. */ + /** Commit headline to use for the commit when the PR is mergable; if omitted, a default message will be used. NOTE: when merging with a merge queue any input value for commit headline is ignored. */ commitHeadline?: Maybe; - /** Commit body to use for the commit when the PR is mergable; if omitted, a default message will be used. */ + /** Commit body to use for the commit when the PR is mergable; if omitted, a default message will be used. NOTE: when merging with a merge queue any input value for commit message is ignored. */ commitBody?: Maybe; - /** The merge method to use. If omitted, defaults to 'MERGE' */ + /** The merge method to use. If omitted, defaults to `MERGE`. NOTE: when merging with a merge queue any input value for merge method is ignored. */ mergeMethod?: Maybe; /** The email address to associate with this merge. */ authorEmail?: Maybe; + /** The expected head OID of the pull request. */ + expectedHeadOid?: Maybe; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; }; -/** Autogenerated return type of EnablePullRequestAutoMerge */ -export type EnablePullRequestAutoMergePayload = { - __typename?: 'EnablePullRequestAutoMergePayload'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; + +/** Autogenerated input type of EnqueuePullRequest */ +export type EnqueuePullRequestInput = { + /** The ID of the pull request to enqueue. */ + pullRequestId: Scalars['ID']; + /** Add the pull request to the front of the queue. */ + jump?: Maybe; + /** The expected head OID of the pull request. */ + expectedHeadOid?: Maybe; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The pull request auto-merge was enabled on. */ - pullRequest?: Maybe; -}; - -/** An account to manage multiple organizations with consolidated policy and billing. */ -export type Enterprise = Node & { - __typename?: 'Enterprise'; - /** A URL pointing to the enterprise's public avatar. */ - avatarUrl: Scalars['URI']; - /** Enterprise billing information visible to enterprise billing managers. */ - billingInfo?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The description of the enterprise. */ - description?: Maybe; - /** The description of the enterprise as HTML. */ - descriptionHTML: Scalars['HTML']; - id: Scalars['ID']; - /** The location of the enterprise. */ - location?: Maybe; - /** A list of users who are members of this enterprise. */ - members: EnterpriseMemberConnection; - /** The name of the enterprise. */ - name: Scalars['String']; - /** A list of organizations that belong to this enterprise. */ - organizations: OrganizationConnection; - /** Enterprise information only visible to enterprise owners. */ - ownerInfo?: Maybe; - /** The HTTP path for this enterprise. */ - resourcePath: Scalars['URI']; - /** The URL-friendly identifier for the enterprise. */ - slug: Scalars['String']; - /** The HTTP URL for this enterprise. */ - url: Scalars['URI']; - /** A list of user accounts on this enterprise. */ - userAccounts: EnterpriseUserAccountConnection; - /** Is the current viewer an admin of this enterprise? */ - viewerIsAdmin: Scalars['Boolean']; - /** The URL of the enterprise website. */ - websiteUrl?: Maybe; -}; - - -/** An account to manage multiple organizations with consolidated policy and billing. */ -export type EnterpriseAvatarUrlArgs = { - size?: Maybe; -}; - - -/** An account to manage multiple organizations with consolidated policy and billing. */ -export type EnterpriseMembersArgs = { - organizationLogins?: Maybe>; - query?: Maybe; - orderBy?: Maybe; - role?: Maybe; - deployment?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; }; -/** An account to manage multiple organizations with consolidated policy and billing. */ -export type EnterpriseOrganizationsArgs = { - query?: Maybe; - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - -/** An account to manage multiple organizations with consolidated policy and billing. */ -export type EnterpriseUserAccountsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** The connection type for User. */ -export type EnterpriseAdministratorConnection = { - __typename?: 'EnterpriseAdministratorConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** A User who is an administrator of an enterprise. */ -export type EnterpriseAdministratorEdge = { - __typename?: 'EnterpriseAdministratorEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; - /** The role of the administrator. */ - role: EnterpriseAdministratorRole; -}; -/** An invitation for a user to become an owner or billing manager of an enterprise. */ -export type EnterpriseAdministratorInvitation = Node & { - __typename?: 'EnterpriseAdministratorInvitation'; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** The email of the person who was invited to the enterprise. */ - email?: Maybe; - /** The enterprise the invitation is for. */ - enterprise: Enterprise; - id: Scalars['ID']; - /** The user who was invited to the enterprise. */ - invitee?: Maybe; - /** The user who created the invitation. */ - inviter?: Maybe; - /** The invitee's pending role in the enterprise (owner or billing_manager). */ - role: EnterpriseAdministratorRole; -}; -/** The connection type for EnterpriseAdministratorInvitation. */ -export type EnterpriseAdministratorInvitationConnection = { - __typename?: 'EnterpriseAdministratorInvitationConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; -/** An edge in a connection. */ -export type EnterpriseAdministratorInvitationEdge = { - __typename?: 'EnterpriseAdministratorInvitationEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** Ordering options for enterprise administrator invitation connections */ export type EnterpriseAdministratorInvitationOrder = { @@ -4658,157 +2126,68 @@ export type EnterpriseAdministratorInvitationOrder = { }; /** Properties by which enterprise administrator invitation connections can be ordered. */ -export enum EnterpriseAdministratorInvitationOrderField { +export type EnterpriseAdministratorInvitationOrderField = /** Order enterprise administrator member invitations by creation time */ - CreatedAt = 'CREATED_AT' -} + | 'CREATED_AT'; /** The possible administrator roles in an enterprise account. */ -export enum EnterpriseAdministratorRole { +export type EnterpriseAdministratorRole = /** Represents an owner of the enterprise account. */ - Owner = 'OWNER', + | 'OWNER' /** Represents a billing manager of the enterprise account. */ - BillingManager = 'BILLING_MANAGER' -} + | 'BILLING_MANAGER'; + +/** The possible values for the enterprise allow private repository forking policy value. */ +export type EnterpriseAllowPrivateRepositoryForkingPolicyValue = + /** Members can fork a repository to an organization within this enterprise. */ + | 'ENTERPRISE_ORGANIZATIONS' + /** Members can fork a repository only within the same organization (intra-org). */ + | 'SAME_ORGANIZATION' + /** Members can fork a repository to their user account or within the same organization. */ + | 'SAME_ORGANIZATION_USER_ACCOUNTS' + /** Members can fork a repository to their enterprise-managed user account or an organization inside this enterprise. */ + | 'ENTERPRISE_ORGANIZATIONS_USER_ACCOUNTS' + /** Members can fork a repository to their user account. */ + | 'USER_ACCOUNTS' + /** Members can fork a repository to their user account or an organization, either inside or outside of this enterprise. */ + | 'EVERYWHERE'; + -/** Metadata for an audit entry containing enterprise account information. */ -export type EnterpriseAuditEntryData = { - /** The HTTP path for this enterprise. */ - enterpriseResourcePath?: Maybe; - /** The slug of the enterprise. */ - enterpriseSlug?: Maybe; - /** The HTTP URL for this enterprise. */ - enterpriseUrl?: Maybe; -}; - -/** Enterprise billing information visible to enterprise billing managers and owners. */ -export type EnterpriseBillingInfo = { - __typename?: 'EnterpriseBillingInfo'; - /** The number of licenseable users/emails across the enterprise. */ - allLicensableUsersCount: Scalars['Int']; - /** The number of data packs used by all organizations owned by the enterprise. */ - assetPacks: Scalars['Int']; - /** - * The number of available seats across all owned organizations based on the unique number of billable users. - * @deprecated `availableSeats` will be replaced with `totalAvailableLicenses` to provide more clarity on the value being returned Use EnterpriseBillingInfo.totalAvailableLicenses instead. Removal on 2020-01-01 UTC. - */ - availableSeats: Scalars['Int']; - /** The bandwidth quota in GB for all organizations owned by the enterprise. */ - bandwidthQuota: Scalars['Float']; - /** The bandwidth usage in GB for all organizations owned by the enterprise. */ - bandwidthUsage: Scalars['Float']; - /** The bandwidth usage as a percentage of the bandwidth quota. */ - bandwidthUsagePercentage: Scalars['Int']; - /** - * The total seats across all organizations owned by the enterprise. - * @deprecated `seats` will be replaced with `totalLicenses` to provide more clarity on the value being returned Use EnterpriseBillingInfo.totalLicenses instead. Removal on 2020-01-01 UTC. - */ - seats: Scalars['Int']; - /** The storage quota in GB for all organizations owned by the enterprise. */ - storageQuota: Scalars['Float']; - /** The storage usage in GB for all organizations owned by the enterprise. */ - storageUsage: Scalars['Float']; - /** The storage usage as a percentage of the storage quota. */ - storageUsagePercentage: Scalars['Int']; - /** The number of available licenses across all owned organizations based on the unique number of billable users. */ - totalAvailableLicenses: Scalars['Int']; - /** The total number of licenses allocated. */ - totalLicenses: Scalars['Int']; -}; /** The possible values for the enterprise base repository permission setting. */ -export enum EnterpriseDefaultRepositoryPermissionSettingValue { +export type EnterpriseDefaultRepositoryPermissionSettingValue = /** Organizations in the enterprise choose base repository permissions for their members. */ - NoPolicy = 'NO_POLICY', + | 'NO_POLICY' /** Organization members will be able to clone, pull, push, and add new collaborators to all organization repositories. */ - Admin = 'ADMIN', + | 'ADMIN' /** Organization members will be able to clone, pull, and push all organization repositories. */ - Write = 'WRITE', + | 'WRITE' /** Organization members will be able to clone and pull all organization repositories. */ - Read = 'READ', + | 'READ' /** Organization members will only be able to clone and pull public repositories. */ - None = 'NONE' -} + | 'NONE'; /** The possible values for an enabled/disabled enterprise setting. */ -export enum EnterpriseEnabledDisabledSettingValue { +export type EnterpriseEnabledDisabledSettingValue = /** The setting is enabled for organizations in the enterprise. */ - Enabled = 'ENABLED', + | 'ENABLED' /** The setting is disabled for organizations in the enterprise. */ - Disabled = 'DISABLED', + | 'DISABLED' /** There is no policy set for organizations in the enterprise. */ - NoPolicy = 'NO_POLICY' -} + | 'NO_POLICY'; /** The possible values for an enabled/no policy enterprise setting. */ -export enum EnterpriseEnabledSettingValue { +export type EnterpriseEnabledSettingValue = /** The setting is enabled for organizations in the enterprise. */ - Enabled = 'ENABLED', + | 'ENABLED' /** There is no policy set for organizations in the enterprise. */ - NoPolicy = 'NO_POLICY' -} + | 'NO_POLICY'; -/** An identity provider configured to provision identities for an enterprise. */ -export type EnterpriseIdentityProvider = Node & { - __typename?: 'EnterpriseIdentityProvider'; - /** The digest algorithm used to sign SAML requests for the identity provider. */ - digestMethod?: Maybe; - /** The enterprise this identity provider belongs to. */ - enterprise?: Maybe; - /** ExternalIdentities provisioned by this identity provider. */ - externalIdentities: ExternalIdentityConnection; - id: Scalars['ID']; - /** The x509 certificate used by the identity provider to sign assertions and responses. */ - idpCertificate?: Maybe; - /** The Issuer Entity ID for the SAML identity provider. */ - issuer?: Maybe; - /** Recovery codes that can be used by admins to access the enterprise if the identity provider is unavailable. */ - recoveryCodes?: Maybe>; - /** The signature algorithm used to sign SAML requests for the identity provider. */ - signatureMethod?: Maybe; - /** The URL endpoint for the identity provider's SAML SSO. */ - ssoUrl?: Maybe; -}; -/** An identity provider configured to provision identities for an enterprise. */ -export type EnterpriseIdentityProviderExternalIdentitiesArgs = { - membersOnly?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** An object that is a member of an enterprise. */ -export type EnterpriseMember = EnterpriseUserAccount | User; -/** The connection type for EnterpriseMember. */ -export type EnterpriseMemberConnection = { - __typename?: 'EnterpriseMemberConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; -/** A User who is a member of an enterprise through one or more organizations. */ -export type EnterpriseMemberEdge = { - __typename?: 'EnterpriseMemberEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** - * Whether the user does not have a license for the enterprise. - * @deprecated All members consume a license Removal on 2021-01-01 UTC. - */ - isUnlicensed: Scalars['Boolean']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** Ordering options for enterprise member connections. */ export type EnterpriseMemberOrder = { @@ -4819,643 +2198,47 @@ export type EnterpriseMemberOrder = { }; /** Properties by which enterprise member connections can be ordered. */ -export enum EnterpriseMemberOrderField { +export type EnterpriseMemberOrderField = /** Order enterprise members by login */ - Login = 'LOGIN', + | 'LOGIN' /** Order enterprise members by creation time */ - CreatedAt = 'CREATED_AT' -} + | 'CREATED_AT'; /** The possible values for the enterprise members can create repositories setting. */ -export enum EnterpriseMembersCanCreateRepositoriesSettingValue { +export type EnterpriseMembersCanCreateRepositoriesSettingValue = /** Organization administrators choose whether to allow members to create repositories. */ - NoPolicy = 'NO_POLICY', + | 'NO_POLICY' /** Members will be able to create public and private repositories. */ - All = 'ALL', + | 'ALL' /** Members will be able to create only public repositories. */ - Public = 'PUBLIC', + | 'PUBLIC' /** Members will be able to create only private repositories. */ - Private = 'PRIVATE', + | 'PRIVATE' /** Members will not be able to create public or private repositories. */ - Disabled = 'DISABLED' -} + | 'DISABLED'; /** The possible values for the members can make purchases setting. */ -export enum EnterpriseMembersCanMakePurchasesSettingValue { +export type EnterpriseMembersCanMakePurchasesSettingValue = /** The setting is enabled for organizations in the enterprise. */ - Enabled = 'ENABLED', + | 'ENABLED' /** The setting is disabled for organizations in the enterprise. */ - Disabled = 'DISABLED' -} - -/** The connection type for Organization. */ -export type EnterpriseOrganizationMembershipConnection = { - __typename?: 'EnterpriseOrganizationMembershipConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An enterprise organization that a user is a member of. */ -export type EnterpriseOrganizationMembershipEdge = { - __typename?: 'EnterpriseOrganizationMembershipEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; - /** The role of the user in the enterprise membership. */ - role: EnterpriseUserAccountMembershipRole; -}; - -/** The connection type for User. */ -export type EnterpriseOutsideCollaboratorConnection = { - __typename?: 'EnterpriseOutsideCollaboratorConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** A User who is an outside collaborator of an enterprise through one or more organizations. */ -export type EnterpriseOutsideCollaboratorEdge = { - __typename?: 'EnterpriseOutsideCollaboratorEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** - * Whether the outside collaborator does not have a license for the enterprise. - * @deprecated All outside collaborators consume a license Removal on 2021-01-01 UTC. - */ - isUnlicensed: Scalars['Boolean']; - /** The item at the end of the edge. */ - node?: Maybe; - /** The enterprise organization repositories this user is a member of. */ - repositories: EnterpriseRepositoryInfoConnection; -}; + | 'DISABLED'; -/** A User who is an outside collaborator of an enterprise through one or more organizations. */ -export type EnterpriseOutsideCollaboratorEdgeRepositoriesArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - orderBy?: Maybe; -}; - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfo = { - __typename?: 'EnterpriseOwnerInfo'; - /** A list of all of the administrators for this enterprise. */ - admins: EnterpriseAdministratorConnection; - /** A list of users in the enterprise who currently have two-factor authentication disabled. */ - affiliatedUsersWithTwoFactorDisabled: UserConnection; - /** Whether or not affiliated users with two-factor authentication disabled exist in the enterprise. */ - affiliatedUsersWithTwoFactorDisabledExist: Scalars['Boolean']; - /** The setting value for whether private repository forking is enabled for repositories in organizations in this enterprise. */ - allowPrivateRepositoryForkingSetting: EnterpriseEnabledDisabledSettingValue; - /** A list of enterprise organizations configured with the provided private repository forking setting value. */ - allowPrivateRepositoryForkingSettingOrganizations: OrganizationConnection; - /** The setting value for base repository permissions for organizations in this enterprise. */ - defaultRepositoryPermissionSetting: EnterpriseDefaultRepositoryPermissionSettingValue; - /** A list of enterprise organizations configured with the provided base repository permission. */ - defaultRepositoryPermissionSettingOrganizations: OrganizationConnection; - /** A list of domains owned by the enterprise. */ - domains: VerifiableDomainConnection; - /** Enterprise Server installations owned by the enterprise. */ - enterpriseServerInstallations: EnterpriseServerInstallationConnection; - /** The setting value for whether the enterprise has an IP allow list enabled. */ - ipAllowListEnabledSetting: IpAllowListEnabledSettingValue; - /** The IP addresses that are allowed to access resources owned by the enterprise. */ - ipAllowListEntries: IpAllowListEntryConnection; - /** The setting value for whether the enterprise has IP allow list configuration for installed GitHub Apps enabled. */ - ipAllowListForInstalledAppsEnabledSetting: IpAllowListForInstalledAppsEnabledSettingValue; - /** Whether or not the base repository permission is currently being updated. */ - isUpdatingDefaultRepositoryPermission: Scalars['Boolean']; - /** Whether the two-factor authentication requirement is currently being enforced. */ - isUpdatingTwoFactorRequirement: Scalars['Boolean']; - /** The setting value for whether organization members with admin permissions on a repository can change repository visibility. */ - membersCanChangeRepositoryVisibilitySetting: EnterpriseEnabledDisabledSettingValue; - /** A list of enterprise organizations configured with the provided can change repository visibility setting value. */ - membersCanChangeRepositoryVisibilitySettingOrganizations: OrganizationConnection; - /** The setting value for whether members of organizations in the enterprise can create internal repositories. */ - membersCanCreateInternalRepositoriesSetting?: Maybe; - /** The setting value for whether members of organizations in the enterprise can create private repositories. */ - membersCanCreatePrivateRepositoriesSetting?: Maybe; - /** The setting value for whether members of organizations in the enterprise can create public repositories. */ - membersCanCreatePublicRepositoriesSetting?: Maybe; - /** The setting value for whether members of organizations in the enterprise can create repositories. */ - membersCanCreateRepositoriesSetting?: Maybe; - /** A list of enterprise organizations configured with the provided repository creation setting value. */ - membersCanCreateRepositoriesSettingOrganizations: OrganizationConnection; - /** The setting value for whether members with admin permissions for repositories can delete issues. */ - membersCanDeleteIssuesSetting: EnterpriseEnabledDisabledSettingValue; - /** A list of enterprise organizations configured with the provided members can delete issues setting value. */ - membersCanDeleteIssuesSettingOrganizations: OrganizationConnection; - /** The setting value for whether members with admin permissions for repositories can delete or transfer repositories. */ - membersCanDeleteRepositoriesSetting: EnterpriseEnabledDisabledSettingValue; - /** A list of enterprise organizations configured with the provided members can delete repositories setting value. */ - membersCanDeleteRepositoriesSettingOrganizations: OrganizationConnection; - /** The setting value for whether members of organizations in the enterprise can invite outside collaborators. */ - membersCanInviteCollaboratorsSetting: EnterpriseEnabledDisabledSettingValue; - /** A list of enterprise organizations configured with the provided members can invite collaborators setting value. */ - membersCanInviteCollaboratorsSettingOrganizations: OrganizationConnection; - /** Indicates whether members of this enterprise's organizations can purchase additional services for those organizations. */ - membersCanMakePurchasesSetting: EnterpriseMembersCanMakePurchasesSettingValue; - /** The setting value for whether members with admin permissions for repositories can update protected branches. */ - membersCanUpdateProtectedBranchesSetting: EnterpriseEnabledDisabledSettingValue; - /** A list of enterprise organizations configured with the provided members can update protected branches setting value. */ - membersCanUpdateProtectedBranchesSettingOrganizations: OrganizationConnection; - /** The setting value for whether members can view dependency insights. */ - membersCanViewDependencyInsightsSetting: EnterpriseEnabledDisabledSettingValue; - /** A list of enterprise organizations configured with the provided members can view dependency insights setting value. */ - membersCanViewDependencyInsightsSettingOrganizations: OrganizationConnection; - /** Indicates if email notification delivery for this enterprise is restricted to verified or approved domains. */ - notificationDeliveryRestrictionEnabledSetting: NotificationRestrictionSettingValue; - /** The setting value for whether organization projects are enabled for organizations in this enterprise. */ - organizationProjectsSetting: EnterpriseEnabledDisabledSettingValue; - /** A list of enterprise organizations configured with the provided organization projects setting value. */ - organizationProjectsSettingOrganizations: OrganizationConnection; - /** A list of outside collaborators across the repositories in the enterprise. */ - outsideCollaborators: EnterpriseOutsideCollaboratorConnection; - /** A list of pending administrator invitations for the enterprise. */ - pendingAdminInvitations: EnterpriseAdministratorInvitationConnection; - /** A list of pending collaborator invitations across the repositories in the enterprise. */ - pendingCollaboratorInvitations: RepositoryInvitationConnection; - /** - * A list of pending collaborators across the repositories in the enterprise. - * @deprecated Repository invitations can now be associated with an email, not only an invitee. Use the `pendingCollaboratorInvitations` field instead. Removal on 2020-10-01 UTC. - */ - pendingCollaborators: EnterprisePendingCollaboratorConnection; - /** A list of pending member invitations for organizations in the enterprise. */ - pendingMemberInvitations: EnterprisePendingMemberInvitationConnection; - /** 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. */ - repositoryProjectsSettingOrganizations: OrganizationConnection; - /** The SAML Identity Provider for the enterprise. */ - samlIdentityProvider?: Maybe; - /** A list of enterprise organizations configured with the SAML single sign-on setting value. */ - samlIdentityProviderSettingOrganizations: OrganizationConnection; - /** A list of members with a support entitlement. */ - supportEntitlements: EnterpriseMemberConnection; - /** The setting value for whether team discussions are enabled for organizations in this enterprise. */ - teamDiscussionsSetting: EnterpriseEnabledDisabledSettingValue; - /** A list of enterprise organizations configured with the provided team discussions setting value. */ - teamDiscussionsSettingOrganizations: OrganizationConnection; - /** 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. */ - twoFactorRequiredSettingOrganizations: OrganizationConnection; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoAdminsArgs = { - query?: Maybe; - role?: Maybe; - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoAffiliatedUsersWithTwoFactorDisabledArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoAllowPrivateRepositoryForkingSettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: Scalars['Boolean']; - orderBy?: Maybe; -}; -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoDefaultRepositoryPermissionSettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: DefaultRepositoryPermissionField; - orderBy?: Maybe; -}; -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoDomainsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - isVerified?: Maybe; - isApproved?: Maybe; - orderBy?: Maybe; -}; -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoEnterpriseServerInstallationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - connectedOnly?: Maybe; - orderBy?: Maybe; -}; -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoIpAllowListEntriesArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - orderBy?: Maybe; -}; -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoMembersCanChangeRepositoryVisibilitySettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: Scalars['Boolean']; - orderBy?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoMembersCanCreateRepositoriesSettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: OrganizationMembersCanCreateRepositoriesSettingValue; - orderBy?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoMembersCanDeleteIssuesSettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: Scalars['Boolean']; - orderBy?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoMembersCanDeleteRepositoriesSettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: Scalars['Boolean']; - orderBy?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoMembersCanInviteCollaboratorsSettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: Scalars['Boolean']; - orderBy?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoMembersCanUpdateProtectedBranchesSettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: Scalars['Boolean']; - orderBy?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoMembersCanViewDependencyInsightsSettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: Scalars['Boolean']; - orderBy?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoOrganizationProjectsSettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: Scalars['Boolean']; - orderBy?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoOutsideCollaboratorsArgs = { - login?: Maybe; - query?: Maybe; - orderBy?: Maybe; - visibility?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoPendingAdminInvitationsArgs = { - query?: Maybe; - orderBy?: Maybe; - role?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoPendingCollaboratorInvitationsArgs = { - query?: Maybe; - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoPendingCollaboratorsArgs = { - query?: Maybe; - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoPendingMemberInvitationsArgs = { - query?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoRepositoryProjectsSettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: Scalars['Boolean']; - orderBy?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoSamlIdentityProviderSettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: IdentityProviderConfigurationState; - orderBy?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoSupportEntitlementsArgs = { - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoTeamDiscussionsSettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: Scalars['Boolean']; - orderBy?: Maybe; -}; - - -/** Enterprise information only visible to enterprise owners. */ -export type EnterpriseOwnerInfoTwoFactorRequiredSettingOrganizationsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - value: Scalars['Boolean']; - orderBy?: Maybe; -}; - -/** The connection type for User. */ -export type EnterprisePendingCollaboratorConnection = { - __typename?: 'EnterprisePendingCollaboratorConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** A user with an invitation to be a collaborator on a repository owned by an organization in an enterprise. */ -export type EnterprisePendingCollaboratorEdge = { - __typename?: 'EnterprisePendingCollaboratorEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** - * Whether the invited collaborator does not have a license for the enterprise. - * @deprecated All pending collaborators consume a license Removal on 2021-01-01 UTC. - */ - isUnlicensed: Scalars['Boolean']; - /** The item at the end of the edge. */ - node?: Maybe; - /** The enterprise organization repositories this user is a member of. */ - repositories: EnterpriseRepositoryInfoConnection; -}; - - -/** A user with an invitation to be a collaborator on a repository owned by an organization in an enterprise. */ -export type EnterprisePendingCollaboratorEdgeRepositoriesArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - orderBy?: Maybe; -}; - -/** The connection type for OrganizationInvitation. */ -export type EnterprisePendingMemberInvitationConnection = { - __typename?: 'EnterprisePendingMemberInvitationConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; - /** Identifies the total count of unique users in the connection. */ - totalUniqueUserCount: Scalars['Int']; -}; - -/** An invitation to be a member in an enterprise organization. */ -export type EnterprisePendingMemberInvitationEdge = { - __typename?: 'EnterprisePendingMemberInvitationEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** - * Whether the invitation has a license for the enterprise. - * @deprecated All pending members consume a license Removal on 2020-07-01 UTC. - */ - isUnlicensed: Scalars['Boolean']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** A subset of repository information queryable from an enterprise. */ -export type EnterpriseRepositoryInfo = Node & { - __typename?: 'EnterpriseRepositoryInfo'; - id: Scalars['ID']; - /** Identifies if the repository is private or internal. */ - isPrivate: Scalars['Boolean']; - /** The repository's name. */ - name: Scalars['String']; - /** The repository's name with owner. */ - nameWithOwner: Scalars['String']; -}; - -/** The connection type for EnterpriseRepositoryInfo. */ -export type EnterpriseRepositoryInfoConnection = { - __typename?: 'EnterpriseRepositoryInfoConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type EnterpriseRepositoryInfoEdge = { - __typename?: 'EnterpriseRepositoryInfoEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** An Enterprise Server installation. */ -export type EnterpriseServerInstallation = Node & { - __typename?: 'EnterpriseServerInstallation'; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** The customer name to which the Enterprise Server installation belongs. */ - customerName: Scalars['String']; - /** The host name of the Enterprise Server installation. */ - hostName: Scalars['String']; - id: Scalars['ID']; - /** Whether or not the installation is connected to an Enterprise Server installation via GitHub Connect. */ - isConnected: Scalars['Boolean']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** User accounts on this Enterprise Server installation. */ - userAccounts: EnterpriseServerUserAccountConnection; - /** User accounts uploads for the Enterprise Server installation. */ - userAccountsUploads: EnterpriseServerUserAccountsUploadConnection; -}; - - -/** An Enterprise Server installation. */ -export type EnterpriseServerInstallationUserAccountsArgs = { - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** An Enterprise Server installation. */ -export type EnterpriseServerInstallationUserAccountsUploadsArgs = { - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - -/** The connection type for EnterpriseServerInstallation. */ -export type EnterpriseServerInstallationConnection = { - __typename?: 'EnterpriseServerInstallationConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type EnterpriseServerInstallationEdge = { - __typename?: 'EnterpriseServerInstallationEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - /** Ordering options for Enterprise Server installation connections. */ export type EnterpriseServerInstallationOrder = { /** The field to order Enterprise Server installations by. */ @@ -5465,108 +2248,19 @@ export type EnterpriseServerInstallationOrder = { }; /** Properties by which Enterprise Server installation connections can be ordered. */ -export enum EnterpriseServerInstallationOrderField { +export type EnterpriseServerInstallationOrderField = /** Order Enterprise Server installations by host name */ - HostName = 'HOST_NAME', + | 'HOST_NAME' /** Order Enterprise Server installations by customer name */ - CustomerName = 'CUSTOMER_NAME', + | 'CUSTOMER_NAME' /** Order Enterprise Server installations by creation time */ - CreatedAt = 'CREATED_AT' -} + | 'CREATED_AT'; + + -/** A user account on an Enterprise Server installation. */ -export type EnterpriseServerUserAccount = Node & { - __typename?: 'EnterpriseServerUserAccount'; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** User emails belonging to this user account. */ - emails: EnterpriseServerUserAccountEmailConnection; - /** The Enterprise Server installation on which this user account exists. */ - enterpriseServerInstallation: EnterpriseServerInstallation; - id: Scalars['ID']; - /** Whether the user account is a site administrator on the Enterprise Server installation. */ - isSiteAdmin: Scalars['Boolean']; - /** The login of the user account on the Enterprise Server installation. */ - login: Scalars['String']; - /** The profile name of the user account on the Enterprise Server installation. */ - profileName?: Maybe; - /** The date and time when the user account was created on the Enterprise Server installation. */ - remoteCreatedAt: Scalars['DateTime']; - /** The ID of the user account on the Enterprise Server installation. */ - remoteUserId: Scalars['Int']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; -}; -/** A user account on an Enterprise Server installation. */ -export type EnterpriseServerUserAccountEmailsArgs = { - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** The connection type for EnterpriseServerUserAccount. */ -export type EnterpriseServerUserAccountConnection = { - __typename?: 'EnterpriseServerUserAccountConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type EnterpriseServerUserAccountEdge = { - __typename?: 'EnterpriseServerUserAccountEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** An email belonging to a user account on an Enterprise Server installation. */ -export type EnterpriseServerUserAccountEmail = Node & { - __typename?: 'EnterpriseServerUserAccountEmail'; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** The email address. */ - email: Scalars['String']; - id: Scalars['ID']; - /** Indicates whether this is the primary email of the associated user account. */ - isPrimary: Scalars['Boolean']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** The user account to which the email belongs. */ - userAccount: EnterpriseServerUserAccount; -}; - -/** The connection type for EnterpriseServerUserAccountEmail. */ -export type EnterpriseServerUserAccountEmailConnection = { - __typename?: 'EnterpriseServerUserAccountEmailConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type EnterpriseServerUserAccountEmailEdge = { - __typename?: 'EnterpriseServerUserAccountEmailEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** Ordering options for Enterprise Server user account email connections. */ export type EnterpriseServerUserAccountEmailOrder = { @@ -5577,10 +2271,9 @@ export type EnterpriseServerUserAccountEmailOrder = { }; /** Properties by which Enterprise Server user account email connections can be ordered. */ -export enum EnterpriseServerUserAccountEmailOrderField { +export type EnterpriseServerUserAccountEmailOrderField = /** Order emails by email */ - Email = 'EMAIL' -} + | 'EMAIL'; /** Ordering options for Enterprise Server user account connections. */ export type EnterpriseServerUserAccountOrder = { @@ -5591,52 +2284,14 @@ export type EnterpriseServerUserAccountOrder = { }; /** Properties by which Enterprise Server user account connections can be ordered. */ -export enum EnterpriseServerUserAccountOrderField { +export type EnterpriseServerUserAccountOrderField = /** Order user accounts by login */ - Login = 'LOGIN', + | 'LOGIN' /** Order user accounts by creation time on the Enterprise Server installation */ - RemoteCreatedAt = 'REMOTE_CREATED_AT' -} + | 'REMOTE_CREATED_AT'; + + -/** A user accounts upload from an Enterprise Server installation. */ -export type EnterpriseServerUserAccountsUpload = Node & { - __typename?: 'EnterpriseServerUserAccountsUpload'; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** The enterprise to which this upload belongs. */ - enterprise: Enterprise; - /** The Enterprise Server installation for which this upload was generated. */ - enterpriseServerInstallation: EnterpriseServerInstallation; - id: Scalars['ID']; - /** The name of the file uploaded. */ - name: Scalars['String']; - /** The synchronization state of the upload */ - syncState: EnterpriseServerUserAccountsUploadSyncState; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; -}; - -/** The connection type for EnterpriseServerUserAccountsUpload. */ -export type EnterpriseServerUserAccountsUploadConnection = { - __typename?: 'EnterpriseServerUserAccountsUploadConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type EnterpriseServerUserAccountsUploadEdge = { - __typename?: 'EnterpriseServerUserAccountsUploadEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** Ordering options for Enterprise Server user accounts upload connections. */ export type EnterpriseServerUserAccountsUploadOrder = { @@ -5647,215 +2302,44 @@ export type EnterpriseServerUserAccountsUploadOrder = { }; /** Properties by which Enterprise Server user accounts upload connections can be ordered. */ -export enum EnterpriseServerUserAccountsUploadOrderField { +export type EnterpriseServerUserAccountsUploadOrderField = /** Order user accounts uploads by creation time */ - CreatedAt = 'CREATED_AT' -} + | 'CREATED_AT'; /** Synchronization state of the Enterprise Server user accounts upload */ -export enum EnterpriseServerUserAccountsUploadSyncState { +export type EnterpriseServerUserAccountsUploadSyncState = /** The synchronization of the upload is pending. */ - Pending = 'PENDING', + | 'PENDING' /** The synchronization of the upload succeeded. */ - Success = 'SUCCESS', + | 'SUCCESS' /** The synchronization of the upload failed. */ - Failure = 'FAILURE' -} - -/** An account for a user who is an admin of an enterprise or a member of an enterprise through one or more organizations. */ -export type EnterpriseUserAccount = Actor & Node & { - __typename?: 'EnterpriseUserAccount'; - /** A URL pointing to the enterprise user account's public avatar. */ - avatarUrl: Scalars['URI']; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** The enterprise in which this user account exists. */ - enterprise: Enterprise; - id: Scalars['ID']; - /** An identifier for the enterprise user account, a login or email address */ - login: Scalars['String']; - /** The name of the enterprise user account */ - name?: Maybe; - /** A list of enterprise organizations this user is a member of. */ - organizations: EnterpriseOrganizationMembershipConnection; - /** The HTTP path for this user. */ - resourcePath: Scalars['URI']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** The HTTP URL for this user. */ - url: Scalars['URI']; - /** The user within the enterprise. */ - user?: Maybe; -}; + | 'FAILURE'; -/** An account for a user who is an admin of an enterprise or a member of an enterprise through one or more organizations. */ -export type EnterpriseUserAccountAvatarUrlArgs = { - size?: Maybe; -}; +/** The possible roles for enterprise membership. */ +export type EnterpriseUserAccountMembershipRole = + /** The user is a member of an organization in the enterprise. */ + | 'MEMBER' + /** The user is an owner of an organization in the enterprise. */ + | 'OWNER' + /** The user is not an owner of the enterprise, and not a member or owner of any organizations in the enterprise; only for EMU-enabled enterprises. */ + | 'UNAFFILIATED'; +/** The possible GitHub Enterprise deployments where this user can exist. */ +export type EnterpriseUserDeployment = + /** The user is part of a GitHub Enterprise Cloud deployment. */ + | 'CLOUD' + /** The user is part of a GitHub Enterprise Server deployment. */ + | 'SERVER'; -/** An account for a user who is an admin of an enterprise or a member of an enterprise through one or more organizations. */ -export type EnterpriseUserAccountOrganizationsArgs = { - query?: Maybe; - orderBy?: Maybe; - role?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** The connection type for EnterpriseUserAccount. */ -export type EnterpriseUserAccountConnection = { - __typename?: 'EnterpriseUserAccountConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; -/** An edge in a connection. */ -export type EnterpriseUserAccountEdge = { - __typename?: 'EnterpriseUserAccountEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; -/** The possible roles for enterprise membership. */ -export enum EnterpriseUserAccountMembershipRole { - /** The user is a member of the enterprise membership. */ - Member = 'MEMBER', - /** The user is an owner of the enterprise membership. */ - Owner = 'OWNER' -} -/** The possible GitHub Enterprise deployments where this user can exist. */ -export enum EnterpriseUserDeployment { - /** The user is part of a GitHub Enterprise Cloud deployment. */ - Cloud = 'CLOUD', - /** The user is part of a GitHub Enterprise Server deployment. */ - Server = 'SERVER' -} -/** An environment. */ -export type Environment = Node & { - __typename?: 'Environment'; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - id: Scalars['ID']; - /** The name of the environment */ - name: Scalars['String']; - /** The protection rules defined for this environment */ - protectionRules: DeploymentProtectionRuleConnection; -}; -/** An environment. */ -export type EnvironmentProtectionRulesArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** The connection type for Environment. */ -export type EnvironmentConnection = { - __typename?: 'EnvironmentConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type EnvironmentEdge = { - __typename?: 'EnvironmentEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** An external identity provisioned by SAML SSO or SCIM. */ -export type ExternalIdentity = Node & { - __typename?: 'ExternalIdentity'; - /** The GUID for this identity */ - guid: Scalars['String']; - id: Scalars['ID']; - /** Organization invitation for this SCIM-provisioned external identity */ - organizationInvitation?: Maybe; - /** SAML Identity attributes */ - samlIdentity?: Maybe; - /** SCIM Identity attributes */ - scimIdentity?: Maybe; - /** User linked to this external identity. Will be NULL if this identity has not been claimed by an organization member. */ - user?: Maybe; -}; - -/** The connection type for ExternalIdentity. */ -export type ExternalIdentityConnection = { - __typename?: 'ExternalIdentityConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type ExternalIdentityEdge = { - __typename?: 'ExternalIdentityEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** SAML attributes for the External Identity */ -export type ExternalIdentitySamlAttributes = { - __typename?: 'ExternalIdentitySamlAttributes'; - /** The emails associated with the SAML identity */ - emails?: Maybe>; - /** Family name of the SAML identity */ - familyName?: Maybe; - /** Given name of the SAML identity */ - givenName?: Maybe; - /** The groups linked to this identity in IDP */ - groups?: Maybe>; - /** The NameID of the SAML identity */ - nameId?: Maybe; - /** The userName of the SAML identity */ - username?: Maybe; -}; - -/** SCIM attributes for the External Identity */ -export type ExternalIdentityScimAttributes = { - __typename?: 'ExternalIdentityScimAttributes'; - /** The emails associated with the SCIM identity */ - emails?: Maybe>; - /** Family name of the SCIM identity */ - familyName?: Maybe; - /** Given name of the SCIM identity */ - givenName?: Maybe; - /** The groups linked to this identity in IDP */ - groups?: Maybe>; - /** The userName of the SCIM identity */ - username?: Maybe; -}; /** A command to add a file at the given path with the given contents as part of a commit. Any existing file at that that path will be replaced. */ export type FileAddition = { @@ -5994,14 +2478,22 @@ export type FileDeletion = { }; /** The possible viewed states of a file . */ -export enum FileViewedState { +export type FileViewedState = /** The file has new changes since last viewed. */ - Dismissed = 'DISMISSED', + | 'DISMISSED' /** The file has been marked as viewed. */ - Viewed = 'VIEWED', + | 'VIEWED' /** The file has not been marked as viewed. */ - Unviewed = 'UNVIEWED' -} + | 'UNVIEWED'; + +/** Autogenerated input type of FollowOrganization */ +export type FollowOrganizationInput = { + /** ID of the organization to follow. */ + organizationId: Scalars['ID']; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; +}; + /** Autogenerated input type of FollowUser */ export type FollowUserInput = { @@ -6011,288 +2503,42 @@ export type FollowUserInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of FollowUser */ -export type FollowUserPayload = { - __typename?: 'FollowUserPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The user that was followed. */ - user?: Maybe; -}; - -/** The connection type for User. */ -export type FollowerConnection = { - __typename?: 'FollowerConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** The connection type for User. */ -export type FollowingConnection = { - __typename?: 'FollowingConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** A funding platform link for a repository. */ -export type FundingLink = { - __typename?: 'FundingLink'; - /** The funding platform this link is for. */ - platform: FundingPlatform; - /** The configured URL for this funding link. */ - url: Scalars['URI']; -}; + + + /** The possible funding platforms for repository funding links. */ -export enum FundingPlatform { +export type FundingPlatform = /** GitHub funding platform. */ - Github = 'GITHUB', + | 'GITHUB' /** Patreon funding platform. */ - Patreon = 'PATREON', + | 'PATREON' /** Open Collective funding platform. */ - OpenCollective = 'OPEN_COLLECTIVE', + | 'OPEN_COLLECTIVE' /** Ko-fi funding platform. */ - KoFi = 'KO_FI', + | 'KO_FI' /** Tidelift funding platform. */ - Tidelift = 'TIDELIFT', + | 'TIDELIFT' /** Community Bridge funding platform. */ - CommunityBridge = 'COMMUNITY_BRIDGE', + | 'COMMUNITY_BRIDGE' /** Liberapay funding platform. */ - Liberapay = 'LIBERAPAY', + | 'LIBERAPAY' /** IssueHunt funding platform. */ - Issuehunt = 'ISSUEHUNT', + | 'ISSUEHUNT' /** Otechie funding platform. */ - Otechie = 'OTECHIE', + | 'OTECHIE' + /** LFX Crowdfunding funding platform. */ + | 'LFX_CROWDFUNDING' /** Custom funding platform. */ - Custom = 'CUSTOM' -} + | 'CUSTOM'; -/** A generic hovercard context with a message and icon */ -export type GenericHovercardContext = HovercardContext & { - __typename?: 'GenericHovercardContext'; - /** A string describing this context */ - message: Scalars['String']; - /** An octicon to accompany this context */ - octicon: Scalars['String']; -}; - -/** A Gist. */ -export type Gist = Node & Starrable & UniformResourceLocatable & { - __typename?: 'Gist'; - /** A list of comments associated with the gist */ - comments: GistCommentConnection; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** The gist description. */ - description?: Maybe; - /** The files in this gist. */ - files?: Maybe>>; - /** A list of forks associated with the gist */ - forks: GistConnection; - id: Scalars['ID']; - /** Identifies if the gist is a fork. */ - isFork: Scalars['Boolean']; - /** Whether the gist is public or not. */ - isPublic: Scalars['Boolean']; - /** The gist name. */ - name: Scalars['String']; - /** The gist owner. */ - owner?: Maybe; - /** Identifies when the gist was last pushed to. */ - pushedAt?: Maybe; - /** The HTML path to this resource. */ - resourcePath: Scalars['URI']; - /** Returns a count of how many stargazers there are on this object */ - stargazerCount: Scalars['Int']; - /** A list of users who have starred this starrable. */ - stargazers: StargazerConnection; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** The HTTP URL for this Gist. */ - url: Scalars['URI']; - /** Returns a boolean indicating whether the viewing user has starred this starrable. */ - viewerHasStarred: Scalars['Boolean']; -}; - - -/** A Gist. */ -export type GistCommentsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** A Gist. */ -export type GistFilesArgs = { - limit?: Maybe; - oid?: Maybe; -}; -/** A Gist. */ -export type GistForksArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - orderBy?: Maybe; -}; -/** A Gist. */ -export type GistStargazersArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - orderBy?: Maybe; -}; -/** Represents a comment on an Gist. */ -export type GistComment = Node & Comment & Deletable & Minimizable & Updatable & UpdatableComment & { - __typename?: 'GistComment'; - /** The actor who authored the comment. */ - author?: Maybe; - /** Author's association with the gist. */ - authorAssociation: CommentAuthorAssociation; - /** Identifies the comment body. */ - body: Scalars['String']; - /** The body rendered to HTML. */ - bodyHTML: Scalars['HTML']; - /** The body rendered to text. */ - bodyText: Scalars['String']; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Check if this comment was created via an email reply. */ - createdViaEmail: Scalars['Boolean']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The actor who edited the comment. */ - editor?: Maybe; - /** The associated gist. */ - gist: Gist; - id: Scalars['ID']; - /** Check if this comment was edited and includes an edit with the creation data */ - includesCreatedEdit: Scalars['Boolean']; - /** Returns whether or not a comment has been minimized. */ - isMinimized: Scalars['Boolean']; - /** The moment the editor made the last edit */ - lastEditedAt?: Maybe; - /** Returns why the comment was minimized. */ - minimizedReason?: Maybe; - /** Identifies when the comment was published at. */ - publishedAt?: Maybe; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** A list of edits to this content. */ - userContentEdits?: Maybe; - /** Check if the current viewer can delete this object. */ - viewerCanDelete: Scalars['Boolean']; - /** Check if the current viewer can minimize this object. */ - viewerCanMinimize: Scalars['Boolean']; - /** Check if the current viewer can update this object. */ - viewerCanUpdate: Scalars['Boolean']; - /** Reasons why the current viewer can not update this comment. */ - viewerCannotUpdateReasons: Array; - /** Did the viewer author this comment. */ - viewerDidAuthor: Scalars['Boolean']; -}; - - -/** Represents a comment on an Gist. */ -export type GistCommentUserContentEditsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - -/** The connection type for GistComment. */ -export type GistCommentConnection = { - __typename?: 'GistCommentConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type GistCommentEdge = { - __typename?: 'GistCommentEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** The connection type for Gist. */ -export type GistConnection = { - __typename?: 'GistConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type GistEdge = { - __typename?: 'GistEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** A file in a gist. */ -export type GistFile = { - __typename?: 'GistFile'; - /** The file name encoded to remove characters that are invalid in URL paths. */ - encodedName?: Maybe; - /** The gist file encoding. */ - encoding?: Maybe; - /** The file extension from the file name. */ - extension?: Maybe; - /** Indicates if this file is an image. */ - isImage: Scalars['Boolean']; - /** Whether the file's contents were truncated. */ - isTruncated: Scalars['Boolean']; - /** The programming language this file is written in. */ - language?: Maybe; - /** The gist file name. */ - name?: Maybe; - /** The gist file size in bytes. */ - size?: Maybe; - /** UTF8 text data or null if the file is binary */ - text?: Maybe; -}; - - -/** A file in a gist. */ -export type GistFileTextArgs = { - truncate?: Maybe; -}; /** Ordering options for gist connections */ export type GistOrder = { @@ -6303,251 +2549,108 @@ export type GistOrder = { }; /** Properties by which gist connections can be ordered. */ -export enum GistOrderField { +export type GistOrderField = /** Order gists by creation time */ - CreatedAt = 'CREATED_AT', + | 'CREATED_AT' /** Order gists by update time */ - UpdatedAt = 'UPDATED_AT', + | 'UPDATED_AT' /** Order gists by push time */ - PushedAt = 'PUSHED_AT' -} + | 'PUSHED_AT'; /** The privacy of a Gist */ -export enum GistPrivacy { +export type GistPrivacy = /** Public */ - Public = 'PUBLIC', + | 'PUBLIC' /** Secret */ - Secret = 'SECRET', + | 'SECRET' /** Gists that are public and secret */ - All = 'ALL' -} + | 'ALL'; + + + + -/** Represents an actor in a Git commit (ie. an author or committer). */ -export type GitActor = { - __typename?: 'GitActor'; - /** A URL pointing to the author's public avatar. */ - avatarUrl: Scalars['URI']; - /** The timestamp of the Git action (authoring or committing). */ - date?: Maybe; - /** The email in the Git commit. */ - email?: Maybe; - /** The name in the Git commit. */ - name?: Maybe; - /** The GitHub user corresponding to the email field. Null if no such user exists. */ - user?: Maybe; -}; - - -/** Represents an actor in a Git commit (ie. an author or committer). */ -export type GitActorAvatarUrlArgs = { - size?: Maybe; -}; - -/** The connection type for GitActor. */ -export type GitActorConnection = { - __typename?: 'GitActorConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type GitActorEdge = { - __typename?: 'GitActorEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** Represents information about the GitHub instance. */ -export type GitHubMetadata = { - __typename?: 'GitHubMetadata'; - /** Returns a String that's a SHA of `github-services` */ - gitHubServicesSha: Scalars['GitObjectID']; - /** IP addresses that users connect to for git operations */ - gitIpAddresses?: Maybe>; - /** IP addresses that service hooks are sent from */ - hookIpAddresses?: Maybe>; - /** IP addresses that the importer connects from */ - importerIpAddresses?: Maybe>; - /** Whether or not users are verified */ - isPasswordAuthenticationVerifiable: Scalars['Boolean']; - /** IP addresses for GitHub Pages' A records */ - pagesIpAddresses?: Maybe>; -}; - -/** Represents a Git object. */ -export type GitObject = { - /** An abbreviated version of the Git object ID */ - abbreviatedOid: Scalars['String']; - /** The HTTP path for this Git object */ - commitResourcePath: Scalars['URI']; - /** The HTTP URL for this Git object */ - commitUrl: Scalars['URI']; - id: Scalars['ID']; - /** The Git object ID */ - oid: Scalars['GitObjectID']; - /** The Repository the Git object belongs to */ - repository: Repository; -}; -/** Information about a signature (GPG or S/MIME) on a Commit or Tag. */ -export type GitSignature = { - /** Email used to sign this object. */ - email: Scalars['String']; - /** True if the signature is valid and verified by GitHub. */ - isValid: Scalars['Boolean']; - /** Payload for GPG signing object. Raw ODB object without the signature header. */ - payload: Scalars['String']; - /** ASCII-armored signature header from object. */ - signature: Scalars['String']; - /** GitHub user corresponding to the email signing this commit. */ - 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; - /** True if the signature was made with GitHub's signing key. */ - wasSignedByGitHub: Scalars['Boolean']; -}; /** The state of a Git signature. */ -export enum GitSignatureState { +export type GitSignatureState = /** Valid signature and verified by GitHub */ - Valid = 'VALID', + | 'VALID' /** Invalid signature */ - Invalid = 'INVALID', + | 'INVALID' /** Malformed signature */ - MalformedSig = 'MALFORMED_SIG', + | 'MALFORMED_SIG' /** Key used for signing not known to GitHub */ - UnknownKey = 'UNKNOWN_KEY', + | 'UNKNOWN_KEY' /** Invalid email used for signing */ - BadEmail = 'BAD_EMAIL', + | 'BAD_EMAIL' /** Email used for signing unverified on GitHub */ - UnverifiedEmail = 'UNVERIFIED_EMAIL', + | 'UNVERIFIED_EMAIL' /** Email used for signing not known to GitHub */ - NoUser = 'NO_USER', + | 'NO_USER' /** Unknown signature type */ - UnknownSigType = 'UNKNOWN_SIG_TYPE', + | 'UNKNOWN_SIG_TYPE' /** Unsigned */ - Unsigned = 'UNSIGNED', + | 'UNSIGNED' /** Internal error - the GPG verification service is unavailable at the moment */ - GpgverifyUnavailable = 'GPGVERIFY_UNAVAILABLE', + | 'GPGVERIFY_UNAVAILABLE' /** Internal error - the GPG verification service misbehaved */ - GpgverifyError = 'GPGVERIFY_ERROR', + | 'GPGVERIFY_ERROR' /** The usage flags for the key that signed this don't allow signing */ - NotSigningKey = 'NOT_SIGNING_KEY', + | 'NOT_SIGNING_KEY' /** Signing key expired */ - ExpiredKey = 'EXPIRED_KEY', + | 'EXPIRED_KEY' /** Valid signature, pending certificate revocation checking */ - OcspPending = 'OCSP_PENDING', + | 'OCSP_PENDING' /** Valid signature, though certificate revocation check failed */ - OcspError = 'OCSP_ERROR', + | 'OCSP_ERROR' /** The signing certificate or its chain could not be verified */ - BadCert = 'BAD_CERT', + | 'BAD_CERT' /** One or more certificates in chain has been revoked */ - OcspRevoked = 'OCSP_REVOKED' -} + | 'OCSP_REVOKED'; -/** Represents a GPG signature on a Commit or Tag. */ -export type GpgSignature = GitSignature & { - __typename?: 'GpgSignature'; - /** Email used to sign this object. */ - email: Scalars['String']; - /** True if the signature is valid and verified by GitHub. */ - isValid: Scalars['Boolean']; - /** Hex-encoded ID of the key that signed this object. */ - keyId?: Maybe; - /** Payload for GPG signing object. Raw ODB object without the signature header. */ - payload: Scalars['String']; - /** ASCII-armored signature header from object. */ - signature: Scalars['String']; - /** GitHub user corresponding to the email signing this commit. */ - 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; - /** True if the signature was made with GitHub's signing key. */ - wasSignedByGitHub: Scalars['Boolean']; -}; - - -/** Represents a 'head_ref_deleted' event on a given pull request. */ -export type HeadRefDeletedEvent = Node & { - __typename?: 'HeadRefDeletedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Identifies the Ref associated with the `head_ref_deleted` event. */ - headRef?: Maybe; - /** Identifies the name of the Ref associated with the `head_ref_deleted` event. */ - headRefName: Scalars['String']; - id: Scalars['ID']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; -}; - -/** Represents a 'head_ref_force_pushed' event on a given pull request. */ -export type HeadRefForcePushedEvent = Node & { - __typename?: 'HeadRefForcePushedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the after commit SHA for the 'head_ref_force_pushed' event. */ - afterCommit?: Maybe; - /** Identifies the before commit SHA for the 'head_ref_force_pushed' event. */ - beforeCommit?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; - /** Identifies the fully qualified ref name for the 'head_ref_force_pushed' event. */ - ref?: Maybe; -}; - -/** Represents a 'head_ref_restored' event on a given pull request. */ -export type HeadRefRestoredEvent = Node & { - __typename?: 'HeadRefRestoredEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; -}; -/** Detail needed to display a hovercard for a user */ -export type Hovercard = { - __typename?: 'Hovercard'; - /** Each of the contexts for this hovercard */ - contexts: Array; +/** Autogenerated input type of GrantEnterpriseOrganizationsMigratorRole */ +export type GrantEnterpriseOrganizationsMigratorRoleInput = { + /** The ID of the enterprise to which all organizations managed by it will be granted the migrator role. */ + enterpriseId: Scalars['ID']; + /** The login of the user to grant the migrator role */ + login: Scalars['String']; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; }; -/** An individual line of a hovercard */ -export type HovercardContext = { - /** A string describing this context */ - message: Scalars['String']; - /** An octicon to accompany this context */ - octicon: Scalars['String']; + +/** Autogenerated input type of GrantMigratorRole */ +export type GrantMigratorRoleInput = { + /** The ID of the organization that the user/team belongs to. */ + organizationId: Scalars['ID']; + /** The user login or Team slug to grant the migrator role. */ + actor: Scalars['String']; + /** Specifies the type of the actor, can be either USER or TEAM. */ + actorType: ActorType; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; }; + + + + + + + /** The possible states in which authentication can be configured with an identity provider. */ -export enum IdentityProviderConfigurationState { +export type IdentityProviderConfigurationState = /** Authentication with an identity provider is configured and enforced. */ - Enforced = 'ENFORCED', + | 'ENFORCED' /** Authentication with an identity provider is configured but not enforced. */ - Configured = 'CONFIGURED', + | 'CONFIGURED' /** Authentication with an identity provider is not configured. */ - Unconfigured = 'UNCONFIGURED' -} + | 'UNCONFIGURED'; /** Autogenerated input type of InviteEnterpriseAdmin */ export type InviteEnterpriseAdminInput = { @@ -6563,62 +2666,16 @@ export type InviteEnterpriseAdminInput = { clientMutationId?: Maybe; }; -/** Autogenerated return type of InviteEnterpriseAdmin */ -export type InviteEnterpriseAdminPayload = { - __typename?: 'InviteEnterpriseAdminPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The created enterprise administrator invitation. */ - invitation?: Maybe; -}; /** The possible values for the IP allow list enabled setting. */ -export enum IpAllowListEnabledSettingValue { +export type IpAllowListEnabledSettingValue = /** The setting is enabled for the owner. */ - Enabled = 'ENABLED', + | 'ENABLED' /** The setting is disabled for the owner. */ - Disabled = 'DISABLED' -} + | 'DISABLED'; + + -/** An IP address or range of addresses that is allowed to access an owner's resources. */ -export type IpAllowListEntry = Node & { - __typename?: 'IpAllowListEntry'; - /** A single IP address or range of IP addresses in CIDR notation. */ - allowListValue: Scalars['String']; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - /** Whether the entry is currently active. */ - isActive: Scalars['Boolean']; - /** The name of the IP allow list entry. */ - name?: Maybe; - /** The owner of the IP allow list entry. */ - owner: IpAllowListOwner; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; -}; - -/** The connection type for IpAllowListEntry. */ -export type IpAllowListEntryConnection = { - __typename?: 'IpAllowListEntryConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An edge in a connection. */ -export type IpAllowListEntryEdge = { - __typename?: 'IpAllowListEntryEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** Ordering options for IP allow list entry connections. */ export type IpAllowListEntryOrder = { @@ -6629,329 +2686,30 @@ export type IpAllowListEntryOrder = { }; /** Properties by which IP allow list entry connections can be ordered. */ -export enum IpAllowListEntryOrderField { +export type IpAllowListEntryOrderField = /** Order IP allow list entries by creation time. */ - CreatedAt = 'CREATED_AT', + | 'CREATED_AT' /** Order IP allow list entries by the allow list value. */ - AllowListValue = 'ALLOW_LIST_VALUE' -} + | 'ALLOW_LIST_VALUE'; /** The possible values for the IP allow list configuration for installed GitHub Apps setting. */ -export enum IpAllowListForInstalledAppsEnabledSettingValue { +export type IpAllowListForInstalledAppsEnabledSettingValue = /** The setting is enabled for the owner. */ - Enabled = 'ENABLED', + | 'ENABLED' /** The setting is disabled for the owner. */ - Disabled = 'DISABLED' -} - -/** Types that can own an IP allow list. */ -export type IpAllowListOwner = App | Enterprise | Organization; - -/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ -export type Issue = Node & Assignable & Closable & Comment & Updatable & UpdatableComment & Labelable & Lockable & Reactable & RepositoryNode & Subscribable & UniformResourceLocatable & { - __typename?: 'Issue'; - /** Reason that the conversation was locked. */ - activeLockReason?: Maybe; - /** A list of Users assigned to this object. */ - assignees: UserConnection; - /** The actor who authored the comment. */ - author?: Maybe; - /** Author's association with the subject of the comment. */ - authorAssociation: CommentAuthorAssociation; - /** Identifies the body of the issue. */ - body: Scalars['String']; - /** The body rendered to HTML. */ - bodyHTML: Scalars['HTML']; - /** The http path for this issue body */ - bodyResourcePath: Scalars['URI']; - /** Identifies the body of the issue rendered to text. */ - bodyText: Scalars['String']; - /** The http URL for this issue body */ - bodyUrl: Scalars['URI']; - /** `true` if the object is closed (definition of closed may depend on type) */ - closed: Scalars['Boolean']; - /** Identifies the date and time when the object was closed. */ - closedAt?: Maybe; - /** A list of comments associated with the Issue. */ - comments: IssueCommentConnection; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Check if this comment was created via an email reply. */ - createdViaEmail: Scalars['Boolean']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The actor who edited the comment. */ - editor?: Maybe; - /** The hovercard information for this issue */ - hovercard: Hovercard; - id: Scalars['ID']; - /** Check if this comment was edited and includes an edit with the creation data */ - includesCreatedEdit: Scalars['Boolean']; - /** Indicates whether or not this issue is currently pinned to the repository issues list */ - isPinned?: Maybe; - /** Is this issue read by the viewer */ - isReadByViewer?: Maybe; - /** A list of labels associated with the object. */ - labels?: Maybe; - /** The moment the editor made the last edit */ - lastEditedAt?: Maybe; - /** `true` if the object is locked */ - locked: Scalars['Boolean']; - /** Identifies the milestone associated with the issue. */ - milestone?: Maybe; - /** Identifies the issue number. */ - number: Scalars['Int']; - /** A list of Users that are participating in the Issue conversation. */ - participants: UserConnection; - /** List of project cards associated with this issue. */ - projectCards: ProjectCardConnection; - /** Identifies when the comment was published at. */ - publishedAt?: Maybe; - /** A list of reactions grouped by content left on the subject. */ - reactionGroups?: Maybe>; - /** A list of Reactions left on the Issue. */ - reactions: ReactionConnection; - /** The repository associated with this node. */ - repository: Repository; - /** The HTTP path for this issue */ - resourcePath: Scalars['URI']; - /** Identifies the state of the issue. */ - state: IssueState; - /** - * 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. - */ - timeline: IssueTimelineConnection; - /** A list of events, comments, commits, etc. associated with the issue. */ - timelineItems: IssueTimelineItemsConnection; - /** Identifies the issue title. */ - title: Scalars['String']; - /** Identifies the issue title rendered to HTML. */ - titleHTML: Scalars['String']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** The HTTP URL for this issue */ - url: Scalars['URI']; - /** A list of edits to this content. */ - userContentEdits?: Maybe; - /** Can user react to this subject */ - viewerCanReact: Scalars['Boolean']; - /** Check if the viewer is able to change their subscription status for the repository. */ - viewerCanSubscribe: Scalars['Boolean']; - /** Check if the current viewer can update this object. */ - viewerCanUpdate: Scalars['Boolean']; - /** Reasons why the current viewer can not update this comment. */ - viewerCannotUpdateReasons: Array; - /** Did the viewer author this comment. */ - viewerDidAuthor: Scalars['Boolean']; - /** Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. */ - viewerSubscription?: Maybe; -}; - - -/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ -export type IssueAssigneesArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ -export type IssueCommentsArgs = { - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ -export type IssueHovercardArgs = { - includeNotificationContexts?: Maybe; -}; - - -/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ -export type IssueLabelsArgs = { - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ -export type IssueParticipantsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; + | 'DISABLED'; -/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ -export type IssueProjectCardsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - archivedStates?: Maybe>>; -}; - - -/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ -export type IssueReactionsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - content?: Maybe; - orderBy?: Maybe; -}; - - -/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ -export type IssueTimelineArgs = { - since?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ -export type IssueTimelineItemsArgs = { - since?: Maybe; - skip?: Maybe; - itemTypes?: Maybe>; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - - -/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ -export type IssueUserContentEditsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; - -/** Represents a comment on an Issue. */ -export type IssueComment = Node & Comment & Deletable & Minimizable & Updatable & UpdatableComment & Reactable & RepositoryNode & { - __typename?: 'IssueComment'; - /** The actor who authored the comment. */ - author?: Maybe; - /** Author's association with the subject of the comment. */ - authorAssociation: CommentAuthorAssociation; - /** The body as Markdown. */ - body: Scalars['String']; - /** The body rendered to HTML. */ - bodyHTML: Scalars['HTML']; - /** The body rendered to text. */ - bodyText: Scalars['String']; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']; - /** Check if this comment was created via an email reply. */ - createdViaEmail: Scalars['Boolean']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The actor who edited the comment. */ - editor?: Maybe; - id: Scalars['ID']; - /** Check if this comment was edited and includes an edit with the creation data */ - includesCreatedEdit: Scalars['Boolean']; - /** Returns whether or not a comment has been minimized. */ - isMinimized: Scalars['Boolean']; - /** Identifies the issue associated with the comment. */ - issue: Issue; - /** The moment the editor made the last edit */ - lastEditedAt?: Maybe; - /** Returns why the comment was minimized. */ - minimizedReason?: Maybe; - /** Identifies when the comment was published at. */ - publishedAt?: Maybe; - /** - * Returns the pull request associated with the comment, if this comment was made on a - * pull request. - */ - pullRequest?: Maybe; - /** A list of reactions grouped by content left on the subject. */ - reactionGroups?: Maybe>; - /** A list of Reactions left on the Issue. */ - reactions: ReactionConnection; - /** The repository associated with this node. */ - repository: Repository; - /** The HTTP path for this issue comment */ - resourcePath: Scalars['URI']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']; - /** The HTTP URL for this issue comment */ - url: Scalars['URI']; - /** A list of edits to this content. */ - userContentEdits?: Maybe; - /** Check if the current viewer can delete this object. */ - viewerCanDelete: Scalars['Boolean']; - /** Check if the current viewer can minimize this object. */ - viewerCanMinimize: Scalars['Boolean']; - /** Can user react to this subject */ - viewerCanReact: Scalars['Boolean']; - /** Check if the current viewer can update this object. */ - viewerCanUpdate: Scalars['Boolean']; - /** Reasons why the current viewer can not update this comment. */ - viewerCannotUpdateReasons: Array; - /** Did the viewer author this comment. */ - viewerDidAuthor: Scalars['Boolean']; -}; - - -/** Represents a comment on an Issue. */ -export type IssueCommentReactionsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - content?: Maybe; - orderBy?: Maybe; -}; +/** The possible state reasons of a closed issue. */ +export type IssueClosedStateReason = + /** An issue that has been closed as completed */ + | 'COMPLETED' + /** An issue that has been closed as not planned */ + | 'NOT_PLANNED'; -/** Represents a comment on an Issue. */ -export type IssueCommentUserContentEditsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** The connection type for IssueComment. */ -export type IssueCommentConnection = { - __typename?: 'IssueCommentConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; -/** An edge in a connection. */ -export type IssueCommentEdge = { - __typename?: 'IssueCommentEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** Ways in which lists of issue comments can be ordered upon return. */ export type IssueCommentOrder = { @@ -6962,51 +2720,12 @@ export type IssueCommentOrder = { }; /** Properties by which issue comment connections can be ordered. */ -export enum IssueCommentOrderField { +export type IssueCommentOrderField = /** Order issue comments by update time */ - UpdatedAt = 'UPDATED_AT' -} - -/** The connection type for Issue. */ -export type IssueConnection = { - __typename?: 'IssueConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** This aggregates issues opened by a user within one repository. */ -export type IssueContributionsByRepository = { - __typename?: 'IssueContributionsByRepository'; - /** The issue contributions. */ - contributions: CreatedIssueContributionConnection; - /** The repository in which the issues were opened. */ - repository: Repository; -}; + | 'UPDATED_AT'; -/** This aggregates issues opened by a user within one repository. */ -export type IssueContributionsByRepositoryContributionsArgs = { - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; - orderBy?: Maybe; -}; -/** An edge in a connection. */ -export type IssueEdge = { - __typename?: 'IssueEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** Ways in which to filter lists of issues. */ export type IssueFilters = { @@ -7018,8 +2737,10 @@ export type IssueFilters = { labels?: Maybe>; /** List issues where the given name is mentioned in the issue. */ mentioned?: Maybe; - /** List issues by given milestone argument. If an string representation of an integer is passed, it should refer to a milestone by its number field. Pass in `null` for issues with no milestone, and `*` for issues that are assigned to any milestone. */ + /** List issues by given milestone argument. If an string representation of an integer is passed, it should refer to a milestone by its database ID. Pass in `null` for issues with no milestone, and `*` for issues that are assigned to any milestone. */ milestone?: Maybe; + /** List issues by given milestone argument. If an string representation of an integer is passed, it should refer to a milestone by its number field. Pass in `null` for issues with no milestone, and `*` for issues that are assigned to any milestone. */ + milestoneNumber?: Maybe; /** List issues that have been updated at or after the given date. */ since?: Maybe; /** List issues filtered by the list of states given. */ @@ -7028,8 +2749,6 @@ export type IssueFilters = { viewerSubscribed?: Maybe; }; -/** Used for return value of Repository.issueOrPullRequest. */ -export type IssueOrPullRequest = Issue | PullRequest; /** Ways in which lists of issues can be ordered upon return. */ export type IssueOrder = { @@ -7040,251 +2759,105 @@ export type IssueOrder = { }; /** Properties by which issue connections can be ordered. */ -export enum IssueOrderField { +export type IssueOrderField = /** Order issues by creation time */ - CreatedAt = 'CREATED_AT', + | 'CREATED_AT' /** Order issues by update time */ - UpdatedAt = 'UPDATED_AT', + | 'UPDATED_AT' /** Order issues by comment count */ - Comments = 'COMMENTS' -} + | 'COMMENTS'; /** The possible states of an issue. */ -export enum IssueState { +export type IssueState = /** An issue that is still open */ - Open = 'OPEN', + | 'OPEN' /** An issue that has been closed */ - Closed = 'CLOSED' -} + | 'CLOSED'; + +/** The possible state reasons of an issue. */ +export type IssueStateReason = + /** An issue that has been reopened */ + | 'REOPENED' + /** An issue that has been closed as not planned */ + | 'NOT_PLANNED' + /** An issue that has been closed as completed */ + | 'COMPLETED'; + + + + + -/** A repository issue template. */ -export type IssueTemplate = { - __typename?: 'IssueTemplate'; - /** The template purpose. */ - about?: Maybe; - /** The suggested issue body. */ - body?: Maybe; - /** The template name. */ - name: Scalars['String']; - /** The suggested issue title. */ - title?: Maybe; -}; -/** The connection type for IssueTimelineItem. */ -export type IssueTimelineConnection = { - __typename?: 'IssueTimelineConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; - -/** An item in an issue timeline */ -export type IssueTimelineItem = AssignedEvent | ClosedEvent | Commit | CrossReferencedEvent | DemilestonedEvent | IssueComment | LabeledEvent | LockedEvent | MilestonedEvent | ReferencedEvent | RenamedTitleEvent | ReopenedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnsubscribedEvent | UserBlockedEvent; - -/** An edge in a connection. */ -export type IssueTimelineItemEdge = { - __typename?: 'IssueTimelineItemEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** An item in an issue timeline */ -export type IssueTimelineItems = AddedToProjectEvent | AssignedEvent | ClosedEvent | CommentDeletedEvent | ConnectedEvent | ConvertedNoteToIssueEvent | CrossReferencedEvent | DemilestonedEvent | DisconnectedEvent | IssueComment | LabeledEvent | LockedEvent | MarkedAsDuplicateEvent | MentionedEvent | MilestonedEvent | MovedColumnsInProjectEvent | PinnedEvent | ReferencedEvent | RemovedFromProjectEvent | RenamedTitleEvent | ReopenedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnmarkedAsDuplicateEvent | UnpinnedEvent | UnsubscribedEvent | UserBlockedEvent; - -/** The connection type for IssueTimelineItems. */ -export type IssueTimelineItemsConnection = { - __typename?: 'IssueTimelineItemsConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** Identifies the count of items after applying `before` and `after` filters. */ - filteredCount: Scalars['Int']; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Identifies the count of items after applying `before`/`after` filters and `first`/`last`/`skip` slicing. */ - pageCount: Scalars['Int']; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; - /** Identifies the date and time when the timeline was last updated. */ - updatedAt: Scalars['DateTime']; -}; - -/** An edge in a connection. */ -export type IssueTimelineItemsEdge = { - __typename?: 'IssueTimelineItemsEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; /** The possible item types found in a timeline. */ -export enum IssueTimelineItemsItemType { +export type IssueTimelineItemsItemType = /** Represents a comment on an Issue. */ - IssueComment = 'ISSUE_COMMENT', + | 'ISSUE_COMMENT' /** Represents a mention made by one issue or pull request to another. */ - CrossReferencedEvent = 'CROSS_REFERENCED_EVENT', + | 'CROSS_REFERENCED_EVENT' /** Represents a 'added_to_project' event on a given issue or pull request. */ - AddedToProjectEvent = 'ADDED_TO_PROJECT_EVENT', + | 'ADDED_TO_PROJECT_EVENT' /** Represents an 'assigned' event on any assignable object. */ - AssignedEvent = 'ASSIGNED_EVENT', + | 'ASSIGNED_EVENT' /** Represents a 'closed' event on any `Closable`. */ - ClosedEvent = 'CLOSED_EVENT', + | 'CLOSED_EVENT' /** Represents a 'comment_deleted' event on a given issue or pull request. */ - CommentDeletedEvent = 'COMMENT_DELETED_EVENT', + | 'COMMENT_DELETED_EVENT' /** Represents a 'connected' event on a given issue or pull request. */ - ConnectedEvent = 'CONNECTED_EVENT', + | 'CONNECTED_EVENT' /** Represents a 'converted_note_to_issue' event on a given issue or pull request. */ - ConvertedNoteToIssueEvent = 'CONVERTED_NOTE_TO_ISSUE_EVENT', + | 'CONVERTED_NOTE_TO_ISSUE_EVENT' + /** Represents a 'converted_to_discussion' event on a given issue. */ + | 'CONVERTED_TO_DISCUSSION_EVENT' /** Represents a 'demilestoned' event on a given issue or pull request. */ - DemilestonedEvent = 'DEMILESTONED_EVENT', + | 'DEMILESTONED_EVENT' /** Represents a 'disconnected' event on a given issue or pull request. */ - DisconnectedEvent = 'DISCONNECTED_EVENT', + | 'DISCONNECTED_EVENT' /** Represents a 'labeled' event on a given issue or pull request. */ - LabeledEvent = 'LABELED_EVENT', + | 'LABELED_EVENT' /** Represents a 'locked' event on a given issue or pull request. */ - LockedEvent = 'LOCKED_EVENT', + | 'LOCKED_EVENT' /** Represents a 'marked_as_duplicate' event on a given issue or pull request. */ - MarkedAsDuplicateEvent = 'MARKED_AS_DUPLICATE_EVENT', + | 'MARKED_AS_DUPLICATE_EVENT' /** Represents a 'mentioned' event on a given issue or pull request. */ - MentionedEvent = 'MENTIONED_EVENT', + | 'MENTIONED_EVENT' /** Represents a 'milestoned' event on a given issue or pull request. */ - MilestonedEvent = 'MILESTONED_EVENT', + | 'MILESTONED_EVENT' /** Represents a 'moved_columns_in_project' event on a given issue or pull request. */ - MovedColumnsInProjectEvent = 'MOVED_COLUMNS_IN_PROJECT_EVENT', + | 'MOVED_COLUMNS_IN_PROJECT_EVENT' /** Represents a 'pinned' event on a given issue or pull request. */ - PinnedEvent = 'PINNED_EVENT', + | 'PINNED_EVENT' /** Represents a 'referenced' event on a given `ReferencedSubject`. */ - ReferencedEvent = 'REFERENCED_EVENT', + | 'REFERENCED_EVENT' /** Represents a 'removed_from_project' event on a given issue or pull request. */ - RemovedFromProjectEvent = 'REMOVED_FROM_PROJECT_EVENT', + | 'REMOVED_FROM_PROJECT_EVENT' /** Represents a 'renamed' event on a given issue or pull request */ - RenamedTitleEvent = 'RENAMED_TITLE_EVENT', + | 'RENAMED_TITLE_EVENT' /** Represents a 'reopened' event on any `Closable`. */ - ReopenedEvent = 'REOPENED_EVENT', + | 'REOPENED_EVENT' /** Represents a 'subscribed' event on a given `Subscribable`. */ - SubscribedEvent = 'SUBSCRIBED_EVENT', + | 'SUBSCRIBED_EVENT' /** Represents a 'transferred' event on a given issue or pull request. */ - TransferredEvent = 'TRANSFERRED_EVENT', + | 'TRANSFERRED_EVENT' /** Represents an 'unassigned' event on any assignable object. */ - UnassignedEvent = 'UNASSIGNED_EVENT', + | 'UNASSIGNED_EVENT' /** Represents an 'unlabeled' event on a given issue or pull request. */ - UnlabeledEvent = 'UNLABELED_EVENT', + | 'UNLABELED_EVENT' /** Represents an 'unlocked' event on a given issue or pull request. */ - UnlockedEvent = 'UNLOCKED_EVENT', + | 'UNLOCKED_EVENT' /** Represents a 'user_blocked' event on a given user. */ - UserBlockedEvent = 'USER_BLOCKED_EVENT', + | 'USER_BLOCKED_EVENT' /** Represents an 'unmarked_as_duplicate' event on a given issue or pull request. */ - UnmarkedAsDuplicateEvent = 'UNMARKED_AS_DUPLICATE_EVENT', + | 'UNMARKED_AS_DUPLICATE_EVENT' /** Represents an 'unpinned' event on a given issue or pull request. */ - UnpinnedEvent = 'UNPINNED_EVENT', + | 'UNPINNED_EVENT' /** Represents an 'unsubscribed' event on a given `Subscribable`. */ - UnsubscribedEvent = 'UNSUBSCRIBED_EVENT' -} - -/** Represents a user signing up for a GitHub account. */ -export type JoinedGitHubContribution = Contribution & { - __typename?: 'JoinedGitHubContribution'; - /** - * Whether this contribution is associated with a record you do not have access to. For - * example, your own 'first issue' contribution may have been made on a repository you can no - * longer access. - */ - isRestricted: Scalars['Boolean']; - /** When this contribution was made. */ - occurredAt: Scalars['DateTime']; - /** The HTTP path for this contribution. */ - resourcePath: Scalars['URI']; - /** The HTTP URL for this contribution. */ - url: Scalars['URI']; - /** The user who made this contribution. */ - user: User; -}; - -/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */ -export type Label = Node & { - __typename?: 'Label'; - /** Identifies the label color. */ - color: Scalars['String']; - /** Identifies the date and time when the label was created. */ - createdAt?: Maybe; - /** A brief description of this label. */ - description?: Maybe; - id: Scalars['ID']; - /** Indicates whether or not this is a default label. */ - isDefault: Scalars['Boolean']; - /** A list of issues associated with this label. */ - issues: IssueConnection; - /** Identifies the label name. */ - name: Scalars['String']; - /** A list of pull requests associated with this label. */ - pullRequests: PullRequestConnection; - /** The repository associated with this label. */ - repository: Repository; - /** The HTTP path for this label. */ - resourcePath: Scalars['URI']; - /** Identifies the date and time when the label was last updated. */ - updatedAt?: Maybe; - /** The HTTP URL for this label. */ - url: Scalars['URI']; -}; - - -/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */ -export type LabelIssuesArgs = { - orderBy?: Maybe; - labels?: Maybe>; - states?: Maybe>; - filterBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; + | 'UNSUBSCRIBED_EVENT'; -/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */ -export type LabelPullRequestsArgs = { - states?: Maybe>; - labels?: Maybe>; - headRefName?: Maybe; - baseRefName?: Maybe; - orderBy?: Maybe; - after?: Maybe; - before?: Maybe; - first?: Maybe; - last?: Maybe; -}; -/** The connection type for Label. */ -export type LabelConnection = { - __typename?: 'LabelConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']; -}; -/** An edge in a connection. */ -export type LabelEdge = { - __typename?: 'LabelEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe