@ampsec/platform-client 59.7.0 → 60.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.
@@ -1,8 +1,56 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._SaasUserDto = exports._SaasUserUpsertDto = void 0;
3
+ exports._SaasUserDto = exports._SaasUserUpsertDto = exports._SaasUserMeta = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const base_dto_1 = require("./base.dto");
6
+ const enums_1 = require("./enums");
7
+ exports._SaasUserMeta = zod_1.z.object({
8
+ _user: zod_1.z.object({
9
+ /** User ID from provider */
10
+ extId: zod_1.z.optional(zod_1.z.string()),
11
+ /** User's group memberships */
12
+ groups: zod_1.z.optional(zod_1.z.record(zod_1.z.string(), zod_1.z.string())),
13
+ /** User's create date */
14
+ created: zod_1.z.optional(zod_1.z.string()),
15
+ /** User's last activity time */
16
+ lastActivityTime: zod_1.z.optional(zod_1.z.string()),
17
+ /** User's factors */
18
+ factors: zod_1.z.optional(zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.string()))),
19
+ /** User's profile with provider */
20
+ profile: zod_1.z.object({
21
+ /** User's first name */
22
+ firstName: zod_1.z.string(),
23
+ /** User's last name */
24
+ lastName: zod_1.z.string(),
25
+ /** User's email */
26
+ email: zod_1.z.string(),
27
+ /** User's title */
28
+ title: zod_1.z.optional(zod_1.z.string()),
29
+ /** User's department */
30
+ department: zod_1.z.optional(zod_1.z.string()),
31
+ /** User's organization */
32
+ organization: zod_1.z.optional(zod_1.z.string()),
33
+ /** User's profile picture URL */
34
+ pictureUrl: zod_1.z.optional(zod_1.z.string()),
35
+ /** User's start date */
36
+ startDate: zod_1.z.optional(zod_1.z.string()),
37
+ /** User's manager */
38
+ manager: zod_1.z
39
+ .object({
40
+ /** User's manager's ID */
41
+ extId: zod_1.z.string().optional(),
42
+ /** User's manager's name */
43
+ name: zod_1.z.string().optional(),
44
+ /** User's manager's email */
45
+ email: zod_1.z.string().optional(),
46
+ })
47
+ .optional(),
48
+ /** User's status */
49
+ status: zod_1.z.nativeEnum(enums_1.GlobalUserType),
50
+ }),
51
+ }),
52
+ _raw: zod_1.z.unknown(),
53
+ });
6
54
  exports._SaasUserUpsertDto = base_dto_1._ChangeAwareUpsertDto.merge(zod_1.z.object({
7
55
  /** User Id */
8
56
  uid: zod_1.z.string(),
@@ -13,7 +61,7 @@ exports._SaasUserUpsertDto = base_dto_1._ChangeAwareUpsertDto.merge(zod_1.z.obje
13
61
  /** External Id */
14
62
  extId: zod_1.z.string(),
15
63
  /** Additional information specific to this Saas User */
16
- meta: zod_1.z.unknown(),
64
+ meta: exports._SaasUserMeta,
17
65
  }));
18
66
  exports._SaasUserDto = exports._SaasUserUpsertDto.merge(base_dto_1._ChangeAwareDto);
19
67
  //# 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,0BAAkB,CAAC,KAAK,CAAC,0BAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"saasUsers.dto.js","sourceRoot":"","sources":["../../../src/dto/saasUsers.dto.ts"],"names":[],"mappings":";;;AAAA,6BA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jC,UAAU,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;YAClC,wBAAwB;YACxB,SAAS,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;YACjC,qBAAqB;YACrB,OAAO,EAAE,OAAC;iBACP,MAAM,CAAC;gBACN,0BAA0B;gBAC1B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;gBAC5B,4BAA4B;gBAC5B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;gBAC3B,6BAA6B;gBAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;aAC7B,CAAC;iBACD,QAAQ,EAAE;YACb,oBAAoB;YACpB,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,sBAAc,CAAC;SACrC,CAAC;KACH,CAAC;IACF,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CAAC;AAIU,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,qBAAa;CACpB,CAAC,CACH,CAAC;AAIW,QAAA,YAAY,GAAG,0BAAkB,CAAC,KAAK,CAAC,0BAAe,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { PlatformAgentDto, PlatformAgentUpsertDto, PlatformConnectorDto, PlatformConnectorUpsertDto, PlatformFindingDto, PlatformFindingUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasAssetDto, PlatformSaasAssetUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformSaasUserDto, PlatformSaasUserUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
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<PlatformSaasAssetUpsertDto, PlatformSaasAssetDto>;
41
+ readonly stagedSaasAssets: AmpEntityService<PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasAssetDto>;
42
42
  readonly stagedSaaSComponents: AmpEntityService<PlatformSaasComponentUpsertDto, PlatformSaasComponentDto>;
43
- readonly stagedSaaSUsers: AmpEntityService<PlatformSaasUserUpsertDto, PlatformSaasUserDto>;
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":";;;AAwBA,qDAAoI;AACpI,iCAA0E;AAC1E,2CAAsD;AAGtD,oDAAmE;AACnE,yDAAyD;AACzD,6DAA+J;AAC/J,6DAAuD;AACvD,yEAAmE;AAKnE;;;;;;;;GAQG;AACH,MAAa,cAAc;IA0BzB,YAAY,IAAgB;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,qCAAoB,CAA2C,IAAI,EAAE,gBAAI,CAAC,MAAM,EAAE,+BAAmB,CAAC,CAAC;QACzH,IAAI,CAAC,KAAK,GAAG,IAAI,mCAAkB,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;QAC/D,IAAI,CAAC,UAAU,GAAG,IAAI,qCAAoB,CAAmD,IAAI,EAAE,gBAAI,CAAC,UAAU,EAAE,+BAAmB,CAAC,CAAC;QACzI,IAAI,CAAC,UAAU,GAAG,IAAI,sCAAiB,EAAE,CAAC;QAC1C,IAAI,CAAC,KAAK,GAAG,IAAI,gCAAkB,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;QAC/D,IAAI,CAAC,QAAQ,GAAG,IAAI,6CAAwB,CAA+C,IAAI,EAAE,gBAAI,CAAC,QAAQ,EAAE,+BAAmB,CAAC,CAAC;QACrI,IAAI,CAAC,gBAAgB,GAAG,IAAI,kDAAuB,CAAC,IAAI,EAAE,gBAAI,CAAC,iBAAiB,EAAE,+BAAmB,CAAC,CAAC;QACvG,IAAI,CAAC,SAAS,GAAG,IAAI,6CAAwB,CAAiD,IAAI,EAAE,gBAAI,CAAC,UAAU,EAAE,+BAAmB,CAAC,CAAC;QAC1I,IAAI,CAAC,UAAU,GAAG,IAAI,6CAAwB,CAAmD,IAAI,EAAE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GAAG,IAAI,+CAA0B,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;QAChF,IAAI,CAAC,SAAS,GAAG,IAAI,0CAAqB,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;QACtE,IAAI,CAAC,gBAAgB,GAAG,IAAI,qCAAoB,CAAmD,IAAI,EAAE,gBAAI,CAAC,kBAAkB,EAAE,+BAAmB,CAAC,CAAC;QACvJ,IAAI,CAAC,oBAAoB,GAAG,IAAI,qCAAoB,CAA2D,IAAI,EAAE,gBAAI,CAAC,sBAAsB,EAAE,+BAAmB,CAAC,CAAC;QACvK,IAAI,CAAC,eAAe,GAAG,IAAI,qCAAoB,CAAiD,IAAI,EAAE,gBAAI,CAAC,iBAAiB,EAAE,+BAAmB,CAAC,CAAC;QAEnJ,IAAI,CAAC,QAAQ,GAAG,IAAI,wCAAqB,CAAC,IAAI,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,IAAI,qCAAoB,CAA6B,IAAI,EAAE,gBAAI,CAAC,OAAO,EAAE,+BAAmB,CAAC,CAAC;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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "59.7.0",
3
+ "version": "60.0.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -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 = {
@@ -1,5 +1,56 @@
1
1
  import {z} from 'zod';
2
2
  import {_ChangeAwareDto, _ChangeAwareUpsertDto} from './base.dto';
3
+ import {GlobalUserType} from './enums';
4
+
5
+ export const _SaasUserMeta = z.object({
6
+ _user: z.object({
7
+ /** User ID from provider */
8
+ extId: z.optional(z.string()),
9
+ /** User's group memberships */
10
+ groups: z.optional(z.record(z.string(), z.string())),
11
+ /** User's create date */
12
+ created: z.optional(z.string()),
13
+ /** User's last activity time */
14
+ lastActivityTime: z.optional(z.string()),
15
+ /** User's factors */
16
+ factors: z.optional(z.array(z.record(z.string(), z.string()))),
17
+ /** User's profile with provider */
18
+ profile: z.object({
19
+ /** User's first name */
20
+ firstName: z.string(),
21
+ /** User's last name */
22
+ lastName: z.string(),
23
+ /** User's email */
24
+ email: z.string(),
25
+ /** User's title */
26
+ title: z.optional(z.string()),
27
+ /** User's department */
28
+ department: z.optional(z.string()),
29
+ /** User's organization */
30
+ organization: z.optional(z.string()),
31
+ /** User's profile picture URL */
32
+ pictureUrl: z.optional(z.string()),
33
+ /** User's start date */
34
+ startDate: z.optional(z.string()),
35
+ /** User's manager */
36
+ manager: z
37
+ .object({
38
+ /** User's manager's ID */
39
+ extId: z.string().optional(),
40
+ /** User's manager's name */
41
+ name: z.string().optional(),
42
+ /** User's manager's email */
43
+ email: z.string().optional(),
44
+ })
45
+ .optional(),
46
+ /** User's status */
47
+ status: z.nativeEnum(GlobalUserType),
48
+ }),
49
+ }),
50
+ _raw: z.unknown(),
51
+ });
52
+
53
+ export type SaasUserMeta = z.infer<typeof _SaasUserMeta>;
3
54
 
4
55
  export const _SaasUserUpsertDto = _ChangeAwareUpsertDto.merge(
5
56
  z.object({
@@ -12,7 +63,7 @@ export const _SaasUserUpsertDto = _ChangeAwareUpsertDto.merge(
12
63
  /** External Id */
13
64
  extId: z.string(),
14
65
  /** Additional information specific to this Saas User */
15
- meta: z.unknown(),
66
+ meta: _SaasUserMeta,
16
67
  })
17
68
  );
18
69
 
@@ -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<PlatformSaasAssetUpsertDto, PlatformSaasAssetDto>;
71
+ readonly stagedSaasAssets: AmpEntityService<PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasAssetDto>;
68
72
  readonly stagedSaaSComponents: AmpEntityService<PlatformSaasComponentUpsertDto, PlatformSaasComponentDto>;
69
- readonly stagedSaaSUsers: AmpEntityService<PlatformSaasUserUpsertDto, PlatformSaasUserDto>;
73
+ readonly stagedSaaSUsers: AmpEntityService<PlatformStagedSaasUserUpsertDto, PlatformStagedSaasUserDto>;
70
74
  readonly settings: AmpSdkSettingsService;
71
75
  readonly tenants: AmpSdkTenantService<TenantUpsertDto, TenantDto>;
72
76
  readonly users: AmpSdkUserService;