@ampsec/platform-client 25.4.0 → 26.0.0
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 +2 -0
- package/build/src/dto/findings.dto.d.ts +4 -0
- package/build/src/dto/saasAssets.dto.d.ts +2 -0
- package/build/src/dto/saasComponents.dto.d.ts +12 -0
- package/package.json +1 -1
- package/src/dto/assets.dto.ts +2 -0
- package/src/dto/findings.dto.ts +4 -0
- package/src/dto/saasAssets.dto.ts +2 -0
- package/src/dto/saasComponents.dto.ts +12 -0
|
@@ -3,6 +3,8 @@ import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
|
|
|
3
3
|
export type AssetUpsertDto = ChangeAwareUpsertDto & {
|
|
4
4
|
/** External Keys */
|
|
5
5
|
extKeys: AssetKeys;
|
|
6
|
+
/** Asset display value */
|
|
7
|
+
displayValue: string;
|
|
6
8
|
/** User Id of the asset owner */
|
|
7
9
|
uid?: string | undefined;
|
|
8
10
|
};
|
|
@@ -19,6 +19,10 @@ export type FindingUpsertDto = BaseUpsertDto & {
|
|
|
19
19
|
displayValue: string;
|
|
20
20
|
/** Description of the finding */
|
|
21
21
|
description?: string;
|
|
22
|
+
/** Id of the connector to which the finding applies */
|
|
23
|
+
cid: string;
|
|
24
|
+
/** Id of the provider to which the finding applies */
|
|
25
|
+
pid: string;
|
|
22
26
|
/** Id of the asset to which the finding applies */
|
|
23
27
|
aid?: string | undefined | null;
|
|
24
28
|
/** Id of the user to which the finding applies */
|
|
@@ -19,6 +19,16 @@ export type SaasComponentMeta = {
|
|
|
19
19
|
hasProdAccess?: boolean;
|
|
20
20
|
hasPrivilegedAccess?: boolean;
|
|
21
21
|
};
|
|
22
|
+
_asset?: {
|
|
23
|
+
extId?: string;
|
|
24
|
+
sn?: string;
|
|
25
|
+
hostnames?: string[];
|
|
26
|
+
macs?: string[];
|
|
27
|
+
};
|
|
28
|
+
_user?: {
|
|
29
|
+
extId?: string;
|
|
30
|
+
email?: string;
|
|
31
|
+
};
|
|
22
32
|
[propName: string]: unknown;
|
|
23
33
|
};
|
|
24
34
|
export type SaasComponentUpsertDto = ChangeAwareUpsertDto & {
|
|
@@ -36,5 +46,7 @@ export type SaasComponentUpsertDto = ChangeAwareUpsertDto & {
|
|
|
36
46
|
uid?: string | undefined;
|
|
37
47
|
/** External Id */
|
|
38
48
|
extKey: string;
|
|
49
|
+
/** Component display value */
|
|
50
|
+
displayValue: string;
|
|
39
51
|
};
|
|
40
52
|
export type SaasComponentDto = ChangeAwareDto & SaasComponentUpsertDto;
|
package/package.json
CHANGED
package/src/dto/assets.dto.ts
CHANGED
|
@@ -4,6 +4,8 @@ import {ChangeAwareDto, ChangeAwareUpsertDto} from './base.dto';
|
|
|
4
4
|
export type AssetUpsertDto = ChangeAwareUpsertDto & {
|
|
5
5
|
/** External Keys */
|
|
6
6
|
extKeys: AssetKeys;
|
|
7
|
+
/** Asset display value */
|
|
8
|
+
displayValue: string;
|
|
7
9
|
/** User Id of the asset owner */
|
|
8
10
|
uid?: string | undefined;
|
|
9
11
|
};
|
package/src/dto/findings.dto.ts
CHANGED
|
@@ -20,6 +20,10 @@ export type FindingUpsertDto = BaseUpsertDto & {
|
|
|
20
20
|
displayValue: string;
|
|
21
21
|
/** Description of the finding */
|
|
22
22
|
description?: string;
|
|
23
|
+
/** Id of the connector to which the finding applies */
|
|
24
|
+
cid: string;
|
|
25
|
+
/** Id of the provider to which the finding applies */
|
|
26
|
+
pid: string;
|
|
23
27
|
/** Id of the asset to which the finding applies */
|
|
24
28
|
aid?: string | undefined | null;
|
|
25
29
|
/** Id of the user to which the finding applies */
|
|
@@ -20,6 +20,16 @@ export type SaasComponentMeta = {
|
|
|
20
20
|
hasProdAccess?: boolean;
|
|
21
21
|
hasPrivilegedAccess?: boolean;
|
|
22
22
|
};
|
|
23
|
+
_asset?: {
|
|
24
|
+
extId?: string;
|
|
25
|
+
sn?: string;
|
|
26
|
+
hostnames?: string[];
|
|
27
|
+
macs?: string[];
|
|
28
|
+
};
|
|
29
|
+
_user?: {
|
|
30
|
+
extId?: string;
|
|
31
|
+
email?: string;
|
|
32
|
+
};
|
|
23
33
|
[propName: string]: unknown;
|
|
24
34
|
};
|
|
25
35
|
|
|
@@ -38,6 +48,8 @@ export type SaasComponentUpsertDto = ChangeAwareUpsertDto & {
|
|
|
38
48
|
uid?: string | undefined;
|
|
39
49
|
/** External Id */
|
|
40
50
|
extKey: string;
|
|
51
|
+
/** Component display value */
|
|
52
|
+
displayValue: string;
|
|
41
53
|
};
|
|
42
54
|
|
|
43
55
|
export type SaasComponentDto = ChangeAwareDto & SaasComponentUpsertDto;
|