Analyses

TypeScript SDK reference for the analyses resource

Warning

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

Access this resource from client.analyses.

list

GET /v1/analyses

Analyses in the project.

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

Arguments:

queryAnalysisListParamsquery
pagenumber
page_sizenumber
order_by"created_at" | "updated_at"
order"desc" | "asc"
user_idstring
is_ownerboolean

Return type by call:

  • withPagination: true → PaginatedResource<Analysis>
  • withPagination: false → Pagination<Analysis>
show properties (6)hide properties (6)
resultsAnalysis[]required
show properties (6)hide properties (6)
idstringrequired
namestringrequired
created_atstringrequired
userUserrequired

The analysis owner.

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

Whether the caller owns this analysis.

versionAnalysisVersionrequired

The requested version, HEAD by default.

show properties (17)hide properties (17)
idstringrequired
created_atstringrequired
triggerAnalysisTriggerrequired

How this version was created.

n_findingsnumberrequired

Findings on this version, including staged changes.

n_remediationsnumberrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingnumberrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failednumberrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeedednumberrequired

Number of entrypoints that have successfully ran the Bevor internal pipeline

code_versionCodeVersionrequired

The code this version analyzes.

show properties (8)hide properties (8)
idstringrequired
chain_idnumber | nullrequired

The chain the contract is deployed on.

version_methodCodeVersionMethodrequired

How the code was sourced.

version_fingerprintstringrequired

Uniquely identifies this code.

statusCodeVersionStatusrequired

Processing status of the code.

branchstring | nullrequired
commitGithubCommit | nullrequired
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryGithubRepository | nullrequired
show properties (6)hide properties (6)
idnumberrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idnumberrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
full_namestringrequired

Full repository name: owner/repo-name

urlstringrequired

GitHub repository URL

merged_from_versionAnalysisVersionRef | nullrequired

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionAnalysisVersionRef | nullrequired

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionAnalysisVersionRef | nullrequired

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsAnalysisVersionRef[]required

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsAnalysisVersionRef[]required

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsAnalysisVersionRef[]required

Forks of this version.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsAnalysisActionsrequired
show properties (8)hide properties (8)
forkActionDetailsrequired
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.

create_childActionDetailsrequired

Add a version for new code on top of this one.

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.

run_pipelineActionDetailsrequired

Run Bevor internal pipeline. Can be used to retry failures as well.

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.

merge_toActionDetailsrequired
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.

merge_fromActionDetailsrequired

Add, edit, or delete findings.

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.

alter_findingsActionDetailsrequired

Edit, add, delete findings.

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.

set_as_headActionDetailsrequired
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.

pagenumberrequired
page_sizenumberrequired
morebooleanrequired

Whether more pages follow.

total_observationsnumberrequired

Total results across all pages.

total_pagesnumberrequired

get

GET /v1/analyses/{analysis_id}

An analysis at HEAD, or at a specific version.

const result = await client.analyses.get(analysisId);

Arguments:

analysisIdstringpathrequired
queryVersionIdentifierParamquery
version_idstring

Returns: Analysis

show properties (6)hide properties (6)
idstringrequired
namestringrequired
created_atstringrequired
userUserrequired

The analysis owner.

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

Whether the caller owns this analysis.

versionAnalysisVersionrequired

The requested version, HEAD by default.

show properties (17)hide properties (17)
idstringrequired
created_atstringrequired
triggerAnalysisTriggerrequired

How this version was created.

n_findingsnumberrequired

Findings on this version, including staged changes.

n_remediationsnumberrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingnumberrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failednumberrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeedednumberrequired

Number of entrypoints that have successfully ran the Bevor internal pipeline

code_versionCodeVersionrequired

The code this version analyzes.

show properties (8)hide properties (8)
idstringrequired
chain_idnumber | nullrequired

The chain the contract is deployed on.

version_methodCodeVersionMethodrequired

How the code was sourced.

version_fingerprintstringrequired

Uniquely identifies this code.

statusCodeVersionStatusrequired

Processing status of the code.

branchstring | nullrequired
commitGithubCommit | nullrequired
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryGithubRepository | nullrequired
show properties (6)hide properties (6)
idnumberrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idnumberrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
full_namestringrequired

Full repository name: owner/repo-name

urlstringrequired

GitHub repository URL

merged_from_versionAnalysisVersionRef | nullrequired

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionAnalysisVersionRef | nullrequired

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionAnalysisVersionRef | nullrequired

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsAnalysisVersionRef[]required

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsAnalysisVersionRef[]required

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsAnalysisVersionRef[]required

