@ampsec/platform-client 59.6.2 → 59.8.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/coverage.dto.d.ts +21 -0
- package/build/src/dto/coverage.dto.js +6 -1
- package/build/src/dto/coverage.dto.js.map +1 -1
- package/build/src/dto/platform/platform.saasComponents.dto.d.ts +5 -0
- package/build/src/dto/saasComponents.dto.d.ts +10 -0
- package/build/src/services/AmpSdk.d.ts +3 -3
- package/build/src/services/AmpSdk.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/coverage.dto.ts +7 -0
- package/src/dto/platform/platform.saasComponents.dto.ts +7 -0
- package/src/dto/saasComponents.dto.ts +10 -0
- package/src/services/AmpSdk.ts +6 -2
|
@@ -7,6 +7,14 @@ export declare const _AssetAccountSummary: z.ZodObject<{
|
|
|
7
7
|
active: boolean;
|
|
8
8
|
}>;
|
|
9
9
|
export type AssetAccountSummary = z.infer<typeof _AssetAccountSummary>;
|
|
10
|
+
export declare const _UserAccountSummary: z.ZodObject<{
|
|
11
|
+
active: z.ZodBoolean;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
active: boolean;
|
|
14
|
+
}, {
|
|
15
|
+
active: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
export type UserAccountSummary = z.infer<typeof _UserAccountSummary>;
|
|
10
18
|
export declare const _AssetCoverageSummary: z.ZodObject<{
|
|
11
19
|
id: z.ZodOptional<z.ZodString>;
|
|
12
20
|
uid: z.ZodOptional<z.ZodString>;
|
|
@@ -68,6 +76,13 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
68
76
|
name: z.ZodOptional<z.ZodString>;
|
|
69
77
|
notifications: z.ZodOptional<z.ZodNumber>;
|
|
70
78
|
userAccounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
79
|
+
userAccounts2: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
80
|
+
active: z.ZodBoolean;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
active: boolean;
|
|
83
|
+
}, {
|
|
84
|
+
active: boolean;
|
|
85
|
+
}>, "many">>;
|
|
71
86
|
assetAccounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
72
87
|
assets: z.ZodArray<z.ZodObject<{
|
|
73
88
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -119,6 +134,9 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
119
134
|
}, "strip", z.ZodTypeAny, {
|
|
120
135
|
assetAccounts: Record<string, number>;
|
|
121
136
|
userAccounts: Record<string, number>;
|
|
137
|
+
userAccounts2: Record<string, {
|
|
138
|
+
active: boolean;
|
|
139
|
+
}[]>;
|
|
122
140
|
assets: {
|
|
123
141
|
assetAccounts: Record<string, unknown>;
|
|
124
142
|
assetAccounts2: Record<string, {
|
|
@@ -148,6 +166,9 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
148
166
|
}, {
|
|
149
167
|
assetAccounts: Record<string, number>;
|
|
150
168
|
userAccounts: Record<string, number>;
|
|
169
|
+
userAccounts2: Record<string, {
|
|
170
|
+
active: boolean;
|
|
171
|
+
}[]>;
|
|
151
172
|
assets: {
|
|
152
173
|
assetAccounts: Record<string, unknown>;
|
|
153
174
|
assetAccounts2: Record<string, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._UserCoverageReport = exports._UserCoverageSummary = exports._AssetCoverageSummary = exports._AssetAccountSummary = void 0;
|
|
3
|
+
exports._UserCoverageReport = exports._UserCoverageSummary = exports._AssetCoverageSummary = exports._UserAccountSummary = exports._AssetAccountSummary = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const assets_dto_1 = require("./assets.dto");
|
|
6
6
|
const saasAssets_dto_1 = require("./saasAssets.dto");
|
|
@@ -9,6 +9,9 @@ const users_dto_1 = require("./users.dto");
|
|
|
9
9
|
exports._AssetAccountSummary = zod_1.z.object({
|
|
10
10
|
active: zod_1.z.boolean(),
|
|
11
11
|
});
|
|
12
|
+
exports._UserAccountSummary = zod_1.z.object({
|
|
13
|
+
active: zod_1.z.boolean(),
|
|
14
|
+
});
|
|
12
15
|
exports._AssetCoverageSummary = assets_dto_1._SummaryAssetDto.merge(zod_1.z.object({
|
|
13
16
|
/** @deprecated */
|
|
14
17
|
assetAccounts: zod_1.z.record(zod_1.z.unknown()),
|
|
@@ -17,7 +20,9 @@ exports._AssetCoverageSummary = assets_dto_1._SummaryAssetDto.merge(zod_1.z.obje
|
|
|
17
20
|
exports._UserCoverageSummary = users_dto_1._SimpleUserDto.merge(zod_1.z.object({
|
|
18
21
|
name: zod_1.z.string().optional(),
|
|
19
22
|
notifications: zod_1.z.number().optional(),
|
|
23
|
+
/** @deprecated */
|
|
20
24
|
userAccounts: zod_1.z.record(zod_1.z.number()),
|
|
25
|
+
userAccounts2: zod_1.z.record(zod_1.z.array(exports._UserAccountSummary)),
|
|
21
26
|
/** @deprecated */
|
|
22
27
|
assetAccounts: zod_1.z.record(zod_1.z.number()),
|
|
23
28
|
assets: zod_1.z.array(exports._AssetCoverageSummary),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coverage.dto.js","sourceRoot":"","sources":["../../../src/dto/coverage.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,6CAAyD;AACzD,qDAA+C;AAC/C,mDAA6C;AAC7C,2CAA2C;AAE9B,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC;AAGU,QAAA,qBAAqB,GAAG,6BAAgB,CAAC,KAAK,CACzD,OAAC,CAAC,MAAM,CAAC;IACP,kBAAkB;IAClB,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAA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asComponents.dto'
|
|
|
2
2
|
import { TenantBased, UpsertTenantBased } from './tenant.based.dto';
|
|
3
3
|
export type PlatformSaasComponentUpsertDto = SaasComponentUpsertDto & UpsertTenantBased;
|
|
4
4
|
export type PlatformSaasComponentDto = SaasComponentDto & TenantBased;
|
|
5
|
+
export type StagedSaasComponentUpsertDto = SaasComponentUpsertDto & {
|
|
6
|
+
displayValue?: string | null;
|
|
7
|
+
};
|
|
8
|
+
export type PlatformStagedSaasComponentUpsertDto = StagedSaasComponentUpsertDto & UpsertTenantBased;
|
|
9
|
+
export type PlatformStagedSaasComponentDto = StagedSaasComponentUpsertDto & TenantBased;
|
|
@@ -14,6 +14,16 @@ export type RawAssetIds = AssetKeys & {
|
|
|
14
14
|
extId?: string;
|
|
15
15
|
/** Hostnames */
|
|
16
16
|
hostnames?: string[];
|
|
17
|
+
/** Serian Number */
|
|
18
|
+
serialNumber?: string;
|
|
19
|
+
/** Mac Addresses */
|
|
20
|
+
macAddresses?: string[];
|
|
21
|
+
/** Kind */
|
|
22
|
+
kind?: string;
|
|
23
|
+
/** Operating System */
|
|
24
|
+
operatingSystem?: string;
|
|
25
|
+
/** Model */
|
|
26
|
+
model?: string;
|
|
17
27
|
};
|
|
18
28
|
export type RawTrainingContext = {
|
|
19
29
|
title?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PlatformAgentDto, PlatformAgentUpsertDto, PlatformConnectorDto, PlatformConnectorUpsertDto, PlatformFindingDto, PlatformFindingUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto,
|
|
1
|
+
import { PlatformAgentDto, PlatformAgentUpsertDto, PlatformConnectorDto, PlatformConnectorUpsertDto, PlatformFindingDto, PlatformFindingUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
|
|
2
2
|
import { AmpEntityService, AmpSdkAssetService, AmpSdkTenantService, AmpSdkUserService } from './entity.service';
|
|
3
3
|
import { AmpRestClientOptions, RestClient } from './rest';
|
|
4
4
|
import { PlatformJobSpecDto, PlatformJobSpecUpsertDto } from '../dto/platform/platform.jobSpec.dto';
|
|
@@ -38,9 +38,9 @@ export declare class AmpSdkServices {
|
|
|
38
38
|
readonly saasAssets: AmpSdkSaasAssetService;
|
|
39
39
|
readonly saasComponents: AmpSdkSaasComponentService;
|
|
40
40
|
readonly saasUsers: AmpSdkSaasUserService;
|
|
41
|
-
readonly stagedSaasAssets: AmpEntityService<
|
|
41
|
+
readonly stagedSaasAssets: AmpEntityService<PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasAssetDto>;
|
|
42
42
|
readonly stagedSaaSComponents: AmpEntityService<PlatformSaasComponentUpsertDto, PlatformSaasComponentDto>;
|
|
43
|
-
readonly stagedSaaSUsers: AmpEntityService<
|
|
43
|
+
readonly stagedSaaSUsers: AmpEntityService<PlatformStagedSaasUserUpsertDto, PlatformStagedSaasUserDto>;
|
|
44
44
|
readonly settings: AmpSdkSettingsService;
|
|
45
45
|
readonly tenants: AmpSdkTenantService<TenantUpsertDto, TenantDto>;
|
|
46
46
|
readonly users: AmpSdkUserService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;AA4BA,qDAAoI;AACpI,iCAA0E;AAC1E,2CAAsD;AAG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QAC7G,IAAI,CAAC,KAAK,GAAG,IAAI,kCAAiB,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;IAChE,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,OAAsB;QACpC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACF;AA1DD,wCA0DC"}
|
package/package.json
CHANGED
package/src/dto/coverage.dto.ts
CHANGED
|
@@ -9,6 +9,11 @@ export const _AssetAccountSummary = z.object({
|
|
|
9
9
|
});
|
|
10
10
|
export type AssetAccountSummary = z.infer<typeof _AssetAccountSummary>;
|
|
11
11
|
|
|
12
|
+
export const _UserAccountSummary = z.object({
|
|
13
|
+
active: z.boolean(),
|
|
14
|
+
});
|
|
15
|
+
export type UserAccountSummary = z.infer<typeof _UserAccountSummary>;
|
|
16
|
+
|
|
12
17
|
export const _AssetCoverageSummary = _SummaryAssetDto.merge(
|
|
13
18
|
z.object({
|
|
14
19
|
/** @deprecated */
|
|
@@ -22,7 +27,9 @@ export const _UserCoverageSummary = _SimpleUserDto.merge(
|
|
|
22
27
|
z.object({
|
|
23
28
|
name: z.string().optional(),
|
|
24
29
|
notifications: z.number().optional(),
|
|
30
|
+
/** @deprecated */
|
|
25
31
|
userAccounts: z.record(z.number()),
|
|
32
|
+
userAccounts2: z.record(z.array(_UserAccountSummary)),
|
|
26
33
|
/** @deprecated */
|
|
27
34
|
assetAccounts: z.record(z.number()),
|
|
28
35
|
assets: z.array(_AssetCoverageSummary),
|
|
@@ -4,3 +4,10 @@ import {TenantBased, UpsertTenantBased} from './tenant.based.dto';
|
|
|
4
4
|
export type PlatformSaasComponentUpsertDto = SaasComponentUpsertDto & UpsertTenantBased;
|
|
5
5
|
|
|
6
6
|
export type PlatformSaasComponentDto = SaasComponentDto & TenantBased;
|
|
7
|
+
|
|
8
|
+
export type StagedSaasComponentUpsertDto = SaasComponentUpsertDto & {
|
|
9
|
+
displayValue?: string | null;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type PlatformStagedSaasComponentUpsertDto = StagedSaasComponentUpsertDto & UpsertTenantBased;
|
|
13
|
+
export type PlatformStagedSaasComponentDto = StagedSaasComponentUpsertDto & TenantBased;
|
|
@@ -16,6 +16,16 @@ export type RawAssetIds = AssetKeys & {
|
|
|
16
16
|
extId?: string;
|
|
17
17
|
/** Hostnames */
|
|
18
18
|
hostnames?: string[];
|
|
19
|
+
/** Serian Number */
|
|
20
|
+
serialNumber?: string;
|
|
21
|
+
/** Mac Addresses */
|
|
22
|
+
macAddresses?: string[];
|
|
23
|
+
/** Kind */
|
|
24
|
+
kind?: string;
|
|
25
|
+
/** Operating System */
|
|
26
|
+
operatingSystem?: string;
|
|
27
|
+
/** Model */
|
|
28
|
+
model?: string;
|
|
19
29
|
};
|
|
20
30
|
|
|
21
31
|
export type RawTrainingContext = {
|
package/src/services/AmpSdk.ts
CHANGED
|
@@ -18,6 +18,10 @@ import {
|
|
|
18
18
|
PlatformSaasComponentUpsertDto,
|
|
19
19
|
PlatformSaasUserDto,
|
|
20
20
|
PlatformSaasUserUpsertDto,
|
|
21
|
+
PlatformStagedSaasAssetDto,
|
|
22
|
+
PlatformStagedSaasAssetUpsertDto,
|
|
23
|
+
PlatformStagedSaasUserDto,
|
|
24
|
+
PlatformStagedSaasUserUpsertDto,
|
|
21
25
|
ProviderDto,
|
|
22
26
|
TenantDto,
|
|
23
27
|
TenantUpsertDto,
|
|
@@ -64,9 +68,9 @@ export class AmpSdkServices {
|
|
|
64
68
|
readonly saasAssets: AmpSdkSaasAssetService;
|
|
65
69
|
readonly saasComponents: AmpSdkSaasComponentService;
|
|
66
70
|
readonly saasUsers: AmpSdkSaasUserService;
|
|
67
|
-
readonly stagedSaasAssets: AmpEntityService<
|
|
71
|
+
readonly stagedSaasAssets: AmpEntityService<PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasAssetDto>;
|
|
68
72
|
readonly stagedSaaSComponents: AmpEntityService<PlatformSaasComponentUpsertDto, PlatformSaasComponentDto>;
|
|
69
|
-
readonly stagedSaaSUsers: AmpEntityService<
|
|
73
|
+
readonly stagedSaaSUsers: AmpEntityService<PlatformStagedSaasUserUpsertDto, PlatformStagedSaasUserDto>;
|
|
70
74
|
readonly settings: AmpSdkSettingsService;
|
|
71
75
|
readonly tenants: AmpSdkTenantService<TenantUpsertDto, TenantDto>;
|
|
72
76
|
readonly users: AmpSdkUserService;
|