From f5f206c96c878f9572088de7583865e9f3e82ac1 Mon Sep 17 00:00:00 2001 From: Octomerger Bot <63058869+Octomerger@users.noreply.github.com> Date: Fri, 14 Apr 2023 12:06:13 -0400 Subject: [PATCH] GraphQL schema update (#36392) Co-authored-by: jamestran201 --- data/graphql/ghae/schema.docs-ghae.graphql | 10 ++ data/graphql/ghec/schema.docs.graphql | 95 ++++++++++++++ data/graphql/schema.docs.graphql | 95 ++++++++++++++ src/graphql/data/dotcom/changelog.json | 19 +++ src/graphql/data/dotcom/schema.json | 137 +++++++++++++++++++++ src/graphql/data/ghae/schema.json | 12 ++ src/graphql/data/ghec/schema.json | 137 +++++++++++++++++++++ 7 files changed, 505 insertions(+) diff --git a/data/graphql/ghae/schema.docs-ghae.graphql b/data/graphql/ghae/schema.docs-ghae.graphql index 880f6653765a..1ee0c25ee329 100644 --- a/data/graphql/ghae/schema.docs-ghae.graphql +++ b/data/graphql/ghae/schema.docs-ghae.graphql @@ -36208,6 +36208,11 @@ type RepositoryVisibilityChangeEnableAuditEntry implements AuditEntry & Enterpri A Dependabot alert for a repository with a dependency affected by a security vulnerability. """ type RepositoryVulnerabilityAlert implements Node & RepositoryNode { + """ + When was the alert auto-dismissed? + """ + autoDismissedAt: DateTime + """ When was the alert created? """ @@ -36349,6 +36354,11 @@ type RepositoryVulnerabilityAlertEdge { The possible states of an alert """ enum RepositoryVulnerabilityAlertState { + """ + An alert that has been automatically closed by Dependabot. + """ + AUTO_DISMISSED + """ An alert that has been manually closed by a user. """ diff --git a/data/graphql/ghec/schema.docs.graphql b/data/graphql/ghec/schema.docs.graphql index 1baf1ef18513..efdd473fd05c 100644 --- a/data/graphql/ghec/schema.docs.graphql +++ b/data/graphql/ghec/schema.docs.graphql @@ -2355,6 +2355,27 @@ type BranchProtectionRuleEdge { node: BranchProtectionRule } +""" +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. +""" +input BulkSponsorship { + """ + The amount to pay to the sponsorable in US dollars. Valid values: 1-12000. + """ + amount: Int! + + """ + The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. + """ + sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable") + + """ + The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. + """ + sponsorableLogin: String +} + """ A user, team, or app who has the ability to bypass a force push requirement on a protected branch. """ @@ -7677,6 +7698,53 @@ type CreateSponsorshipPayload { sponsorship: Sponsorship } +""" +Autogenerated input type of CreateSponsorships +""" +input CreateSponsorshipsInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + 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: SponsorshipPrivacy = PUBLIC + + """ + Whether the sponsor should receive email updates from the sponsorables. + """ + receiveEmails: Boolean = false + + """ + The username of the user or organization who is acting as the sponsor, paying for the sponsorships. + """ + sponsorLogin: String! + + """ + The list of maintainers to sponsor and for how much apiece. + """ + sponsorships: [BulkSponsorship!]! +} + +""" +Autogenerated return type of CreateSponsorships +""" +type CreateSponsorshipsPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The users and organizations who received a sponsorship. + """ + sponsorables: [Sponsorable!] +} + """ Autogenerated input type of CreateTeamDiscussionComment """ @@ -21386,6 +21454,18 @@ type Mutation { input: CreateSponsorshipInput! ): CreateSponsorshipPayload + """ + Make many one-time sponsorships for different sponsorable users or + organizations at once. Can only sponsor those who have a public GitHub + Sponsors profile. + """ + createSponsorships( + """ + Parameters for CreateSponsorships + """ + input: CreateSponsorshipsInput! + ): CreateSponsorshipsPayload + """ Creates a new team discussion. """ @@ -43576,6 +43656,11 @@ type RepositoryVisibilityChangeEnableAuditEntry implements AuditEntry & Enterpri A Dependabot alert for a repository with a dependency affected by a security vulnerability. """ type RepositoryVulnerabilityAlert implements Node & RepositoryNode { + """ + When was the alert auto-dismissed? + """ + autoDismissedAt: DateTime + """ When was the alert created? """ @@ -43717,6 +43802,11 @@ type RepositoryVulnerabilityAlertEdge { The possible states of an alert """ enum RepositoryVulnerabilityAlertState { + """ + An alert that has been automatically closed by Dependabot. + """ + AUTO_DISMISSED + """ An alert that has been manually closed by a user. """ @@ -46082,6 +46172,11 @@ type SponsorsActivity implements Node { The timestamp of this event. """ timestamp: DateTime + + """ + Was this sponsorship made alongside other sponsorships at the same time from the same sponsor? + """ + viaBulkSponsorship: Boolean! } """ diff --git a/data/graphql/schema.docs.graphql b/data/graphql/schema.docs.graphql index 1baf1ef18513..efdd473fd05c 100644 --- a/data/graphql/schema.docs.graphql +++ b/data/graphql/schema.docs.graphql @@ -2355,6 +2355,27 @@ type BranchProtectionRuleEdge { node: BranchProtectionRule } +""" +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. +""" +input BulkSponsorship { + """ + The amount to pay to the sponsorable in US dollars. Valid values: 1-12000. + """ + amount: Int! + + """ + The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. + """ + sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable") + + """ + The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. + """ + sponsorableLogin: String +} + """ A user, team, or app who has the ability to bypass a force push requirement on a protected branch. """ @@ -7677,6 +7698,53 @@ type CreateSponsorshipPayload { sponsorship: Sponsorship } +""" +Autogenerated input type of CreateSponsorships +""" +input CreateSponsorshipsInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + 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: SponsorshipPrivacy = PUBLIC + + """ + Whether the sponsor should receive email updates from the sponsorables. + """ + receiveEmails: Boolean = false + + """ + The username of the user or organization who is acting as the sponsor, paying for the sponsorships. + """ + sponsorLogin: String! + + """ + The list of maintainers to sponsor and for how much apiece. + """ + sponsorships: [BulkSponsorship!]! +} + +""" +Autogenerated return type of CreateSponsorships +""" +type CreateSponsorshipsPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The users and organizations who received a sponsorship. + """ + sponsorables: [Sponsorable!] +} + """ Autogenerated input type of CreateTeamDiscussionComment """ @@ -21386,6 +21454,18 @@ type Mutation { input: CreateSponsorshipInput! ): CreateSponsorshipPayload + """ + Make many one-time sponsorships for different sponsorable users or + organizations at once. Can only sponsor those who have a public GitHub + Sponsors profile. + """ + createSponsorships( + """ + Parameters for CreateSponsorships + """ + input: CreateSponsorshipsInput! + ): CreateSponsorshipsPayload + """ Creates a new team discussion. """ @@ -43576,6 +43656,11 @@ type RepositoryVisibilityChangeEnableAuditEntry implements AuditEntry & Enterpri A Dependabot alert for a repository with a dependency affected by a security vulnerability. """ type RepositoryVulnerabilityAlert implements Node & RepositoryNode { + """ + When was the alert auto-dismissed? + """ + autoDismissedAt: DateTime + """ When was the alert created? """ @@ -43717,6 +43802,11 @@ type RepositoryVulnerabilityAlertEdge { The possible states of an alert """ enum RepositoryVulnerabilityAlertState { + """ + An alert that has been automatically closed by Dependabot. + """ + AUTO_DISMISSED + """ An alert that has been manually closed by a user. """ @@ -46082,6 +46172,11 @@ type SponsorsActivity implements Node { The timestamp of this event. """ timestamp: DateTime + + """ + Was this sponsorship made alongside other sponsorships at the same time from the same sponsor? + """ + viaBulkSponsorship: Boolean! } """ diff --git a/src/graphql/data/dotcom/changelog.json b/src/graphql/data/dotcom/changelog.json index c3fd3424bebe..54b138a86158 100644 --- a/src/graphql/data/dotcom/changelog.json +++ b/src/graphql/data/dotcom/changelog.json @@ -1,4 +1,23 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "

Type BulkSponsorship was added

", + "

Type CreateSponsorshipsInput was added

", + "

Type CreateSponsorshipsPayload was added

", + "

Field createSponsorships was added to object type Mutation

", + "

Field autoDismissedAt was added to object type RepositoryVulnerabilityAlert

", + "

Enum value 'AUTO_DISMISSEDwas added to enumRepositoryVulnerabilityAlertState'

", + "

Field viaBulkSponsorship was added to object type SponsorsActivity

" + ] + } + ], + "previewChanges": [], + "upcomingChanges": [], + "date": "2023-04-14" + }, { "schemaChanges": [ { diff --git a/src/graphql/data/dotcom/schema.json b/src/graphql/data/dotcom/schema.json index 1da9173d51ea..787cb511304f 100644 --- a/src/graphql/data/dotcom/schema.json +++ b/src/graphql/data/dotcom/schema.json @@ -3142,6 +3142,40 @@ } ] }, + { + "name": "createSponsorships", + "kind": "mutations", + "id": "createsponsorships", + "href": "/graphql/reference/mutations#createsponsorships", + "description": "

Make many one-time sponsorships for different sponsorable users or\norganizations at once. Can only sponsor those who have a public GitHub\nSponsors profile.

", + "inputFields": [ + { + "name": "input", + "type": "CreateSponsorshipsInput!", + "id": "createsponsorshipsinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#createsponsorshipsinput" + } + ], + "returnFields": [ + { + "name": "clientMutationId", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string", + "description": "

A unique identifier for the client performing the mutation.

" + }, + { + "name": "sponsorables", + "type": "[Sponsorable!]", + "id": "sponsorable", + "kind": "interfaces", + "href": "/graphql/reference/interfaces#sponsorable", + "description": "

The users and organizations who received a sponsorship.

" + } + ] + }, { "name": "createTeamDiscussion", "kind": "mutations", @@ -60139,6 +60173,14 @@ } ], "fields": [ + { + "name": "autoDismissedAt", + "description": "

When was the alert auto-dismissed?.

", + "type": "DateTime", + "id": "datetime", + "kind": "scalars", + "href": "/graphql/reference/scalars#datetime" + }, { "name": "createdAt", "description": "

When was the alert created?.

", @@ -62098,6 +62140,14 @@ "id": "datetime", "kind": "scalars", "href": "/graphql/reference/scalars#datetime" + }, + { + "name": "viaBulkSponsorship", + "description": "

Was this sponsorship made alongside other sponsorships at the same time from the same sponsor?.

", + "type": "Boolean!", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" } ] }, @@ -80029,6 +80079,10 @@ "href": "/graphql/reference/enums#repositoryvulnerabilityalertstate", "description": "