Forks of this version.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsAnalysisActionsrequired
show properties (8)hide properties (8)
forkActionDetailsrequired
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.

create_childActionDetailsrequired

Add a version for new code on top of this one.

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.

run_pipelineActionDetailsrequired

Run Bevor internal pipeline. Can be used to retry failures as well.

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.

merge_toActionDetailsrequired
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.

merge_fromActionDetailsrequired

Add, edit, or delete findings.

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.

alter_findingsActionDetailsrequired

Edit, add, delete findings.

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.

set_as_headActionDetailsrequired
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.

recent

GET /v1/analyses/recent

The caller's most recent analysis, with its findings.

const result = await client.analyses.recent();

Returns: ExistsResponse<AnalysisExpanded>

show properties (2)hide properties (2)
existsbooleanrequired
dataAnalysisExpanded | nullrequired
show properties (7)hide properties (7)
idstringrequired
namestringrequired
created_atstringrequired
userUserrequired

The analysis owner.

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

Whether the caller owns this analysis.

versionAnalysisVersionrequired

The requested version, HEAD by default.

show properties (17)hide properties (17)
idstringrequired
created_atstringrequired
triggerAnalysisTriggerrequired

How this version was created.

n_findingsnumberrequired

Findings on this version, including staged changes.

n_remediationsnumberrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingnumberrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failednumberrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeedednumberrequired

Number of entrypoints that have successfully ran the Bevor internal pipeline

code_versionCodeVersionrequired

The code this version analyzes.

show properties (8)hide properties (8)
idstringrequired
chain_idnumber | nullrequired

The chain the contract is deployed on.

version_methodCodeVersionMethodrequired

How the code was sourced.

version_fingerprintstringrequired

Uniquely identifies this code.

statusCodeVersionStatusrequired

Processing status of the code.

branchstring | nullrequired
commitGithubCommit | nullrequired
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryGithubRepository | nullrequired
show properties (6)hide properties (6)
idnumberrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idnumberrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
full_namestringrequired

Full repository name: owner/repo-name

urlstringrequired

GitHub repository URL

merged_from_versionAnalysisVersionRef | nullrequired

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionAnalysisVersionRef | nullrequired

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionAnalysisVersionRef | nullrequired

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsAnalysisVersionRef[]required

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsAnalysisVersionRef[]required

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsAnalysisVersionRef[]required

Forks of this version.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsAnalysisActionsrequired
show properties (8)hide properties (8)
forkActionDetailsrequired
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.

create_childActionDetailsrequired

Add a version for new code on top of this one.

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.

run_pipelineActionDetailsrequired

Run Bevor internal pipeline. Can be used to retry failures as well.

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.

merge_toActionDetailsrequired
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.

merge_fromActionDetailsrequired

Add, edit, or delete findings.

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.

alter_findingsActionDetailsrequired

Edit, add, delete findings.

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.

set_as_headActionDetailsrequired
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.

findingsFinding[]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

update

PATCH /v1/analyses/{analysis_id}

Rename an analysis.

const result = await client.analyses.update(analysisId, name);

Arguments:

analysisIdstringpathrequired
namestringbodyrequired

Returns: Analysis

show properties (6)hide properties (6)
idstringrequired
namestringrequired
created_atstringrequired
userUserrequired

The analysis owner.

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

Whether the caller owns this analysis.

versionAnalysisVersionrequired

The requested version, HEAD by default.

show properties (17)hide properties (17)
idstringrequired
created_atstringrequired
triggerAnalysisTriggerrequired

How this version was created.

n_findingsnumberrequired

Findings on this version, including staged changes.

n_remediationsnumberrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingnumberrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failednumberrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeedednumberrequired

Number of entrypoints that have successfully ran the Bevor internal pipeline

code_versionCodeVersionrequired

The code this version analyzes.

show properties (8)hide properties (8)
idstringrequired
chain_idnumber | nullrequired

The chain the contract is deployed on.

version_methodCodeVersionMethodrequired

How the code was sourced.

version_fingerprintstringrequired

Uniquely identifies this code.

statusCodeVersionStatusrequired

Processing status of the code.

branchstring | nullrequired
commitGithubCommit | nullrequired
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryGithubRepository | nullrequired
show properties (6)hide properties (6)
idnumberrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idnumberrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
full_namestringrequired

Full repository name: owner/repo-name

