Analyses

Python 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. Both async and sync clients expose the same methods.

list

GET /v1/analyses

Analyses in the project.

result = await client.analyses.list()

Arguments:

paramsAnalysisListParams | Nonequery
default:None
pageinteger
page_sizeinteger
order_by'created_at' | 'updated_at'
order'desc' | 'asc'
user_idstring
is_ownerboolean
with_paginationboolquery
default:False

Return type by call:

  • with_pagination=True → PaginatedResource[Analysis]
  • with_pagination=False → Pagination[Analysis]
show properties (6)hide properties (6)
resultsarray of 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_findingsintegerrequired

Findings on this version, including staged changes.

n_remediationsintegerrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingintegerrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failedintegerrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeededintegerrequired

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_idOptional[integer]

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.

branchOptional[string]
commitOptional[GithubCommit]
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryOptional[GithubRepository]
show properties (4)hide properties (4)
idintegerrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idintegerrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
merged_from_versionOptional[AnalysisVersionRef]

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionOptional[AnalysisVersionRef]

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionOptional[AnalysisVersionRef]

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsarray of AnalysisVersionRef

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsarray of AnalysisVersionRef

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsarray of AnalysisVersionRef

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

pageintegerrequired
page_sizeintegerrequired
morebooleanrequired

Whether more pages follow.

total_observationsintegerrequired

Total results across all pages.

total_pagesintegerrequired

get

GET /v1/analyses/{analysis_id}

An analysis at HEAD, or at a specific version.

result = await client.analyses.get(
    analysis_id=analysis_id,
)

Arguments:

analysis_idstrpathrequired
paramsVersionIdentifierParam | Nonequery
default:None
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_findingsintegerrequired

Findings on this version, including staged changes.

n_remediationsintegerrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingintegerrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failedintegerrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeededintegerrequired

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_idOptional[integer]

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.

branchOptional[string]
commitOptional[GithubCommit]
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryOptional[GithubRepository]
show properties (4)hide properties (4)
idintegerrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idintegerrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
merged_from_versionOptional[AnalysisVersionRef]

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionOptional[AnalysisVersionRef]

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionOptional[AnalysisVersionRef]

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsarray of AnalysisVersionRef

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsarray of AnalysisVersionRef

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsarray of AnalysisVersionRef

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

recent

GET /v1/analyses/recent

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

result = await client.analyses.recent()

Returns: ExistsResponse[AnalysisExpanded]

show properties (2)hide properties (2)
existsbooleanrequired
dataOptional[AnalysisExpanded]
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_findingsintegerrequired

Findings on this version, including staged changes.

n_remediationsintegerrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingintegerrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failedintegerrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeededintegerrequired

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_idOptional[integer]

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.

branchOptional[string]
commitOptional[GithubCommit]
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryOptional[GithubRepository]
show properties (4)hide properties (4)
idintegerrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idintegerrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
merged_from_versionOptional[AnalysisVersionRef]

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionOptional[AnalysisVersionRef]

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionOptional[AnalysisVersionRef]

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsarray of AnalysisVersionRef

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsarray of AnalysisVersionRef

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsarray of AnalysisVersionRef

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

findingsarray of 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
recommendationOptional[string]
pocOptional[string]
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_idOptional[string]

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

reasons why action is not allowed, if applicable.

last_event_kindOptional[FindingEventKind]

update

PATCH /v1/analyses/{analysis_id}

Rename an analysis.

result = await client.analyses.update(
    analysis_id=analysis_id,
    name=name,
)

Arguments:

analysis_idstrpathrequired
namestrbodyrequired

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_findingsintegerrequired

Findings on this version, including staged changes.

n_remediationsintegerrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingintegerrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failedintegerrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeededintegerrequired

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_idOptional[integer]

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.

branchOptional[string]
commitOptional[GithubCommit]
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryOptional[GithubRepository]
show properties (4)hide properties (4)
idintegerrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idintegerrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
merged_from_versionOptional[AnalysisVersionRef]

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionOptional[AnalysisVersionRef]

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionOptional[AnalysisVersionRef]

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsarray of AnalysisVersionRef

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsarray of AnalysisVersionRef

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsarray of AnalysisVersionRef

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

delete

DELETE /v1/analyses/{analysis_id}

Delete an analysis and all its versions.

result = await client.analyses.delete(
    analysis_id=analysis_id,
)

Arguments:

analysis_idstrpathrequired

Returns: BooleanResponse