The possible states of an alert.

", "values": [ + { + "name": "AUTO_DISMISSED", + "description": "

An alert that has been automatically closed by Dependabot.

" + }, { "name": "DISMISSED", "description": "

An alert that has been manually closed by a user.

" @@ -84848,6 +84902,40 @@ } ] }, + { + "name": "BulkSponsorship", + "kind": "inputObjects", + "id": "bulksponsorship", + "href": "/graphql/reference/input-objects#bulksponsorship", + "description": "

Information about a sponsorship to make for a user or organization with a GitHub\nSponsors profile, as part of sponsoring many users or organizations at once.

", + "inputFields": [ + { + "name": "amount", + "description": "

The amount to pay to the sponsorable in US dollars. Valid values: 1-12000.

", + "type": "Int!", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + }, + { + "name": "sponsorableId", + "description": "

The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given.

", + "type": "ID", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + }, + { + "name": "sponsorableLogin", + "description": "

The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given.

", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + ] + }, { "name": "CancelEnterpriseAdminInvitationInput", "kind": "inputObjects", @@ -87621,6 +87709,55 @@ } ] }, + { + "name": "CreateSponsorshipsInput", + "kind": "inputObjects", + "id": "createsponsorshipsinput", + "href": "/graphql/reference/input-objects#createsponsorshipsinput", + "description": "

