@bevorai/sdk 0.2.0-rc1 → 0.2.0-rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/client.d.ts +0 -6
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +0 -11
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +18 -18
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +28 -28
- package/dist/errors.js.map +1 -1
- package/dist/graph/call-node.d.ts +9 -10
- package/dist/graph/call-node.d.ts.map +1 -1
- package/dist/graph/call-node.js +75 -41
- package/dist/graph/call-node.js.map +1 -1
- package/dist/graph/cursor.d.ts +7 -7
- package/dist/graph/cursor.d.ts.map +1 -1
- package/dist/graph/cursor.js.map +1 -1
- package/dist/graph/field-metadata.d.ts +11 -11
- package/dist/graph/field-metadata.d.ts.map +1 -1
- package/dist/graph/field-metadata.js +2 -18
- package/dist/graph/field-metadata.js.map +1 -1
- package/dist/graph/graph.d.ts +22 -22
- package/dist/graph/graph.d.ts.map +1 -1
- package/dist/graph/graph.js.map +1 -1
- package/dist/helpers/index.d.ts +3 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +3 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/sarif.d.ts +5 -15
- package/dist/helpers/sarif.d.ts.map +1 -1
- package/dist/helpers/sarif.js +6 -6
- package/dist/helpers/sarif.js.map +1 -1
- package/dist/helpers/source-fingerprint.d.ts +10 -17
- package/dist/helpers/source-fingerprint.d.ts.map +1 -1
- package/dist/helpers/source-fingerprint.js +33 -14
- package/dist/helpers/source-fingerprint.js.map +1 -1
- package/dist/index.d.ts +2 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -20
- package/dist/index.js.map +1 -1
- package/dist/pagination.d.ts +1 -1
- package/dist/pagination.d.ts.map +1 -1
- package/dist/resources/analyses.d.ts +44 -43
- package/dist/resources/analyses.d.ts.map +1 -1
- package/dist/resources/analyses.js +13 -6
- package/dist/resources/analyses.js.map +1 -1
- package/dist/resources/chats.d.ts +20 -20
- package/dist/resources/chats.d.ts.map +1 -1
- package/dist/resources/chats.js +17 -3
- package/dist/resources/chats.js.map +1 -1
- package/dist/resources/codes.d.ts +26 -24
- package/dist/resources/codes.d.ts.map +1 -1
- package/dist/resources/codes.js +16 -4
- package/dist/resources/codes.js.map +1 -1
- package/dist/resources/files.d.ts +10 -10
- package/dist/resources/files.d.ts.map +1 -1
- package/dist/resources/files.js.map +1 -1
- package/dist/resources/findings.d.ts +23 -23
- package/dist/resources/findings.d.ts.map +1 -1
- package/dist/resources/findings.js +9 -2
- package/dist/resources/findings.js.map +1 -1
- package/dist/resources/index.d.ts +13 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +12 -0
- package/dist/resources/index.js.map +1 -0
- package/dist/resources/nodes.d.ts +16 -16
- package/dist/resources/nodes.d.ts.map +1 -1
- package/dist/resources/nodes.js.map +1 -1
- package/dist/resources/projects.d.ts +2 -2
- package/dist/resources/projects.d.ts.map +1 -1
- package/dist/resources/summary.d.ts +4 -3
- package/dist/resources/summary.d.ts.map +1 -1
- package/dist/resources/summary.js.map +1 -1
- package/dist/resources/transitions.d.ts +11 -11
- package/dist/resources/transitions.d.ts.map +1 -1
- package/dist/resources/transitions.js +9 -2
- package/dist/resources/transitions.js.map +1 -1
- package/dist/resources/users.d.ts +9 -9
- package/dist/resources/users.d.ts.map +1 -1
- package/dist/resources/users.js +1 -1
- package/dist/resources/users.js.map +1 -1
- package/dist/resources/versions.d.ts +9 -9
- package/dist/resources/versions.d.ts.map +1 -1
- package/dist/resources/versions.js +9 -2
- package/dist/resources/versions.js.map +1 -1
- package/dist/streaming.d.ts +1 -2
- package/dist/streaming.d.ts.map +1 -1
- package/dist/streaming.js +2 -2
- package/dist/streaming.js.map +1 -1
- package/dist/types/events.d.ts +53 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/events.js +2 -0
- package/dist/types/events.js.map +1 -0
- package/dist/types/generics.d.ts +18 -0
- package/dist/types/generics.d.ts.map +1 -0
- package/dist/types/generics.js +2 -0
- package/dist/types/generics.js.map +1 -0
- package/dist/types/graph-data.d.ts +123 -48
- package/dist/types/graph-data.d.ts.map +1 -1
- package/dist/types/graph-data.js +1 -0
- package/dist/types/graph-data.js.map +1 -1
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +9 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/literals.d.ts +11 -22
- package/dist/types/literals.d.ts.map +1 -1
- package/dist/types/literals.js +2 -15
- package/dist/types/literals.js.map +1 -1
- package/dist/types/requests.d.ts +252 -228
- package/dist/types/requests.d.ts.map +1 -1
- package/dist/types/requests.js +2 -2
- package/dist/types/requests.js.map +1 -1
- package/dist/types/responses.d.ts +593 -453
- package/dist/types/responses.d.ts.map +1 -1
- package/dist/types/responses.js +2 -10
- package/dist/types/responses.js.map +1 -1
- package/dist/types/shared.d.ts +8 -0
- package/dist/types/shared.d.ts.map +1 -0
- package/dist/types/shared.js +2 -0
- package/dist/types/shared.js.map +1 -0
- package/package.json +16 -4
- package/dist/helpers/call-chain.d.ts +0 -11
- package/dist/helpers/call-chain.d.ts.map +0 -1
- package/dist/helpers/call-chain.js +0 -79
- package/dist/helpers/call-chain.js.map +0 -1
- package/dist/helpers/static-analysis.d.ts +0 -18
- package/dist/helpers/static-analysis.d.ts.map +0 -1
- package/dist/helpers/static-analysis.js +0 -89
- package/dist/helpers/static-analysis.js.map +0 -1
- package/dist/node.d.ts +0 -4
- package/dist/node.d.ts.map +0 -1
- package/dist/node.js +0 -26
- package/dist/node.js.map +0 -1
- package/dist/types/static-analysis.d.ts +0 -28
- package/dist/types/static-analysis.d.ts.map +0 -1
- package/dist/types/static-analysis.js +0 -93
- package/dist/types/static-analysis.js.map +0 -1
|
@@ -1,329 +1,447 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
/** ISO 8601 timestamp, as sent by the API. */
|
|
4
|
-
export type DateTime = string;
|
|
5
|
-
export interface Pagination<T> {
|
|
6
|
-
results: T[];
|
|
7
|
-
page: number;
|
|
8
|
-
page_size: number;
|
|
9
|
-
/** Whether more pages follow. */
|
|
10
|
-
more: boolean;
|
|
11
|
-
/** Total results across all pages. */
|
|
12
|
-
total_observations: number;
|
|
13
|
-
total_pages: number;
|
|
14
|
-
}
|
|
15
|
-
export interface ResultsResponse<T> {
|
|
16
|
-
results: T[];
|
|
17
|
-
}
|
|
18
|
-
export interface BooleanResponse {
|
|
19
|
-
success: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface ExistsResponse<T> {
|
|
22
|
-
exists: boolean;
|
|
23
|
-
data: T | null;
|
|
24
|
-
}
|
|
25
|
-
export interface InlineRef {
|
|
26
|
-
id: ID;
|
|
27
|
-
type: string;
|
|
28
|
-
source: string;
|
|
29
|
-
ref_ind: number;
|
|
30
|
-
name: string | null;
|
|
31
|
-
is_stale: boolean;
|
|
32
|
-
}
|
|
1
|
+
import type { GraphSnapshotNode } from "./graph-data.js";
|
|
2
|
+
import type { AnalysisEntrypointStatus, AnalysisTrigger, BlockchainNetwork, ChatMessageRole, ChatType, CodeVersionMethod, CodeVersionStatus, FindingDraftOperation, FindingLevel, FindingTransitionReason, ProjectKind } from "./literals.js";
|
|
33
3
|
export interface ActionDetails {
|
|
34
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Whether the caller can perform the action.
|
|
6
|
+
*/
|
|
35
7
|
is_allowed: boolean;
|
|
36
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* reasons why action is not allowed, if applicable.
|
|
10
|
+
*/
|
|
37
11
|
reasons: string[];
|
|
38
12
|
}
|
|
39
|
-
export interface
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
export interface
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
is_self: boolean;
|
|
84
|
-
created_at: DateTime;
|
|
85
|
-
username: string;
|
|
86
|
-
}
|
|
87
|
-
export interface MemberActions {
|
|
88
|
-
remove: ActionDetails;
|
|
89
|
-
update: ActionDetails;
|
|
90
|
-
}
|
|
91
|
-
export interface MemberSchema extends UserSchema {
|
|
92
|
-
role: MemberRole;
|
|
93
|
-
seat_type: string;
|
|
94
|
-
is_creator: boolean;
|
|
95
|
-
actions: MemberActions;
|
|
13
|
+
export interface Analysis {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
created_at: string;
|
|
17
|
+
/**
|
|
18
|
+
* The analysis owner.
|
|
19
|
+
*/
|
|
20
|
+
user: User;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the caller owns this analysis.
|
|
23
|
+
*/
|
|
24
|
+
is_owner: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The requested version, HEAD by default.
|
|
27
|
+
*/
|
|
28
|
+
version: AnalysisVersion;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Operations the caller can perform on this version.
|
|
32
|
+
*/
|
|
33
|
+
export interface AnalysisActions {
|
|
34
|
+
fork: ActionDetails;
|
|
35
|
+
/**
|
|
36
|
+
* Add a version for new code on top of this one.
|
|
37
|
+
*/
|
|
38
|
+
create_child: ActionDetails;
|
|
39
|
+
commit_changes: ActionDetails;
|
|
40
|
+
delete: ActionDetails;
|
|
41
|
+
/**
|
|
42
|
+
* Run every entrypoint, including dependencies.
|
|
43
|
+
*/
|
|
44
|
+
run_pipeline: ActionDetails;
|
|
45
|
+
/**
|
|
46
|
+
* Run first-party entrypoints only.
|
|
47
|
+
*/
|
|
48
|
+
run_first_party_pipeline: ActionDetails;
|
|
49
|
+
retry_pipeline: ActionDetails;
|
|
50
|
+
merge_to: ActionDetails;
|
|
51
|
+
merge_from: ActionDetails;
|
|
52
|
+
/**
|
|
53
|
+
* Add, edit, or delete findings.
|
|
54
|
+
*/
|
|
55
|
+
stage_changes: ActionDetails;
|
|
56
|
+
set_as_head: ActionDetails;
|
|
96
57
|
}
|
|
97
|
-
export interface
|
|
98
|
-
|
|
99
|
-
|
|
58
|
+
export interface AnalysisCollisionResult {
|
|
59
|
+
is_created: false;
|
|
60
|
+
/**
|
|
61
|
+
* Existing versions of this code in the project.
|
|
62
|
+
*/
|
|
63
|
+
candidates: CollisionVersion[];
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The created analysis, or the existing versions this code collided with.
|
|
67
|
+
*/
|
|
68
|
+
export type AnalysisCreate = AnalysisCreatedResult | AnalysisCollisionResult;
|
|
69
|
+
export interface AnalysisCreatedResult {
|
|
70
|
+
is_created: true;
|
|
71
|
+
/**
|
|
72
|
+
* The created analysis.
|
|
73
|
+
*/
|
|
74
|
+
analysis: Analysis;
|
|
100
75
|
}
|
|
101
|
-
export interface
|
|
102
|
-
id:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
76
|
+
export interface AnalysisExpanded {
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
created_at: string;
|
|
80
|
+
/**
|
|
81
|
+
* The analysis owner.
|
|
82
|
+
*/
|
|
83
|
+
user: User;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the caller owns this analysis.
|
|
86
|
+
*/
|
|
87
|
+
is_owner: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* The requested version, HEAD by default.
|
|
90
|
+
*/
|
|
91
|
+
version: AnalysisVersion;
|
|
92
|
+
findings: Finding[];
|
|
93
|
+
}
|
|
94
|
+
export interface AnalysisFindingPoint {
|
|
95
|
+
id: string;
|
|
96
|
+
created_at: string;
|
|
97
|
+
trigger: AnalysisTrigger;
|
|
98
|
+
analysis_meta: AnalysisMetadata;
|
|
99
|
+
n_added: number;
|
|
100
|
+
n_updated: number;
|
|
101
|
+
n_removed: number;
|
|
102
|
+
n_remediated: number;
|
|
103
|
+
n_dismissed: number;
|
|
104
|
+
ind: number;
|
|
106
105
|
}
|
|
107
|
-
export interface
|
|
108
|
-
id:
|
|
106
|
+
export interface AnalysisMetadata {
|
|
107
|
+
id: string;
|
|
109
108
|
name: string;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
109
|
+
created_at: string;
|
|
110
|
+
/**
|
|
111
|
+
* The analysis owner.
|
|
112
|
+
*/
|
|
113
|
+
user: User;
|
|
114
|
+
/**
|
|
115
|
+
* Whether the caller owns this analysis.
|
|
116
|
+
*/
|
|
117
|
+
is_owner: boolean;
|
|
115
118
|
}
|
|
116
|
-
export interface
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
export interface AnalysisNetworkPoint {
|
|
120
|
+
id: string;
|
|
121
|
+
created_at: string;
|
|
122
|
+
trigger: AnalysisTrigger;
|
|
123
|
+
analysis_meta: AnalysisMetadata;
|
|
124
|
+
ind: number;
|
|
125
|
+
merged_from_version: AnalysisVersionRef | null;
|
|
126
|
+
forked_from_version: AnalysisVersionRef | null;
|
|
127
|
+
parent_version: AnalysisVersionRef | null;
|
|
120
128
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
129
|
+
/**
|
|
130
|
+
* An immutable snapshot of an analysis's findings on one code version.
|
|
131
|
+
*/
|
|
132
|
+
export interface AnalysisVersion {
|
|
133
|
+
id: string;
|
|
134
|
+
created_at: string;
|
|
135
|
+
/**
|
|
136
|
+
* How this version was created.
|
|
137
|
+
*/
|
|
138
|
+
trigger: AnalysisTrigger;
|
|
139
|
+
/**
|
|
140
|
+
* Findings on this version, including staged changes.
|
|
141
|
+
*/
|
|
142
|
+
n_findings: number;
|
|
143
|
+
/**
|
|
144
|
+
* Uncommitted finding changes on this version.
|
|
145
|
+
*/
|
|
146
|
+
n_staged: number;
|
|
147
|
+
/**
|
|
148
|
+
* Findings from the parent version dropped because their code changed.
|
|
149
|
+
*/
|
|
150
|
+
n_remediations: number;
|
|
151
|
+
/**
|
|
152
|
+
* Whether this is the analysis's HEAD.
|
|
153
|
+
*/
|
|
154
|
+
is_head: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Whether any entrypoint is still being analyzed.
|
|
157
|
+
*/
|
|
158
|
+
has_pipeline_processing: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Whether any entrypoint failed in the latest run.
|
|
161
|
+
*/
|
|
162
|
+
has_pipeline_failed: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* The code this version analyzes.
|
|
165
|
+
*/
|
|
166
|
+
code_version: CodeVersion;
|
|
167
|
+
/**
|
|
168
|
+
* The version merged into this one.
|
|
169
|
+
*/
|
|
170
|
+
merged_from_version: AnalysisVersionRef | null;
|
|
171
|
+
/**
|
|
172
|
+
* The version this one was forked from.
|
|
173
|
+
*/
|
|
174
|
+
forked_from_version: AnalysisVersionRef | null;
|
|
175
|
+
/**
|
|
176
|
+
* The previous version in this analysis.
|
|
177
|
+
*/
|
|
178
|
+
parent_version: AnalysisVersionRef | null;
|
|
179
|
+
/**
|
|
180
|
+
* Versions built on this one.
|
|
181
|
+
*/
|
|
182
|
+
child_versions: AnalysisVersionRef[];
|
|
183
|
+
/**
|
|
184
|
+
* Versions this one was merged into.
|
|
185
|
+
*/
|
|
186
|
+
merged_versions: AnalysisVersionRef[];
|
|
187
|
+
/**
|
|
188
|
+
* Forks of this version.
|
|
189
|
+
*/
|
|
190
|
+
forked_versions: AnalysisVersionRef[];
|
|
191
|
+
actions: AnalysisActions;
|
|
124
192
|
}
|
|
125
|
-
export interface
|
|
126
|
-
id:
|
|
127
|
-
created_at:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
193
|
+
export interface AnalysisVersionDirect {
|
|
194
|
+
id: string;
|
|
195
|
+
created_at: string;
|
|
196
|
+
/**
|
|
197
|
+
* How this version was created.
|
|
198
|
+
*/
|
|
199
|
+
trigger: AnalysisTrigger;
|
|
200
|
+
/**
|
|
201
|
+
* Findings on this version, including staged changes.
|
|
202
|
+
*/
|
|
203
|
+
n_findings: number;
|
|
204
|
+
/**
|
|
205
|
+
* Uncommitted finding changes on this version.
|
|
206
|
+
*/
|
|
207
|
+
n_staged: number;
|
|
208
|
+
/**
|
|
209
|
+
* Findings from the parent version dropped because their code changed.
|
|
210
|
+
*/
|
|
211
|
+
n_remediations: number;
|
|
212
|
+
/**
|
|
213
|
+
* Whether this is the analysis's HEAD.
|
|
214
|
+
*/
|
|
215
|
+
is_head: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Whether any entrypoint is still being analyzed.
|
|
218
|
+
*/
|
|
219
|
+
has_pipeline_processing: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Whether any entrypoint failed in the latest run.
|
|
222
|
+
*/
|
|
223
|
+
has_pipeline_failed: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* The code this version analyzes.
|
|
226
|
+
*/
|
|
227
|
+
code_version: CodeVersion;
|
|
228
|
+
/**
|
|
229
|
+
* The version merged into this one.
|
|
230
|
+
*/
|
|
231
|
+
merged_from_version: AnalysisVersionRef | null;
|
|
232
|
+
/**
|
|
233
|
+
* The version this one was forked from.
|
|
234
|
+
*/
|
|
235
|
+
forked_from_version: AnalysisVersionRef | null;
|
|
236
|
+
/**
|
|
237
|
+
* The previous version in this analysis.
|
|
238
|
+
*/
|
|
239
|
+
parent_version: AnalysisVersionRef | null;
|
|
240
|
+
/**
|
|
241
|
+
* Versions built on this one.
|
|
242
|
+
*/
|
|
243
|
+
child_versions: AnalysisVersionRef[];
|
|
244
|
+
/**
|
|
245
|
+
* Versions this one was merged into.
|
|
246
|
+
*/
|
|
247
|
+
merged_versions: AnalysisVersionRef[];
|
|
248
|
+
/**
|
|
249
|
+
* Forks of this version.
|
|
250
|
+
*/
|
|
251
|
+
forked_versions: AnalysisVersionRef[];
|
|
252
|
+
actions: AnalysisActions;
|
|
253
|
+
/**
|
|
254
|
+
* The analysis this version belongs to.
|
|
255
|
+
*/
|
|
256
|
+
analysis_meta: AnalysisMetadata;
|
|
132
257
|
}
|
|
133
|
-
export interface
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
n_analyses: number;
|
|
137
|
-
n_users: number;
|
|
138
|
-
github_link: GithubLinkSchema | null;
|
|
258
|
+
export interface AnalysisVersionRef {
|
|
259
|
+
id: string;
|
|
260
|
+
analysis_id: string;
|
|
139
261
|
}
|
|
140
|
-
export interface
|
|
141
|
-
|
|
142
|
-
created_at: DateTime;
|
|
143
|
-
name: string;
|
|
144
|
-
is_default: boolean;
|
|
262
|
+
export interface BooleanResponse {
|
|
263
|
+
success: boolean;
|
|
145
264
|
}
|
|
146
|
-
export interface
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
provider: "google" | "github";
|
|
161
|
-
can_disconnect: boolean;
|
|
162
|
-
}
|
|
163
|
-
export interface UserDetailedSchema extends UserSchema {
|
|
164
|
-
email: string;
|
|
165
|
-
onboarding_persona: OnboardingPersona | null;
|
|
166
|
-
onboarding_use_type: OnboardingUseType | null;
|
|
167
|
-
is_onboarded: boolean;
|
|
168
|
-
oauth_methods: UserOauthMethod[];
|
|
169
|
-
require_paid_workspace: boolean;
|
|
170
|
-
default_workspace_id: ID | null;
|
|
171
|
-
default_project_id: ID | null;
|
|
172
|
-
}
|
|
173
|
-
export interface InviteSchema {
|
|
174
|
-
id: ID;
|
|
175
|
-
created_at: DateTime;
|
|
176
|
-
user_id: ID | null;
|
|
177
|
-
identifier: string;
|
|
178
|
-
role: MemberRole;
|
|
179
|
-
seat_type: string;
|
|
180
|
-
workspace: WorkspaceSchema;
|
|
181
|
-
can_update: boolean;
|
|
182
|
-
}
|
|
183
|
-
export interface ChatMessageSchema {
|
|
184
|
-
id: ID;
|
|
185
|
-
created_at: DateTime;
|
|
186
|
-
chat_id: ID;
|
|
187
|
-
chat_role: ChatRole;
|
|
265
|
+
export interface Chat {
|
|
266
|
+
id: string;
|
|
267
|
+
created_at: string;
|
|
268
|
+
code_id: string;
|
|
269
|
+
version_id: string | null;
|
|
270
|
+
title: string | null;
|
|
271
|
+
chat_type: ChatType;
|
|
272
|
+
total_messages: number;
|
|
273
|
+
}
|
|
274
|
+
export interface ChatMessage {
|
|
275
|
+
id: string;
|
|
276
|
+
created_at: string;
|
|
277
|
+
chat_id: string;
|
|
278
|
+
chat_role: ChatMessageRole;
|
|
188
279
|
message: string;
|
|
189
280
|
refs: InlineRef[];
|
|
190
281
|
has_proposal: boolean;
|
|
191
282
|
proposal_status: string | null;
|
|
192
283
|
}
|
|
193
|
-
export interface
|
|
194
|
-
id: ID;
|
|
195
|
-
created_at: DateTime;
|
|
196
|
-
code_id: ID;
|
|
197
|
-
version_id: ID | null;
|
|
198
|
-
title: string | null;
|
|
199
|
-
chat_type: ChatType;
|
|
200
|
-
total_messages: number;
|
|
201
|
-
}
|
|
202
|
-
export declare const STREAMED_MESSAGE_EVENT_TYPES: readonly ["text", "tool-call", "thinking", "approval", "failure", "reference"];
|
|
203
|
-
export interface StreamedMessageType {
|
|
284
|
+
export interface ChatMessageStream {
|
|
204
285
|
id: string | null;
|
|
205
|
-
event_type:
|
|
286
|
+
event_type: "text" | "tool-call" | "thinking" | "approval" | "failure" | "reference";
|
|
206
287
|
content: string | null;
|
|
207
288
|
}
|
|
208
|
-
export
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
version_method:
|
|
221
|
-
/**
|
|
289
|
+
export interface CodeContent {
|
|
290
|
+
content: string;
|
|
291
|
+
}
|
|
292
|
+
export interface CodeVersion {
|
|
293
|
+
id: string;
|
|
294
|
+
/**
|
|
295
|
+
* The chain the contract is deployed on.
|
|
296
|
+
*/
|
|
297
|
+
network: BlockchainNetwork | null;
|
|
298
|
+
/**
|
|
299
|
+
* How the code was sourced.
|
|
300
|
+
*/
|
|
301
|
+
version_method: CodeVersionMethod;
|
|
302
|
+
/**
|
|
303
|
+
* Uniquely identifies this code.
|
|
304
|
+
*/
|
|
222
305
|
version_fingerprint: string;
|
|
223
|
-
/**
|
|
306
|
+
/**
|
|
307
|
+
* Processing status of the code.
|
|
308
|
+
*/
|
|
224
309
|
status: CodeVersionStatus;
|
|
225
310
|
branch: string | null;
|
|
226
|
-
commit:
|
|
227
|
-
repository:
|
|
228
|
-
}
|
|
229
|
-
export interface
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
311
|
+
commit: GithubCommit | null;
|
|
312
|
+
repository: GithubRepository | null;
|
|
313
|
+
}
|
|
314
|
+
export interface CodeVersionInstance {
|
|
315
|
+
id: string;
|
|
316
|
+
/**
|
|
317
|
+
* The chain the contract is deployed on.
|
|
318
|
+
*/
|
|
319
|
+
network: BlockchainNetwork | null;
|
|
320
|
+
/**
|
|
321
|
+
* How the code was sourced.
|
|
322
|
+
*/
|
|
323
|
+
version_method: CodeVersionMethod;
|
|
324
|
+
/**
|
|
325
|
+
* Uniquely identifies this code.
|
|
326
|
+
*/
|
|
327
|
+
version_fingerprint: string;
|
|
328
|
+
/**
|
|
329
|
+
* Processing status of the code.
|
|
330
|
+
*/
|
|
331
|
+
status: CodeVersionStatus;
|
|
332
|
+
branch: string | null;
|
|
333
|
+
commit: GithubCommit | null;
|
|
334
|
+
repository: GithubRepository | null;
|
|
335
|
+
created_at: string;
|
|
336
|
+
}
|
|
337
|
+
export interface CollisionVersion {
|
|
338
|
+
id: string;
|
|
339
|
+
created_at: string;
|
|
340
|
+
/**
|
|
341
|
+
* How this version was created.
|
|
342
|
+
*/
|
|
343
|
+
trigger: AnalysisTrigger;
|
|
344
|
+
/**
|
|
345
|
+
* Findings on this version, including staged changes.
|
|
346
|
+
*/
|
|
347
|
+
n_findings: number;
|
|
348
|
+
/**
|
|
349
|
+
* Uncommitted finding changes on this version.
|
|
350
|
+
*/
|
|
351
|
+
n_staged: number;
|
|
352
|
+
/**
|
|
353
|
+
* Findings from the parent version dropped because their code changed.
|
|
354
|
+
*/
|
|
355
|
+
n_remediations: number;
|
|
356
|
+
/**
|
|
357
|
+
* Whether this is the analysis's HEAD.
|
|
358
|
+
*/
|
|
359
|
+
is_head: boolean;
|
|
360
|
+
/**
|
|
361
|
+
* Whether any entrypoint is still being analyzed.
|
|
362
|
+
*/
|
|
363
|
+
has_pipeline_processing: boolean;
|
|
364
|
+
/**
|
|
365
|
+
* Whether any entrypoint failed in the latest run.
|
|
366
|
+
*/
|
|
367
|
+
has_pipeline_failed: boolean;
|
|
368
|
+
/**
|
|
369
|
+
* The code this version analyzes.
|
|
370
|
+
*/
|
|
371
|
+
code_version: CodeVersion;
|
|
372
|
+
/**
|
|
373
|
+
* The version merged into this one.
|
|
374
|
+
*/
|
|
375
|
+
merged_from_version: AnalysisVersionRef | null;
|
|
376
|
+
/**
|
|
377
|
+
* The version this one was forked from.
|
|
378
|
+
*/
|
|
379
|
+
forked_from_version: AnalysisVersionRef | null;
|
|
380
|
+
/**
|
|
381
|
+
* The previous version in this analysis.
|
|
382
|
+
*/
|
|
383
|
+
parent_version: AnalysisVersionRef | null;
|
|
384
|
+
/**
|
|
385
|
+
* Versions built on this one.
|
|
386
|
+
*/
|
|
387
|
+
child_versions: AnalysisVersionRef[];
|
|
388
|
+
/**
|
|
389
|
+
* Versions this one was merged into.
|
|
390
|
+
*/
|
|
391
|
+
merged_versions: AnalysisVersionRef[];
|
|
392
|
+
/**
|
|
393
|
+
* Forks of this version.
|
|
394
|
+
*/
|
|
395
|
+
forked_versions: AnalysisVersionRef[];
|
|
396
|
+
actions: AnalysisActions;
|
|
397
|
+
/**
|
|
398
|
+
* The analysis this version belongs to.
|
|
399
|
+
*/
|
|
400
|
+
analysis_meta: AnalysisMetadata;
|
|
401
|
+
/**
|
|
402
|
+
* The suggested way to reuse this version.
|
|
403
|
+
*/
|
|
404
|
+
on_collision: "fork" | "merge" | "view";
|
|
316
405
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
406
|
+
/**
|
|
407
|
+
* An externally callable function: the unit the security pipeline analyzes.
|
|
408
|
+
*/
|
|
409
|
+
export interface EntryPoint {
|
|
410
|
+
/**
|
|
411
|
+
* The entrypoint's node in the code graph.
|
|
412
|
+
*/
|
|
413
|
+
node: GraphSnapshotNode;
|
|
414
|
+
/**
|
|
415
|
+
* Whether it was ever analyzed.
|
|
416
|
+
*/
|
|
417
|
+
is_analyzed: boolean;
|
|
418
|
+
/**
|
|
419
|
+
* Whether it was inherited from a parent.
|
|
420
|
+
*/
|
|
421
|
+
is_inherited: boolean;
|
|
422
|
+
/**
|
|
423
|
+
* Whether it was analyzed in this version.
|
|
424
|
+
*/
|
|
425
|
+
is_analyzed_in_current: boolean;
|
|
426
|
+
/**
|
|
427
|
+
* Most recent bevor security pipeline status
|
|
428
|
+
*/
|
|
429
|
+
pipeline_status: AnalysisEntrypointStatus;
|
|
430
|
+
/**
|
|
431
|
+
* Number of indings on this entrypoint.
|
|
432
|
+
*/
|
|
433
|
+
n_findings: number;
|
|
434
|
+
}
|
|
435
|
+
export interface Finding {
|
|
436
|
+
id: string;
|
|
437
|
+
created_at: string;
|
|
438
|
+
/**
|
|
439
|
+
* The finding's original ID, stable across versions and edits.
|
|
440
|
+
*/
|
|
441
|
+
origin_finding_id: string;
|
|
442
|
+
/**
|
|
443
|
+
* Whether a user acknowledged the finding.
|
|
444
|
+
*/
|
|
327
445
|
is_acknowledged: boolean;
|
|
328
446
|
type: string;
|
|
329
447
|
level: FindingLevel;
|
|
@@ -331,190 +449,212 @@ export interface FindingBareSchema {
|
|
|
331
449
|
explanation: string;
|
|
332
450
|
recommendation: string | null;
|
|
333
451
|
poc: string | null;
|
|
334
|
-
/**
|
|
452
|
+
/**
|
|
453
|
+
* What produced the finding.
|
|
454
|
+
*/
|
|
335
455
|
tool: string;
|
|
456
|
+
/**
|
|
457
|
+
* The code graph node the finding is on.
|
|
458
|
+
*/
|
|
459
|
+
node_id: string;
|
|
460
|
+
/**
|
|
461
|
+
* Whether the finding was carried over from an earlier version.
|
|
462
|
+
*/
|
|
463
|
+
is_borrowed: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* The source location within the node.
|
|
466
|
+
*/
|
|
467
|
+
location_id: string | null;
|
|
468
|
+
/**
|
|
469
|
+
* Who created the finding.
|
|
470
|
+
*/
|
|
471
|
+
created_by_user: User;
|
|
472
|
+
/**
|
|
473
|
+
* The code version the finding is on.
|
|
474
|
+
*/
|
|
475
|
+
code_id: string;
|
|
476
|
+
/**
|
|
477
|
+
* The finding's staged change, if any.
|
|
478
|
+
*/
|
|
479
|
+
operation: FindingDraftOperation | null;
|
|
480
|
+
/**
|
|
481
|
+
* The analysis version the finding belongs to.
|
|
482
|
+
*/
|
|
483
|
+
version: AnalysisVersionRef;
|
|
484
|
+
actions: FindingActions;
|
|
336
485
|
}
|
|
337
486
|
export interface FindingActions {
|
|
338
487
|
edit: ActionDetails;
|
|
339
488
|
revert: ActionDetails;
|
|
340
489
|
delete: ActionDetails;
|
|
341
490
|
}
|
|
342
|
-
export interface
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
491
|
+
export interface FindingBare {
|
|
492
|
+
id: string;
|
|
493
|
+
created_at: string;
|
|
494
|
+
/**
|
|
495
|
+
* The finding's original ID, stable across versions and edits.
|
|
496
|
+
*/
|
|
497
|
+
origin_finding_id: string;
|
|
498
|
+
/**
|
|
499
|
+
* Whether a user acknowledged the finding.
|
|
500
|
+
*/
|
|
501
|
+
is_acknowledged: boolean;
|
|
502
|
+
type: string;
|
|
503
|
+
level: FindingLevel;
|
|
504
|
+
name: string;
|
|
505
|
+
explanation: string;
|
|
506
|
+
recommendation: string | null;
|
|
507
|
+
poc: string | null;
|
|
508
|
+
/**
|
|
509
|
+
* What produced the finding.
|
|
510
|
+
*/
|
|
511
|
+
tool: string;
|
|
358
512
|
}
|
|
359
|
-
export interface
|
|
360
|
-
id:
|
|
361
|
-
created_at:
|
|
513
|
+
export interface FindingComment {
|
|
514
|
+
id: string;
|
|
515
|
+
created_at: string;
|
|
362
516
|
message: string;
|
|
363
517
|
refs: InlineRef[];
|
|
364
|
-
user:
|
|
518
|
+
user: User;
|
|
365
519
|
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
520
|
+
export interface FindingTransition {
|
|
521
|
+
id: string;
|
|
522
|
+
created_at: string;
|
|
523
|
+
before_version: AnalysisVersionRef;
|
|
524
|
+
after_version: AnalysisVersionRef;
|
|
525
|
+
/**
|
|
526
|
+
* How the finding changed.
|
|
527
|
+
*/
|
|
528
|
+
reason: FindingTransitionReason;
|
|
529
|
+
/**
|
|
530
|
+
* The finding before the change.
|
|
531
|
+
*/
|
|
532
|
+
before_finding: FindingBare | null;
|
|
533
|
+
/**
|
|
534
|
+
* The finding after the change.
|
|
535
|
+
*/
|
|
536
|
+
after_finding: FindingBare | null;
|
|
537
|
+
/**
|
|
538
|
+
* used when comparing staged changes
|
|
539
|
+
*/
|
|
540
|
+
changed_fields: string[];
|
|
383
541
|
}
|
|
384
|
-
export interface
|
|
385
|
-
id:
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
user: UserSchema;
|
|
390
|
-
/** Whether the caller owns this analysis. */
|
|
391
|
-
is_owner: boolean;
|
|
542
|
+
export interface GithubAccount {
|
|
543
|
+
id: number;
|
|
544
|
+
login: string;
|
|
545
|
+
type: string;
|
|
546
|
+
avatar_url: string;
|
|
392
547
|
}
|
|
393
|
-
export interface
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
trigger: AnalysisTrigger;
|
|
397
|
-
analysis_meta: AnalysisMetadataSchema;
|
|
548
|
+
export interface GithubBranchFilterMap {
|
|
549
|
+
pattern: string;
|
|
550
|
+
is_enabled: boolean;
|
|
398
551
|
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
trigger: AnalysisTrigger;
|
|
405
|
-
/** Findings on this version, including staged changes. */
|
|
406
|
-
n_findings: number;
|
|
407
|
-
/** Uncommitted finding changes on this version. */
|
|
408
|
-
n_staged: number;
|
|
409
|
-
/** Findings from the parent version dropped because their code changed. */
|
|
410
|
-
n_remediations: number;
|
|
411
|
-
/** Whether this is the analysis's HEAD. */
|
|
412
|
-
is_head: boolean;
|
|
413
|
-
/** Whether any entrypoint is still being analyzed. */
|
|
414
|
-
has_pipeline_processing: boolean;
|
|
415
|
-
/** Whether any entrypoint failed in the latest run. */
|
|
416
|
-
has_pipeline_failed: boolean;
|
|
417
|
-
/** The code this version analyzes. */
|
|
418
|
-
code_version: CodeVersionSchema;
|
|
419
|
-
/** The version merged into this one. */
|
|
420
|
-
merged_from_version: AnalysisVersionRef | null;
|
|
421
|
-
/** The version this one was forked from. */
|
|
422
|
-
forked_from_version: AnalysisVersionRef | null;
|
|
423
|
-
/** The previous version in this analysis. */
|
|
424
|
-
parent_version: AnalysisVersionRef | null;
|
|
425
|
-
/** Versions built on this one. */
|
|
426
|
-
child_versions: AnalysisVersionRef[];
|
|
427
|
-
/** Versions this one was merged into. */
|
|
428
|
-
merged_versions: AnalysisVersionRef[];
|
|
429
|
-
/** Forks of this version. */
|
|
430
|
-
forked_versions: AnalysisVersionRef[];
|
|
431
|
-
actions: AnalysisActions;
|
|
552
|
+
export interface GithubCommit {
|
|
553
|
+
sha: string;
|
|
554
|
+
author: string;
|
|
555
|
+
message: string;
|
|
556
|
+
timestamp: string;
|
|
432
557
|
}
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
558
|
+
export interface GithubLink {
|
|
559
|
+
id: number;
|
|
560
|
+
name: string;
|
|
561
|
+
is_private: boolean;
|
|
562
|
+
account: GithubAccount;
|
|
563
|
+
push_events_enabled: boolean;
|
|
564
|
+
branch_filters: GithubBranchFilterMap[];
|
|
565
|
+
/**
|
|
566
|
+
* Full repository name: owner/repo-name
|
|
567
|
+
*/
|
|
568
|
+
full_name: string;
|
|
569
|
+
/**
|
|
570
|
+
* GitHub repository URL
|
|
571
|
+
*/
|
|
572
|
+
url: string;
|
|
437
573
|
}
|
|
438
|
-
export interface
|
|
439
|
-
|
|
440
|
-
|
|
574
|
+
export interface GithubRepository {
|
|
575
|
+
id: number;
|
|
576
|
+
name: string;
|
|
577
|
+
is_private: boolean;
|
|
578
|
+
account: GithubAccount;
|
|
579
|
+
/**
|
|
580
|
+
* Full repository name: owner/repo-name
|
|
581
|
+
*/
|
|
582
|
+
full_name: string;
|
|
583
|
+
/**
|
|
584
|
+
* GitHub repository URL
|
|
585
|
+
*/
|
|
586
|
+
url: string;
|
|
441
587
|
}
|
|
442
|
-
export interface
|
|
443
|
-
|
|
588
|
+
export interface InlineRef {
|
|
589
|
+
id: string;
|
|
590
|
+
type: string;
|
|
591
|
+
source: string;
|
|
592
|
+
ref_ind: number;
|
|
593
|
+
name: string | null;
|
|
594
|
+
is_stale: boolean;
|
|
444
595
|
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
/** Findings on this entrypoint. */
|
|
458
|
-
n_findings: number;
|
|
596
|
+
export interface Project {
|
|
597
|
+
id: string;
|
|
598
|
+
created_at: string;
|
|
599
|
+
name: string;
|
|
600
|
+
description: string | null;
|
|
601
|
+
is_default: boolean;
|
|
602
|
+
kind: ProjectKind;
|
|
603
|
+
created_by_user: User;
|
|
604
|
+
n_codes: number;
|
|
605
|
+
n_analyses: number;
|
|
606
|
+
n_users: number;
|
|
607
|
+
github_link: GithubLink | null;
|
|
459
608
|
}
|
|
460
|
-
export interface
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
609
|
+
export interface ProjectUser {
|
|
610
|
+
id: string;
|
|
611
|
+
is_self: boolean;
|
|
612
|
+
created_at: string;
|
|
613
|
+
username: string;
|
|
614
|
+
external_id: string | null;
|
|
615
|
+
metadata: {
|
|
616
|
+
[k: string]: unknown;
|
|
617
|
+
};
|
|
464
618
|
}
|
|
465
|
-
export interface
|
|
466
|
-
|
|
467
|
-
on_collision: "fork" | "merge" | "view";
|
|
619
|
+
export interface SigningKey {
|
|
620
|
+
key: string;
|
|
468
621
|
}
|
|
469
|
-
export interface
|
|
470
|
-
|
|
471
|
-
/** Existing versions of this code in the project. */
|
|
472
|
-
candidates: CollisionVersionSchema[];
|
|
622
|
+
export interface SigningToken {
|
|
623
|
+
token: string;
|
|
473
624
|
}
|
|
474
|
-
|
|
475
|
-
export type AnalysisCreateSchema = AnalysisCreatedResult | AnalysisCollisionResult;
|
|
476
|
-
interface BaseSummarySchema {
|
|
625
|
+
export interface ToolBreakdown {
|
|
477
626
|
n_added: number;
|
|
478
627
|
n_updated: number;
|
|
479
628
|
n_removed: number;
|
|
480
629
|
n_remediated: number;
|
|
481
630
|
n_dismissed: number;
|
|
482
|
-
}
|
|
483
|
-
export interface AnalysisNetworkPoint extends AnalysisVersionSlimSchema {
|
|
484
|
-
ind: number;
|
|
485
|
-
merged_from_version: AnalysisVersionRef | null;
|
|
486
|
-
forked_from_version: AnalysisVersionRef | null;
|
|
487
|
-
parent_version: AnalysisVersionRef | null;
|
|
488
|
-
}
|
|
489
|
-
export interface AnalysisFindingPoint extends BaseSummarySchema, AnalysisVersionSlimSchema {
|
|
490
|
-
ind: number;
|
|
491
|
-
}
|
|
492
|
-
export interface UserBreakdownSchema extends BaseSummarySchema {
|
|
493
|
-
user: UserSchema;
|
|
494
|
-
n_versions: number;
|
|
495
|
-
last_analysis_at: DateTime | null;
|
|
496
|
-
}
|
|
497
|
-
export interface ToolBreakdownSchema extends BaseSummarySchema {
|
|
498
631
|
tool: string;
|
|
499
632
|
}
|
|
500
|
-
export interface ToolHistoryPoint
|
|
633
|
+
export interface ToolHistoryPoint {
|
|
634
|
+
n_added: number;
|
|
635
|
+
n_updated: number;
|
|
636
|
+
n_removed: number;
|
|
637
|
+
n_remediated: number;
|
|
638
|
+
n_dismissed: number;
|
|
639
|
+
tool: string;
|
|
501
640
|
version: AnalysisVersionRef;
|
|
502
641
|
analysis_name: string;
|
|
503
|
-
created_at:
|
|
642
|
+
created_at: string;
|
|
504
643
|
}
|
|
505
|
-
export interface
|
|
506
|
-
id:
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
644
|
+
export interface User {
|
|
645
|
+
id: string;
|
|
646
|
+
is_self: boolean;
|
|
647
|
+
created_at: string;
|
|
648
|
+
username: string;
|
|
649
|
+
}
|
|
650
|
+
export interface UserBreakdown {
|
|
651
|
+
n_added: number;
|
|
652
|
+
n_updated: number;
|
|
653
|
+
n_removed: number;
|
|
654
|
+
n_remediated: number;
|
|
655
|
+
n_dismissed: number;
|
|
656
|
+
user: User;
|
|
657
|
+
n_versions: number;
|
|
658
|
+
last_analysis_at: string | null;
|
|
518
659
|
}
|
|
519
|
-
export {};
|
|
520
660
|
//# sourceMappingURL=responses.d.ts.map
|