@ampsec/platform-client 65.0.0 → 66.0.1

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.
@@ -20,7 +20,7 @@ export declare const _AgentSummaryDto: z.ZodObject<{
20
20
  status: z.ZodNativeEnum<typeof AgentStatus>;
21
21
  firstName: z.ZodNullable<z.ZodString>;
22
22
  lastName: z.ZodNullable<z.ZodString>;
23
- pictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ pictureUrl: z.ZodOptional<z.ZodString>;
24
24
  role: z.ZodNativeEnum<typeof AuthRole>;
25
25
  lastLoggedIn: z.ZodNullable<z.ZodDate>;
26
26
  id: z.ZodString;
@@ -38,7 +38,7 @@ export declare const _AgentSummaryDto: z.ZodObject<{
38
38
  lastName: string | null;
39
39
  role: AuthRole;
40
40
  lastLoggedIn: Date | null;
41
- pictureUrl?: string | null | undefined;
41
+ pictureUrl?: string | undefined;
42
42
  }, {
43
43
  email: string;
44
44
  status: AgentStatus;
@@ -50,7 +50,7 @@ export declare const _AgentSummaryDto: z.ZodObject<{
50
50
  lastName: string | null;
51
51
  role: AuthRole;
52
52
  lastLoggedIn: Date | null;
53
- pictureUrl?: string | null | undefined;
53
+ pictureUrl?: string | undefined;
54
54
  }>;
55
55
  export type AgentSummaryDto = z.infer<typeof _AgentSummaryDto>;
56
56
  export declare const _AgentSummaryUpsertDto: z.ZodObject<{
@@ -58,7 +58,7 @@ export declare const _AgentSummaryUpsertDto: z.ZodObject<{
58
58
  status: z.ZodOptional<z.ZodNativeEnum<typeof AgentStatus>>;
59
59
  firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
60
  lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
- pictureUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
61
+ pictureUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
62
62
  role: z.ZodOptional<z.ZodNativeEnum<typeof AuthRole>>;
63
63
  lastLoggedIn: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
64
64
  id: z.ZodOptional<z.ZodString>;
@@ -70,7 +70,7 @@ export declare const _AgentSummaryUpsertDto: z.ZodObject<{
70
70
  status?: AgentStatus | undefined;
71
71
  firstName?: string | null | undefined;
72
72
  lastName?: string | null | undefined;
73
- pictureUrl?: string | null | undefined;
73
+ pictureUrl?: string | undefined;
74
74
  role?: AuthRole | undefined;
75
75
  lastLoggedIn?: Date | null | undefined;
76
76
  id?: string | undefined;
@@ -82,7 +82,7 @@ export declare const _AgentSummaryUpsertDto: z.ZodObject<{
82
82
  status?: AgentStatus | undefined;
83
83
  firstName?: string | null | undefined;
84
84
  lastName?: string | null | undefined;
85
- pictureUrl?: string | null | undefined;
85
+ pictureUrl?: string | undefined;
86
86
  role?: AuthRole | undefined;
87
87
  lastLoggedIn?: Date | null | undefined;
88
88
  id?: string | undefined;
@@ -10,7 +10,7 @@ exports._AgentSummaryDto = zod_1.z
10
10
  firstName: zod_1.z.string().nullable(),
11
11
  lastName: zod_1.z.string().nullable(),
12
12
  email: zod_1.z.string(),
13
- pictureUrl: zod_1.z.string().nullable().optional(),
13
+ pictureUrl: zod_1.z.string().optional(),
14
14
  status: zod_1.z.nativeEnum(agent_status_1.AgentStatus),
15
15
  role: zod_1.z.nativeEnum(enums_1.AuthRole),
16
16
  lastLoggedIn: zod_1.z.date().nullable(),
@@ -1 +1 @@
1
- {"version":3,"file":"agents.dto.js","sourceRoot":"","sources":["../../../src/dto/agents.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAiD;AACjD,yCAA4E;AAC5E,mCAAiC;AACjC,6BAAsB;AAoBT,QAAA,gBAAgB,GAAG,OAAC;KAC9B,MAAM,CAAC;IACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,0BAAW,CAAC;IACjC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,gBAAQ,CAAC;IAC5B,YAAY,EAAE,OAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;KACD,KAAK,CAAC,mBAAQ,CAAC,CAAC;AAIN,QAAA,sBAAsB,GAAG,wBAAgB,CAAC,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"agents.dto.js","sourceRoot":"","sources":["../../../src/dto/agents.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAiD;AACjD,yCAA4E;AAC5E,mCAAiC;AACjC,6BAAsB;AAoBT,QAAA,gBAAgB,GAAG,OAAC;KAC9B,MAAM,CAAC;IACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,0BAAW,CAAC;IACjC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,gBAAQ,CAAC;IAC5B,YAAY,EAAE,OAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;KACD,KAAK,CAAC,mBAAQ,CAAC,CAAC;AAIN,QAAA,sBAAsB,GAAG,wBAAgB,CAAC,OAAO,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare enum FindingSpecKind {
2
+ CUSTOM = "CUSTOM",
3
+ SYSTEM = "SYSTEM"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindingSpecKind = void 0;
4
+ var FindingSpecKind;
5
+ (function (FindingSpecKind) {
6
+ FindingSpecKind["CUSTOM"] = "CUSTOM";
7
+ FindingSpecKind["SYSTEM"] = "SYSTEM";
8
+ })(FindingSpecKind || (exports.FindingSpecKind = FindingSpecKind = {}));
9
+ //# sourceMappingURL=findingSpecKind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findingSpecKind.js","sourceRoot":"","sources":["../../../../src/dto/enums/findingSpecKind.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
@@ -7,6 +7,7 @@ export * from './computer.os.enum';
7
7
  export * from './connector.status';
8
8
  export * from './contact.type';
9
9
  export * from './findingKind';
10
+ export * from './findingSpecKind';
10
11
  export * from './finding.severity';
11
12
  export * from './finding.status';
12
13
  export * from './finding.outcome';
@@ -23,6 +23,7 @@ __exportStar(require("./computer.os.enum"), exports);
23
23
  __exportStar(require("./connector.status"), exports);
24
24
  __exportStar(require("./contact.type"), exports);
25
25
  __exportStar(require("./findingKind"), exports);
26
+ __exportStar(require("./findingSpecKind"), exports);
26
27
  __exportStar(require("./finding.severity"), exports);
27
28
  __exportStar(require("./finding.status"), exports);
28
29
  __exportStar(require("./finding.outcome"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,wDAAsC;AACtC,mDAAiC;AACjC,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,iDAA+B;AAC/B,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,wDAAsC;AACtC,mDAAiC;AACjC,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,2DAAyC"}
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { SimpleAssetDto } from './assets.dto';
3
3
  import { BaseDto, BaseUpsertDto } from './base.dto';
4
- import { Category, FindingKind, SaasComponentKind } from './enums';
4
+ import { Category, FindingKind, FindingSpecKind, SaasComponentKind } from './enums';
5
5
  import { FindingOutcome, FindingSeverity, FindingStatus } from './enums';
6
6
  import { SimpleProviderDto } from './providers.dto';
7
7
  import { SaasComponentMeta } from './saasComponents.dto';
@@ -162,6 +162,7 @@ export declare const _FindingSpecDto: z.ZodObject<{
162
162
  }>>;
163
163
  expireAfterDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
164
164
  outcome: z.ZodOptional<z.ZodNativeEnum<typeof FindingOutcome>>;
165
+ kind: z.ZodNativeEnum<typeof FindingSpecKind>;
165
166
  score: z.ZodOptional<z.ZodNumber>;
166
167
  }, "strip", z.ZodTypeAny, {
167
168
  name: string;
@@ -170,6 +171,7 @@ export declare const _FindingSpecDto: z.ZodObject<{
170
171
  updatedAt: string;
171
172
  deletedAt: string | null;
172
173
  displayValue: string;
174
+ kind: FindingSpecKind;
173
175
  eventType: string;
174
176
  severity: FindingSeverity;
175
177
  cid?: string | undefined;
@@ -203,6 +205,7 @@ export declare const _FindingSpecDto: z.ZodObject<{
203
205
  updatedAt: string;
204
206
  deletedAt: string | null;
205
207
  displayValue: string;
208
+ kind: FindingSpecKind;
206
209
  eventType: string;
207
210
  severity: FindingSeverity;
208
211
  cid?: string | undefined;
@@ -241,6 +244,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
241
244
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
245
  displayValue: z.ZodString;
243
246
  score: z.ZodOptional<z.ZodNumber>;
247
+ kind: z.ZodNativeEnum<typeof FindingSpecKind>;
244
248
  eventType: z.ZodString;
245
249
  severity: z.ZodNativeEnum<typeof FindingSeverity>;
246
250
  insights: z.ZodOptional<z.ZodObject<{
@@ -341,6 +345,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
341
345
  }, "strip", z.ZodTypeAny, {
342
346
  name: string;
343
347
  displayValue: string;
348
+ kind: FindingSpecKind;
344
349
  eventType: string;
345
350
  severity: FindingSeverity;
346
351
  description?: unknown;
@@ -374,6 +379,7 @@ export declare const _FindingSpecUpsertDto: z.ZodObject<{
374
379
  }, {
375
380
  name: string;
376
381
  displayValue: string;
382
+ kind: FindingSpecKind;
377
383
  eventType: string;
378
384
  severity: FindingSeverity;
379
385
  description?: unknown;
@@ -44,6 +44,7 @@ exports._FindingSpecDto = base_dto_1._BaseDto.extend({
44
44
  .optional(),
45
45
  expireAfterDays: zod_1.z.nullable(zod_1.z.number()).optional(),
46
46
  outcome: zod_1.z.nativeEnum(enums_2.FindingOutcome).optional(), // TODO add column and form field??? Or just default to REMEDIATION?
47
+ kind: zod_1.z.nativeEnum(enums_1.FindingSpecKind),
47
48
  score: zod_1.z.number().optional(),
48
49
  });
49
50
  exports._FindingSpecUpsertDto = exports._FindingSpecDto.partial({
@@ -1 +1 @@
1
- {"version":3,"file":"findings.dto.js","sourceRoot":"","sources":["../../../src/dto/findings.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAEtB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A,qBAAqB,GAAG,uBAAe,CAAC,OAAO,CAAC;IAC3D,EAAE,EAAE,IAAI;IACR,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;CAChB,CAAC,CAAC;AAGU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAGU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC"}
@@ -13,6 +13,7 @@ export declare const _PlatformFindingSpecDto: z.ZodObject<{
13
13
  deletedAt: z.ZodNullable<z.ZodString>;
14
14
  displayValue: z.ZodString;
15
15
  score: z.ZodOptional<z.ZodNumber>;
16
+ kind: z.ZodNativeEnum<typeof import("..").FindingSpecKind>;
16
17
  eventType: z.ZodString;
17
18
  severity: z.ZodNativeEnum<typeof import("..").FindingSeverity>;
18
19
  insights: z.ZodOptional<z.ZodObject<{
@@ -119,6 +120,7 @@ export declare const _PlatformFindingSpecDto: z.ZodObject<{
119
120
  updatedAt: string;
120
121
  deletedAt: string | null;
121
122
  displayValue: string;
123
+ kind: import("..").FindingSpecKind;
122
124
  eventType: string;
123
125
  severity: import("..").FindingSeverity;
124
126
  description?: unknown;
@@ -153,6 +155,7 @@ export declare const _PlatformFindingSpecDto: z.ZodObject<{
153
155
  updatedAt: string;
154
156
  deletedAt: string | null;
155
157
  displayValue: string;
158
+ kind: import("..").FindingSpecKind;
156
159
  eventType: string;
157
160
  severity: import("..").FindingSeverity;
158
161
  description?: unknown;
@@ -191,6 +194,7 @@ export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
191
194
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
195
  displayValue: z.ZodString;
193
196
  score: z.ZodOptional<z.ZodNumber>;
197
+ kind: z.ZodNativeEnum<typeof import("..").FindingSpecKind>;
194
198
  eventType: z.ZodString;
195
199
  severity: z.ZodNativeEnum<typeof import("..").FindingSeverity>;
196
200
  insights: z.ZodOptional<z.ZodObject<{
@@ -293,6 +297,7 @@ export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
293
297
  name: string;
294
298
  tid: string;
295
299
  displayValue: string;
300
+ kind: import("..").FindingSpecKind;
296
301
  eventType: string;
297
302
  severity: import("..").FindingSeverity;
298
303
  description?: unknown;
@@ -327,6 +332,7 @@ export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
327
332
  name: string;
328
333
  tid: string;
329
334
  displayValue: string;
335
+ kind: import("..").FindingSpecKind;
330
336
  eventType: string;
331
337
  severity: import("..").FindingSeverity;
332
338
  description?: unknown;
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { AgentDto, AgentUpsertDto, Page } from '../dto';
3
3
  import { AmpEntityServiceImpl } from './entity.service';
4
4
  import { RestClient } from './rest';
5
- declare const _AgentSummaryPayload: z.ZodObject<{
5
+ export declare const _AgentSummaryPayload: z.ZodObject<{
6
6
  email: z.ZodString;
7
7
  status: z.ZodOptional<z.ZodNativeEnum<typeof import("../dto").AgentStatus>>;
8
8
  id: z.ZodOptional<z.ZodString>;
@@ -11,7 +11,7 @@ declare const _AgentSummaryPayload: z.ZodObject<{
11
11
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
12
  firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
- pictureUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
14
+ pictureUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15
15
  role: z.ZodNativeEnum<typeof import("../dto").AuthRole>;
16
16
  lastLoggedIn: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
17
17
  }, "strip", z.ZodTypeAny, {
@@ -24,7 +24,7 @@ declare const _AgentSummaryPayload: z.ZodObject<{
24
24
  deletedAt?: string | null | undefined;
25
25
  firstName?: string | null | undefined;
26
26
  lastName?: string | null | undefined;
27
- pictureUrl?: string | null | undefined;
27
+ pictureUrl?: string | undefined;
28
28
  lastLoggedIn?: Date | null | undefined;
29
29
  }, {
30
30
  email: string;
@@ -36,7 +36,7 @@ declare const _AgentSummaryPayload: z.ZodObject<{
36
36
  deletedAt?: string | null | undefined;
37
37
  firstName?: string | null | undefined;
38
38
  lastName?: string | null | undefined;
39
- pictureUrl?: string | null | undefined;
39
+ pictureUrl?: string | undefined;
40
40
  lastLoggedIn?: Date | null | undefined;
41
41
  }>;
42
42
  export type AgentSummaryPayload = z.infer<typeof _AgentSummaryPayload>;
@@ -44,4 +44,3 @@ export declare class AgentsService extends AmpEntityServiceImpl<AgentUpsertDto,
44
44
  constructor(rest: RestClient);
45
45
  invite: (agentSavePayload: AgentSummaryPayload) => Promise<Page<AgentDto>>;
46
46
  }
47
- export {};
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentsService = void 0;
3
+ exports.AgentsService = exports._AgentSummaryPayload = void 0;
4
4
  const dto_1 = require("../dto");
5
5
  const constants_1 = require("./constants");
6
6
  const entity_service_1 = require("./entity.service");
7
- const _AgentSummaryPayload = dto_1._AgentSummaryUpsertDto.required({ email: true, role: true });
7
+ exports._AgentSummaryPayload = dto_1._AgentSummaryUpsertDto.required({ email: true, role: true });
8
8
  class AgentsService extends entity_service_1.AmpEntityServiceImpl {
9
9
  constructor(rest) {
10
10
  super(rest, constants_1.KIND.AGENTS);
11
11
  this.invite = async (agentSavePayload) => {
12
- const payload = _AgentSummaryPayload.parse(agentSavePayload);
12
+ const payload = exports._AgentSummaryPayload.parse(agentSavePayload);
13
13
  const res = await this.rest.call({
14
14
  url: `/${this.targetApi}/v1/${this.kind}/invite`,
15
15
  method: 'POST',
@@ -1 +1 @@
1
- {"version":3,"file":"AgentsService.js","sourceRoot":"","sources":["../../../src/services/AgentsService.ts"],"names":[],"mappings":";;;AACA,gCAA8E;AAC9E,2CAAiC;AACjC,qDAAsD;AAGtD,MAAM,oBAAoB,GAAG,4BAAsB,CAAC,QAAQ,CAAC,EAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC;AAGxF,MAAa,aAAc,SAAQ,qCAA8C;IAC/E,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QAE3B,WAAM,GAAG,KAAK,EAAE,gBAAqC,EAA2B,EAAE;YAChF,MAAM,OAAO,GAAG,oBAAoB,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;YAE7D,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,IAAI,CAAC,IAAI,SAAS;gBAChD,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,OAAO;aACd,CAAC,CAAC;YAEH,OAAO,GAAG,CAAC,IAAsB,CAAC;QACpC,CAAC,CAAC;IAXF,CAAC;CAYF;AAfD,sCAeC"}
1
+ {"version":3,"file":"AgentsService.js","sourceRoot":"","sources":["../../../src/services/AgentsService.ts"],"names":[],"mappings":";;;AACA,gCAA8E;AAC9E,2CAAiC;AACjC,qDAAsD;AAGzC,QAAA,oBAAoB,GAAG,4BAAsB,CAAC,QAAQ,CAAC,EAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC;AAG/F,MAAa,aAAc,SAAQ,qCAA8C;IAC/E,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QAE3B,WAAM,GAAG,KAAK,EAAE,gBAAqC,EAA2B,EAAE;YAChF,MAAM,OAAO,GAAG,4BAAoB,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;YAE7D,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,IAAI,CAAC,IAAI,SAAS;gBAChD,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,OAAO;aACd,CAAC,CAAC;YAEH,OAAO,GAAG,CAAC,IAAsB,CAAC;QACpC,CAAC,CAAC;IAXF,CAAC;CAYF;AAfD,sCAeC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "65.0.0",
3
+ "version": "66.0.1",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -26,7 +26,7 @@ export const _AgentSummaryDto = z
26
26
  firstName: z.string().nullable(),
27
27
  lastName: z.string().nullable(),
28
28
  email: z.string(),
29
- pictureUrl: z.string().nullable().optional(),
29
+ pictureUrl: z.string().optional(),
30
30
  status: z.nativeEnum(AgentStatus),
31
31
  role: z.nativeEnum(AuthRole),
32
32
  lastLoggedIn: z.date().nullable(),
@@ -0,0 +1,4 @@
1
+ export enum FindingSpecKind {
2
+ CUSTOM = 'CUSTOM',
3
+ SYSTEM = 'SYSTEM',
4
+ }
@@ -7,6 +7,7 @@ export * from './computer.os.enum';
7
7
  export * from './connector.status';
8
8
  export * from './contact.type';
9
9
  export * from './findingKind';
10
+ export * from './findingSpecKind';
10
11
  export * from './finding.severity';
11
12
  export * from './finding.status';
12
13
  export * from './finding.outcome';
@@ -1,7 +1,7 @@
1
1
  import {z} from 'zod';
2
2
  import {SimpleAssetDto} from './assets.dto';
3
3
  import {BaseDto, BaseUpsertDto, _BaseDto} from './base.dto';
4
- import {Category, FindingKind, SaasComponentKind} from './enums';
4
+ import {Category, FindingKind, FindingSpecKind, SaasComponentKind} from './enums';
5
5
  import {FindingOutcome, FindingSeverity, FindingStatus} from './enums';
6
6
  import {SimpleProviderDto} from './providers.dto';
7
7
  import {SaasComponentMeta} from './saasComponents.dto';
@@ -100,6 +100,7 @@ export const _FindingSpecDto = _BaseDto.extend({
100
100
  .optional(),
101
101
  expireAfterDays: z.nullable(z.number()).optional(),
102
102
  outcome: z.nativeEnum(FindingOutcome).optional(), // TODO add column and form field??? Or just default to REMEDIATION?
103
+ kind: z.nativeEnum(FindingSpecKind),
103
104
  score: z.number().optional(),
104
105
  });
105
106
  export type FindingSpecDto = z.infer<typeof _FindingSpecDto>;
@@ -4,7 +4,7 @@ import {KIND} from './constants';
4
4
  import {AmpEntityServiceImpl} from './entity.service';
5
5
  import {RestClient} from './rest';
6
6
 
7
- const _AgentSummaryPayload = _AgentSummaryUpsertDto.required({email: true, role: true});
7
+ export const _AgentSummaryPayload = _AgentSummaryUpsertDto.required({email: true, role: true});
8
8
  export type AgentSummaryPayload = z.infer<typeof _AgentSummaryPayload>;
9
9
 
10
10
  export class AgentsService extends AmpEntityServiceImpl<AgentUpsertDto, AgentDto> {