Findings

TypeScript SDK reference for the findings resource

Warning

The SDKs are in research preview. Their interfaces may change between minor versions until 1.0.

Access this resource from client.findings.

list

GET /v1/findings

Findings across the project.

const result = await client.findings.list();

Arguments:

queryFindingListParamsquery
pagenumber
page_sizenumber
order_by"created_at" | "updated_at" | "level"
order"desc" | "asc"
user_idstring
is_selfboolean
code_idstring
analysis_idsstring[]
toolstring
typestring
levelFindingLevel
is_acknowledgedboolean
created_by_user_idstring
created_by_selfboolean
include_deletedboolean

Return type by call:

  • withPagination: true → PaginatedResource<Finding>
  • withPagination: false → Pagination<Finding>
show properties (6)hide properties (6)
resultsFinding[]required
show properties (19)hide properties (19)
idstringrequired
created_atstringrequired
origin_finding_idstringrequired

The finding's original ID, stable across versions and edits.

is_acknowledgedbooleanrequired

Whether a user acknowledged the finding.

typestringrequired
levelFindingLevelrequired
namestringrequired
explanationstringrequired
recommendationstring | nullrequired
pocstring | nullrequired
toolstringrequired

What produced the finding.

node_idstringrequired

The code graph node the finding is on.

is_borrowedbooleanrequired

Whether the finding was carried over from an earlier version.

location_idstring | nullrequired

The source location within the node.

created_by_userUserrequired

Who created the finding.

show properties (4)hide properties (4)
idstringrequired
is_selfbooleanrequired
created_atstringrequired
usernamestringrequired
code_idstringrequired

The code version the finding is on.

versionAnalysisVersionRefrequired

The analysis version the finding belongs to.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsFindingActionsrequired

Available actions to take on this finding

show properties (3)hide properties (3)
editActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

undoActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

deleteActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

last_event_kindFindingEventKind | nullrequired
pagenumberrequired
page_sizenumberrequired
morebooleanrequired

Whether more pages follow.

total_observationsnumberrequired

Total results across all pages.

total_pagesnumberrequired

get

GET /v1/findings/{finding_id}

const result = await client.findings.get(findingId);

Arguments:

findingIdstringpathrequired

Returns: Finding

show properties (19)hide properties (19)
idstringrequired
created_atstringrequired
origin_finding_idstringrequired

The finding's original ID, stable across versions and edits.

is_acknowledgedbooleanrequired

Whether a user acknowledged the finding.

typestringrequired
levelFindingLevelrequired
namestringrequired
explanationstringrequired
recommendationstring | nullrequired
pocstring | nullrequired
toolstringrequired

What produced the finding.

node_idstringrequired

The code graph node the finding is on.

is_borrowedbooleanrequired

Whether the finding was carried over from an earlier version.

location_idstring | nullrequired

The source location within the node.

created_by_userUserrequired

Who created the finding.

show properties (4)hide properties (4)
idstringrequired
is_selfbooleanrequired
created_atstringrequired
usernamestringrequired
code_idstringrequired

The code version the finding is on.

versionAnalysisVersionRefrequired

The analysis version the finding belongs to.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsFindingActionsrequired

Available actions to take on this finding

show properties (3)hide properties (3)
editActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

undoActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

deleteActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

last_event_kindFindingEventKind | nullrequired

editMetadata

PATCH /v1/findings/{finding_id}

Edit the metadata of a finding.

const result = await client.findings.editMetadata(findingId, body);

Arguments:

findingIdstringpathrequired
bodyFindingEditBodybodyrequired
typestring
levelFindingLevel
namestring
explanationstring
recommendationstring | null
pocstring | null
toolstring

Returns: Finding

show properties (19)hide properties (19)
idstringrequired
created_atstringrequired
origin_finding_idstringrequired

The finding's original ID, stable across versions and edits.

is_acknowledgedbooleanrequired

Whether a user acknowledged the finding.

typestringrequired
levelFindingLevelrequired
namestringrequired
explanationstringrequired
recommendationstring | nullrequired
pocstring | nullrequired
toolstringrequired

What produced the finding.

node_idstringrequired

The code graph node the finding is on.

is_borrowedbooleanrequired

Whether the finding was carried over from an earlier version.

location_idstring | nullrequired

The source location within the node.

created_by_userUserrequired

Who created the finding.

show properties (4)hide properties (4)
idstringrequired
is_selfbooleanrequired
created_atstringrequired
usernamestringrequired
code_idstringrequired

The code version the finding is on.

versionAnalysisVersionRefrequired

The analysis version the finding belongs to.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsFindingActionsrequired

Available actions to take on this finding

show properties (3)hide properties (3)
editActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

undoActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

deleteActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

last_event_kindFindingEventKind | nullrequired

delete

DELETE /v1/findings/{finding_id}

Delete a finding.

const result = await client.findings.delete(findingId);

Arguments:

findingIdstringpathrequired

Returns: Finding

show properties (19)hide properties (19)
idstringrequired
created_atstringrequired
origin_finding_idstringrequired

The finding's original ID, stable across versions and edits.

is_acknowledgedbooleanrequired

Whether a user acknowledged the finding.