show properties (1)hide properties (1)
successbooleanrequired

create_root

POST /v1/analyses

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

result = await client.analyses.create_root(
    body=body,
)

Arguments:

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

Returns: AnalysisCreatedResult | AnalysisCollisionResult

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_findingsintegerrequired

Findings on this version, including staged changes.

n_remediationsintegerrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingintegerrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failedintegerrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeededintegerrequired

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_idOptional[integer]

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.

branchOptional[string]
commitOptional[GithubCommit]
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryOptional[GithubRepository]
show properties (4)hide properties (4)
idintegerrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idintegerrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
merged_from_versionOptional[AnalysisVersionRef]

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionOptional[AnalysisVersionRef]

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionOptional[AnalysisVersionRef]

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsarray of AnalysisVersionRef

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsarray of AnalysisVersionRef

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsarray of AnalysisVersionRef

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

AnalysisCollisionResult

show properties (2)hide properties (2)
is_createdFalserequired
candidatesarray of CollisionVersionrequired

Existing versions of this code in the project.

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

How this version was created.

n_findingsintegerrequired

Findings on this version, including staged changes.

n_remediationsintegerrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingintegerrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failedintegerrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeededintegerrequired

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_idOptional[integer]

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.

branchOptional[string]
commitOptional[GithubCommit]
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryOptional[GithubRepository]
show properties (4)hide properties (4)
idintegerrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idintegerrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
merged_from_versionOptional[AnalysisVersionRef]

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionOptional[AnalysisVersionRef]

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionOptional[AnalysisVersionRef]

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsarray of AnalysisVersionRef

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsarray of AnalysisVersionRef

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsarray of AnalysisVersionRef

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

create_child

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.

result = await client.analyses.create_child(
    analysis_id=analysis_id,
    body=body,
)

Arguments:

analysis_idstrpathrequired
bodyAnalysisCreateChildBodybodyrequired
version_idstring
code_idstringrequired
on_collision'surface' | 'force' | 'merge'

Returns: AnalysisCreatedResult | AnalysisCollisionResult

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_findingsintegerrequired

Findings on this version, including staged changes.

n_remediationsintegerrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingintegerrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failedintegerrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeededintegerrequired

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_idOptional[integer]

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.

branchOptional[string]
commitOptional[GithubCommit]
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryOptional[GithubRepository]
show properties (4)hide properties (4)
idintegerrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idintegerrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
merged_from_versionOptional[AnalysisVersionRef]

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionOptional[AnalysisVersionRef]

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionOptional[AnalysisVersionRef]

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsarray of AnalysisVersionRef

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsarray of AnalysisVersionRef

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsarray of AnalysisVersionRef

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

AnalysisCollisionResult

show properties (2)hide properties (2)
is_createdFalserequired
candidatesarray of CollisionVersionrequired

Existing versions of this code in the project.

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

How this version was created.

n_findingsintegerrequired

Findings on this version, including staged changes.

n_remediationsintegerrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingintegerrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failedintegerrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeededintegerrequired

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_idOptional[integer]

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.

branchOptional[string]
commitOptional[GithubCommit]
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryOptional[GithubRepository]
show properties (4)hide properties (4)
idintegerrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idintegerrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
merged_from_versionOptional[AnalysisVersionRef]

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionOptional[AnalysisVersionRef]

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionOptional[AnalysisVersionRef]

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsarray of AnalysisVersionRef

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsarray of AnalysisVersionRef

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsarray of AnalysisVersionRef

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

result = await client.analyses.fork(
    analysis_id=analysis_id,
)

Arguments:

analysis_idstrpathrequired
bodyVersionIdentifierBody | Nonebody
default:None
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_findingsintegerrequired

Findings on this version, including staged changes.

n_remediationsintegerrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingintegerrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failedintegerrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeededintegerrequired

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_idOptional[integer]

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.

branchOptional[string]
commitOptional[GithubCommit]
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryOptional[GithubRepository]
show properties (4)hide properties (4)
idintegerrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idintegerrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
merged_from_versionOptional[AnalysisVersionRef]

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionOptional[AnalysisVersionRef]

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionOptional[AnalysisVersionRef]

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsarray of AnalysisVersionRef

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsarray of AnalysisVersionRef

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsarray of AnalysisVersionRef

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

merge

POST /v1/analyses/merge

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