urlstringrequired

GitHub repository URL

merged_from_versionAnalysisVersionRef | nullrequired

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionAnalysisVersionRef | nullrequired

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionAnalysisVersionRef | nullrequired

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsAnalysisVersionRef[]required

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsAnalysisVersionRef[]required

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsAnalysisVersionRef[]required

Forks of this version.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsAnalysisActionsrequired
show properties (8)hide properties (8)
forkActionDetailsrequired
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.

create_childActionDetailsrequired

Add a version for new code on top of this one.

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.

run_pipelineActionDetailsrequired

Run Bevor internal pipeline. Can be used to retry failures as well.

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.

merge_toActionDetailsrequired
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.

merge_fromActionDetailsrequired

Add, edit, or delete findings.

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.

alter_findingsActionDetailsrequired

Edit, add, delete findings.

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.

set_as_headActionDetailsrequired
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.

delete

DELETE /v1/analyses/{analysis_id}

Delete an analysis and all its versions.

const result = await client.analyses.delete(analysisId);

Arguments:

analysisIdstringpathrequired

Returns: BooleanResponse

show properties (1)hide properties (1)
successbooleanrequired

createRoot

POST /v1/analyses

Create an analysis for uploaded code, or return the project's existing versions of that code. Doesn't run the pipeline.

const result = await client.analyses.createRoot(body);

Arguments:

bodyAnalysisCreateRootBodybodyrequired
code_idstringrequired
on_collision"merge" | "surface" | "force"
namestring

Returns: AnalysisCreate

One of:

AnalysisCreatedResult

show properties (2)hide properties (2)
is_createdtruerequired
analysisAnalysisrequired

The created analysis.

show properties (6)hide properties (6)
idstringrequired
namestringrequired
created_atstringrequired
userUserrequired

The analysis owner.

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

Whether the caller owns this analysis.

versionAnalysisVersionrequired

The requested version, HEAD by default.

show properties (17)hide properties (17)
idstringrequired
created_atstringrequired
triggerAnalysisTriggerrequired

How this version was created.

n_findingsnumberrequired

Findings on this version, including staged changes.

n_remediationsnumberrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingnumberrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failednumberrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeedednumberrequired

Number of entrypoints that have successfully ran the Bevor internal pipeline

code_versionCodeVersionrequired

The code this version analyzes.

show properties (8)hide properties (8)
idstringrequired
chain_idnumber | nullrequired

The chain the contract is deployed on.

version_methodCodeVersionMethodrequired

How the code was sourced.

version_fingerprintstringrequired

Uniquely identifies this code.

statusCodeVersionStatusrequired

Processing status of the code.

branchstring | nullrequired
commitGithubCommit | nullrequired
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryGithubRepository | nullrequired
show properties (6)hide properties (6)
idnumberrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idnumberrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
full_namestringrequired

Full repository name: owner/repo-name

urlstringrequired

GitHub repository URL

merged_from_versionAnalysisVersionRef | nullrequired

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionAnalysisVersionRef | nullrequired

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionAnalysisVersionRef | nullrequired

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsAnalysisVersionRef[]required

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsAnalysisVersionRef[]required

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsAnalysisVersionRef[]required

Forks of this version.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsAnalysisActionsrequired
show properties (8)hide properties (8)
forkActionDetailsrequired
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.

create_childActionDetailsrequired

Add a version for new code on top of this one.

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.

run_pipelineActionDetailsrequired

Run Bevor internal pipeline. Can be used to retry failures as well.

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.

merge_toActionDetailsrequired
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.

merge_fromActionDetailsrequired

Add, edit, or delete findings.

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.

alter_findingsActionDetailsrequired

Edit, add, delete findings.

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.

set_as_headActionDetailsrequired
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.

AnalysisCollisionResult

show properties (2)hide properties (2)
is_createdfalserequired
candidatesCollisionVersion[]required

Existing versions of this code in the project.

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

How this version was created.

n_findingsnumberrequired

Findings on this version, including staged changes.

n_remediationsnumberrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingnumberrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failednumberrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeedednumberrequired

Number of entrypoints that have successfully ran the Bevor internal pipeline

code_versionCodeVersionrequired

The code this version analyzes.

show properties (8)hide properties (8)
idstringrequired
chain_idnumber | nullrequired

The chain the contract is deployed on.

version_methodCodeVersionMethodrequired

How the code was sourced.

version_fingerprintstringrequired

Uniquely identifies this code.

statusCodeVersionStatusrequired