typestringrequired
levelFindingLevelrequired
namestringrequired
explanationstringrequired
recommendationstring | nullrequired
pocstring | nullrequired
toolstringrequired

What produced the finding.

node_idstringrequired

The code graph node the finding is on.

is_borrowedbooleanrequired

Whether the finding was carried over from an earlier version.

location_idstring | nullrequired

The source location within the node.

created_by_userUserrequired

Who created the finding.

show properties (4)hide properties (4)
idstringrequired
is_selfbooleanrequired
created_atstringrequired
usernamestringrequired
code_idstringrequired

The code version the finding is on.

versionAnalysisVersionRefrequired

The analysis version the finding belongs to.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsFindingActionsrequired

Available actions to take on this finding

show properties (3)hide properties (3)
editActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

undoActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

deleteActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

last_event_kindFindingEventKind | nullrequired

undo

POST /v1/findings/{finding_id}/undo

Undo the most recent change to a finding.

const result = await client.findings.undo(findingId);

Arguments:

findingIdstringpathrequired

Returns: ExistsResponse<Finding>

show properties (2)hide properties (2)
existsbooleanrequired
dataFinding | nullrequired
show properties (19)hide properties (19)
idstringrequired
created_atstringrequired
origin_finding_idstringrequired

The finding's original ID, stable across versions and edits.

is_acknowledgedbooleanrequired

Whether a user acknowledged the finding.

typestringrequired
levelFindingLevelrequired
namestringrequired
explanationstringrequired
recommendationstring | nullrequired
pocstring | nullrequired
toolstringrequired

What produced the finding.

node_idstringrequired

The code graph node the finding is on.

is_borrowedbooleanrequired

Whether the finding was carried over from an earlier version.

location_idstring | nullrequired

The source location within the node.

created_by_userUserrequired

Who created the finding.

show properties (4)hide properties (4)
idstringrequired
is_selfbooleanrequired
created_atstringrequired
usernamestringrequired
code_idstringrequired

The code version the finding is on.

versionAnalysisVersionRefrequired

The analysis version the finding belongs to.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsFindingActionsrequired

Available actions to take on this finding

show properties (3)hide properties (3)
editActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

undoActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

deleteActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

last_event_kindFindingEventKind | nullrequired

toggleAcknowledgement

PATCH /v1/findings/{finding_id}/status

Toggle whether a finding is acknowledged.

const result = await client.findings.toggleAcknowledgement(findingId);

Arguments:

findingIdstringpathrequired

Returns: Finding

show properties (19)hide properties (19)
idstringrequired
created_atstringrequired
origin_finding_idstringrequired

The finding's original ID, stable across versions and edits.

is_acknowledgedbooleanrequired

Whether a user acknowledged the finding.

typestringrequired
levelFindingLevelrequired
namestringrequired
explanationstringrequired
recommendationstring | nullrequired
pocstring | nullrequired
toolstringrequired

What produced the finding.

node_idstringrequired

The code graph node the finding is on.

is_borrowedbooleanrequired

Whether the finding was carried over from an earlier version.

location_idstring | nullrequired

The source location within the node.

created_by_userUserrequired

Who created the finding.

show properties (4)hide properties (4)
idstringrequired
is_selfbooleanrequired
created_atstringrequired
usernamestringrequired
code_idstringrequired

The code version the finding is on.

versionAnalysisVersionRefrequired

The analysis version the finding belongs to.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsFindingActionsrequired

Available actions to take on this finding

show properties (3)hide properties (3)
editActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

undoActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

deleteActionDetailsrequired
show properties (2)hide properties (2)
is_allowedbooleanrequired

Whether the caller can perform the action.

reasonsstring[]required

reasons why action is not allowed, if applicable.

last_event_kindFindingEventKind | nullrequired

comments

GET /v1/findings/{finding_id}/comments

const result = await client.findings.comments(findingId);

Arguments:

findingIdstringpathrequired

Returns: ResultsResponse<FindingComment>

show properties (1)hide properties (1)
resultsFindingComment[]required
show properties (5)hide properties (5)
idstringrequired
created_atstringrequired
messagestringrequired
refsInlineRef[]required
show properties (6)hide properties (6)
idstringrequired
typestringrequired
sourcestringrequired
ref_indnumberrequired
namestring | nullrequired
is_stalebooleanrequired
userUserrequired
show properties (4)hide properties (4)
idstringrequired
is_selfbooleanrequired
created_atstringrequired
usernamestringrequired

comment

POST /v1/findings/{finding_id}/comments

const result = await client.findings.comment(findingId, message);

Arguments:

findingIdstringpathrequired
messagestringbodyrequired

Returns: FindingComment

show properties (5)hide properties (5)
idstringrequired
created_atstringrequired
messagestringrequired
refsInlineRef[]required
show properties (6)hide properties (6)
idstringrequired
typestringrequired
sourcestringrequired
ref_indnumberrequired
namestring | nullrequired
is_stalebooleanrequired
userUserrequired
show properties (4)hide properties (4)
idstringrequired
is_selfbooleanrequired
created_atstringrequired
usernamestringrequired

Scoped access

client.findings.with(findingId) returns these methods with findingId already bound.

On this page