result = await client.analyses.merge(
    body=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_findingsintegerrequired

Findings on this version, including staged changes.

n_remediationsintegerrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingintegerrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failedintegerrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeededintegerrequired

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_idOptional[integer]

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.

branchOptional[string]
commitOptional[GithubCommit]
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryOptional[GithubRepository]
show properties (4)hide properties (4)
idintegerrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idintegerrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
merged_from_versionOptional[AnalysisVersionRef]

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionOptional[AnalysisVersionRef]

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionOptional[AnalysisVersionRef]

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsarray of AnalysisVersionRef

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsarray of AnalysisVersionRef

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsarray of AnalysisVersionRef

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

set_head

POST /v1/analyses/{analysis_id}/head

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

result = await client.analyses.set_head(
    analysis_id=analysis_id,
    body=body,
)

Arguments:

analysis_idstrpathrequired
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_findingsintegerrequired

Findings on this version, including staged changes.

n_remediationsintegerrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingintegerrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failedintegerrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeededintegerrequired

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_idOptional[integer]

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.

branchOptional[string]
commitOptional[GithubCommit]
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryOptional[GithubRepository]
show properties (4)hide properties (4)
idintegerrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idintegerrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
merged_from_versionOptional[AnalysisVersionRef]

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionOptional[AnalysisVersionRef]

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionOptional[AnalysisVersionRef]

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsarray of AnalysisVersionRef

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsarray of AnalysisVersionRef

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsarray of AnalysisVersionRef

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

result = await client.analyses.lineage(
    analysis_id=analysis_id,
)

Arguments:

analysis_idstrpathrequired
paramsVersionIdentifierParam | Nonequery
default:None
version_idstring

Returns: ResultsResponse[LineageEntry]

show properties (1)hide properties (1)
resultsarray of LineageEntry
show properties (10)hide properties (10)
idstringrequired
triggerstringrequired
code_idstringrequired
n_findingsintegerrequired
n_remediationsintegerrequired
created_atstringrequired
is_headbooleanrequired
parent_indexOptional[integer]required
parent_version_idOptional[string]
merged_from_version_idOptional[string]

entrypoints

GET /v1/analyses/{analysis_id}/entrypoints

A version's entrypoints and their pipeline status.

result = await client.analyses.entrypoints(
    analysis_id=analysis_id,
)

Arguments:

analysis_idstrpathrequired
paramsVersionIdentifierParam | Nonequery
default:None
version_idstring

Returns: ResultsResponse[EntryPoint]

show properties (1)hide properties (1)
resultsarray of EntryPoint
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_typeOptional[string]
src_start_posintegerrequired
src_end_posintegerrequired
docstringOptional[string]
namestringrequired
merkle_hashstringrequired
dm_hashOptional[string]
visibilityOptional[NodeVisibility]
mutabilityOptional[string]
is_virtualboolean
is_implementedboolean
signatureOptional[string]
is_callablebooleanrequired
is_declarationbooleanrequired
is_containerbooleanrequired
is_entrypointbooleanrequired
fieldsarray of GraphFieldMetadataItem
show properties (6)hide properties (6)
namestringrequired
typeOptional[string]
valueOptional[string]
mutabilityOptional[string]
discriminantOptional[integer]
constraintsarray of GraphConstraintItem
show properties (2)hide properties (2)
namestringrequired
valueOptional[array of string]
parametersarray of GraphParameterStorageMetadata
show properties (10)hide properties (10)
param_indexOptional[integer]required
start_byteintegerrequired
is_readboolean
is_writtenboolean
fieldOptional[string]
field_start_byteOptional[integer]
param_nameOptional[string]
type_nameOptional[string]
bound_to_ref_posOptional[integer]
bound_to_return_indexOptional[integer]
returnsarray of GraphReturnStorageMetadata
show properties (7)hide properties (7)
param_indintegerrequired
param_nameOptional[string]
type_nameOptional[string]
bound_to_fieldOptional[string]
bound_to_param_indexOptional[integer]
bound_to_ref_posOptional[integer]
bound_to_return_indexOptional[integer]
low_level_kindsarray of GraphLowLevelKind
show properties (2)hide properties (2)
kindLowLevelKindrequired
depthintegerrequired

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_findingsinteger

Number of indings on this entrypoint.

list_findings

GET /v1/analyses/{analysis_id}/findings

A version's findings. Incomplete while the pipeline is running.

result = await client.analyses.list_findings(
    analysis_id=analysis_id,
)

Arguments:

analysis_idstrpathrequired
paramsVersionIdentifierParam | Nonequery
default:None
version_idstring

Returns: ResultsResponse[Finding]

show properties (1)hide properties (1)
resultsarray of 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
recommendationOptional[string]
pocOptional[string]
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_idOptional[string]

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

reasons why action is not allowed, if applicable.

last_event_kindOptional[FindingEventKind]

add_findings

POST /v1/analyses/{analysis_id}/findings

Add findings to a version.

result = await client.analyses.add_findings(
    analysis_id=analysis_id,
    body=body,
)

Arguments:

analysis_idstrpathrequired
bodyFindingAddManyBodybodyrequired
version_idstring
findingsarray of FindingCreateBodyrequired

FindingCreateBody

locationFindingLocationNodeId | FindingLocationPhysical | FindingLocationLogicalrequired

FindingLocationNodeId

strategy'node_id'required
node_idstring
location_idstring

FindingLocationPhysical

strategy'physical'required
uristringrequired
startLineinteger
startColumninteger
endLineinteger
endColumninteger
charOffsetinteger
charLengthinteger
byteOffsetinteger
byteLengthinteger

FindingLocationLogical

strategy'logical'required
fully_qualified_namestringrequired
toolstring
metadataFindingMetadataBody

FindingMetadataBody

typestringrequired
levelFindingLevelrequired
namestringrequired
explanationstringrequired
recommendationstring
pocstring

Returns: ResultsResponse[Finding]

show properties (1)hide properties (1)
resultsarray of 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
recommendationOptional[string]
pocOptional[string]
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_idOptional[string]

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

reasons why action is not allowed, if applicable.

last_event_kindOptional[FindingEventKind]

transitions

GET /v1/analyses/{analysis_id}/transitions

How findings changed between a version and its parent.

result = await client.analyses.transitions(
    analysis_id=analysis_id,
)

Arguments:

analysis_idstrpathrequired
paramsVersionIdentifierParam | Nonequery
default:None
version_idstring

Returns: ResultsResponse[FindingTransition]

show properties (1)hide properties (1)
resultsarray of FindingTransition
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_findingOptional[FindingBare]

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
recommendationOptional[string]
pocOptional[string]
toolstringrequired

What produced the finding.

after_findingOptional[FindingBare]

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
recommendationOptional[string]
pocOptional[string]
toolstringrequired

What produced the finding.

changed_fieldsarray of string

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.

result = await client.analyses.run(
    analysis_id=analysis_id,
    body=body,
)

Arguments:

analysis_idstrpathrequired
bodyAnalysisRunBodybodyrequired

One of:

AnalysisRunStandardBody

version_idstring
mode'all' | 'first_party'required

AnalysisRunExplicitBody

version_idstring
mode'explicit'required
scopesarray of stringrequired
with_streamingboolbody
default:False

Return type by call:

  • with_streaming=True → EventResource[Analysis, AnalysisRunStatusEventData | AnalysisPipelineStatusEventData]
  • with_streaming=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_findingsintegerrequired

Findings on this version, including staged changes.

n_remediationsintegerrequired

Findings from the parent version dropped because their code changed.

is_headbooleanrequired

Whether this is the analysis's HEAD.

n_pipeline_processingintegerrequired

Number of entrypoints currently being processed by Bevor internal pipeline.

n_pipeline_failedintegerrequired

Number of entrypoints that have failed the Bevor internal pipeline

n_pipeline_succeededintegerrequired

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_idOptional[integer]

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.

branchOptional[string]
commitOptional[GithubCommit]
show properties (4)hide properties (4)
shastringrequired
authorstringrequired
messagestringrequired
timestampstringrequired
repositoryOptional[GithubRepository]
show properties (4)hide properties (4)
idintegerrequired
namestringrequired
is_privatebooleanrequired
accountGithubAccountrequired
show properties (4)hide properties (4)
idintegerrequired
loginstringrequired
typestringrequired
avatar_urlstringrequired
merged_from_versionOptional[AnalysisVersionRef]

The version merged into this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_from_versionOptional[AnalysisVersionRef]

The version this one was forked from.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
parent_versionOptional[AnalysisVersionRef]

The previous version in this analysis.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
child_versionsarray of AnalysisVersionRef

Versions built on this one.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
merged_versionsarray of AnalysisVersionRef

Versions this one was merged into.

show properties (2)hide properties (2)
idstringrequired
analysis_idstringrequired
forked_versionsarray of AnalysisVersionRef

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

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

Whether the caller can perform the action.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

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.

reasonsarray of string

reasons why action is not allowed, if applicable.

On this page