@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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface Pagination<T> {
|
|
2
|
+
results: T[];
|
|
3
|
+
page: number;
|
|
4
|
+
page_size: number;
|
|
5
|
+
/** Whether more pages follow. */
|
|
6
|
+
more: boolean;
|
|
7
|
+
/** Total results across all pages. */
|
|
8
|
+
total_observations: number;
|
|
9
|
+
total_pages: number;
|
|
10
|
+
}
|
|
11
|
+
export interface ResultsResponse<T> {
|
|
12
|
+
results: T[];
|
|
13
|
+
}
|
|
14
|
+
export interface ExistsResponse<T> {
|
|
15
|
+
exists: boolean;
|
|
16
|
+
data: T | null;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=generics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generics.d.ts","sourceRoot":"","sources":["../../src/types/generics.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU,CAAC,CAAC;IAC5B,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,sCAAsC;IACtC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe,CAAC,CAAC;IACjC,OAAO,EAAE,CAAC,EAAE,CAAC;CACb;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generics.js","sourceRoot":"","sources":["../../src/types/generics.ts"],"names":[],"mappings":""}
|
|
@@ -1,62 +1,137 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export
|
|
3
|
-
export type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
4
|
-
[key: string]: JsonValue;
|
|
5
|
-
};
|
|
6
|
-
export type JsonObject = {
|
|
7
|
-
[key: string]: JsonValue;
|
|
8
|
-
};
|
|
9
|
-
export interface CallBinding {
|
|
1
|
+
import type { EdgeDirection, EdgeType, Language, NodeVisibility } from "./literals.js";
|
|
2
|
+
export interface GraphCallBinding {
|
|
10
3
|
param_index: number;
|
|
11
4
|
param_name: string;
|
|
12
|
-
type_name
|
|
13
|
-
bound_to_field
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
5
|
+
type_name: string | null;
|
|
6
|
+
bound_to_field: string | null;
|
|
7
|
+
bound_to_param_index: number | null;
|
|
8
|
+
bound_to_ref_pos: number | null;
|
|
9
|
+
bound_to_return_index: number | null;
|
|
10
|
+
}
|
|
11
|
+
export interface GraphCallChain {
|
|
12
|
+
node_id: string;
|
|
13
|
+
short_id: string;
|
|
14
|
+
is_resolved: boolean;
|
|
15
|
+
response_type: "json" | "text";
|
|
16
|
+
call_nodes: GraphCallNode[] | string;
|
|
17
|
+
}
|
|
18
|
+
export interface GraphCallNode {
|
|
19
|
+
node_id: string | null;
|
|
20
|
+
short_id: string | null;
|
|
21
|
+
name: string | null;
|
|
22
|
+
node_type: string | null;
|
|
23
|
+
edge_id: string | null;
|
|
24
|
+
edge_type: EdgeType | null;
|
|
25
|
+
low_level_name: string | null;
|
|
26
|
+
target_effect_id: string | null;
|
|
27
|
+
is_conditional: boolean;
|
|
28
|
+
is_arg: boolean;
|
|
29
|
+
is_cyclic: boolean;
|
|
30
|
+
src_field_names: string[];
|
|
31
|
+
dst_field_names: string[];
|
|
32
|
+
resolved_bindings: GraphResolvedStorageAccess[];
|
|
33
|
+
/**
|
|
34
|
+
* Positions of this node's children in the chain, in call order.
|
|
35
|
+
*/
|
|
36
|
+
children: number[];
|
|
37
|
+
}
|
|
38
|
+
export interface GraphConstraintItem {
|
|
39
|
+
name: string;
|
|
40
|
+
value: string[] | null;
|
|
41
|
+
}
|
|
42
|
+
export interface GraphFieldMetadataItem {
|
|
43
|
+
name: string;
|
|
44
|
+
type: string | null;
|
|
45
|
+
value: string | null;
|
|
46
|
+
mutability: string | null;
|
|
47
|
+
discriminant: number | null;
|
|
48
|
+
constraints: GraphConstraintItem[];
|
|
49
|
+
}
|
|
50
|
+
export interface GraphParameterStorageMetadata {
|
|
31
51
|
param_index: number | null;
|
|
32
52
|
start_byte: number;
|
|
33
|
-
is_read
|
|
34
|
-
is_written
|
|
35
|
-
field
|
|
36
|
-
field_start_byte
|
|
37
|
-
param_name
|
|
38
|
-
type_name
|
|
39
|
-
bound_to_ref_pos
|
|
40
|
-
bound_to_return_index
|
|
41
|
-
}
|
|
42
|
-
export interface
|
|
53
|
+
is_read: boolean;
|
|
54
|
+
is_written: boolean;
|
|
55
|
+
field: string | null;
|
|
56
|
+
field_start_byte: number | null;
|
|
57
|
+
param_name: string | null;
|
|
58
|
+
type_name: string | null;
|
|
59
|
+
bound_to_ref_pos: number | null;
|
|
60
|
+
bound_to_return_index: number | null;
|
|
61
|
+
}
|
|
62
|
+
export interface GraphResolvedStorageAccess {
|
|
43
63
|
edge_type: "reads" | "writes" | "uses";
|
|
44
64
|
start_byte: number;
|
|
45
|
-
bound_to_node_id:
|
|
65
|
+
bound_to_node_id: string;
|
|
46
66
|
bound_to_short_id: string;
|
|
47
67
|
bound_to_name: string | null;
|
|
48
68
|
field: string | null;
|
|
49
69
|
}
|
|
50
|
-
export interface
|
|
51
|
-
|
|
52
|
-
|
|
70
|
+
export interface GraphReturnStorageMetadata {
|
|
71
|
+
param_ind: number;
|
|
72
|
+
param_name: string | null;
|
|
73
|
+
type_name: string | null;
|
|
74
|
+
bound_to_field: string | null;
|
|
75
|
+
bound_to_param_index: number | null;
|
|
76
|
+
bound_to_ref_pos: number | null;
|
|
77
|
+
bound_to_return_index: number | null;
|
|
78
|
+
}
|
|
79
|
+
export interface GraphSnapshotEdge {
|
|
80
|
+
id: string;
|
|
81
|
+
src_id: string;
|
|
82
|
+
dst_id: string | null;
|
|
83
|
+
short_src_id: string;
|
|
84
|
+
short_dst_id: string | null;
|
|
85
|
+
edge_type: EdgeType;
|
|
86
|
+
src_start_pos: number;
|
|
87
|
+
call_bindings: GraphCallBinding[];
|
|
88
|
+
src_field_names: string[];
|
|
89
|
+
dst_field_names: string[];
|
|
90
|
+
direction: EdgeDirection | null;
|
|
91
|
+
is_conditional: boolean;
|
|
92
|
+
target_effect_id: string | null;
|
|
93
|
+
low_level_name: string | null;
|
|
94
|
+
src_node_type: string;
|
|
95
|
+
dst_node_type: string | null;
|
|
96
|
+
is_synthetic: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface GraphSnapshotFile {
|
|
99
|
+
id: string;
|
|
100
|
+
language: Language;
|
|
101
|
+
path: string;
|
|
102
|
+
content_hash: string;
|
|
103
|
+
is_dependency: boolean;
|
|
104
|
+
is_config: boolean;
|
|
105
|
+
is_test: boolean;
|
|
106
|
+
is_script: boolean;
|
|
107
|
+
labels: string[];
|
|
108
|
+
include_in_graph: boolean;
|
|
53
109
|
}
|
|
54
|
-
export interface
|
|
110
|
+
export interface GraphSnapshotNode {
|
|
111
|
+
id: string;
|
|
112
|
+
file_id: string;
|
|
113
|
+
file_path: string;
|
|
114
|
+
short_id: string;
|
|
115
|
+
node_type: string;
|
|
116
|
+
sub_type: string | null;
|
|
117
|
+
src_start_pos: number;
|
|
118
|
+
src_end_pos: number;
|
|
119
|
+
path: string;
|
|
120
|
+
docstring: string | null;
|
|
55
121
|
name: string;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
122
|
+
merkle_hash: string;
|
|
123
|
+
dm_hash: string | null;
|
|
124
|
+
visibility: NodeVisibility | null;
|
|
125
|
+
mutability: string | null;
|
|
126
|
+
is_virtual: boolean;
|
|
127
|
+
is_implemented: boolean;
|
|
128
|
+
signature: string | null;
|
|
129
|
+
is_callable: boolean;
|
|
130
|
+
is_declaration: boolean;
|
|
131
|
+
is_container: boolean;
|
|
132
|
+
is_entrypoint: boolean;
|
|
133
|
+
fields: GraphFieldMetadataItem[];
|
|
134
|
+
parameters: GraphParameterStorageMetadata[];
|
|
135
|
+
returns: GraphReturnStorageMetadata[];
|
|
61
136
|
}
|
|
62
137
|
//# sourceMappingURL=graph-data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-data.d.ts","sourceRoot":"","sources":["../../src/types/graph-data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graph-data.d.ts","sourceRoot":"","sources":["../../src/types/graph-data.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,gBAAgB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,cAAc;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,UAAU,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;CACrC;AAED,MAAM,WAAW,aAAa;IAC7B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,MAA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BAA0B,EAAE,CAAC;CACtC"}
|
package/dist/types/graph-data.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-data.js","sourceRoot":"","sources":["../../src/types/graph-data.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"graph-data.js","sourceRoot":"","sources":["../../src/types/graph-data.ts"],"names":[],"mappings":"AAAA,iEAAiE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./events.js";
|
|
2
|
+
export * from "./generics.js";
|
|
3
|
+
export * from "./graph-data.js";
|
|
4
|
+
export * from "./literals.js";
|
|
5
|
+
export * from "./node-types.js";
|
|
6
|
+
export * from "./requests.js";
|
|
7
|
+
export * from "./responses.js";
|
|
8
|
+
export * from "./shared.js";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./events.js";
|
|
2
|
+
export * from "./generics.js";
|
|
3
|
+
export * from "./graph-data.js";
|
|
4
|
+
export * from "./literals.js";
|
|
5
|
+
export * from "./node-types.js";
|
|
6
|
+
export * from "./requests.js";
|
|
7
|
+
export * from "./responses.js";
|
|
8
|
+
export * from "./shared.js";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
|
package/dist/types/literals.d.ts
CHANGED
|
@@ -1,27 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
1
|
+
export type AnalysisEntrypointStatus = "not_run" | "queued" | "processing" | "reconciling" | "success" | "failed";
|
|
2
|
+
export type AnalysisTrigger = "commit" | "create" | "fork" | "merge";
|
|
3
|
+
export type BlockchainNetwork = "eth" | "bsc" | "polygon" | "base" | "avax" | "mode" | "arb" | "eth_sepolia" | "bsc_test" | "polygon_amoy" | "base_sepolia" | "avax_fuji" | "mode_testnet" | "arb_sepolia";
|
|
4
|
+
export type ChatMessageRole = "user" | "assistant" | "system";
|
|
5
|
+
export type ChatType = "analysis" | "code";
|
|
6
|
+
export type CodeVersionMethod = "tag" | "commit" | "hash" | "address";
|
|
7
7
|
export type CodeVersionStatus = "queued" | "processing" | "failed" | "success";
|
|
8
|
-
export type VersionMethod = "tag" | "commit" | "hash" | "address";
|
|
9
|
-
export type EdgeType = "uses" | "typed_as" | "modified_by" | "calls" | "calls_external" | "reads" | "writes" | "inherits" | "overrides" | "emits" | "throws" | "defines" | "initializes" | "instantiates" | "accesses" | "has_constraint" | "has_access_control" | "references" | "implements" | "extends" | "has_ref_comment" | "has_condition";
|
|
10
8
|
export type EdgeDirection = "in" | "out";
|
|
11
|
-
export type
|
|
12
|
-
export type Framework = "foundry" | "hardhat" | "truffle" | "anchor" | "soroban" | "pure";
|
|
13
|
-
export type Platform = "evm" | "solana" | "stellar";
|
|
14
|
-
export type MemberRole = "admin" | "member";
|
|
15
|
-
export type OnboardingPersona = "exec" | "devops" | "developer" | "auditor";
|
|
16
|
-
export type OnboardingUseType = "solo" | "team";
|
|
17
|
-
export type ProjectKind = "standard" | "integration";
|
|
18
|
-
export type OnboardingTask = "upload_code" | "create_project" | "create_app" | "install_cli" | "install_skill" | "create_api_key" | "create_analysis" | "invite_workspace_member" | "connect_github" | "triage_finding" | "chat_with_finding";
|
|
19
|
-
export type AnalysisRunStatus = "not_run" | "queued" | "processing" | "reconciling" | "success" | "failed";
|
|
20
|
-
export type AnalysisTrigger = "create" | "commit" | "fork" | "merge" | "push";
|
|
21
|
-
export declare const FINDING_LEVELS: readonly ["critical", "high", "medium", "low"];
|
|
22
|
-
export type FindingLevel = (typeof FINDING_LEVELS)[number];
|
|
23
|
-
export declare const FINDING_TYPES: readonly ["access_control", "reentrancy", "arithmetic", "validation", "logic", "concurrency", "economic", "oracle", "denial_of_service", "upgradeability", "data_exposure", "cryptography"];
|
|
24
|
-
export type FindingType = (typeof FINDING_TYPES)[number];
|
|
9
|
+
export type EdgeType = "uses" | "typed_as" | "modified_by" | "calls" | "calls_external" | "reads" | "writes" | "inherits" | "overrides" | "emits" | "throws" | "defines" | "initializes" | "instantiates" | "accesses" | "has_constraint" | "has_access_control" | "references" | "implements" | "extends" | "has_ref_comment" | "has_condition";
|
|
25
10
|
export type FindingDraftOperation = "add" | "update" | "delete" | "dismissed";
|
|
11
|
+
export type FindingLevel = "critical" | "high" | "medium" | "low";
|
|
26
12
|
export type FindingTransitionReason = "remediated" | "added" | "removed" | "updated" | "dismissed";
|
|
13
|
+
export type Language = "solidity" | "rust";
|
|
14
|
+
export type NodeVisibility = "external" | "public" | "internal" | "private";
|
|
15
|
+
export type ProjectKind = "standard" | "integration";
|
|
27
16
|
//# sourceMappingURL=literals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"literals.d.ts","sourceRoot":"","sources":["../../src/types/literals.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"literals.d.ts","sourceRoot":"","sources":["../../src/types/literals.ts"],"names":[],"mappings":"AAEA,MAAM,M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,GACT,WAAW,CAAC;AAEf,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAE5E,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,aAAa,CAAC"}
|
package/dist/types/literals.js
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
"access_control",
|
|
4
|
-
"reentrancy",
|
|
5
|
-
"arithmetic",
|
|
6
|
-
"validation",
|
|
7
|
-
"logic",
|
|
8
|
-
"concurrency",
|
|
9
|
-
"economic",
|
|
10
|
-
"oracle",
|
|
11
|
-
"denial_of_service",
|
|
12
|
-
"upgradeability",
|
|
13
|
-
"data_exposure",
|
|
14
|
-
"cryptography",
|
|
15
|
-
];
|
|
1
|
+
// Generated by scripts/codegen/openapi.sh. Do not edit directly.
|
|
2
|
+
export {};
|
|
16
3
|
//# sourceMappingURL=literals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"literals.js","sourceRoot":"","sources":["../../src/types/literals.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"literals.js","sourceRoot":"","sources":["../../src/types/literals.ts"],"names":[],"mappings":"AAAA,iEAAiE"}
|