Autogenerated input type of CreateSponsorships.

", + "inputFields": [ + { + "name": "clientMutationId", + "description": "

A unique identifier for the client performing the mutation.

", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "privacyLevel", + "description": "

Specify whether others should be able to see that the sponsor is sponsoring\nthe sponsorables. Public visibility still does not reveal the dollar value of\nthe sponsorship.

", + "type": "SponsorshipPrivacy", + "id": "sponsorshipprivacy", + "kind": "enums", + "href": "/graphql/reference/enums#sponsorshipprivacy" + }, + { + "name": "receiveEmails", + "description": "

Whether the sponsor should receive email updates from the sponsorables.

", + "type": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + }, + { + "name": "sponsorLogin", + "description": "

The username of the user or organization who is acting as the sponsor, paying for the sponsorships.

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "sponsorships", + "description": "

The list of maintainers to sponsor and for how much apiece.

", + "type": "[BulkSponsorship!]!", + "id": "bulksponsorship", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#bulksponsorship" + } + ] + }, { "name": "CreateTeamDiscussionCommentInput", "kind": "inputObjects", diff --git a/src/graphql/data/ghae/schema.json b/src/graphql/data/ghae/schema.json index a67924293714..f8d98ecb8774 100644 --- a/src/graphql/data/ghae/schema.json +++ b/src/graphql/data/ghae/schema.json @@ -50515,6 +50515,14 @@ } ], "fields": [ + { + "name": "autoDismissedAt", + "description": "

When was the alert auto-dismissed?.

", + "type": "DateTime", + "id": "datetime", + "kind": "scalars", + "href": "/graphql/reference/scalars#datetime" + }, { "name": "createdAt", "description": "

When was the alert created?.

", @@ -66176,6 +66184,10 @@ "href": "/graphql/reference/enums#repositoryvulnerabilityalertstate", "description": "

The possible states of an alert.

", "values": [ + { + "name": "AUTO_DISMISSED", + "description": "

An alert that has been automatically closed by Dependabot.

" + }, { "name": "DISMISSED", "description": "

An alert that has been manually closed by a user.

" diff --git a/src/graphql/data/ghec/schema.json b/src/graphql/data/ghec/schema.json index 1da9173d51ea..787cb511304f 100644 --- a/src/graphql/data/ghec/schema.json +++ b/src/graphql/data/ghec/schema.json @@ -3142,6 +3142,40 @@ } ] }, + { + "name": "createSponsorships", + "kind": "mutations", + "id": "createsponsorships", + "href": "/graphql/reference/mutations#createsponsorships", + "description": "

Make many one-time sponsorships for different sponsorable users or\norganizations at once. Can only sponsor those who have a public GitHub\nSponsors profile.

", + "inputFields": [ + { + "name": "input", + "type": "CreateSponsorshipsInput!", + "id": "createsponsorshipsinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#createsponsorshipsinput" + } + ], + "returnFields": [ + { + "name": "clientMutationId", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string", + "description": "

A unique identifier for the client performing the mutation.

" + }, + { + "name": "sponsorables", + "type": "[Sponsorable!]", + "id": "sponsorable", + "kind": "interfaces", + "href": "/graphql/reference/interfaces#sponsorable", + "description": "

The users and organizations who received a sponsorship.

" + } + ] + }, { "name": "createTeamDiscussion", "kind": "mutations", @@ -60139,6 +60173,14 @@ } ], "fields": [ + { + "name": "autoDismissedAt", + "description": "

When was the alert auto-dismissed?.

", + "type": "DateTime", + "id": "datetime", + "kind": "scalars", + "href": "/graphql/reference/scalars#datetime" + }, { "name": "createdAt", "description": "

When was the alert created?.

", @@ -62098,6 +62140,14 @@ "id": "datetime", "kind": "scalars", "href": "/graphql/reference/scalars#datetime" + }, + { + "name": "viaBulkSponsorship", + "description": "

Was this sponsorship made alongside other sponsorships at the same time from the same sponsor?.

", + "type": "Boolean!", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" } ] }, @@ -80029,6 +80079,10 @@ "href": "/graphql/reference/enums#repositoryvulnerabilityalertstate", "description": "

