@ampsec/platform-client 58.3.1 → 58.3.3
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/build/src/dto/assets.dto.d.ts +9 -9
- package/build/src/dto/assets.dto.js +1 -1
- package/build/src/dto/assets.dto.js.map +1 -1
- package/build/src/dto/base.dto.d.ts +6 -6
- package/build/src/dto/base.dto.js +1 -1
- package/build/src/dto/base.dto.js.map +1 -1
- package/build/src/dto/coverage.dto.d.ts +34 -34
- package/build/src/dto/saasAssets.dto.d.ts +11 -11
- package/build/src/dto/saasAssets.dto.js +1 -1
- package/build/src/dto/saasAssets.dto.js.map +1 -1
- package/build/src/dto/saasUsers.dto.d.ts +8 -8
- package/build/src/dto/saasUsers.dto.js +1 -1
- package/build/src/dto/saasUsers.dto.js.map +1 -1
- package/build/src/settings.d.ts +7 -0
- package/build/src/settings.js +8 -0
- package/build/src/settings.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/assets.dto.ts +1 -1
- package/src/dto/base.dto.ts +1 -1
- package/src/dto/saasAssets.dto.ts +1 -1
- package/src/dto/saasUsers.dto.ts +1 -1
- package/src/settings.ts +9 -0
|
@@ -57,11 +57,8 @@ export declare const _AssetUpsertDto: z.ZodObject<{
|
|
|
57
57
|
}>;
|
|
58
58
|
export type AssetUpsertDto = z.infer<typeof _AssetUpsertDto>;
|
|
59
59
|
export declare const _AssetDto: z.ZodObject<{
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
deletedAt: z.ZodNullable<z.ZodString>;
|
|
63
|
-
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
|
|
64
|
-
etag: z.ZodString;
|
|
60
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
61
|
+
displayValue: z.ZodString;
|
|
65
62
|
extKeys: z.ZodObject<{
|
|
66
63
|
extId: z.ZodOptional<z.ZodString>;
|
|
67
64
|
sn: z.ZodOptional<z.ZodString>;
|
|
@@ -75,10 +72,14 @@ export declare const _AssetDto: z.ZodObject<{
|
|
|
75
72
|
extId?: string | undefined;
|
|
76
73
|
sn?: string | undefined;
|
|
77
74
|
}>;
|
|
78
|
-
displayValue: z.ZodString;
|
|
79
|
-
uid: z.ZodOptional<z.ZodString>;
|
|
80
75
|
assetType: z.ZodOptional<z.ZodNativeEnum<typeof GlobalAssetType>>;
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
createdAt: z.ZodString;
|
|
78
|
+
updatedAt: z.ZodString;
|
|
79
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
80
|
+
etag: z.ZodString;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
id: string;
|
|
82
83
|
createdAt: string;
|
|
83
84
|
updatedAt: string;
|
|
84
85
|
deletedAt: string | null;
|
|
@@ -89,10 +90,10 @@ export declare const _AssetDto: z.ZodObject<{
|
|
|
89
90
|
extId?: string | undefined;
|
|
90
91
|
sn?: string | undefined;
|
|
91
92
|
};
|
|
92
|
-
id?: string | undefined;
|
|
93
93
|
uid?: string | undefined;
|
|
94
94
|
assetType?: GlobalAssetType | undefined;
|
|
95
95
|
}, {
|
|
96
|
+
id: string;
|
|
96
97
|
createdAt: string;
|
|
97
98
|
updatedAt: string;
|
|
98
99
|
deletedAt: string | null;
|
|
@@ -103,7 +104,6 @@ export declare const _AssetDto: z.ZodObject<{
|
|
|
103
104
|
extId?: string | undefined;
|
|
104
105
|
sn?: string | undefined;
|
|
105
106
|
};
|
|
106
|
-
id?: string | undefined;
|
|
107
107
|
uid?: string | undefined;
|
|
108
108
|
assetType?: GlobalAssetType | undefined;
|
|
109
109
|
}>;
|
|
@@ -21,5 +21,5 @@ exports._AssetUpsertDto = base_dto_1._ChangeAwareUpsertDto.merge(zod_1.z.object(
|
|
|
21
21
|
/** Asset type */
|
|
22
22
|
assetType: zod_1.z.nativeEnum(globalAsset_type_1.GlobalAssetType).optional(),
|
|
23
23
|
}));
|
|
24
|
-
exports._AssetDto =
|
|
24
|
+
exports._AssetDto = exports._AssetUpsertDto.merge(base_dto_1._ChangeAwareDto);
|
|
25
25
|
//# sourceMappingURL=assets.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.dto.js","sourceRoot":"","sources":["../../../src/dto/assets.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,2CAAuC;AACvC,yCAAkE;AAClE,+DAAyD;AAE5C,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,sBAAsB;IACtB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,uCAAuC;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAIU,QAAA,eAAe,GAAG,gCAAqB,CAAC,KAAK,CACxD,OAAC,CAAC,MAAM,CAAC;IACP,oBAAoB;IACpB,OAAO,EAAE,sBAAU;IACnB,0BAA0B;IAC1B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,iCAAiC;IACjC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,iBAAiB;IACjB,SAAS,EAAE,OAAC,CAAC,UAAU,CAAC,kCAAe,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CACH,CAAC;AAIW,QAAA,SAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"assets.dto.js","sourceRoot":"","sources":["../../../src/dto/assets.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,2CAAuC;AACvC,yCAAkE;AAClE,+DAAyD;AAE5C,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,sBAAsB;IACtB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,uCAAuC;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAIU,QAAA,eAAe,GAAG,gCAAqB,CAAC,KAAK,CACxD,OAAC,CAAC,MAAM,CAAC;IACP,oBAAoB;IACpB,OAAO,EAAE,sBAAU;IACnB,0BAA0B;IAC1B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,iCAAiC;IACjC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,iBAAiB;IACjB,SAAS,EAAE,OAAC,CAAC,UAAU,CAAC,kCAAe,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CACH,CAAC;AAIW,QAAA,SAAS,GAAG,uBAAe,CAAC,KAAK,CAAC,0BAAe,CAAC,CAAC"}
|
|
@@ -8,20 +8,20 @@ export declare const _BaseUpsertDto: z.ZodObject<{
|
|
|
8
8
|
}>;
|
|
9
9
|
export type BaseUpsertDto = z.infer<typeof _BaseUpsertDto>;
|
|
10
10
|
export declare const _BaseDto: z.ZodObject<{
|
|
11
|
-
id: z.
|
|
11
|
+
id: z.ZodString;
|
|
12
12
|
createdAt: z.ZodString;
|
|
13
13
|
updatedAt: z.ZodString;
|
|
14
14
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
id: string;
|
|
16
17
|
createdAt: string;
|
|
17
18
|
updatedAt: string;
|
|
18
19
|
deletedAt: string | null;
|
|
19
|
-
id?: string | undefined;
|
|
20
20
|
}, {
|
|
21
|
+
id: string;
|
|
21
22
|
createdAt: string;
|
|
22
23
|
updatedAt: string;
|
|
23
24
|
deletedAt: string | null;
|
|
24
|
-
id?: string | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
export type BaseDto = z.infer<typeof _BaseDto>;
|
|
27
27
|
export declare const _ChangeAwareUpsertDto: z.ZodObject<{
|
|
@@ -36,22 +36,22 @@ export declare const _ChangeAwareUpsertDto: z.ZodObject<{
|
|
|
36
36
|
}>;
|
|
37
37
|
export type ChangeAwareUpsertDto = z.infer<typeof _ChangeAwareUpsertDto>;
|
|
38
38
|
export declare const _ChangeAwareDto: z.ZodObject<{
|
|
39
|
-
id: z.
|
|
39
|
+
id: z.ZodString;
|
|
40
40
|
createdAt: z.ZodString;
|
|
41
41
|
updatedAt: z.ZodString;
|
|
42
42
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
43
43
|
etag: z.ZodString;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
id: string;
|
|
45
46
|
createdAt: string;
|
|
46
47
|
updatedAt: string;
|
|
47
48
|
deletedAt: string | null;
|
|
48
49
|
etag: string;
|
|
49
|
-
id?: string | undefined;
|
|
50
50
|
}, {
|
|
51
|
+
id: string;
|
|
51
52
|
createdAt: string;
|
|
52
53
|
updatedAt: string;
|
|
53
54
|
deletedAt: string | null;
|
|
54
55
|
etag: string;
|
|
55
|
-
id?: string | undefined;
|
|
56
56
|
}>;
|
|
57
57
|
export type ChangeAwareDto = z.infer<typeof _ChangeAwareDto>;
|
|
@@ -6,7 +6,7 @@ exports._BaseUpsertDto = zod_1.z.object({
|
|
|
6
6
|
id: zod_1.z.union([zod_1.z.string(), zod_1.z.undefined()]).optional(),
|
|
7
7
|
});
|
|
8
8
|
exports._BaseDto = zod_1.z.object({
|
|
9
|
-
id: zod_1.z.
|
|
9
|
+
id: zod_1.z.string(),
|
|
10
10
|
createdAt: zod_1.z.string(),
|
|
11
11
|
updatedAt: zod_1.z.string(),
|
|
12
12
|
deletedAt: zod_1.z.string().nullable(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.dto.js","sourceRoot":"","sources":["../../../src/dto/base.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAET,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAIU,QAAA,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,OAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"base.dto.js","sourceRoot":"","sources":["../../../src/dto/base.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAET,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAIU,QAAA,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAIH,MAAM,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAC,CAAC,CAAC;AAEjC,QAAA,qBAAqB,GAAG,sBAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAIvD,QAAA,eAAe,GAAG,gBAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -40,17 +40,18 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
40
40
|
firstName: z.ZodOptional<z.ZodString>;
|
|
41
41
|
lastName: z.ZodOptional<z.ZodString>;
|
|
42
42
|
userAccounts: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
43
|
-
createdAt: z.ZodString;
|
|
44
|
-
updatedAt: z.ZodString;
|
|
45
|
-
deletedAt: z.ZodNullable<z.ZodString>;
|
|
46
|
-
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
|
|
47
|
-
etag: z.ZodString;
|
|
48
|
-
uid: z.ZodString;
|
|
49
43
|
cid: z.ZodString;
|
|
44
|
+
uid: z.ZodString;
|
|
50
45
|
email: z.ZodString;
|
|
51
46
|
extId: z.ZodString;
|
|
52
47
|
meta: z.ZodUnknown;
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
createdAt: z.ZodString;
|
|
50
|
+
updatedAt: z.ZodString;
|
|
51
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
52
|
+
etag: z.ZodString;
|
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
id: string;
|
|
54
55
|
cid: string;
|
|
55
56
|
uid: string;
|
|
56
57
|
createdAt: string;
|
|
@@ -59,9 +60,9 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
59
60
|
email: string;
|
|
60
61
|
etag: string;
|
|
61
62
|
extId: string;
|
|
62
|
-
id?: string | undefined;
|
|
63
63
|
meta?: unknown;
|
|
64
64
|
}, {
|
|
65
|
+
id: string;
|
|
65
66
|
cid: string;
|
|
66
67
|
uid: string;
|
|
67
68
|
createdAt: string;
|
|
@@ -70,15 +71,13 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
70
71
|
email: string;
|
|
71
72
|
etag: string;
|
|
72
73
|
extId: string;
|
|
73
|
-
id?: string | undefined;
|
|
74
74
|
meta?: unknown;
|
|
75
75
|
}>, "many">>;
|
|
76
76
|
assetAccounts: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
etag: z.ZodString;
|
|
77
|
+
cid: z.ZodString;
|
|
78
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
79
|
+
aid: z.ZodString;
|
|
80
|
+
displayValue: z.ZodString;
|
|
82
81
|
extKeys: z.ZodObject<{
|
|
83
82
|
extId: z.ZodOptional<z.ZodString>;
|
|
84
83
|
sn: z.ZodOptional<z.ZodString>;
|
|
@@ -92,12 +91,14 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
92
91
|
extId?: string | undefined;
|
|
93
92
|
sn?: string | undefined;
|
|
94
93
|
}>;
|
|
95
|
-
cid: z.ZodString;
|
|
96
|
-
aid: z.ZodString;
|
|
97
|
-
uid: z.ZodOptional<z.ZodString>;
|
|
98
|
-
displayValue: z.ZodString;
|
|
99
94
|
meta: z.ZodUnknown;
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
createdAt: z.ZodString;
|
|
97
|
+
updatedAt: z.ZodString;
|
|
98
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
99
|
+
etag: z.ZodString;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
id: string;
|
|
101
102
|
cid: string;
|
|
102
103
|
aid: string;
|
|
103
104
|
createdAt: string;
|
|
@@ -110,10 +111,10 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
110
111
|
extId?: string | undefined;
|
|
111
112
|
sn?: string | undefined;
|
|
112
113
|
};
|
|
113
|
-
id?: string | undefined;
|
|
114
114
|
uid?: string | undefined;
|
|
115
115
|
meta?: unknown;
|
|
116
116
|
}, {
|
|
117
|
+
id: string;
|
|
117
118
|
cid: string;
|
|
118
119
|
aid: string;
|
|
119
120
|
createdAt: string;
|
|
@@ -126,16 +127,12 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
126
127
|
extId?: string | undefined;
|
|
127
128
|
sn?: string | undefined;
|
|
128
129
|
};
|
|
129
|
-
id?: string | undefined;
|
|
130
130
|
uid?: string | undefined;
|
|
131
131
|
meta?: unknown;
|
|
132
132
|
}>, "many">>;
|
|
133
133
|
assets: z.ZodArray<z.ZodObject<{
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
deletedAt: z.ZodNullable<z.ZodString>;
|
|
137
|
-
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
|
|
138
|
-
etag: z.ZodString;
|
|
134
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
135
|
+
displayValue: z.ZodString;
|
|
139
136
|
extKeys: z.ZodObject<{
|
|
140
137
|
extId: z.ZodOptional<z.ZodString>;
|
|
141
138
|
sn: z.ZodOptional<z.ZodString>;
|
|
@@ -149,10 +146,14 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
149
146
|
extId?: string | undefined;
|
|
150
147
|
sn?: string | undefined;
|
|
151
148
|
}>;
|
|
152
|
-
displayValue: z.ZodString;
|
|
153
|
-
uid: z.ZodOptional<z.ZodString>;
|
|
154
149
|
assetType: z.ZodOptional<z.ZodNativeEnum<typeof import("./enums").GlobalAssetType>>;
|
|
150
|
+
id: z.ZodString;
|
|
151
|
+
createdAt: z.ZodString;
|
|
152
|
+
updatedAt: z.ZodString;
|
|
153
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
154
|
+
etag: z.ZodString;
|
|
155
155
|
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
id: string;
|
|
156
157
|
createdAt: string;
|
|
157
158
|
updatedAt: string;
|
|
158
159
|
deletedAt: string | null;
|
|
@@ -163,10 +164,10 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
163
164
|
extId?: string | undefined;
|
|
164
165
|
sn?: string | undefined;
|
|
165
166
|
};
|
|
166
|
-
id?: string | undefined;
|
|
167
167
|
uid?: string | undefined;
|
|
168
168
|
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
169
169
|
}, {
|
|
170
|
+
id: string;
|
|
170
171
|
createdAt: string;
|
|
171
172
|
updatedAt: string;
|
|
172
173
|
deletedAt: string | null;
|
|
@@ -177,12 +178,12 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
177
178
|
extId?: string | undefined;
|
|
178
179
|
sn?: string | undefined;
|
|
179
180
|
};
|
|
180
|
-
id?: string | undefined;
|
|
181
181
|
uid?: string | undefined;
|
|
182
182
|
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
183
183
|
}>, "many">;
|
|
184
184
|
}, "strip", z.ZodTypeAny, {
|
|
185
185
|
userAccounts: Record<string, {
|
|
186
|
+
id: string;
|
|
186
187
|
cid: string;
|
|
187
188
|
uid: string;
|
|
188
189
|
createdAt: string;
|
|
@@ -191,10 +192,10 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
191
192
|
email: string;
|
|
192
193
|
etag: string;
|
|
193
194
|
extId: string;
|
|
194
|
-
id?: string | undefined;
|
|
195
195
|
meta?: unknown;
|
|
196
196
|
}[]>;
|
|
197
197
|
assetAccounts: Record<string, {
|
|
198
|
+
id: string;
|
|
198
199
|
cid: string;
|
|
199
200
|
aid: string;
|
|
200
201
|
createdAt: string;
|
|
@@ -207,11 +208,11 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
207
208
|
extId?: string | undefined;
|
|
208
209
|
sn?: string | undefined;
|
|
209
210
|
};
|
|
210
|
-
id?: string | undefined;
|
|
211
211
|
uid?: string | undefined;
|
|
212
212
|
meta?: unknown;
|
|
213
213
|
}[]>;
|
|
214
214
|
assets: {
|
|
215
|
+
id: string;
|
|
215
216
|
createdAt: string;
|
|
216
217
|
updatedAt: string;
|
|
217
218
|
deletedAt: string | null;
|
|
@@ -222,7 +223,6 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
222
223
|
extId?: string | undefined;
|
|
223
224
|
sn?: string | undefined;
|
|
224
225
|
};
|
|
225
|
-
id?: string | undefined;
|
|
226
226
|
uid?: string | undefined;
|
|
227
227
|
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
228
228
|
}[];
|
|
@@ -235,6 +235,7 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
235
235
|
lastName?: string | undefined;
|
|
236
236
|
}, {
|
|
237
237
|
userAccounts: Record<string, {
|
|
238
|
+
id: string;
|
|
238
239
|
cid: string;
|
|
239
240
|
uid: string;
|
|
240
241
|
createdAt: string;
|
|
@@ -243,10 +244,10 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
243
244
|
email: string;
|
|
244
245
|
etag: string;
|
|
245
246
|
extId: string;
|
|
246
|
-
id?: string | undefined;
|
|
247
247
|
meta?: unknown;
|
|
248
248
|
}[]>;
|
|
249
249
|
assetAccounts: Record<string, {
|
|
250
|
+
id: string;
|
|
250
251
|
cid: string;
|
|
251
252
|
aid: string;
|
|
252
253
|
createdAt: string;
|
|
@@ -259,11 +260,11 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
259
260
|
extId?: string | undefined;
|
|
260
261
|
sn?: string | undefined;
|
|
261
262
|
};
|
|
262
|
-
id?: string | undefined;
|
|
263
263
|
uid?: string | undefined;
|
|
264
264
|
meta?: unknown;
|
|
265
265
|
}[]>;
|
|
266
266
|
assets: {
|
|
267
|
+
id: string;
|
|
267
268
|
createdAt: string;
|
|
268
269
|
updatedAt: string;
|
|
269
270
|
deletedAt: string | null;
|
|
@@ -274,7 +275,6 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
274
275
|
extId?: string | undefined;
|
|
275
276
|
sn?: string | undefined;
|
|
276
277
|
};
|
|
277
|
-
id?: string | undefined;
|
|
278
278
|
uid?: string | undefined;
|
|
279
279
|
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
280
280
|
}[];
|
|
@@ -49,11 +49,10 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<{
|
|
|
49
49
|
}>;
|
|
50
50
|
export type SaasAssetUpsertDto = z.infer<typeof _SaasAssetUpsertDto>;
|
|
51
51
|
export declare const _SaasAssetDto: z.ZodObject<{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
etag: z.ZodString;
|
|
52
|
+
cid: z.ZodString;
|
|
53
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
54
|
+
aid: z.ZodString;
|
|
55
|
+
displayValue: z.ZodString;
|
|
57
56
|
extKeys: z.ZodObject<{
|
|
58
57
|
extId: z.ZodOptional<z.ZodString>;
|
|
59
58
|
sn: z.ZodOptional<z.ZodString>;
|
|
@@ -67,12 +66,14 @@ export declare const _SaasAssetDto: z.ZodObject<{
|
|
|
67
66
|
extId?: string | undefined;
|
|
68
67
|
sn?: string | undefined;
|
|
69
68
|
}>;
|
|
70
|
-
cid: z.ZodString;
|
|
71
|
-
aid: z.ZodString;
|
|
72
|
-
uid: z.ZodOptional<z.ZodString>;
|
|
73
|
-
displayValue: z.ZodString;
|
|
74
69
|
meta: z.ZodUnknown;
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
createdAt: z.ZodString;
|
|
72
|
+
updatedAt: z.ZodString;
|
|
73
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
74
|
+
etag: z.ZodString;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
id: string;
|
|
76
77
|
cid: string;
|
|
77
78
|
aid: string;
|
|
78
79
|
createdAt: string;
|
|
@@ -85,10 +86,10 @@ export declare const _SaasAssetDto: z.ZodObject<{
|
|
|
85
86
|
extId?: string | undefined;
|
|
86
87
|
sn?: string | undefined;
|
|
87
88
|
};
|
|
88
|
-
id?: string | undefined;
|
|
89
89
|
uid?: string | undefined;
|
|
90
90
|
meta?: unknown;
|
|
91
91
|
}, {
|
|
92
|
+
id: string;
|
|
92
93
|
cid: string;
|
|
93
94
|
aid: string;
|
|
94
95
|
createdAt: string;
|
|
@@ -101,7 +102,6 @@ export declare const _SaasAssetDto: z.ZodObject<{
|
|
|
101
102
|
extId?: string | undefined;
|
|
102
103
|
sn?: string | undefined;
|
|
103
104
|
};
|
|
104
|
-
id?: string | undefined;
|
|
105
105
|
uid?: string | undefined;
|
|
106
106
|
meta?: unknown;
|
|
107
107
|
}>;
|
|
@@ -18,5 +18,5 @@ exports._SaasAssetUpsertDto = base_dto_1._ChangeAwareUpsertDto.merge(zod_1.z.obj
|
|
|
18
18
|
/** Information specific to this asset */
|
|
19
19
|
meta: zod_1.z.unknown(),
|
|
20
20
|
}));
|
|
21
|
-
exports._SaasAssetDto =
|
|
21
|
+
exports._SaasAssetDto = exports._SaasAssetUpsertDto.merge(base_dto_1._ChangeAwareDto);
|
|
22
22
|
//# sourceMappingURL=saasAssets.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saasAssets.dto.js","sourceRoot":"","sources":["../../../src/dto/saasAssets.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,2CAAuC;AACvC,yCAAkE;AAErD,QAAA,mBAAmB,GAAG,gCAAqB,CAAC,KAAK,CAC5D,OAAC,CAAC,MAAM,CAAC;IACP,mBAAmB;IACnB,OAAO,EAAE,sBAAU;IACnB,mBAAmB;IACnB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,eAAe;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,cAAc;IACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,0BAA0B;IAC1B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,yCAAyC;IACzC,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CACH,CAAC;AAIW,QAAA,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"saasAssets.dto.js","sourceRoot":"","sources":["../../../src/dto/saasAssets.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,2CAAuC;AACvC,yCAAkE;AAErD,QAAA,mBAAmB,GAAG,gCAAqB,CAAC,KAAK,CAC5D,OAAC,CAAC,MAAM,CAAC;IACP,mBAAmB;IACnB,OAAO,EAAE,sBAAU;IACnB,mBAAmB;IACnB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,eAAe;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,cAAc;IACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,0BAA0B;IAC1B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,yCAAyC;IACzC,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CACH,CAAC;AAIW,QAAA,aAAa,GAAG,2BAAmB,CAAC,KAAK,CAAC,0BAAe,CAAC,CAAC"}
|
|
@@ -26,17 +26,18 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
|
|
|
26
26
|
}>;
|
|
27
27
|
export type SaasUserUpsertDto = z.infer<typeof _SaasUserUpsertDto>;
|
|
28
28
|
export declare const _SaasUserDto: z.ZodObject<{
|
|
29
|
-
createdAt: z.ZodString;
|
|
30
|
-
updatedAt: z.ZodString;
|
|
31
|
-
deletedAt: z.ZodNullable<z.ZodString>;
|
|
32
|
-
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
|
|
33
|
-
etag: z.ZodString;
|
|
34
|
-
uid: z.ZodString;
|
|
35
29
|
cid: z.ZodString;
|
|
30
|
+
uid: z.ZodString;
|
|
36
31
|
email: z.ZodString;
|
|
37
32
|
extId: z.ZodString;
|
|
38
33
|
meta: z.ZodUnknown;
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
createdAt: z.ZodString;
|
|
36
|
+
updatedAt: z.ZodString;
|
|
37
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
38
|
+
etag: z.ZodString;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
id: string;
|
|
40
41
|
cid: string;
|
|
41
42
|
uid: string;
|
|
42
43
|
createdAt: string;
|
|
@@ -45,9 +46,9 @@ export declare const _SaasUserDto: z.ZodObject<{
|
|
|
45
46
|
email: string;
|
|
46
47
|
etag: string;
|
|
47
48
|
extId: string;
|
|
48
|
-
id?: string | undefined;
|
|
49
49
|
meta?: unknown;
|
|
50
50
|
}, {
|
|
51
|
+
id: string;
|
|
51
52
|
cid: string;
|
|
52
53
|
uid: string;
|
|
53
54
|
createdAt: string;
|
|
@@ -56,7 +57,6 @@ export declare const _SaasUserDto: z.ZodObject<{
|
|
|
56
57
|
email: string;
|
|
57
58
|
etag: string;
|
|
58
59
|
extId: string;
|
|
59
|
-
id?: string | undefined;
|
|
60
60
|
meta?: unknown;
|
|
61
61
|
}>;
|
|
62
62
|
export type SaasUserDto = z.infer<typeof _SaasUserDto>;
|
|
@@ -15,5 +15,5 @@ exports._SaasUserUpsertDto = base_dto_1._ChangeAwareUpsertDto.merge(zod_1.z.obje
|
|
|
15
15
|
/** Additional information specific to this Saas User */
|
|
16
16
|
meta: zod_1.z.unknown(),
|
|
17
17
|
}));
|
|
18
|
-
exports._SaasUserDto =
|
|
18
|
+
exports._SaasUserDto = exports._SaasUserUpsertDto.merge(base_dto_1._ChangeAwareDto);
|
|
19
19
|
//# sourceMappingURL=saasUsers.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saasUsers.dto.js","sourceRoot":"","sources":["../../../src/dto/saasUsers.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAkE;AAErD,QAAA,kBAAkB,GAAG,gCAAqB,CAAC,KAAK,CAC3D,OAAC,CAAC,MAAM,CAAC;IACP,cAAc;IACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,mBAAmB;IACnB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,qBAAqB;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,kBAAkB;IAClB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,wDAAwD;IACxD,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CACH,CAAC;AAIW,QAAA,YAAY,GAAG,
|
|
1
|
+
{"version":3,"file":"saasUsers.dto.js","sourceRoot":"","sources":["../../../src/dto/saasUsers.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAkE;AAErD,QAAA,kBAAkB,GAAG,gCAAqB,CAAC,KAAK,CAC3D,OAAC,CAAC,MAAM,CAAC;IACP,cAAc;IACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,mBAAmB;IACnB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,qBAAqB;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,kBAAkB;IAClB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,wDAAwD;IACxD,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CACH,CAAC;AAIW,QAAA,YAAY,GAAG,0BAAkB,CAAC,KAAK,CAAC,0BAAe,CAAC,CAAC"}
|
package/build/src/settings.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export declare const AMP_SETTINGS: {
|
|
|
89
89
|
KNOWBE4_PHISHING_EXP: import("./services").TypedAmpSettingsKey<string>;
|
|
90
90
|
};
|
|
91
91
|
tenable: {
|
|
92
|
+
TENABLE_ACTIVE_LAST_SEEN_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
|
92
93
|
TENABLE_ASSET_ARCHIVED_RULE: import("./services").TypedAmpSettingsKey<unknown>;
|
|
93
94
|
TENABLE_ASSET_ARCHIVED_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
|
94
95
|
TENABLE_VULN_CRIT_DEADLINE_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
|
@@ -96,4 +97,10 @@ export declare const AMP_SETTINGS: {
|
|
|
96
97
|
TENABLE_VULN_MEDIUM_DEADLINE_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
|
97
98
|
TENABLE_VULN_LOW_DEADLINE_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
|
98
99
|
};
|
|
100
|
+
crowdstrike: {
|
|
101
|
+
CROWDSTRIKE_VULN_CRIT_DEADLINE_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
|
102
|
+
CROWDSTRIKE_VULN_HIGH_DEADLINE_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
|
103
|
+
CROWDSTRIKE_VULN_MEDIUM_DEADLINE_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
|
104
|
+
CROWDSTRIKE_VULN_LOW_DEADLINE_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
|
105
|
+
};
|
|
99
106
|
};
|
package/build/src/settings.js
CHANGED
|
@@ -77,6 +77,7 @@ const SLACK_SETTINGS = {
|
|
|
77
77
|
SLACK_CONTACT_SECURITY_TEMPLATE: services_1.AmpSettingsMap.asKey('slack.templates.contactSecurity', 'Thanks for getting in touch! We forwarded your message to our security team and they will get back to you shortly.'),
|
|
78
78
|
};
|
|
79
79
|
const TENABLE_SETTINGS = {
|
|
80
|
+
TENABLE_ACTIVE_LAST_SEEN_THRESHOLD: services_1.AmpSettingsMap.asKey('tenable.active.lastSeen.threshold', '14 day'),
|
|
80
81
|
TENABLE_ASSET_ARCHIVED_RULE: services_1.AmpSettingsMap.asKey('tenable.asset.archived.rule', { MATCH_NOTHING: true }),
|
|
81
82
|
TENABLE_ASSET_ARCHIVED_THRESHOLD: services_1.AmpSettingsMap.asKey('tenable.asset.archived.threshold', '1 year'),
|
|
82
83
|
TENABLE_VULN_CRIT_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('tenable.vuln.crit.deadline', '1 day'),
|
|
@@ -84,6 +85,12 @@ const TENABLE_SETTINGS = {
|
|
|
84
85
|
TENABLE_VULN_MEDIUM_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('tenable.vuln.medium.deadline', '30 day'),
|
|
85
86
|
TENABLE_VULN_LOW_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('tenable.vuln.low.deadline', '90 day'),
|
|
86
87
|
};
|
|
88
|
+
const CROWDSTRIKE_SETTINGS = {
|
|
89
|
+
CROWDSTRIKE_VULN_CRIT_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('crowdstrike.vuln.crit.deadline', '1 day'),
|
|
90
|
+
CROWDSTRIKE_VULN_HIGH_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('crowdstrike.vuln.high.deadline', '7 day'),
|
|
91
|
+
CROWDSTRIKE_VULN_MEDIUM_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('crowdstrike.vuln.medium.deadline', '30 day'),
|
|
92
|
+
CROWDSTRIKE_VULN_LOW_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('crowdstrike.vuln.low.deadline', '90 day'),
|
|
93
|
+
};
|
|
87
94
|
/**
|
|
88
95
|
* Collection of hard coded settings to be use centrally across services and user interfaces.
|
|
89
96
|
*
|
|
@@ -126,5 +133,6 @@ exports.AMP_SETTINGS = {
|
|
|
126
133
|
slack: { ...SLACK_SETTINGS },
|
|
127
134
|
knowBe4: { ...KNOWBE4_SETTINGS },
|
|
128
135
|
tenable: { ...TENABLE_SETTINGS },
|
|
136
|
+
crowdstrike: { ...CROWDSTRIKE_SETTINGS },
|
|
129
137
|
};
|
|
130
138
|
//# sourceMappingURL=settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/settings.ts"],"names":[],"mappings":";;;AACA,yCAA0C;AAE1C;;2BAE2B;AAC3B;;;;GAIG;AACH,MAAM,eAAe,GAAG;IACtB,oEAAoE;IACpE,UAAU,EAAE,yBAAc,CAAC,KAAK,CAAU,iCAAiC,EAAE,IAAI,CAAC;IAClF,4CAA4C;IAC5C,YAAY,EAAE,yBAAc,CAAC,KAAK,CAAU,eAAe,EAAE,KAAK,CAAC;IACnE,sDAAsD;IACtD,mBAAmB,EAAE,yBAAc,CAAC,KAAK,CAAsB,0BAA0B,CAAC;IAC1F;;;;;;;OAOG;IACH,cAAc,EAAE,yBAAc,CAAC,KAAK,CAAS,iBAAiB,EAAE,SAAS,CAAC;IAC1E;;OAEG;IACH,mBAAmB,EAAE,yBAAc,CAAC,KAAK,CAAS,yBAAyB,CAAC;IAC5E;;OAEG;IACH,qBAAqB,EAAE,yBAAc,CAAC,KAAK,CAAU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,EAAC,GAAG,oBAAoB,EAAC;CACvC,CAAC"}
|
package/package.json
CHANGED
package/src/dto/assets.dto.ts
CHANGED
|
@@ -27,6 +27,6 @@ export const _AssetUpsertDto = _ChangeAwareUpsertDto.merge(
|
|
|
27
27
|
|
|
28
28
|
export type AssetUpsertDto = z.infer<typeof _AssetUpsertDto>;
|
|
29
29
|
|
|
30
|
-
export const _AssetDto =
|
|
30
|
+
export const _AssetDto = _AssetUpsertDto.merge(_ChangeAwareDto);
|
|
31
31
|
|
|
32
32
|
export type AssetDto = z.infer<typeof _AssetDto>;
|
package/src/dto/base.dto.ts
CHANGED
|
@@ -7,7 +7,7 @@ export const _BaseUpsertDto = z.object({
|
|
|
7
7
|
export type BaseUpsertDto = z.infer<typeof _BaseUpsertDto>;
|
|
8
8
|
|
|
9
9
|
export const _BaseDto = z.object({
|
|
10
|
-
id: z.
|
|
10
|
+
id: z.string(),
|
|
11
11
|
createdAt: z.string(),
|
|
12
12
|
updatedAt: z.string(),
|
|
13
13
|
deletedAt: z.string().nullable(),
|
|
@@ -21,6 +21,6 @@ export const _SaasAssetUpsertDto = _ChangeAwareUpsertDto.merge(
|
|
|
21
21
|
|
|
22
22
|
export type SaasAssetUpsertDto = z.infer<typeof _SaasAssetUpsertDto>;
|
|
23
23
|
|
|
24
|
-
export const _SaasAssetDto =
|
|
24
|
+
export const _SaasAssetDto = _SaasAssetUpsertDto.merge(_ChangeAwareDto);
|
|
25
25
|
|
|
26
26
|
export type SaasAssetDto = z.infer<typeof _SaasAssetDto>;
|
package/src/dto/saasUsers.dto.ts
CHANGED
|
@@ -18,6 +18,6 @@ export const _SaasUserUpsertDto = _ChangeAwareUpsertDto.merge(
|
|
|
18
18
|
|
|
19
19
|
export type SaasUserUpsertDto = z.infer<typeof _SaasUserUpsertDto>;
|
|
20
20
|
|
|
21
|
-
export const _SaasUserDto =
|
|
21
|
+
export const _SaasUserDto = _SaasUserUpsertDto.merge(_ChangeAwareDto);
|
|
22
22
|
|
|
23
23
|
export type SaasUserDto = z.infer<typeof _SaasUserDto>;
|
package/src/settings.ts
CHANGED
|
@@ -85,6 +85,7 @@ const SLACK_SETTINGS = {
|
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
const TENABLE_SETTINGS = {
|
|
88
|
+
TENABLE_ACTIVE_LAST_SEEN_THRESHOLD: AmpSettingsMap.asKey<string>('tenable.active.lastSeen.threshold', '14 day'),
|
|
88
89
|
TENABLE_ASSET_ARCHIVED_RULE: AmpSettingsMap.asKey<unknown>('tenable.asset.archived.rule', {MATCH_NOTHING: true}),
|
|
89
90
|
TENABLE_ASSET_ARCHIVED_THRESHOLD: AmpSettingsMap.asKey<string>('tenable.asset.archived.threshold', '1 year'),
|
|
90
91
|
TENABLE_VULN_CRIT_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('tenable.vuln.crit.deadline', '1 day'),
|
|
@@ -93,6 +94,13 @@ const TENABLE_SETTINGS = {
|
|
|
93
94
|
TENABLE_VULN_LOW_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('tenable.vuln.low.deadline', '90 day'),
|
|
94
95
|
};
|
|
95
96
|
|
|
97
|
+
const CROWDSTRIKE_SETTINGS = {
|
|
98
|
+
CROWDSTRIKE_VULN_CRIT_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('crowdstrike.vuln.crit.deadline', '1 day'),
|
|
99
|
+
CROWDSTRIKE_VULN_HIGH_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('crowdstrike.vuln.high.deadline', '7 day'),
|
|
100
|
+
CROWDSTRIKE_VULN_MEDIUM_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('crowdstrike.vuln.medium.deadline', '30 day'),
|
|
101
|
+
CROWDSTRIKE_VULN_LOW_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('crowdstrike.vuln.low.deadline', '90 day'),
|
|
102
|
+
};
|
|
103
|
+
|
|
96
104
|
/**
|
|
97
105
|
* Collection of hard coded settings to be use centrally across services and user interfaces.
|
|
98
106
|
*
|
|
@@ -135,4 +143,5 @@ export const AMP_SETTINGS = {
|
|
|
135
143
|
slack: {...SLACK_SETTINGS},
|
|
136
144
|
knowBe4: {...KNOWBE4_SETTINGS},
|
|
137
145
|
tenable: {...TENABLE_SETTINGS},
|
|
146
|
+
crowdstrike: {...CROWDSTRIKE_SETTINGS},
|
|
138
147
|
};
|