diff --git a/src/graphql/data/fpt/changelog.json b/src/graphql/data/fpt/changelog.json index 5c91b41196..b9f18e8c3c 100644 --- a/src/graphql/data/fpt/changelog.json +++ b/src/graphql/data/fpt/changelog.json @@ -1,4 +1,18 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "
Type CopilotLicenseType was added
Field copilotLicenseType was added to object type User
The user's license type for Copilot.
", + "type": "CopilotLicenseType", + "id": "copilotlicensetype", + "kind": "enums", + "href": "/graphql/reference/enums#copilotlicensetype", + "isDeprecated": false + }, { "name": "copilotLimitedUser", "description": "Properties of the current Copilot user, if limited by Copilot Free.
", @@ -85740,6 +85749,36 @@ } ] }, + { + "name": "CopilotLicenseType", + "kind": "enums", + "id": "copilotlicensetype", + "href": "/graphql/reference/enums#copilotlicensetype", + "description": "Indicates the type of access a user has to GitHub Copilot.
", + "isDeprecated": false, + "values": [ + { + "name": "COPILOT_BUSINESS", + "description": "Business access.
" + }, + { + "name": "COPILOT_ENTERPRISE", + "description": "Enterprise access.
" + }, + { + "name": "COPILOT_FREE", + "description": "Limited free access.
" + }, + { + "name": "COPILOT_INDIVIDUAL", + "description": "Individual access.
" + }, + { + "name": "NO_ACCESS", + "description": "No access found.
" + } + ] + }, { "name": "CopilotLimitedFeature", "kind": "enums", diff --git a/src/graphql/data/ghec/schema.docs.graphql b/src/graphql/data/ghec/schema.docs.graphql index 67382fce72..0605be039e 100644 --- a/src/graphql/data/ghec/schema.docs.graphql +++ b/src/graphql/data/ghec/schema.docs.graphql @@ -6979,6 +6979,36 @@ type CopilotEndpoints { telemetry: String! } +""" +Indicates the type of access a user has to GitHub Copilot +""" +enum CopilotLicenseType @requiredCapabilities(requiredCapabilities: ["access_copilot_limited_graphql_api"]) { + """ + Business access + """ + COPILOT_BUSINESS + + """ + Enterprise access + """ + COPILOT_ENTERPRISE + + """ + Limited free access + """ + COPILOT_FREE + + """ + Individual access + """ + COPILOT_INDIVIDUAL + + """ + No access found + """ + NO_ACCESS +} + """ The type of the activity that was performed. """ @@ -63233,6 +63263,12 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ copilotEndpoints: CopilotEndpoints + """ + The user's license type for Copilot + """ + copilotLicenseType: CopilotLicenseType + @requiredCapabilities(requiredCapabilities: ["access_copilot_limited_graphql_api"]) + """ Properties of the current Copilot user, if limited by Copilot Free. """ diff --git a/src/graphql/data/ghec/schema.json b/src/graphql/data/ghec/schema.json index 37846aa85d..3732d42aaf 100644 --- a/src/graphql/data/ghec/schema.json +++ b/src/graphql/data/ghec/schema.json @@ -76727,6 +76727,15 @@ "kind": "objects", "href": "/graphql/reference/objects#copilotendpoints" }, + { + "name": "copilotLicenseType", + "description": "The user's license type for Copilot.
", + "type": "CopilotLicenseType", + "id": "copilotlicensetype", + "kind": "enums", + "href": "/graphql/reference/enums#copilotlicensetype", + "isDeprecated": false + }, { "name": "copilotLimitedUser", "description": "Properties of the current Copilot user, if limited by Copilot Free.
", @@ -85740,6 +85749,36 @@ } ] }, + { + "name": "CopilotLicenseType", + "kind": "enums", + "id": "copilotlicensetype", + "href": "/graphql/reference/enums#copilotlicensetype", + "description": "Indicates the type of access a user has to GitHub Copilot.
", + "isDeprecated": false, + "values": [ + { + "name": "COPILOT_BUSINESS", + "description": "Business access.
" + }, + { + "name": "COPILOT_ENTERPRISE", + "description": "Enterprise access.
" + }, + { + "name": "COPILOT_FREE", + "description": "Limited free access.
" + }, + { + "name": "COPILOT_INDIVIDUAL", + "description": "Individual access.
" + }, + { + "name": "NO_ACCESS", + "description": "No access found.
" + } + ] + }, { "name": "CopilotLimitedFeature", "kind": "enums",