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 | NonequeryNonepageintegerpage_sizeintegerorder_by'created_at' | 'updated_at'order'desc' | 'asc'user_idstringis_ownerbooleanwith_paginationboolqueryFalseReturn type by call:
with_pagination=True→PaginatedResource[Analysis]with_pagination=False→Pagination[Analysis]
show properties (6)hide properties (6)
resultsarray of Analysisshow properties (6)hide properties (6)
idstringrequirednamestringrequiredcreated_atstringrequireduserUserrequiredThe analysis owner.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredis_ownerbooleanrequiredWhether the caller owns this analysis.
versionAnalysisVersionrequiredThe requested version, HEAD by default.
show properties (17)hide properties (17)
idstringrequiredcreated_atstringrequiredtriggerAnalysisTriggerrequiredHow this version was created.
n_findingsintegerrequiredFindings on this version, including staged changes.
n_remediationsintegerrequiredFindings from the parent version dropped because their code changed.
is_headbooleanrequiredWhether this is the analysis's HEAD.
n_pipeline_processingintegerrequiredNumber of entrypoints currently being processed by Bevor internal pipeline.
n_pipeline_failedintegerrequiredNumber of entrypoints that have failed the Bevor internal pipeline
n_pipeline_succeededintegerrequiredNumber of entrypoints that have successfully ran the Bevor internal pipeline
code_versionCodeVersionrequiredThe code this version analyzes.
show properties (8)hide properties (8)
idstringrequiredchain_idOptional[integer]The chain the contract is deployed on.
version_methodCodeVersionMethodrequiredHow the code was sourced.
version_fingerprintstringrequiredUniquely identifies this code.
statusCodeVersionStatusrequiredProcessing status of the code.
branchOptional[string]commitOptional[GithubCommit]show properties (4)hide properties (4)
shastringrequiredauthorstringrequiredmessagestringrequiredtimestampstringrequiredrepositoryOptional[GithubRepository]show properties (4)hide properties (4)
idintegerrequirednamestringrequiredis_privatebooleanrequiredaccountGithubAccountrequiredshow properties (4)hide properties (4)
idintegerrequiredloginstringrequiredtypestringrequiredavatar_urlstringrequiredmerged_from_versionOptional[AnalysisVersionRef]The version merged into this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_from_versionOptional[AnalysisVersionRef]The version this one was forked from.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredparent_versionOptional[AnalysisVersionRef]The previous version in this analysis.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredchild_versionsarray of AnalysisVersionRefVersions built on this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredmerged_versionsarray of AnalysisVersionRefVersions this one was merged into.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_versionsarray of AnalysisVersionRefForks of this version.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsAnalysisActionsrequiredshow properties (8)hide properties (8)
forkActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
create_childActionDetailsrequiredAdd a version for new code on top of this one.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
run_pipelineActionDetailsrequiredRun Bevor internal pipeline. Can be used to retry failures as well.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_toActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_fromActionDetailsrequiredAdd, edit, or delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
alter_findingsActionDetailsrequiredEdit, add, delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
set_as_headActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
pageintegerrequiredpage_sizeintegerrequiredmorebooleanrequiredWhether more pages follow.
total_observationsintegerrequiredTotal results across all pages.
total_pagesintegerrequiredget
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_idstrpathrequiredparamsVersionIdentifierParam | NonequeryNoneversion_idstringReturns: Analysis
show properties (6)hide properties (6)
idstringrequirednamestringrequiredcreated_atstringrequireduserUserrequiredThe analysis owner.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredis_ownerbooleanrequiredWhether the caller owns this analysis.
versionAnalysisVersionrequiredThe requested version, HEAD by default.
show properties (17)hide properties (17)
idstringrequiredcreated_atstringrequiredtriggerAnalysisTriggerrequiredHow this version was created.
n_findingsintegerrequiredFindings on this version, including staged changes.
n_remediationsintegerrequiredFindings from the parent version dropped because their code changed.
is_headbooleanrequiredWhether this is the analysis's HEAD.
n_pipeline_processingintegerrequiredNumber of entrypoints currently being processed by Bevor internal pipeline.
n_pipeline_failedintegerrequiredNumber of entrypoints that have failed the Bevor internal pipeline
n_pipeline_succeededintegerrequiredNumber of entrypoints that have successfully ran the Bevor internal pipeline
code_versionCodeVersionrequiredThe code this version analyzes.
show properties (8)hide properties (8)
idstringrequiredchain_idOptional[integer]The chain the contract is deployed on.
version_methodCodeVersionMethodrequiredHow the code was sourced.
version_fingerprintstringrequiredUniquely identifies this code.
statusCodeVersionStatusrequiredProcessing status of the code.
branchOptional[string]commitOptional[GithubCommit]show properties (4)hide properties (4)
shastringrequiredauthorstringrequiredmessagestringrequiredtimestampstringrequiredrepositoryOptional[GithubRepository]show properties (4)hide properties (4)
idintegerrequirednamestringrequiredis_privatebooleanrequiredaccountGithubAccountrequiredshow properties (4)hide properties (4)
idintegerrequiredloginstringrequiredtypestringrequiredavatar_urlstringrequiredmerged_from_versionOptional[AnalysisVersionRef]The version merged into this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_from_versionOptional[AnalysisVersionRef]The version this one was forked from.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredparent_versionOptional[AnalysisVersionRef]The previous version in this analysis.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredchild_versionsarray of AnalysisVersionRefVersions built on this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredmerged_versionsarray of AnalysisVersionRefVersions this one was merged into.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_versionsarray of AnalysisVersionRefForks of this version.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsAnalysisActionsrequiredshow properties (8)hide properties (8)
forkActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
create_childActionDetailsrequiredAdd a version for new code on top of this one.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
run_pipelineActionDetailsrequiredRun Bevor internal pipeline. Can be used to retry failures as well.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_toActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_fromActionDetailsrequiredAdd, edit, or delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
alter_findingsActionDetailsrequiredEdit, add, delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
set_as_headActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons 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)
existsbooleanrequireddataOptional[AnalysisExpanded]show properties (7)hide properties (7)
idstringrequirednamestringrequiredcreated_atstringrequireduserUserrequiredThe analysis owner.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredis_ownerbooleanrequiredWhether the caller owns this analysis.
versionAnalysisVersionrequiredThe requested version, HEAD by default.
show properties (17)hide properties (17)
idstringrequiredcreated_atstringrequiredtriggerAnalysisTriggerrequiredHow this version was created.
n_findingsintegerrequiredFindings on this version, including staged changes.
n_remediationsintegerrequiredFindings from the parent version dropped because their code changed.
is_headbooleanrequiredWhether this is the analysis's HEAD.
n_pipeline_processingintegerrequiredNumber of entrypoints currently being processed by Bevor internal pipeline.
n_pipeline_failedintegerrequiredNumber of entrypoints that have failed the Bevor internal pipeline
n_pipeline_succeededintegerrequiredNumber of entrypoints that have successfully ran the Bevor internal pipeline
code_versionCodeVersionrequiredThe code this version analyzes.
show properties (8)hide properties (8)
idstringrequiredchain_idOptional[integer]The chain the contract is deployed on.
version_methodCodeVersionMethodrequiredHow the code was sourced.
version_fingerprintstringrequiredUniquely identifies this code.
statusCodeVersionStatusrequiredProcessing status of the code.
branchOptional[string]commitOptional[GithubCommit]show properties (4)hide properties (4)
shastringrequiredauthorstringrequiredmessagestringrequiredtimestampstringrequiredrepositoryOptional[GithubRepository]show properties (4)hide properties (4)
idintegerrequirednamestringrequiredis_privatebooleanrequiredaccountGithubAccountrequiredshow properties (4)hide properties (4)
idintegerrequiredloginstringrequiredtypestringrequiredavatar_urlstringrequiredmerged_from_versionOptional[AnalysisVersionRef]The version merged into this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_from_versionOptional[AnalysisVersionRef]The version this one was forked from.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredparent_versionOptional[AnalysisVersionRef]The previous version in this analysis.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredchild_versionsarray of AnalysisVersionRefVersions built on this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredmerged_versionsarray of AnalysisVersionRefVersions this one was merged into.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_versionsarray of AnalysisVersionRefForks of this version.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsAnalysisActionsrequiredshow properties (8)hide properties (8)
forkActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
create_childActionDetailsrequiredAdd a version for new code on top of this one.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
run_pipelineActionDetailsrequiredRun Bevor internal pipeline. Can be used to retry failures as well.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_toActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_fromActionDetailsrequiredAdd, edit, or delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
alter_findingsActionDetailsrequiredEdit, add, delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
set_as_headActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
findingsarray of Findingshow properties (19)hide properties (19)
idstringrequiredcreated_atstringrequiredorigin_finding_idstringrequiredThe finding's original ID, stable across versions and edits.
is_acknowledgedbooleanrequiredWhether a user acknowledged the finding.
typestringrequiredlevelFindingLevelrequirednamestringrequiredexplanationstringrequiredrecommendationOptional[string]pocOptional[string]toolstringrequiredWhat produced the finding.
node_idstringrequiredThe code graph node the finding is on.
is_borrowedbooleanrequiredWhether the finding was carried over from an earlier version.
location_idOptional[string]The source location within the node.
created_by_userUserrequiredWho created the finding.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredcode_idstringrequiredThe code version the finding is on.
versionAnalysisVersionRefrequiredThe analysis version the finding belongs to.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsFindingActionsrequiredAvailable actions to take on this finding
show properties (3)hide properties (3)
editActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
undoActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons 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_idstrpathrequirednamestrbodyrequiredReturns: Analysis
show properties (6)hide properties (6)
idstringrequirednamestringrequiredcreated_atstringrequireduserUserrequiredThe analysis owner.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredis_ownerbooleanrequiredWhether the caller owns this analysis.
versionAnalysisVersionrequiredThe requested version, HEAD by default.
show properties (17)hide properties (17)
idstringrequiredcreated_atstringrequiredtriggerAnalysisTriggerrequiredHow this version was created.
n_findingsintegerrequiredFindings on this version, including staged changes.
n_remediationsintegerrequiredFindings from the parent version dropped because their code changed.
is_headbooleanrequiredWhether this is the analysis's HEAD.
n_pipeline_processingintegerrequiredNumber of entrypoints currently being processed by Bevor internal pipeline.
n_pipeline_failedintegerrequiredNumber of entrypoints that have failed the Bevor internal pipeline
n_pipeline_succeededintegerrequiredNumber of entrypoints that have successfully ran the Bevor internal pipeline
code_versionCodeVersionrequiredThe code this version analyzes.
show properties (8)hide properties (8)
idstringrequiredchain_idOptional[integer]The chain the contract is deployed on.
version_methodCodeVersionMethodrequiredHow the code was sourced.
version_fingerprintstringrequiredUniquely identifies this code.
statusCodeVersionStatusrequiredProcessing status of the code.
branchOptional[string]commitOptional[GithubCommit]show properties (4)hide properties (4)
shastringrequiredauthorstringrequiredmessagestringrequiredtimestampstringrequiredrepositoryOptional[GithubRepository]show properties (4)hide properties (4)
idintegerrequirednamestringrequiredis_privatebooleanrequiredaccountGithubAccountrequiredshow properties (4)hide properties (4)
idintegerrequiredloginstringrequiredtypestringrequiredavatar_urlstringrequiredmerged_from_versionOptional[AnalysisVersionRef]The version merged into this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_from_versionOptional[AnalysisVersionRef]The version this one was forked from.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredparent_versionOptional[AnalysisVersionRef]The previous version in this analysis.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredchild_versionsarray of AnalysisVersionRefVersions built on this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredmerged_versionsarray of AnalysisVersionRefVersions this one was merged into.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_versionsarray of AnalysisVersionRefForks of this version.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsAnalysisActionsrequiredshow properties (8)hide properties (8)
forkActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
create_childActionDetailsrequiredAdd a version for new code on top of this one.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
run_pipelineActionDetailsrequiredRun Bevor internal pipeline. Can be used to retry failures as well.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_toActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_fromActionDetailsrequiredAdd, edit, or delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
alter_findingsActionDetailsrequiredEdit, add, delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
set_as_headActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons 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_idstrpathrequiredReturns: BooleanResponse
show properties (1)hide properties (1)
successbooleanrequiredcreate_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:
bodyAnalysisCreateRootBodybodyrequiredcode_idstringrequiredon_collision'surface' | 'force' | 'merge'namestringReturns: AnalysisCreatedResult | AnalysisCollisionResult
One of:
AnalysisCreatedResult
show properties (2)hide properties (2)
is_createdTruerequiredanalysisAnalysisrequiredThe created analysis.
show properties (6)hide properties (6)
idstringrequirednamestringrequiredcreated_atstringrequireduserUserrequiredThe analysis owner.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredis_ownerbooleanrequiredWhether the caller owns this analysis.
versionAnalysisVersionrequiredThe requested version, HEAD by default.
show properties (17)hide properties (17)
idstringrequiredcreated_atstringrequiredtriggerAnalysisTriggerrequiredHow this version was created.
n_findingsintegerrequiredFindings on this version, including staged changes.
n_remediationsintegerrequiredFindings from the parent version dropped because their code changed.
is_headbooleanrequiredWhether this is the analysis's HEAD.
n_pipeline_processingintegerrequiredNumber of entrypoints currently being processed by Bevor internal pipeline.
n_pipeline_failedintegerrequiredNumber of entrypoints that have failed the Bevor internal pipeline
n_pipeline_succeededintegerrequiredNumber of entrypoints that have successfully ran the Bevor internal pipeline
code_versionCodeVersionrequiredThe code this version analyzes.
show properties (8)hide properties (8)
idstringrequiredchain_idOptional[integer]The chain the contract is deployed on.
version_methodCodeVersionMethodrequiredHow the code was sourced.
version_fingerprintstringrequiredUniquely identifies this code.
statusCodeVersionStatusrequiredProcessing status of the code.
branchOptional[string]commitOptional[GithubCommit]show properties (4)hide properties (4)
shastringrequiredauthorstringrequiredmessagestringrequiredtimestampstringrequiredrepositoryOptional[GithubRepository]show properties (4)hide properties (4)
idintegerrequirednamestringrequiredis_privatebooleanrequiredaccountGithubAccountrequiredshow properties (4)hide properties (4)
idintegerrequiredloginstringrequiredtypestringrequiredavatar_urlstringrequiredmerged_from_versionOptional[AnalysisVersionRef]The version merged into this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_from_versionOptional[AnalysisVersionRef]The version this one was forked from.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredparent_versionOptional[AnalysisVersionRef]The previous version in this analysis.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredchild_versionsarray of AnalysisVersionRefVersions built on this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredmerged_versionsarray of AnalysisVersionRefVersions this one was merged into.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_versionsarray of AnalysisVersionRefForks of this version.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsAnalysisActionsrequiredshow properties (8)hide properties (8)
forkActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
create_childActionDetailsrequiredAdd a version for new code on top of this one.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
run_pipelineActionDetailsrequiredRun Bevor internal pipeline. Can be used to retry failures as well.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_toActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_fromActionDetailsrequiredAdd, edit, or delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
alter_findingsActionDetailsrequiredEdit, add, delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
set_as_headActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
AnalysisCollisionResult
show properties (2)hide properties (2)
is_createdFalserequiredcandidatesarray of CollisionVersionrequiredExisting versions of this code in the project.
show properties (19)hide properties (19)
idstringrequiredcreated_atstringrequiredtriggerAnalysisTriggerrequiredHow this version was created.
n_findingsintegerrequiredFindings on this version, including staged changes.
n_remediationsintegerrequiredFindings from the parent version dropped because their code changed.
is_headbooleanrequiredWhether this is the analysis's HEAD.
n_pipeline_processingintegerrequiredNumber of entrypoints currently being processed by Bevor internal pipeline.
n_pipeline_failedintegerrequiredNumber of entrypoints that have failed the Bevor internal pipeline
n_pipeline_succeededintegerrequiredNumber of entrypoints that have successfully ran the Bevor internal pipeline
code_versionCodeVersionrequiredThe code this version analyzes.
show properties (8)hide properties (8)
idstringrequiredchain_idOptional[integer]The chain the contract is deployed on.
version_methodCodeVersionMethodrequiredHow the code was sourced.
version_fingerprintstringrequiredUniquely identifies this code.
statusCodeVersionStatusrequiredProcessing status of the code.
branchOptional[string]commitOptional[GithubCommit]show properties (4)hide properties (4)
shastringrequiredauthorstringrequiredmessagestringrequiredtimestampstringrequiredrepositoryOptional[GithubRepository]show properties (4)hide properties (4)
idintegerrequirednamestringrequiredis_privatebooleanrequiredaccountGithubAccountrequiredshow properties (4)hide properties (4)
idintegerrequiredloginstringrequiredtypestringrequiredavatar_urlstringrequiredmerged_from_versionOptional[AnalysisVersionRef]The version merged into this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_from_versionOptional[AnalysisVersionRef]The version this one was forked from.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredparent_versionOptional[AnalysisVersionRef]The previous version in this analysis.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredchild_versionsarray of AnalysisVersionRefVersions built on this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredmerged_versionsarray of AnalysisVersionRefVersions this one was merged into.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_versionsarray of AnalysisVersionRefForks of this version.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsAnalysisActionsrequiredshow properties (8)hide properties (8)
forkActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
create_childActionDetailsrequiredAdd a version for new code on top of this one.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
run_pipelineActionDetailsrequiredRun Bevor internal pipeline. Can be used to retry failures as well.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_toActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_fromActionDetailsrequiredAdd, edit, or delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
alter_findingsActionDetailsrequiredEdit, add, delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
set_as_headActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
analysis_metaAnalysisMetadatarequiredThe analysis this version belongs to.
show properties (5)hide properties (5)
idstringrequirednamestringrequiredcreated_atstringrequireduserUserrequiredThe analysis owner.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredis_ownerbooleanrequiredWhether the caller owns this analysis.
on_collision'fork' | 'merge' | 'view'requiredThe 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_idstrpathrequiredbodyAnalysisCreateChildBodybodyrequiredversion_idstringcode_idstringrequiredon_collision'surface' | 'force' | 'merge'Returns: AnalysisCreatedResult | AnalysisCollisionResult
One of:
AnalysisCreatedResult
show properties (2)hide properties (2)
is_createdTruerequiredanalysisAnalysisrequiredThe created analysis.
show properties (6)hide properties (6)
idstringrequirednamestringrequiredcreated_atstringrequireduserUserrequiredThe analysis owner.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredis_ownerbooleanrequiredWhether the caller owns this analysis.
versionAnalysisVersionrequiredThe requested version, HEAD by default.
show properties (17)hide properties (17)
idstringrequiredcreated_atstringrequiredtriggerAnalysisTriggerrequiredHow this version was created.
n_findingsintegerrequiredFindings on this version, including staged changes.
n_remediationsintegerrequiredFindings from the parent version dropped because their code changed.
is_headbooleanrequiredWhether this is the analysis's HEAD.
n_pipeline_processingintegerrequiredNumber of entrypoints currently being processed by Bevor internal pipeline.
n_pipeline_failedintegerrequiredNumber of entrypoints that have failed the Bevor internal pipeline
n_pipeline_succeededintegerrequiredNumber of entrypoints that have successfully ran the Bevor internal pipeline
code_versionCodeVersionrequiredThe code this version analyzes.
show properties (8)hide properties (8)
idstringrequiredchain_idOptional[integer]The chain the contract is deployed on.
version_methodCodeVersionMethodrequiredHow the code was sourced.
version_fingerprintstringrequiredUniquely identifies this code.
statusCodeVersionStatusrequiredProcessing status of the code.
branchOptional[string]commitOptional[GithubCommit]show properties (4)hide properties (4)
shastringrequiredauthorstringrequiredmessagestringrequiredtimestampstringrequiredrepositoryOptional[GithubRepository]show properties (4)hide properties (4)
idintegerrequirednamestringrequiredis_privatebooleanrequiredaccountGithubAccountrequiredshow properties (4)hide properties (4)
idintegerrequiredloginstringrequiredtypestringrequiredavatar_urlstringrequiredmerged_from_versionOptional[AnalysisVersionRef]The version merged into this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_from_versionOptional[AnalysisVersionRef]The version this one was forked from.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredparent_versionOptional[AnalysisVersionRef]The previous version in this analysis.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredchild_versionsarray of AnalysisVersionRefVersions built on this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredmerged_versionsarray of AnalysisVersionRefVersions this one was merged into.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_versionsarray of AnalysisVersionRefForks of this version.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsAnalysisActionsrequiredshow properties (8)hide properties (8)
forkActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
create_childActionDetailsrequiredAdd a version for new code on top of this one.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
run_pipelineActionDetailsrequiredRun Bevor internal pipeline. Can be used to retry failures as well.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_toActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_fromActionDetailsrequiredAdd, edit, or delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
alter_findingsActionDetailsrequiredEdit, add, delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
set_as_headActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
AnalysisCollisionResult
show properties (2)hide properties (2)
is_createdFalserequiredcandidatesarray of CollisionVersionrequiredExisting versions of this code in the project.
show properties (19)hide properties (19)
idstringrequiredcreated_atstringrequiredtriggerAnalysisTriggerrequiredHow this version was created.
n_findingsintegerrequiredFindings on this version, including staged changes.
n_remediationsintegerrequiredFindings from the parent version dropped because their code changed.
is_headbooleanrequiredWhether this is the analysis's HEAD.
n_pipeline_processingintegerrequiredNumber of entrypoints currently being processed by Bevor internal pipeline.
n_pipeline_failedintegerrequiredNumber of entrypoints that have failed the Bevor internal pipeline
n_pipeline_succeededintegerrequiredNumber of entrypoints that have successfully ran the Bevor internal pipeline
code_versionCodeVersionrequiredThe code this version analyzes.
show properties (8)hide properties (8)
idstringrequiredchain_idOptional[integer]The chain the contract is deployed on.
version_methodCodeVersionMethodrequiredHow the code was sourced.
version_fingerprintstringrequiredUniquely identifies this code.
statusCodeVersionStatusrequiredProcessing status of the code.
branchOptional[string]commitOptional[GithubCommit]show properties (4)hide properties (4)
shastringrequiredauthorstringrequiredmessagestringrequiredtimestampstringrequiredrepositoryOptional[GithubRepository]show properties (4)hide properties (4)
idintegerrequirednamestringrequiredis_privatebooleanrequiredaccountGithubAccountrequiredshow properties (4)hide properties (4)
idintegerrequiredloginstringrequiredtypestringrequiredavatar_urlstringrequiredmerged_from_versionOptional[AnalysisVersionRef]The version merged into this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_from_versionOptional[AnalysisVersionRef]The version this one was forked from.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredparent_versionOptional[AnalysisVersionRef]The previous version in this analysis.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredchild_versionsarray of AnalysisVersionRefVersions built on this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredmerged_versionsarray of AnalysisVersionRefVersions this one was merged into.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_versionsarray of AnalysisVersionRefForks of this version.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsAnalysisActionsrequiredshow properties (8)hide properties (8)
forkActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
create_childActionDetailsrequiredAdd a version for new code on top of this one.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
run_pipelineActionDetailsrequiredRun Bevor internal pipeline. Can be used to retry failures as well.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_toActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_fromActionDetailsrequiredAdd, edit, or delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
alter_findingsActionDetailsrequiredEdit, add, delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
set_as_headActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
analysis_metaAnalysisMetadatarequiredThe analysis this version belongs to.
show properties (5)hide properties (5)
idstringrequirednamestringrequiredcreated_atstringrequireduserUserrequiredThe analysis owner.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredis_ownerbooleanrequiredWhether the caller owns this analysis.
on_collision'fork' | 'merge' | 'view'requiredThe 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_idstrpathrequiredbodyVersionIdentifierBody | NonebodyNoneversion_idstringReturns: Analysis
show properties (6)hide properties (6)
idstringrequirednamestringrequiredcreated_atstringrequireduserUserrequiredThe analysis owner.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredis_ownerbooleanrequiredWhether the caller owns this analysis.
versionAnalysisVersionrequiredThe requested version, HEAD by default.
show properties (17)hide properties (17)
idstringrequiredcreated_atstringrequiredtriggerAnalysisTriggerrequiredHow this version was created.
n_findingsintegerrequiredFindings on this version, including staged changes.
n_remediationsintegerrequiredFindings from the parent version dropped because their code changed.
is_headbooleanrequiredWhether this is the analysis's HEAD.
n_pipeline_processingintegerrequiredNumber of entrypoints currently being processed by Bevor internal pipeline.
n_pipeline_failedintegerrequiredNumber of entrypoints that have failed the Bevor internal pipeline
n_pipeline_succeededintegerrequiredNumber of entrypoints that have successfully ran the Bevor internal pipeline
code_versionCodeVersionrequiredThe code this version analyzes.
show properties (8)hide properties (8)
idstringrequiredchain_idOptional[integer]The chain the contract is deployed on.
version_methodCodeVersionMethodrequiredHow the code was sourced.
version_fingerprintstringrequiredUniquely identifies this code.
statusCodeVersionStatusrequiredProcessing status of the code.
branchOptional[string]commitOptional[GithubCommit]show properties (4)hide properties (4)
shastringrequiredauthorstringrequiredmessagestringrequiredtimestampstringrequiredrepositoryOptional[GithubRepository]show properties (4)hide properties (4)
idintegerrequirednamestringrequiredis_privatebooleanrequiredaccountGithubAccountrequiredshow properties (4)hide properties (4)
idintegerrequiredloginstringrequiredtypestringrequiredavatar_urlstringrequiredmerged_from_versionOptional[AnalysisVersionRef]The version merged into this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_from_versionOptional[AnalysisVersionRef]The version this one was forked from.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredparent_versionOptional[AnalysisVersionRef]The previous version in this analysis.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredchild_versionsarray of AnalysisVersionRefVersions built on this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredmerged_versionsarray of AnalysisVersionRefVersions this one was merged into.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_versionsarray of AnalysisVersionRefForks of this version.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsAnalysisActionsrequiredshow properties (8)hide properties (8)
forkActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
create_childActionDetailsrequiredAdd a version for new code on top of this one.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
run_pipelineActionDetailsrequiredRun Bevor internal pipeline. Can be used to retry failures as well.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_toActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_fromActionDetailsrequiredAdd, edit, or delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
alter_findingsActionDetailsrequiredEdit, add, delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
set_as_headActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons 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:
bodyAnalysisMergeBodybodyrequiredfrom_version_idstringrequiredto_version_idstringrequiredReturns: Analysis
show properties (6)hide properties (6)
idstringrequirednamestringrequiredcreated_atstringrequireduserUserrequiredThe analysis owner.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredis_ownerbooleanrequiredWhether the caller owns this analysis.
versionAnalysisVersionrequiredThe requested version, HEAD by default.
show properties (17)hide properties (17)
idstringrequiredcreated_atstringrequiredtriggerAnalysisTriggerrequiredHow this version was created.
n_findingsintegerrequiredFindings on this version, including staged changes.
n_remediationsintegerrequiredFindings from the parent version dropped because their code changed.
is_headbooleanrequiredWhether this is the analysis's HEAD.
n_pipeline_processingintegerrequiredNumber of entrypoints currently being processed by Bevor internal pipeline.
n_pipeline_failedintegerrequiredNumber of entrypoints that have failed the Bevor internal pipeline
n_pipeline_succeededintegerrequiredNumber of entrypoints that have successfully ran the Bevor internal pipeline
code_versionCodeVersionrequiredThe code this version analyzes.
show properties (8)hide properties (8)
idstringrequiredchain_idOptional[integer]The chain the contract is deployed on.
version_methodCodeVersionMethodrequiredHow the code was sourced.
version_fingerprintstringrequiredUniquely identifies this code.
statusCodeVersionStatusrequiredProcessing status of the code.
branchOptional[string]commitOptional[GithubCommit]show properties (4)hide properties (4)
shastringrequiredauthorstringrequiredmessagestringrequiredtimestampstringrequiredrepositoryOptional[GithubRepository]show properties (4)hide properties (4)
idintegerrequirednamestringrequiredis_privatebooleanrequiredaccountGithubAccountrequiredshow properties (4)hide properties (4)
idintegerrequiredloginstringrequiredtypestringrequiredavatar_urlstringrequiredmerged_from_versionOptional[AnalysisVersionRef]The version merged into this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_from_versionOptional[AnalysisVersionRef]The version this one was forked from.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredparent_versionOptional[AnalysisVersionRef]The previous version in this analysis.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredchild_versionsarray of AnalysisVersionRefVersions built on this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredmerged_versionsarray of AnalysisVersionRefVersions this one was merged into.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_versionsarray of AnalysisVersionRefForks of this version.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsAnalysisActionsrequiredshow properties (8)hide properties (8)
forkActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
create_childActionDetailsrequiredAdd a version for new code on top of this one.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
run_pipelineActionDetailsrequiredRun Bevor internal pipeline. Can be used to retry failures as well.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_toActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_fromActionDetailsrequiredAdd, edit, or delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
alter_findingsActionDetailsrequiredEdit, add, delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
set_as_headActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons 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_idstrpathrequiredbodyAnalysisSetHeadBodybodyrequiredversion_idstringrequiredReturns: Analysis
show properties (6)hide properties (6)
idstringrequirednamestringrequiredcreated_atstringrequireduserUserrequiredThe analysis owner.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredis_ownerbooleanrequiredWhether the caller owns this analysis.
versionAnalysisVersionrequiredThe requested version, HEAD by default.
show properties (17)hide properties (17)
idstringrequiredcreated_atstringrequiredtriggerAnalysisTriggerrequiredHow this version was created.
n_findingsintegerrequiredFindings on this version, including staged changes.
n_remediationsintegerrequiredFindings from the parent version dropped because their code changed.
is_headbooleanrequiredWhether this is the analysis's HEAD.
n_pipeline_processingintegerrequiredNumber of entrypoints currently being processed by Bevor internal pipeline.
n_pipeline_failedintegerrequiredNumber of entrypoints that have failed the Bevor internal pipeline
n_pipeline_succeededintegerrequiredNumber of entrypoints that have successfully ran the Bevor internal pipeline
code_versionCodeVersionrequiredThe code this version analyzes.
show properties (8)hide properties (8)
idstringrequiredchain_idOptional[integer]The chain the contract is deployed on.
version_methodCodeVersionMethodrequiredHow the code was sourced.
version_fingerprintstringrequiredUniquely identifies this code.
statusCodeVersionStatusrequiredProcessing status of the code.
branchOptional[string]commitOptional[GithubCommit]show properties (4)hide properties (4)
shastringrequiredauthorstringrequiredmessagestringrequiredtimestampstringrequiredrepositoryOptional[GithubRepository]show properties (4)hide properties (4)
idintegerrequirednamestringrequiredis_privatebooleanrequiredaccountGithubAccountrequiredshow properties (4)hide properties (4)
idintegerrequiredloginstringrequiredtypestringrequiredavatar_urlstringrequiredmerged_from_versionOptional[AnalysisVersionRef]The version merged into this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_from_versionOptional[AnalysisVersionRef]The version this one was forked from.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredparent_versionOptional[AnalysisVersionRef]The previous version in this analysis.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredchild_versionsarray of AnalysisVersionRefVersions built on this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredmerged_versionsarray of AnalysisVersionRefVersions this one was merged into.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_versionsarray of AnalysisVersionRefForks of this version.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsAnalysisActionsrequiredshow properties (8)hide properties (8)
forkActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
create_childActionDetailsrequiredAdd a version for new code on top of this one.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
run_pipelineActionDetailsrequiredRun Bevor internal pipeline. Can be used to retry failures as well.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_toActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_fromActionDetailsrequiredAdd, edit, or delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
alter_findingsActionDetailsrequiredEdit, add, delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
set_as_headActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons 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_idstrpathrequiredparamsVersionIdentifierParam | NonequeryNoneversion_idstringReturns: ResultsResponse[LineageEntry]
show properties (1)hide properties (1)
resultsarray of LineageEntryshow properties (10)hide properties (10)
idstringrequiredtriggerstringrequiredcode_idstringrequiredn_findingsintegerrequiredn_remediationsintegerrequiredcreated_atstringrequiredis_headbooleanrequiredparent_indexOptional[integer]requiredparent_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_idstrpathrequiredparamsVersionIdentifierParam | NonequeryNoneversion_idstringReturns: ResultsResponse[EntryPoint]
show properties (1)hide properties (1)
resultsarray of EntryPointshow properties (6)hide properties (6)
nodeGraphSnapshotNoderequiredThe entrypoint's node in the code graph.
show properties (26)hide properties (26)
idstringrequiredlanguageLanguagerequiredfile_idstringrequiredfile_pathstringrequiredshort_idstringrequirednode_typestringrequiredsub_typeOptional[string]src_start_posintegerrequiredsrc_end_posintegerrequireddocstringOptional[string]namestringrequiredmerkle_hashstringrequireddm_hashOptional[string]visibilityOptional[NodeVisibility]mutabilityOptional[string]is_virtualbooleanis_implementedbooleansignatureOptional[string]is_callablebooleanrequiredis_declarationbooleanrequiredis_containerbooleanrequiredis_entrypointbooleanrequiredfieldsarray of GraphFieldMetadataItemshow properties (6)hide properties (6)
namestringrequiredtypeOptional[string]valueOptional[string]mutabilityOptional[string]discriminantOptional[integer]constraintsarray of GraphConstraintItemshow properties (2)hide properties (2)
namestringrequiredvalueOptional[array of string]parametersarray of GraphParameterStorageMetadatashow properties (10)hide properties (10)
param_indexOptional[integer]requiredstart_byteintegerrequiredis_readbooleanis_writtenbooleanfieldOptional[string]field_start_byteOptional[integer]param_nameOptional[string]type_nameOptional[string]bound_to_ref_posOptional[integer]bound_to_return_indexOptional[integer]returnsarray of GraphReturnStorageMetadatashow properties (7)hide properties (7)
param_indintegerrequiredparam_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 GraphLowLevelKindshow properties (2)hide properties (2)
kindLowLevelKindrequireddepthintegerrequiredcalls between the node and the nearest occurrence; 0 when the node does it itself
is_carriedbooleanrequiredWhether it was analyzed in the parent.
is_analyzedbooleanrequiredWhether it was ever analyzed.
is_analyzed_in_currentbooleanrequiredWhether it was analyzed in this version.
pipeline_statusAnalysisEntrypointStatusrequiredMost recent bevor security pipeline status
n_findingsintegerNumber 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_idstrpathrequiredparamsVersionIdentifierParam | NonequeryNoneversion_idstringReturns: ResultsResponse[Finding]
show properties (1)hide properties (1)
resultsarray of Findingshow properties (19)hide properties (19)
idstringrequiredcreated_atstringrequiredorigin_finding_idstringrequiredThe finding's original ID, stable across versions and edits.
is_acknowledgedbooleanrequiredWhether a user acknowledged the finding.
typestringrequiredlevelFindingLevelrequirednamestringrequiredexplanationstringrequiredrecommendationOptional[string]pocOptional[string]toolstringrequiredWhat produced the finding.
node_idstringrequiredThe code graph node the finding is on.
is_borrowedbooleanrequiredWhether the finding was carried over from an earlier version.
location_idOptional[string]The source location within the node.
created_by_userUserrequiredWho created the finding.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredcode_idstringrequiredThe code version the finding is on.
versionAnalysisVersionRefrequiredThe analysis version the finding belongs to.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsFindingActionsrequiredAvailable actions to take on this finding
show properties (3)hide properties (3)
editActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
undoActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons 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_idstrpathrequiredbodyFindingAddManyBodybodyrequiredversion_idstringfindingsarray of FindingCreateBodyrequiredFindingCreateBody
locationFindingLocationNodeId | FindingLocationPhysical | FindingLocationLogicalrequiredFindingLocationNodeId
strategy'node_id'requirednode_idstringlocation_idstringFindingLocationPhysical
strategy'physical'requireduristringrequiredstartLineintegerstartColumnintegerendLineintegerendColumnintegercharOffsetintegercharLengthintegerbyteOffsetintegerbyteLengthintegerFindingLocationLogical
strategy'logical'requiredfully_qualified_namestringrequiredtoolstringmetadataFindingMetadataBodyFindingMetadataBody
typestringrequiredlevelFindingLevelrequirednamestringrequiredexplanationstringrequiredrecommendationstringpocstringReturns: ResultsResponse[Finding]
show properties (1)hide properties (1)
resultsarray of Findingshow properties (19)hide properties (19)
idstringrequiredcreated_atstringrequiredorigin_finding_idstringrequiredThe finding's original ID, stable across versions and edits.
is_acknowledgedbooleanrequiredWhether a user acknowledged the finding.
typestringrequiredlevelFindingLevelrequirednamestringrequiredexplanationstringrequiredrecommendationOptional[string]pocOptional[string]toolstringrequiredWhat produced the finding.
node_idstringrequiredThe code graph node the finding is on.
is_borrowedbooleanrequiredWhether the finding was carried over from an earlier version.
location_idOptional[string]The source location within the node.
created_by_userUserrequiredWho created the finding.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredcode_idstringrequiredThe code version the finding is on.
versionAnalysisVersionRefrequiredThe analysis version the finding belongs to.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsFindingActionsrequiredAvailable actions to take on this finding
show properties (3)hide properties (3)
editActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
undoActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons 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_idstrpathrequiredparamsVersionIdentifierParam | NonequeryNoneversion_idstringReturns: ResultsResponse[FindingTransition]
show properties (1)hide properties (1)
resultsarray of FindingTransitionshow properties (8)hide properties (8)
idstringrequiredcreated_atstringrequiredbefore_versionAnalysisVersionRefrequiredshow properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredafter_versionAnalysisVersionRefrequiredshow properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredkindFindingTransitionKindrequiredHow the finding changed.
before_findingOptional[FindingBare]The finding before the change.
show properties (11)hide properties (11)
idstringrequiredcreated_atstringrequiredorigin_finding_idstringrequiredThe finding's original ID, stable across versions and edits.
is_acknowledgedbooleanrequiredWhether a user acknowledged the finding.
typestringrequiredlevelFindingLevelrequirednamestringrequiredexplanationstringrequiredrecommendationOptional[string]pocOptional[string]toolstringrequiredWhat produced the finding.
after_findingOptional[FindingBare]The finding after the change.
show properties (11)hide properties (11)
idstringrequiredcreated_atstringrequiredorigin_finding_idstringrequiredThe finding's original ID, stable across versions and edits.
is_acknowledgedbooleanrequiredWhether a user acknowledged the finding.
typestringrequiredlevelFindingLevelrequirednamestringrequiredexplanationstringrequiredrecommendationOptional[string]pocOptional[string]toolstringrequiredWhat produced the finding.
changed_fieldsarray of stringused 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_idstrpathrequiredbodyAnalysisRunBodybodyrequiredOne of:
AnalysisRunStandardBody
version_idstringmode'all' | 'first_party'requiredAnalysisRunExplicitBody
version_idstringmode'explicit'requiredscopesarray of stringrequiredwith_streamingboolbodyFalseReturn type by call:
with_streaming=True→ EventResource[Analysis, AnalysisRunStatusEventData | AnalysisPipelineStatusEventData]with_streaming=False→Analysis
show properties (6)hide properties (6)
idstringrequirednamestringrequiredcreated_atstringrequireduserUserrequiredThe analysis owner.
show properties (4)hide properties (4)
idstringrequiredis_selfbooleanrequiredcreated_atstringrequiredusernamestringrequiredis_ownerbooleanrequiredWhether the caller owns this analysis.
versionAnalysisVersionrequiredThe requested version, HEAD by default.
show properties (17)hide properties (17)
idstringrequiredcreated_atstringrequiredtriggerAnalysisTriggerrequiredHow this version was created.
n_findingsintegerrequiredFindings on this version, including staged changes.
n_remediationsintegerrequiredFindings from the parent version dropped because their code changed.
is_headbooleanrequiredWhether this is the analysis's HEAD.
n_pipeline_processingintegerrequiredNumber of entrypoints currently being processed by Bevor internal pipeline.
n_pipeline_failedintegerrequiredNumber of entrypoints that have failed the Bevor internal pipeline
n_pipeline_succeededintegerrequiredNumber of entrypoints that have successfully ran the Bevor internal pipeline
code_versionCodeVersionrequiredThe code this version analyzes.
show properties (8)hide properties (8)
idstringrequiredchain_idOptional[integer]The chain the contract is deployed on.
version_methodCodeVersionMethodrequiredHow the code was sourced.
version_fingerprintstringrequiredUniquely identifies this code.
statusCodeVersionStatusrequiredProcessing status of the code.
branchOptional[string]commitOptional[GithubCommit]show properties (4)hide properties (4)
shastringrequiredauthorstringrequiredmessagestringrequiredtimestampstringrequiredrepositoryOptional[GithubRepository]show properties (4)hide properties (4)
idintegerrequirednamestringrequiredis_privatebooleanrequiredaccountGithubAccountrequiredshow properties (4)hide properties (4)
idintegerrequiredloginstringrequiredtypestringrequiredavatar_urlstringrequiredmerged_from_versionOptional[AnalysisVersionRef]The version merged into this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_from_versionOptional[AnalysisVersionRef]The version this one was forked from.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredparent_versionOptional[AnalysisVersionRef]The previous version in this analysis.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredchild_versionsarray of AnalysisVersionRefVersions built on this one.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredmerged_versionsarray of AnalysisVersionRefVersions this one was merged into.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredforked_versionsarray of AnalysisVersionRefForks of this version.
show properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredactionsAnalysisActionsrequiredshow properties (8)hide properties (8)
forkActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
create_childActionDetailsrequiredAdd a version for new code on top of this one.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
deleteActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
run_pipelineActionDetailsrequiredRun Bevor internal pipeline. Can be used to retry failures as well.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_toActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
merge_fromActionDetailsrequiredAdd, edit, or delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
alter_findingsActionDetailsrequiredEdit, add, delete findings.
show properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.
set_as_headActionDetailsrequiredshow properties (2)hide properties (2)
is_allowedbooleanrequiredWhether the caller can perform the action.
reasonsarray of stringreasons why action is not allowed, if applicable.