Processing status of the code.

branchstring | nullrequired
commitGithubCommit | nullrequired
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryGithubRepository | nullrequired
show properties (6)hide properties (6)
idnumberrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idnumberrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
full_namestringrequired

Full repository name: owner/repo-name

urlstringrequired

GitHub repository URL

merged_from_versionAnalysisVersionRef | nullrequired

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionAnalysisVersionRef | nullrequired

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionAnalysisVersionRef | nullrequired

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsAnalysisVersionRef[]required

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsAnalysisVersionRef[]required

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsAnalysisVersionRef[]required

Forks of this version.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsAnalysisActionsrequired
show properties (8)hide properties (8)
forkActionDetailsrequired
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.

create_childActionDetailsrequired

Add a version for new code on top of this one.

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.

run_pipelineActionDetailsrequired

Run Bevor internal pipeline. Can be used to retry failures as well.

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.

merge_toActionDetailsrequired
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.

merge_fromActionDetailsrequired

Add, edit, or delete findings.

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.

alter_findingsActionDetailsrequired

Edit, add, delete findings.

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.

set_as_headActionDetailsrequired
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.

analysis_metaAnalysisMetadatarequired

The analysis this version belongs to.

show properties (5)hide properties (5)
idstringrequired
namestringrequired
created_atstringrequired
userUserrequired

The analysis owner.

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

Whether the caller owns this analysis.

on_collision"fork" | "merge" | "view"required

The suggested way to reuse this version.

createChild

POST /v1/analyses/{analysis_id}/child

Add a version for new code on top of an existing version, and make it HEAD. Findings on unchanged code carry over. Doesn't run the pipeline.

const result = await client.analyses.createChild(analysisId, body);

Arguments:

analysisIdstringpathrequired
bodyAnalysisCreateChildBodybodyrequired
version_idstring
code_idstringrequired
on_collision"merge" | "surface" | "force"

Returns: AnalysisCreate

One of:

AnalysisCreatedResult

show properties (2)hide properties (2)
is_createdtruerequired
analysisAnalysisrequired

The created analysis.

show properties (6)hide properties (6)
idstringrequired
namestringrequired
created_atstringrequired
userUserrequired

The analysis owner.

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

Whether the caller owns this analysis.

versionAnalysisVersionrequired

The requested version, HEAD by default.

show properties (17)hide properties (17)
idstringrequired
created_atstringrequired
triggerAnalysisTriggerrequired

How this version was created.

n_findingsnumberrequired

Findings on this version, including staged changes.

n_remediationsnumberrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingnumberrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failednumberrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeedednumberrequired

Number of entrypoints that have successfully ran the Bevor internal pipeline

code_versionCodeVersionrequired

The code this version analyzes.

show properties (8)hide properties (8)
idstringrequired
chain_idnumber | nullrequired

The chain the contract is deployed on.

version_methodCodeVersionMethodrequired

How the code was sourced.

version_fingerprintstringrequired

Uniquely identifies this code.

statusCodeVersionStatusrequired

Processing status of the code.

branchstring | nullrequired
commitGithubCommit | nullrequired
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryGithubRepository | nullrequired
show properties (6)hide properties (6)
idnumberrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idnumberrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
full_namestringrequired

Full repository name: owner/repo-name

urlstringrequired

GitHub repository URL

merged_from_versionAnalysisVersionRef | nullrequired

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionAnalysisVersionRef | nullrequired

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionAnalysisVersionRef | nullrequired

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsAnalysisVersionRef[]required

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsAnalysisVersionRef[]required

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsAnalysisVersionRef[]required

Forks of this version.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsAnalysisActionsrequired
show properties (8)hide properties (8)
forkActionDetailsrequired
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.

create_childActionDetailsrequired

Add a version for new code on top of this one.

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.

run_pipelineActionDetailsrequired

Run Bevor internal pipeline. Can be used to retry failures as well.

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.

merge_toActionDetailsrequired
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.

merge_fromActionDetailsrequired

Add, edit, or delete findings.

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.

alter_findingsActionDetailsrequired

Edit, add, delete findings.

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.

set_as_headActionDetailsrequired
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.

AnalysisCollisionResult

show properties (2)hide properties (2)
is_createdfalserequired
candidatesCollisionVersion[]required

Existing versions of this code in the project.

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

How this version was created.

n_findingsnumberrequired

Findings on this version, including staged changes.

n_remediationsnumberrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingnumberrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failednumberrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeedednumberrequired

Number of entrypoints that have successfully ran the Bevor internal pipeline

code_versionCodeVersionrequired

The code this version analyzes.

show properties (8)hide properties (8)
idstringrequired
chain_idnumber | nullrequired

The chain the contract is deployed on.

version_methodCodeVersionMethodrequired

How the code was sourced.

version_fingerprintstringrequired

Uniquely identifies this code.

statusCodeVersionStatusrequired

Processing status of the code.

branchstring | nullrequired
commitGithubCommit | nullrequired
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryGithubRepository | nullrequired
show properties (6)hide properties (6)
idnumberrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idnumberrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
full_namestringrequired

Full repository name: owner/repo-name

urlstringrequired

GitHub repository URL

merged_from_versionAnalysisVersionRef | nullrequired

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionAnalysisVersionRef | nullrequired

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionAnalysisVersionRef | nullrequired

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsAnalysisVersionRef[]required

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsAnalysisVersionRef[]required

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsAnalysisVersionRef[]required

Forks of this version.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsAnalysisActionsrequired
show properties (8)hide properties (8)
forkActionDetailsrequired
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.

create_childActionDetailsrequired

Add a version for new code on top of this one.

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.

run_pipelineActionDetailsrequired

Run Bevor internal pipeline. Can be used to retry failures as well.

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.

merge_toActionDetailsrequired
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.

merge_fromActionDetailsrequired

Add, edit, or delete findings.

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.

alter_findingsActionDetailsrequired

Edit, add, delete findings.

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.

set_as_headActionDetailsrequired
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.

analysis_metaAnalysisMetadatarequired

The analysis this version belongs to.

show properties (5)hide properties (5)
idstringrequired
namestringrequired
created_atstringrequired
userUserrequired

The analysis owner.

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

Whether the caller owns this analysis.

on_collision"fork" | "merge" | "view"required

The suggested way to reuse this version.

fork

POST /v1/analyses/{analysis_id}/fork

Copy a version of another user's analysis into a new analysis owned by the caller.

const result = await client.analyses.fork(analysisId);

Arguments:

analysisIdstringpathrequired
bodyVersionIdentifierBodybody
default:{}
version_idstring

Returns: Analysis

show properties (6)hide properties (6)
idstringrequired
namestringrequired
created_atstringrequired
userUserrequired

The analysis owner.

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

Whether the caller owns this analysis.

versionAnalysisVersionrequired

The requested version, HEAD by default.

show properties (17)hide properties (17)
idstringrequired
created_atstringrequired
triggerAnalysisTriggerrequired

How this version was created.

n_findingsnumberrequired

Findings on this version, including staged changes.

n_remediationsnumberrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingnumberrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failednumberrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeedednumberrequired

Number of entrypoints that have successfully ran the Bevor internal pipeline

code_versionCodeVersionrequired

The code this version analyzes.

show properties (8)hide properties (8)
idstringrequired
chain_idnumber | nullrequired

The chain the contract is deployed on.

version_methodCodeVersionMethodrequired

How the code was sourced.

version_fingerprintstringrequired

Uniquely identifies this code.

statusCodeVersionStatusrequired

Processing status of the code.

branchstring | nullrequired
commitGithubCommit | nullrequired
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryGithubRepository | nullrequired
show properties (6)hide properties (6)
idnumberrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idnumberrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
full_namestringrequired

Full repository name: owner/repo-name

urlstringrequired

GitHub repository URL

merged_from_versionAnalysisVersionRef | nullrequired

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionAnalysisVersionRef | nullrequired

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionAnalysisVersionRef | nullrequired

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsAnalysisVersionRef[]required

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsAnalysisVersionRef[]required

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsAnalysisVersionRef[]required

Forks of this version.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsAnalysisActionsrequired
show properties (8)hide properties (8)
forkActionDetailsrequired
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.

create_childActionDetailsrequired

Add a version for new code on top of this one.

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.

run_pipelineActionDetailsrequired

Run Bevor internal pipeline. Can be used to retry failures as well.

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.

merge_toActionDetailsrequired
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.

merge_fromActionDetailsrequired

Add, edit, or delete findings.

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.

alter_findingsActionDetailsrequired

Edit, add, delete findings.

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.

set_as_headActionDetailsrequired
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.

merge

POST /v1/analyses/merge

Merge one version's findings into another, as a new version.

const result = await client.analyses.merge(body);

Arguments:

