@ampsec/platform-client 5.0.0 → 7.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.
@@ -3,6 +3,6 @@ export type AssetUpsertDto = ChangeAwareUpsertDto & {
3
3
  /** External Id */
4
4
  sn: string;
5
5
  /** User Id of the asset owner */
6
- uid?: number | undefined;
6
+ uid?: string | undefined;
7
7
  };
8
8
  export type AssetDto = ChangeAwareDto & AssetUpsertDto;
@@ -1,10 +1,10 @@
1
1
  export type BaseUpsertDto = {
2
2
  /** Unique Row Identifier. Populated for entity updates. */
3
- id?: number;
3
+ id?: string;
4
4
  };
5
5
  export type BaseDto = {
6
6
  /** Unique Row Identifier */
7
- id: number;
7
+ id: string;
8
8
  /** Record creation date in database. */
9
9
  createdAt: string;
10
10
  /** Last record update date in database. */
@@ -6,6 +6,6 @@ export type ConnectorUpsertDto = BaseUpsertDto & {
6
6
  /** Status of the connector, e.g. ACTIVE */
7
7
  status: ConnectorStatus;
8
8
  /** Provider Id */
9
- pid?: number | null;
9
+ pid?: string | null;
10
10
  };
11
11
  export type ConnectorDto = BaseDto & ConnectorUpsertDto;
@@ -1,6 +1,6 @@
1
1
  export type ExtKeyMap = {
2
2
  [propName: string]: {
3
- id: number;
3
+ id: string;
4
4
  etag: string;
5
5
  };
6
6
  };
@@ -17,8 +17,8 @@ export type FindingUpsertDto = BaseUpsertDto & {
17
17
  /** Description of the finding */
18
18
  description?: string;
19
19
  /** Id of the user to which the finding applies */
20
- uid?: number | undefined;
20
+ uid?: string | undefined;
21
21
  /** Id of the SaasComponent related to the given finding */
22
- scid: number;
22
+ scid: string;
23
23
  };
24
24
  export type FindingDto = BaseDto & FindingUpsertDto;
@@ -1,6 +1,6 @@
1
1
  import { BaseDto, BaseUpsertDto } from './base.dto';
2
2
  export type MetricUpsertDto = BaseUpsertDto & {
3
- uid: number;
3
+ uid: string;
4
4
  score: number;
5
5
  scoreDelta: number;
6
6
  rank: number;
@@ -1,9 +1,9 @@
1
1
  import { BaseDto, BaseUpsertDto } from '../base.dto';
2
2
  export type UpsertMultiTenantBased = BaseUpsertDto & {
3
3
  /** Tenant Ids for multi-tenant entities */
4
- tids?: number[];
4
+ tids?: string[];
5
5
  };
6
6
  export type MultiTenantBased = BaseDto & {
7
7
  /** Tenant Ids for multi-tenant entities */
8
- tids: number[];
8
+ tids: string[];
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import { BaseDto, BaseUpsertDto } from '../base.dto';
2
2
  export type UpsertTenantBased = BaseUpsertDto & {
3
3
  /** Tenant Id */
4
- tid?: number;
4
+ tid?: string;
5
5
  };
6
6
  export type TenantBased = BaseDto & {
7
7
  /** Tenant Id */
8
- tid: number;
8
+ tid: string;
9
9
  };
@@ -26,7 +26,7 @@ export type ReportResultUpsertDto = BaseUpsertDto & {
26
26
  /** External Id */
27
27
  extKey: string;
28
28
  /** User Id */
29
- uid?: number;
29
+ uid?: string;
30
30
  /** Department */
31
31
  department?: string | null;
32
32
  /** Timestamp the report result was generated in ISO8601 format */
@@ -3,11 +3,11 @@ export type SaasAssetUpsertDto = ChangeAwareUpsertDto & {
3
3
  /** External Id */
4
4
  sn: string;
5
5
  /** Connector Id */
6
- cid: number;
6
+ cid: string;
7
7
  /** Asset Id */
8
- aid: number;
8
+ aid: string;
9
9
  /** User Id */
10
- uid?: number | undefined;
10
+ uid?: string | undefined;
11
11
  /** Information specific to this asset */
12
12
  meta: unknown;
13
13
  };
@@ -1,15 +1,15 @@
1
1
  import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
2
2
  export type SaasComponentUpsertDto = ChangeAwareUpsertDto & {
3
3
  /** Asset Id */
4
- aid?: number | undefined;
4
+ aid?: string | undefined;
5
5
  /** Connector Id */
6
- cid: number;
6
+ cid: string;
7
7
  /** */
8
8
  kind: string;
9
9
  /** Context specific information related to the Saas Component */
10
10
  meta: unknown;
11
11
  /** User Id of the affected user */
12
- uid?: number | undefined;
12
+ uid?: string | undefined;
13
13
  /** External Id */
14
14
  extKey: string;
15
15
  };
@@ -1,9 +1,9 @@
1
1
  import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
2
2
  export type SaasUserUpsertDto = ChangeAwareUpsertDto & {
3
3
  /** User Id */
4
- uid: number;
4
+ uid: string;
5
5
  /** Connector Id */
6
- cid: number;
6
+ cid: string;
7
7
  /** External Id */
8
8
  email: string;
9
9
  /** Additional information specific to this Saas User */
@@ -3,7 +3,7 @@ import { MetricDto } from './metrics.dto';
3
3
  import { RiskContributorDto } from './riskContributors.dto';
4
4
  export type UserUpsertDto = ChangeAwareUpsertDto & {
5
5
  /** Tenant ID */
6
- tid: number;
6
+ tid: string;
7
7
  /** External ID: list of emails, allows or merging users across email aliases */
8
8
  emails: string[];
9
9
  /** User first name */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "5.0.0",
3
+ "version": "7.0.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "scripts": {
@@ -4,7 +4,7 @@ export type AssetUpsertDto = ChangeAwareUpsertDto & {
4
4
  /** External Id */
5
5
  sn: string;
6
6
  /** User Id of the asset owner */
7
- uid?: number | undefined;
7
+ uid?: string | undefined;
8
8
  };
9
9
 
10
10
  export type AssetDto = ChangeAwareDto & AssetUpsertDto;
@@ -1,11 +1,11 @@
1
1
  export type BaseUpsertDto = {
2
2
  /** Unique Row Identifier. Populated for entity updates. */
3
- id?: number;
3
+ id?: string;
4
4
  };
5
5
 
6
6
  export type BaseDto = {
7
7
  /** Unique Row Identifier */
8
- id: number;
8
+ id: string;
9
9
  /** Record creation date in database. */
10
10
  createdAt: string;
11
11
  /** Last record update date in database. */
@@ -7,7 +7,7 @@ export type ConnectorUpsertDto = BaseUpsertDto & {
7
7
  /** Status of the connector, e.g. ACTIVE */
8
8
  status: ConnectorStatus;
9
9
  /** Provider Id */
10
- pid?: number | null;
10
+ pid?: string | null;
11
11
  };
12
12
 
13
13
  export type ConnectorDto = BaseDto & ConnectorUpsertDto;
@@ -1,6 +1,6 @@
1
1
  export type ExtKeyMap = {
2
2
  [propName: string]: {
3
- id: number;
3
+ id: string;
4
4
  etag: string;
5
5
  };
6
6
  };
@@ -18,9 +18,9 @@ export type FindingUpsertDto = BaseUpsertDto & {
18
18
  /** Description of the finding */
19
19
  description?: string;
20
20
  /** Id of the user to which the finding applies */
21
- uid?: number | undefined;
21
+ uid?: string | undefined;
22
22
  /** Id of the SaasComponent related to the given finding */
23
- scid: number;
23
+ scid: string;
24
24
  };
25
25
 
26
26
  export type FindingDto = BaseDto & FindingUpsertDto;
@@ -1,7 +1,7 @@
1
1
  import {BaseDto, BaseUpsertDto} from './base.dto';
2
2
 
3
3
  export type MetricUpsertDto = BaseUpsertDto & {
4
- uid: number;
4
+ uid: string;
5
5
  score: number;
6
6
  scoreDelta: number;
7
7
  rank: number;
@@ -2,10 +2,10 @@ import {BaseDto, BaseUpsertDto} from '../base.dto';
2
2
 
3
3
  export type UpsertMultiTenantBased = BaseUpsertDto & {
4
4
  /** Tenant Ids for multi-tenant entities */
5
- tids?: number[];
5
+ tids?: string[];
6
6
  };
7
7
 
8
8
  export type MultiTenantBased = BaseDto & {
9
9
  /** Tenant Ids for multi-tenant entities */
10
- tids: number[];
10
+ tids: string[];
11
11
  };
@@ -2,10 +2,10 @@ import {BaseDto, BaseUpsertDto} from '../base.dto';
2
2
 
3
3
  export type UpsertTenantBased = BaseUpsertDto & {
4
4
  /** Tenant Id */
5
- tid?: number;
5
+ tid?: string;
6
6
  };
7
7
 
8
8
  export type TenantBased = BaseDto & {
9
9
  /** Tenant Id */
10
- tid: number;
10
+ tid: string;
11
11
  };
@@ -32,7 +32,7 @@ export type ReportResultUpsertDto = BaseUpsertDto & {
32
32
  /** External Id */
33
33
  extKey: string;
34
34
  /** User Id */
35
- uid?: number;
35
+ uid?: string;
36
36
  /** Department */
37
37
  department?: string | null;
38
38
  /** Timestamp the report result was generated in ISO8601 format */
@@ -4,11 +4,11 @@ export type SaasAssetUpsertDto = ChangeAwareUpsertDto & {
4
4
  /** External Id */
5
5
  sn: string;
6
6
  /** Connector Id */
7
- cid: number;
7
+ cid: string;
8
8
  /** Asset Id */
9
- aid: number;
9
+ aid: string;
10
10
  /** User Id */
11
- uid?: number | undefined;
11
+ uid?: string | undefined;
12
12
  /** Information specific to this asset */
13
13
  meta: unknown;
14
14
  };
@@ -2,15 +2,15 @@ import {ChangeAwareDto, ChangeAwareUpsertDto} from './base.dto';
2
2
 
3
3
  export type SaasComponentUpsertDto = ChangeAwareUpsertDto & {
4
4
  /** Asset Id */
5
- aid?: number | undefined;
5
+ aid?: string | undefined;
6
6
  /** Connector Id */
7
- cid: number;
7
+ cid: string;
8
8
  /** */
9
9
  kind: string;
10
10
  /** Context specific information related to the Saas Component */
11
11
  meta: unknown;
12
12
  /** User Id of the affected user */
13
- uid?: number | undefined;
13
+ uid?: string | undefined;
14
14
  /** External Id */
15
15
  extKey: string;
16
16
  };
@@ -2,9 +2,9 @@ import {ChangeAwareDto, ChangeAwareUpsertDto} from './base.dto';
2
2
 
3
3
  export type SaasUserUpsertDto = ChangeAwareUpsertDto & {
4
4
  /** User Id */
5
- uid: number;
5
+ uid: string;
6
6
  /** Connector Id */
7
- cid: number;
7
+ cid: string;
8
8
  /** External Id */
9
9
  email: string;
10
10
  /** Additional information specific to this Saas User */
@@ -4,7 +4,7 @@ import {RiskContributorDto} from './riskContributors.dto';
4
4
 
5
5
  export type UserUpsertDto = ChangeAwareUpsertDto & {
6
6
  /** Tenant ID */
7
- tid: number;
7
+ tid: string;
8
8
  /** External ID: list of emails, allows or merging users across email aliases */
9
9
  emails: string[];
10
10
  /** User first name */