Account
The `Account` query is used to fetch the details of your team or individual account on DeepSource. It also provides mutations to configure account-wide settings.
The account query returns details about a DeepSource account (team or individual), including repositories, team members, reports, and suppressed issues.
account
Query:account Fetch the details of a single DeepSource account.
Arguments
| Field | Type | Description |
|---|---|---|
| login | String! | The login or username to lookup the account by. |
| vcsProvider | VCSProvider! | VCS Provider of the account. |
Sample Request
query {
account(login: "deepsourcelabs", vcsProvider: GITHUB) {
login
id
type
vcsProvider
vcsUrl
avatarUrl
}
}Sample Response
{
"data": {
"account": {
"login": "cyberdyne",
"id": "QWNjb3VudDp6bWpws2I=",
"type": "TEAM",
"vcsProvider": "GITHUB",
"vcsUrl": "https://github.com/cyberdyne",
"avatarUrl": "https://user-avatars.deepsource.com/demo-image.png"
}
}
}suppressedIssues
Query:account.suppressedIssues Fetch the list of issues suppressed at the team level.
Sample Request
query {
account(login: "acme-corp", vcsProvider: GITHUB) {
suppressedIssues(first: 10) {
edges {
node {
id
createdAt
issue {
shortcode
title
}
user {
email
}
}
}
}
}
}Sample Response
{
"data": {
"account": {
"suppressedIssues": {
"edges": [
{
"node": {
"id": "VGVhbVN1cHByZXNzZWRJc3N1ZTox",
"createdAt": "2024-01-15T10:30:00Z",
"issue": {
"shortcode": "TF-L0047",
"title": "Deprecated attribute referenced"
},
"user": {
"email": "admin@acme-corp.com"
}
}
}
]
}
}
}
}Objects
Account
| Field | Type | Description |
|---|---|---|
| id | String! | The ID of the object. |
| login | String! | The unique identifier (or username) of the account. |
| type | AccountType! | The account type (individual or team). |
| vcsProvider | VCSProvider! | VCS Provider of the account. |
| vcsUrl | String | URL for the account on the VCS Provider. |
| isBetaTester | Boolean! | Whether the account is a beta tester. |
| avatarUrl | String | URL for the account's public avatar. |
| subscription | AccountSubscription! | Subscription and billing details of the account. |
| reports | AccountReportsNamespace! | Reports for this account. |
| report | Report! | Deprecated. Use reports instead. The report associated with this account. |
| key | ReportKey! | The key of the report to fetch. |
| repositories | RepositoryConnection! | List of repositories that belong to the requested account |
| offset | Int | Number of items to skip from the beginning of the result set. |
| before | String | Returns items before this cursor. |
| after | String | Returns items after this cursor. |
| first | Int | Returns the first N items. |
| last | Int | Returns the last N items. |
| members | TeamMemberConnection! | Members of the team. This is an empty list for an individual account. |
| offset | Int | Number of items to skip from the beginning of the result set. |
| before | String | Returns items before this cursor. |
| after | String | Returns items after this cursor. |
| first | Int | Returns the first N items. |
| last | Int | Returns the last N items. |
| suppressedIssues | TeamSuppressedIssueConnection! | List of issues suppressed at the team level. See suppressIssueForTeam. |
| offset | Int | Number of items to skip from the beginning of the result set. |
| before | String | Returns items before this cursor. |
| after | String | Returns items after this cursor. |
| first | Int | Returns the first N items. |
| last | Int | Returns the last N items. |
| issueShortcode | String | Filter by issue shortcode. |
AccountSubscription
Subscription and billing details of an Account.
| Field | Type | Description |
|---|---|---|
| plan | AccountSubscriptionPlan! | The plan associated with this account's subscription. |
AccountConnection
| Field | Type | Description |
|---|---|---|
| pageInfo | PageInfo! | Pagination data for this connection. |
| edges | AccountEdge! | Contains the nodes in this connection. |
| totalCount | Int | Total number of items in the connection. |
AccountEdge
A Relay edge containing a Account and its cursor.