bodyAnalysisMergeBodybodyrequired
from_version_idstringrequired
to_version_idstringrequired

Returns: Analysis

show properties (6)hide properties (6)
idstringrequired
namestringrequired
created_atstringrequired
userUserrequired

The analysis owner.

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

Whether the caller owns this analysis.

versionAnalysisVersionrequired

The requested version, HEAD by default.

show properties (17)hide properties (17)
idstringrequired
created_atstringrequired
triggerAnalysisTriggerrequired

How this version was created.

n_findingsnumberrequired

Findings on this version, including staged changes.

n_remediationsnumberrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingnumberrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failednumberrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeedednumberrequired

Number of entrypoints that have successfully ran the Bevor internal pipeline

code_versionCodeVersionrequired

The code this version analyzes.

show properties (8)hide properties (8)
idstringrequired
chain_idnumber | nullrequired

The chain the contract is deployed on.

version_methodCodeVersionMethodrequired

How the code was sourced.

version_fingerprintstringrequired

Uniquely identifies this code.

statusCodeVersionStatusrequired

Processing status of the code.

branchstring | nullrequired
commitGithubCommit | nullrequired
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryGithubRepository | nullrequired
show properties (6)hide properties (6)
idnumberrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idnumberrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
full_namestringrequired

Full repository name: owner/repo-name

urlstringrequired

GitHub repository URL

merged_from_versionAnalysisVersionRef | nullrequired

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionAnalysisVersionRef | nullrequired

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionAnalysisVersionRef | nullrequired

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsAnalysisVersionRef[]required

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsAnalysisVersionRef[]required

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsAnalysisVersionRef[]required

Forks of this version.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsAnalysisActionsrequired
show properties (8)hide properties (8)
forkActionDetailsrequired
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.

create_childActionDetailsrequired

Add a version for new code on top of this one.

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.

run_pipelineActionDetailsrequired

Run Bevor internal pipeline. Can be used to retry failures as well.

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.

merge_toActionDetailsrequired
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.

merge_fromActionDetailsrequired

Add, edit, or delete findings.

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.

alter_findingsActionDetailsrequired

Edit, add, delete findings.

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.

set_as_headActionDetailsrequired
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.

setHead

POST /v1/analyses/{analysis_id}/head

Move an analysis's HEAD to one of its versions.

const result = await client.analyses.setHead(analysisId, body);

Arguments:

analysisIdstringpathrequired
bodyAnalysisSetHeadBodybodyrequired
version_idstringrequired

Returns: Analysis

show properties (6)hide properties (6)
idstringrequired
namestringrequired
created_atstringrequired
userUserrequired

The analysis owner.

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

Whether the caller owns this analysis.

versionAnalysisVersionrequired

The requested version, HEAD by default.

show properties (17)hide properties (17)
idstringrequired
created_atstringrequired
triggerAnalysisTriggerrequired

How this version was created.

n_findingsnumberrequired

Findings on this version, including staged changes.

n_remediationsnumberrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingnumberrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failednumberrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeedednumberrequired

Number of entrypoints that have successfully ran the Bevor internal pipeline

code_versionCodeVersionrequired

The code this version analyzes.

show properties (8)hide properties (8)
idstringrequired
chain_idnumber | nullrequired

The chain the contract is deployed on.

version_methodCodeVersionMethodrequired

How the code was sourced.

version_fingerprintstringrequired

Uniquely identifies this code.

statusCodeVersionStatusrequired

Processing status of the code.

branchstring | nullrequired
commitGithubCommit | nullrequired
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryGithubRepository | nullrequired
show properties (6)hide properties (6)
idnumberrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idnumberrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
full_namestringrequired

Full repository name: owner/repo-name

urlstringrequired

GitHub repository URL

merged_from_versionAnalysisVersionRef | nullrequired

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionAnalysisVersionRef | nullrequired

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionAnalysisVersionRef | nullrequired

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsAnalysisVersionRef[]required

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsAnalysisVersionRef[]required

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsAnalysisVersionRef[]required

Forks of this version.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsAnalysisActionsrequired
show properties (8)hide properties (8)
forkActionDetailsrequired
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.

create_childActionDetailsrequired

Add a version for new code on top of this one.

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.

run_pipelineActionDetailsrequired

Run Bevor internal pipeline. Can be used to retry failures as well.

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.

merge_toActionDetailsrequired
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.

merge_fromActionDetailsrequired

Add, edit, or delete findings.

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.

alter_findingsActionDetailsrequired

