diff --git a/data/graphql/ghae/schema.docs-ghae.graphql b/data/graphql/ghae/schema.docs-ghae.graphql index 19bb3a3727..7dcb5bc022 100644 --- a/data/graphql/ghae/schema.docs-ghae.graphql +++ b/data/graphql/ghae/schema.docs-ghae.graphql @@ -20404,6 +20404,16 @@ type Mutation { input: UnresolveReviewThreadInput! ): UnresolveReviewThreadPayload + """ + Unsubscribes from notifications + """ + unsubscribeFromNotifications( + """ + Parameters for UnsubscribeFromNotifications + """ + input: UnsubscribeFromNotificationsInput! + ): UnsubscribeFromNotificationsPayload + """ Update a branch protection rule """ @@ -44696,6 +44706,42 @@ type UnresolveReviewThreadPayload { thread: PullRequestReviewThread } +""" +Autogenerated input type of UnsubscribeFromNotifications +""" +input UnsubscribeFromNotificationsInput + @requiredCapabilities(requiredCapabilities: ["access_internal_graphql_notifications"]) { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The NotificationThread IDs of the objects to unsubscribe from. + """ + ids: [ID!]! + @possibleTypes( + concreteTypes: ["Commit", "Discussion", "Issue", "PullRequest", "Repository", "Team", "TeamDiscussion"] + abstractType: "Subscribable" + ) +} + +""" +Autogenerated return type of UnsubscribeFromNotifications +""" +type UnsubscribeFromNotificationsPayload + @requiredCapabilities(requiredCapabilities: ["access_internal_graphql_notifications"]) { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + Did the operation succeed? + """ + success: Boolean +} + """ Represents an 'unsubscribed' event on a given `Subscribable`. """ diff --git a/data/graphql/ghec/schema.docs.graphql b/data/graphql/ghec/schema.docs.graphql index fe752d7b93..76da5ceb23 100644 --- a/data/graphql/ghec/schema.docs.graphql +++ b/data/graphql/ghec/schema.docs.graphql @@ -23601,6 +23601,16 @@ type Mutation { input: UnresolveReviewThreadInput! ): UnresolveReviewThreadPayload + """ + Unsubscribes from notifications + """ + unsubscribeFromNotifications( + """ + Parameters for UnsubscribeFromNotifications + """ + input: UnsubscribeFromNotificationsInput! + ): UnsubscribeFromNotificationsPayload + """ Update a branch protection rule """ @@ -55840,6 +55850,42 @@ type UnresolveReviewThreadPayload { thread: PullRequestReviewThread } +""" +Autogenerated input type of UnsubscribeFromNotifications +""" +input UnsubscribeFromNotificationsInput + @requiredCapabilities(requiredCapabilities: ["access_internal_graphql_notifications"]) { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The NotificationThread IDs of the objects to unsubscribe from. + """ + ids: [ID!]! + @possibleTypes( + concreteTypes: ["Commit", "Discussion", "Issue", "PullRequest", "Repository", "Team", "TeamDiscussion"] + abstractType: "Subscribable" + ) +} + +""" +Autogenerated return type of UnsubscribeFromNotifications +""" +type UnsubscribeFromNotificationsPayload + @requiredCapabilities(requiredCapabilities: ["access_internal_graphql_notifications"]) { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + Did the operation succeed? + """ + success: Boolean +} + """ Represents an 'unsubscribed' event on a given `Subscribable`. """ diff --git a/data/graphql/schema.docs.graphql b/data/graphql/schema.docs.graphql index fe752d7b93..76da5ceb23 100644 --- a/data/graphql/schema.docs.graphql +++ b/data/graphql/schema.docs.graphql @@ -23601,6 +23601,16 @@ type Mutation { input: UnresolveReviewThreadInput! ): UnresolveReviewThreadPayload + """ + Unsubscribes from notifications + """ + unsubscribeFromNotifications( + """ + Parameters for UnsubscribeFromNotifications + """ + input: UnsubscribeFromNotificationsInput! + ): UnsubscribeFromNotificationsPayload + """ Update a branch protection rule """ @@ -55840,6 +55850,42 @@ type UnresolveReviewThreadPayload { thread: PullRequestReviewThread } +""" +Autogenerated input type of UnsubscribeFromNotifications +""" +input UnsubscribeFromNotificationsInput + @requiredCapabilities(requiredCapabilities: ["access_internal_graphql_notifications"]) { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The NotificationThread IDs of the objects to unsubscribe from. + """ + ids: [ID!]! + @possibleTypes( + concreteTypes: ["Commit", "Discussion", "Issue", "PullRequest", "Repository", "Team", "TeamDiscussion"] + abstractType: "Subscribable" + ) +} + +""" +Autogenerated return type of UnsubscribeFromNotifications +""" +type UnsubscribeFromNotificationsPayload + @requiredCapabilities(requiredCapabilities: ["access_internal_graphql_notifications"]) { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + Did the operation succeed? + """ + success: Boolean +} + """ Represents an 'unsubscribed' event on a given `Subscribable`. """ diff --git a/src/graphql/data/fpt/changelog.json b/src/graphql/data/fpt/changelog.json index d4fea42069..6ab95691f1 100644 --- a/src/graphql/data/fpt/changelog.json +++ b/src/graphql/data/fpt/changelog.json @@ -1,4 +1,19 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "
Type UnsubscribeFromNotificationsInput was added
Type UnsubscribeFromNotificationsPayload was added
Field unsubscribeFromNotifications was added to object type Mutation
Unsubscribes from notifications.
", + "inputFields": [ + { + "name": "input", + "type": "UnsubscribeFromNotificationsInput!", + "id": "unsubscribefromnotificationsinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#unsubscribefromnotificationsinput" + } + ], + "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": "success", + "type": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean", + "description": "Did the operation succeed?.
" + } + ] + }, { "name": "updateBranchProtectionRule", "kind": "mutations", @@ -99275,6 +99309,33 @@ } ] }, + { + "name": "UnsubscribeFromNotificationsInput", + "kind": "inputObjects", + "id": "unsubscribefromnotificationsinput", + "href": "/graphql/reference/input-objects#unsubscribefromnotificationsinput", + "description": "Autogenerated input type of UnsubscribeFromNotifications.
", + "isDeprecated": false, + "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": "ids", + "description": "The NotificationThread IDs of the objects to unsubscribe from.
", + "type": "[ID!]!", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + } + ] + }, { "name": "UpdateBranchProtectionRuleInput", "kind": "inputObjects", diff --git a/src/graphql/data/ghae/schema.json b/src/graphql/data/ghae/schema.json index f190daf263..559776e385 100644 --- a/src/graphql/data/ghae/schema.json +++ b/src/graphql/data/ghae/schema.json @@ -4967,6 +4967,40 @@ } ] }, + { + "name": "unsubscribeFromNotifications", + "kind": "mutations", + "id": "unsubscribefromnotifications", + "href": "/graphql/reference/mutations#unsubscribefromnotifications", + "description": "Unsubscribes from notifications.
", + "inputFields": [ + { + "name": "input", + "type": "UnsubscribeFromNotificationsInput!", + "id": "unsubscribefromnotificationsinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#unsubscribefromnotificationsinput" + } + ], + "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": "success", + "type": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean", + "description": "Did the operation succeed?.
" + } + ] + }, { "name": "updateBranchProtectionRule", "kind": "mutations", @@ -80608,6 +80642,33 @@ } ] }, + { + "name": "UnsubscribeFromNotificationsInput", + "kind": "inputObjects", + "id": "unsubscribefromnotificationsinput", + "href": "/graphql/reference/input-objects#unsubscribefromnotificationsinput", + "description": "Autogenerated input type of UnsubscribeFromNotifications.
", + "isDeprecated": false, + "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": "ids", + "description": "The NotificationThread IDs of the objects to unsubscribe from.
", + "type": "[ID!]!", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + } + ] + }, { "name": "UpdateBranchProtectionRuleInput", "kind": "inputObjects", diff --git a/src/graphql/data/ghec/schema.json b/src/graphql/data/ghec/schema.json index bf0b04cc99..c165cefc78 100644 --- a/src/graphql/data/ghec/schema.json +++ b/src/graphql/data/ghec/schema.json @@ -6948,6 +6948,40 @@ } ] }, + { + "name": "unsubscribeFromNotifications", + "kind": "mutations", + "id": "unsubscribefromnotifications", + "href": "/graphql/reference/mutations#unsubscribefromnotifications", + "description": "Unsubscribes from notifications.
", + "inputFields": [ + { + "name": "input", + "type": "UnsubscribeFromNotificationsInput!", + "id": "unsubscribefromnotificationsinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#unsubscribefromnotificationsinput" + } + ], + "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": "success", + "type": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean", + "description": "Did the operation succeed?.
" + } + ] + }, { "name": "updateBranchProtectionRule", "kind": "mutations", @@ -99275,6 +99309,33 @@ } ] }, + { + "name": "UnsubscribeFromNotificationsInput", + "kind": "inputObjects", + "id": "unsubscribefromnotificationsinput", + "href": "/graphql/reference/input-objects#unsubscribefromnotificationsinput", + "description": "Autogenerated input type of UnsubscribeFromNotifications.
", + "isDeprecated": false, + "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": "ids", + "description": "The NotificationThread IDs of the objects to unsubscribe from.
", + "type": "[ID!]!", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + } + ] + }, { "name": "UpdateBranchProtectionRuleInput", "kind": "inputObjects",