The possible states of an alert.

", "values": [ + { + "name": "AUTO_DISMISSED", + "description": "

An alert that has been automatically closed by Dependabot.

" + }, { "name": "DISMISSED", "description": "

An alert that has been manually closed by a user.

" @@ -84848,6 +84902,40 @@ } ] }, + { + "name": "BulkSponsorship", + "kind": "inputObjects", + "id": "bulksponsorship", + "href": "/graphql/reference/input-objects#bulksponsorship", + "description": "

Information about a sponsorship to make for a user or organization with a GitHub\nSponsors profile, as part of sponsoring many users or organizations at once.

", + "inputFields": [ + { + "name": "amount", + "description": "

The amount to pay to the sponsorable in US dollars. Valid values: 1-12000.

", + "type": "Int!", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + }, + { + "name": "sponsorableId", + "description": "

The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given.

", + "type": "ID", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + }, + { + "name": "sponsorableLogin", + "description": "

The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given.

", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + ] + }, { "name": "CancelEnterpriseAdminInvitationInput", "kind": "inputObjects", @@ -87621,6 +87709,55 @@ } ] }, + { + "name": "CreateSponsorshipsInput", + "kind": "inputObjects", + "id": "createsponsorshipsinput", + "href": "/graphql/reference/input-objects#createsponsorshipsinput", + "description": "

Autogenerated input type of CreateSponsorships.

", + "inputFields": [ + { + "name": "clientMutationId", + "description": "

A unique identifier for the client performing the mutation.

", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "privacyLevel", + "description": "

Specify whether others should be able to see that the sponsor is sponsoring\nthe sponsorables. Public visibility still does not reveal the dollar value of\nthe sponsorship.

", + "type": "SponsorshipPrivacy", + "id": "sponsorshipprivacy", + "kind": "enums", + "href": "/graphql/reference/enums#sponsorshipprivacy" + }, + { + "name": "receiveEmails", + "description": "

Whether the sponsor should receive email updates from the sponsorables.

", + "type": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + }, + { + "name": "sponsorLogin", + "description": "

The username of the user or organization who is acting as the sponsor, paying for the sponsorships.

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "sponsorships", + "description": "

The list of maintainers to sponsor and for how much apiece.

", + "type": "[BulkSponsorship!]!", + "id": "bulksponsorship", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#bulksponsorship" + } + ] + }, { "name": "CreateTeamDiscussionCommentInput", "kind": "inputObjects",