Edit, add, delete findings.

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.

set_as_headActionDetailsrequired
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.

lineage

GET /v1/analyses/{analysis_id}/lineage

Get the parent lineage of an analysis. HEAD is used by default as the leaf.

const result = await client.analyses.lineage(analysisId);

Arguments:

analysisIdstringpathrequired
queryVersionIdentifierParamquery
version_idstring

Returns: ResultsResponse<LineageEntry>

show properties (1)hide properties (1)
resultsLineageEntry[]required
show properties (10)hide properties (10)
idstringrequired
triggerstringrequired
code_idstringrequired
n_findingsnumberrequired
n_remediationsnumberrequired
created_atstringrequired
is_headbooleanrequired
parent_indexnumber | nullrequired
parent_version_idstring | nullrequired
merged_from_version_idstring | nullrequired

entrypoints

GET /v1/analyses/{analysis_id}/entrypoints

A version's entrypoints and their pipeline status.

const result = await client.analyses.entrypoints(analysisId);

Arguments:

analysisIdstringpathrequired
queryVersionIdentifierParamquery
version_idstring

Returns: ResultsResponse<EntryPoint>

show properties (1)hide properties (1)
resultsEntryPoint[]required
show properties (6)hide properties (6)
nodeGraphSnapshotNoderequired

The entrypoint's node in the code graph.

show properties (26)hide properties (26)
idstringrequired
languageLanguagerequired
file_idstringrequired
file_pathstringrequired
short_idstringrequired
node_typestringrequired
sub_typestring | nullrequired
src_start_posnumberrequired
src_end_posnumberrequired
docstringstring | nullrequired
namestringrequired
merkle_hashstringrequired
dm_hashstring | nullrequired
visibilityNodeVisibility | nullrequired
mutabilitystring | nullrequired
is_virtualbooleanrequired
is_implementedbooleanrequired
signaturestring | nullrequired
is_callablebooleanrequired
is_declarationbooleanrequired
is_containerbooleanrequired
is_entrypointbooleanrequired
fieldsGraphFieldMetadataItem[]required
show properties (6)hide properties (6)
namestringrequired
typestring | nullrequired
valuestring | nullrequired
mutabilitystring | nullrequired
discriminantnumber | nullrequired
constraintsGraphConstraintItem[]required
show properties (2)hide properties (2)
namestringrequired
valuestring[] | nullrequired
parametersGraphParameterStorageMetadata[]required
show properties (10)hide properties (10)
param_indexnumber | nullrequired
start_bytenumberrequired
is_readbooleanrequired
is_writtenbooleanrequired
fieldstring | nullrequired
field_start_bytenumber | nullrequired
param_namestring | nullrequired
type_namestring | nullrequired
bound_to_ref_posnumber | nullrequired
bound_to_return_indexnumber | nullrequired
returnsGraphReturnStorageMetadata[]required
show properties (7)hide properties (7)
param_indnumberrequired
param_namestring | nullrequired
type_namestring | nullrequired
bound_to_fieldstring | nullrequired
bound_to_param_indexnumber | nullrequired
bound_to_ref_posnumber | nullrequired
bound_to_return_indexnumber | nullrequired
low_level_kindsGraphLowLevelKind[]required
show properties (2)hide properties (2)
kindLowLevelKindrequired
depthnumberrequired

calls between the node and the nearest occurrence; 0 when the node does it itself

is_carriedbooleanrequired

Whether it was analyzed in the parent.

is_analyzedbooleanrequired

Whether it was ever analyzed.

is_analyzed_in_currentbooleanrequired

Whether it was analyzed in this version.

pipeline_statusAnalysisEntrypointStatusrequired

Most recent bevor security pipeline status

n_findingsnumberrequired

Number of indings on this entrypoint.

listFindings

GET /v1/analyses/{analysis_id}/findings

A version's findings, including staged changes. Incomplete while the pipeline is running.

const result = await client.analyses.listFindings(analysisId);

Arguments:

analysisIdstringpathrequired
queryVersionIdentifierParamquery
version_idstring

Returns: ResultsResponse<Finding>

show properties (1)hide properties (1)
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

addFindings

POST /v1/analyses/{analysis_id}/findings

Stage findings on a version.

const result = await client.analyses.addFindings(analysisId, body);

Arguments:

analysisIdstringpathrequired
bodyFindingAddManyBodybodyrequired
version_idstring
findingsFindingCreateBody[]required

FindingCreateBody

locationFindingLocationNodeId | FindingLocationPhysical | FindingLocationLogicalrequired

FindingLocationNodeId

strategy"node_id"required
node_idstring
location_idstring

FindingLocationPhysical

strategy"physical"required
uristringrequired
startLinenumber
startColumnnumber
endLinenumber
endColumnnumber
charOffsetnumber
charLengthnumber
byteOffsetnumber
byteLengthnumber

FindingLocationLogical

strategy"logical"required
fully_qualified_namestringrequired
toolstring

Your own annotation of a tool name. Use this to differentiate how findings entered the system and evaluate the performance of each

metadataFindingMetadataBody

FindingMetadataBody

typestringrequired

Finding type

levelFindingLevelrequired

Finding severity

namestringrequired
explanationstringrequired
recommendationstring
pocstring

Returns: ResultsResponse<Finding>

show properties (1)hide properties (1)
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

transitions

GET /v1/analyses/{analysis_id}/transitions

How findings changed between a version and its parent.

const result = await client.analyses.transitions(analysisId);

Arguments:

analysisIdstringpathrequired
queryVersionIdentifierParamquery
version_idstring

Returns: ResultsResponse<FindingTransition>

show properties (1)hide properties (1)
resultsFindingTransition[]required
show properties (8)hide properties (8)
idstringrequired
created_atstringrequired
before_versionAnalysisVersionRefrequired
show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
after_versionAnalysisVersionRefrequired
show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
kindFindingTransitionKindrequired

How the finding changed.

before_findingFindingBare | nullrequired

The finding before the change.

show properties (11)hide properties (11)
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.

after_findingFindingBare | nullrequired

The finding after the change.

show properties (11)hide properties (11)
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.

changed_fieldsstring[]required

used when comparing staged changes

run

POST /v1/analyses/{analysis_id}/run

Run the security pipeline on a version's entrypoints. Returns once the run is queued.

const result = await client.analyses.run(analysisId);

Arguments:

analysisIdstringpathrequired
bodyAnalysisRunBodybody

One of:

AnalysisRunStandardBody

version_idstring
mode"all" | "first_party"required

AnalysisRunExplicitBody

version_idstring
mode"explicit"required
scopesstring[]required

Return type by call:

  • withStreaming: true → EventResource<Analysis, AnalysisEventData>
  • withStreaming: false → Analysis
show properties (6)hide properties (6)
idstringrequired
namestringrequired
created_atstringrequired
userUserrequired

The analysis owner.

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

Whether the caller owns this analysis.

versionAnalysisVersionrequired

The requested version, HEAD by default.

show properties (17)hide properties (17)
idstringrequired
created_atstringrequired
triggerAnalysisTriggerrequired

How this version was created.

n_findingsnumberrequired

Findings on this version, including staged changes.

n_remediationsnumberrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingnumberrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failednumberrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeedednumberrequired

Number of entrypoints that have successfully ran the Bevor internal pipeline

code_versionCodeVersionrequired

The code this version analyzes.

show properties (8)hide properties (8)
idstringrequired
chain_idnumber | nullrequired

The chain the contract is deployed on.

version_methodCodeVersionMethodrequired

How the code was sourced.

version_fingerprintstringrequired

Uniquely identifies this code.

statusCodeVersionStatusrequired

Processing status of the code.

branchstring | nullrequired
commitGithubCommit | nullrequired
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryGithubRepository | nullrequired
show properties (6)hide properties (6)
idnumberrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idnumberrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
full_namestringrequired

Full repository name: owner/repo-name

urlstringrequired

GitHub repository URL

merged_from_versionAnalysisVersionRef | nullrequired

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionAnalysisVersionRef | nullrequired

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionAnalysisVersionRef | nullrequired

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsAnalysisVersionRef[]required

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsAnalysisVersionRef[]required

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsAnalysisVersionRef[]required

Forks of this version.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
actionsAnalysisActionsrequired
show properties (8)hide properties (8)
forkActionDetailsrequired
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.

create_childActionDetailsrequired

Add a version for new code on top of this one.

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.

run_pipelineActionDetailsrequired

Run Bevor internal pipeline. Can be used to retry failures as well.

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.

merge_toActionDetailsrequired
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.

merge_fromActionDetailsrequired

Add, edit, or delete findings.

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.

alter_findingsActionDetailsrequired

Edit, add, delete findings.

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.

set_as_headActionDetailsrequired
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.

Scoped access

client.analyses.with(analysisId) returns these methods with analysisId already bound.

On this page