@ampsec/platform-client 62.22.0 → 62.24.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.
Files changed (63) hide show
  1. package/build/src/dto/customScores.dto.js +1 -1
  2. package/build/src/dto/customScores.dto.js.map +1 -1
  3. package/build/src/dto/enums/category.d.ts +2 -1
  4. package/build/src/dto/enums/category.js +1 -0
  5. package/build/src/dto/enums/category.js.map +1 -1
  6. package/build/src/dto/enums/findingKind.d.ts +21 -0
  7. package/build/src/dto/enums/findingKind.js +71 -1
  8. package/build/src/dto/enums/findingKind.js.map +1 -1
  9. package/build/src/dto/enums/saasComponentKind.d.ts +2 -1
  10. package/build/src/dto/enums/saasComponentKind.js +2 -0
  11. package/build/src/dto/enums/saasComponentKind.js.map +1 -1
  12. package/build/src/dto/findings.dto.d.ts +67 -41
  13. package/build/src/dto/findings.dto.js +17 -5
  14. package/build/src/dto/findings.dto.js.map +1 -1
  15. package/build/src/dto/index.d.ts +1 -0
  16. package/build/src/dto/index.js +1 -0
  17. package/build/src/dto/index.js.map +1 -1
  18. package/build/src/dto/platform/index.d.ts +1 -0
  19. package/build/src/dto/platform/index.js +1 -0
  20. package/build/src/dto/platform/index.js.map +1 -1
  21. package/build/src/dto/platform/platform.findings.dto.d.ts +46 -40
  22. package/build/src/dto/platform/platform.tokens.dto.d.ts +53 -0
  23. package/build/src/dto/platform/platform.tokens.dto.js +8 -0
  24. package/build/src/dto/platform/platform.tokens.dto.js.map +1 -0
  25. package/build/src/dto/saasComponents.dto.d.ts +1 -1
  26. package/build/src/dto/tokens.dto.d.ts +47 -0
  27. package/build/src/dto/tokens.dto.js +11 -0
  28. package/build/src/dto/tokens.dto.js.map +1 -0
  29. package/build/src/services/AmpApi.d.ts +2 -1
  30. package/build/src/services/AmpApi.js +1 -0
  31. package/build/src/services/AmpApi.js.map +1 -1
  32. package/build/src/services/AmpSdk.d.ts +2 -1
  33. package/build/src/services/AmpSdk.js +1 -0
  34. package/build/src/services/AmpSdk.js.map +1 -1
  35. package/build/src/services/ContentTemplateService.d.ts +1 -0
  36. package/build/src/services/ContentTemplateService.js +25 -0
  37. package/build/src/services/ContentTemplateService.js.map +1 -0
  38. package/build/src/services/constants.d.ts +1 -0
  39. package/build/src/services/constants.js +1 -0
  40. package/build/src/services/constants.js.map +1 -1
  41. package/build/src/services/contentful.service.d.ts +272 -1
  42. package/build/src/services/contentful.service.js +197 -2
  43. package/build/src/services/contentful.service.js.map +1 -1
  44. package/build/src/services/index.d.ts +1 -0
  45. package/build/src/services/index.js +1 -0
  46. package/build/src/services/index.js.map +1 -1
  47. package/package.json +2 -2
  48. package/src/dto/customScores.dto.ts +1 -1
  49. package/src/dto/enums/category.ts +1 -0
  50. package/src/dto/enums/findingKind.ts +71 -0
  51. package/src/dto/enums/saasComponentKind.ts +3 -0
  52. package/src/dto/findings.dto.ts +36 -22
  53. package/src/dto/index.ts +1 -0
  54. package/src/dto/platform/index.ts +1 -0
  55. package/src/dto/platform/platform.tokens.dto.ts +9 -0
  56. package/src/dto/saasComponents.dto.ts +1 -1
  57. package/src/dto/tokens.dto.ts +11 -0
  58. package/src/services/AmpApi.ts +3 -0
  59. package/src/services/AmpSdk.ts +4 -0
  60. package/src/services/ContentTemplateService.ts +18 -0
  61. package/src/services/constants.ts +1 -0
  62. package/src/services/contentful.service.ts +238 -1
  63. package/src/services/index.ts +1 -0
@@ -15,7 +15,7 @@ export declare const _PlatformFindingSpecDto: z.ZodObject<{
15
15
  eventType: z.ZodString;
16
16
  severity: z.ZodNativeEnum<typeof import("..").FindingSeverity>;
17
17
  insights: z.ZodOptional<z.ZodObject<{
18
- meta: z.ZodObject<{
18
+ meta: z.ZodOptional<z.ZodObject<{
19
19
  kind: z.ZodNativeEnum<typeof import("..").FindingKind>;
20
20
  severity: z.ZodNativeEnum<typeof import("..").FindingSeverity>;
21
21
  displayValue: z.ZodString;
@@ -27,8 +27,8 @@ export declare const _PlatformFindingSpecDto: z.ZodObject<{
27
27
  displayValue: string;
28
28
  kind: import("..").FindingKind;
29
29
  severity: import("..").FindingSeverity;
30
- }>;
31
- rule: z.ZodObject<{
30
+ }>>;
31
+ rule: z.ZodOptional<z.ZodObject<{
32
32
  category: z.ZodNativeEnum<typeof import("..").Category>;
33
33
  kind: z.ZodNativeEnum<typeof import("..").SaasComponentKind>;
34
34
  aid: z.ZodOptional<z.ZodObject<{
@@ -69,14 +69,14 @@ export declare const _PlatformFindingSpecDto: z.ZodObject<{
69
69
  $has: boolean;
70
70
  } | undefined;
71
71
  remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
72
- }>;
72
+ }>>;
73
73
  }, "strip", z.ZodTypeAny, {
74
- meta: {
74
+ meta?: {
75
75
  displayValue: string;
76
76
  kind: import("..").FindingKind;
77
77
  severity: import("..").FindingSeverity;
78
- };
79
- rule: {
78
+ } | undefined;
79
+ rule?: {
80
80
  kind: import("..").SaasComponentKind;
81
81
  category: import("..").Category;
82
82
  findingCondition: Record<string, string | number | boolean | undefined>;
@@ -87,14 +87,14 @@ export declare const _PlatformFindingSpecDto: z.ZodObject<{
87
87
  $has: boolean;
88
88
  } | undefined;
89
89
  remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
90
- };
90
+ } | undefined;
91
91
  }, {
92
- meta: {
92
+ meta?: {
93
93
  displayValue: string;
94
94
  kind: import("..").FindingKind;
95
95
  severity: import("..").FindingSeverity;
96
- };
97
- rule: {
96
+ } | undefined;
97
+ rule?: {
98
98
  kind: import("..").SaasComponentKind;
99
99
  category: import("..").Category;
100
100
  findingCondition: Record<string, string | number | boolean | undefined>;
@@ -105,9 +105,10 @@ export declare const _PlatformFindingSpecDto: z.ZodObject<{
105
105
  $has: boolean;
106
106
  } | undefined;
107
107
  remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
108
- };
108
+ } | undefined;
109
109
  }>>;
110
110
  expireAfterDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
111
+ outcome: z.ZodOptional<z.ZodNativeEnum<typeof import("..").FindingOutcome>>;
111
112
  tid: z.ZodString;
112
113
  }, "strip", z.ZodTypeAny, {
113
114
  name: string;
@@ -122,12 +123,12 @@ export declare const _PlatformFindingSpecDto: z.ZodObject<{
122
123
  description?: unknown;
123
124
  cid?: string | undefined;
124
125
  insights?: {
125
- meta: {
126
+ meta?: {
126
127
  displayValue: string;
127
128
  kind: import("..").FindingKind;
128
129
  severity: import("..").FindingSeverity;
129
- };
130
- rule: {
130
+ } | undefined;
131
+ rule?: {
131
132
  kind: import("..").SaasComponentKind;
132
133
  category: import("..").Category;
133
134
  findingCondition: Record<string, string | number | boolean | undefined>;
@@ -138,9 +139,10 @@ export declare const _PlatformFindingSpecDto: z.ZodObject<{
138
139
  $has: boolean;
139
140
  } | undefined;
140
141
  remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
141
- };
142
+ } | undefined;
142
143
  } | undefined;
143
144
  expireAfterDays?: number | null | undefined;
145
+ outcome?: import("..").FindingOutcome | undefined;
144
146
  }, {
145
147
  name: string;
146
148
  id: string;
@@ -154,12 +156,12 @@ export declare const _PlatformFindingSpecDto: z.ZodObject<{
154
156
  description?: unknown;
155
157
  cid?: string | undefined;
156
158
  insights?: {
157
- meta: {
159
+ meta?: {
158
160
  displayValue: string;
159
161
  kind: import("..").FindingKind;
160
162
  severity: import("..").FindingSeverity;
161
- };
162
- rule: {
163
+ } | undefined;
164
+ rule?: {
163
165
  kind: import("..").SaasComponentKind;
164
166
  category: import("..").Category;
165
167
  findingCondition: Record<string, string | number | boolean | undefined>;
@@ -170,9 +172,10 @@ export declare const _PlatformFindingSpecDto: z.ZodObject<{
170
172
  $has: boolean;
171
173
  } | undefined;
172
174
  remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
173
- };
175
+ } | undefined;
174
176
  } | undefined;
175
177
  expireAfterDays?: number | null | undefined;
178
+ outcome?: import("..").FindingOutcome | undefined;
176
179
  }>;
177
180
  export type PlatformFindingSpecDto = z.infer<typeof _PlatformFindingSpecDto>;
178
181
  export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
@@ -187,7 +190,7 @@ export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
187
190
  eventType: z.ZodString;
188
191
  severity: z.ZodNativeEnum<typeof import("..").FindingSeverity>;
189
192
  insights: z.ZodOptional<z.ZodObject<{
190
- meta: z.ZodObject<{
193
+ meta: z.ZodOptional<z.ZodObject<{
191
194
  kind: z.ZodNativeEnum<typeof import("..").FindingKind>;
192
195
  severity: z.ZodNativeEnum<typeof import("..").FindingSeverity>;
193
196
  displayValue: z.ZodString;
@@ -199,8 +202,8 @@ export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
199
202
  displayValue: string;
200
203
  kind: import("..").FindingKind;
201
204
  severity: import("..").FindingSeverity;
202
- }>;
203
- rule: z.ZodObject<{
205
+ }>>;
206
+ rule: z.ZodOptional<z.ZodObject<{
204
207
  category: z.ZodNativeEnum<typeof import("..").Category>;
205
208
  kind: z.ZodNativeEnum<typeof import("..").SaasComponentKind>;
206
209
  aid: z.ZodOptional<z.ZodObject<{
@@ -241,14 +244,14 @@ export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
241
244
  $has: boolean;
242
245
  } | undefined;
243
246
  remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
244
- }>;
247
+ }>>;
245
248
  }, "strip", z.ZodTypeAny, {
246
- meta: {
249
+ meta?: {
247
250
  displayValue: string;
248
251
  kind: import("..").FindingKind;
249
252
  severity: import("..").FindingSeverity;
250
- };
251
- rule: {
253
+ } | undefined;
254
+ rule?: {
252
255
  kind: import("..").SaasComponentKind;
253
256
  category: import("..").Category;
254
257
  findingCondition: Record<string, string | number | boolean | undefined>;
@@ -259,14 +262,14 @@ export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
259
262
  $has: boolean;
260
263
  } | undefined;
261
264
  remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
262
- };
265
+ } | undefined;
263
266
  }, {
264
- meta: {
267
+ meta?: {
265
268
  displayValue: string;
266
269
  kind: import("..").FindingKind;
267
270
  severity: import("..").FindingSeverity;
268
- };
269
- rule: {
271
+ } | undefined;
272
+ rule?: {
270
273
  kind: import("..").SaasComponentKind;
271
274
  category: import("..").Category;
272
275
  findingCondition: Record<string, string | number | boolean | undefined>;
@@ -277,9 +280,10 @@ export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
277
280
  $has: boolean;
278
281
  } | undefined;
279
282
  remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
280
- };
283
+ } | undefined;
281
284
  }>>;
282
285
  expireAfterDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
286
+ outcome: z.ZodOptional<z.ZodNativeEnum<typeof import("..").FindingOutcome>>;
283
287
  tid: z.ZodString;
284
288
  }, "strip", z.ZodTypeAny, {
285
289
  name: string;
@@ -294,12 +298,12 @@ export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
294
298
  updatedAt?: string | undefined;
295
299
  deletedAt?: string | null | undefined;
296
300
  insights?: {
297
- meta: {
301
+ meta?: {
298
302
  displayValue: string;
299
303
  kind: import("..").FindingKind;
300
304
  severity: import("..").FindingSeverity;
301
- };
302
- rule: {
305
+ } | undefined;
306
+ rule?: {
303
307
  kind: import("..").SaasComponentKind;
304
308
  category: import("..").Category;
305
309
  findingCondition: Record<string, string | number | boolean | undefined>;
@@ -310,9 +314,10 @@ export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
310
314
  $has: boolean;
311
315
  } | undefined;
312
316
  remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
313
- };
317
+ } | undefined;
314
318
  } | undefined;
315
319
  expireAfterDays?: number | null | undefined;
320
+ outcome?: import("..").FindingOutcome | undefined;
316
321
  }, {
317
322
  name: string;
318
323
  tid: string;
@@ -326,12 +331,12 @@ export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
326
331
  updatedAt?: string | undefined;
327
332
  deletedAt?: string | null | undefined;
328
333
  insights?: {
329
- meta: {
334
+ meta?: {
330
335
  displayValue: string;
331
336
  kind: import("..").FindingKind;
332
337
  severity: import("..").FindingSeverity;
333
- };
334
- rule: {
338
+ } | undefined;
339
+ rule?: {
335
340
  kind: import("..").SaasComponentKind;
336
341
  category: import("..").Category;
337
342
  findingCondition: Record<string, string | number | boolean | undefined>;
@@ -342,8 +347,9 @@ export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
342
347
  $has: boolean;
343
348
  } | undefined;
344
349
  remediatedCondition?: Record<string, string | number | boolean | undefined> | undefined;
345
- };
350
+ } | undefined;
346
351
  } | undefined;
347
352
  expireAfterDays?: number | null | undefined;
353
+ outcome?: import("..").FindingOutcome | undefined;
348
354
  }>;
349
355
  export type PlatformFindingSpecUpsertDto = z.infer<typeof _PlatformFindingSpecUpsertDto>;
@@ -0,0 +1,53 @@
1
+ import { z } from 'zod';
2
+ export declare const _PlatformTokenDto: z.ZodObject<{
3
+ displayValue: z.ZodOptional<z.ZodString>;
4
+ key: z.ZodString;
5
+ id: z.ZodString;
6
+ createdAt: z.ZodString;
7
+ updatedAt: z.ZodString;
8
+ deletedAt: z.ZodNullable<z.ZodString>;
9
+ tid: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ id: string;
12
+ tid: string;
13
+ createdAt: string;
14
+ updatedAt: string;
15
+ deletedAt: string | null;
16
+ key: string;
17
+ displayValue?: string | undefined;
18
+ }, {
19
+ id: string;
20
+ tid: string;
21
+ createdAt: string;
22
+ updatedAt: string;
23
+ deletedAt: string | null;
24
+ key: string;
25
+ displayValue?: string | undefined;
26
+ }>;
27
+ export type PlatformTokenDto = z.infer<typeof _PlatformTokenDto>;
28
+ export declare const _PlatformTokenUpsertDto: z.ZodObject<{
29
+ displayValue: z.ZodOptional<z.ZodString>;
30
+ key: z.ZodString;
31
+ id: z.ZodOptional<z.ZodString>;
32
+ createdAt: z.ZodOptional<z.ZodString>;
33
+ updatedAt: z.ZodOptional<z.ZodString>;
34
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ tid: z.ZodOptional<z.ZodString>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ key: string;
38
+ displayValue?: string | undefined;
39
+ id?: string | undefined;
40
+ createdAt?: string | undefined;
41
+ updatedAt?: string | undefined;
42
+ deletedAt?: string | null | undefined;
43
+ tid?: string | undefined;
44
+ }, {
45
+ key: string;
46
+ displayValue?: string | undefined;
47
+ id?: string | undefined;
48
+ createdAt?: string | undefined;
49
+ updatedAt?: string | undefined;
50
+ deletedAt?: string | null | undefined;
51
+ tid?: string | undefined;
52
+ }>;
53
+ export type PlatformTokenUpsertDto = z.infer<typeof _PlatformTokenUpsertDto>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._PlatformTokenUpsertDto = exports._PlatformTokenDto = void 0;
4
+ const tenant_based_dto_1 = require("./tenant.based.dto");
5
+ const tokens_dto_1 = require("../tokens.dto");
6
+ exports._PlatformTokenDto = tokens_dto_1._TokenDto.merge(tenant_based_dto_1._TenantBased);
7
+ exports._PlatformTokenUpsertDto = tokens_dto_1._TokenUpsertDto.merge(tenant_based_dto_1._UpsertTenantBased);
8
+ //# sourceMappingURL=platform.tokens.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform.tokens.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.tokens.dto.ts"],"names":[],"mappings":";;;AACA,yDAAoE;AACpE,8CAAyD;AAE5C,QAAA,iBAAiB,GAAG,sBAAS,CAAC,KAAK,CAAC,+BAAY,CAAC,CAAC;AAGlD,QAAA,uBAAuB,GAAG,4BAAe,CAAC,KAAK,CAAC,qCAAkB,CAAC,CAAC"}
@@ -80,7 +80,7 @@ export type SaasComponentUpsertDto = ChangeAwareUpsertDto & {
80
80
  /** Connector Id */
81
81
  cid: string;
82
82
  /** */
83
- kind: SaasComponentKind;
83
+ kind: SaasComponentKind | string;
84
84
  /** Context specific information related to the Saas Component */
85
85
  meta: SaasComponentMeta;
86
86
  /** User Id of the affected user */
@@ -0,0 +1,47 @@
1
+ import { z } from 'zod';
2
+ export declare const _TokenDto: z.ZodObject<{
3
+ id: z.ZodString;
4
+ createdAt: z.ZodString;
5
+ updatedAt: z.ZodString;
6
+ deletedAt: z.ZodNullable<z.ZodString>;
7
+ displayValue: z.ZodOptional<z.ZodString>;
8
+ key: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ id: string;
11
+ createdAt: string;
12
+ updatedAt: string;
13
+ deletedAt: string | null;
14
+ key: string;
15
+ displayValue?: string | undefined;
16
+ }, {
17
+ id: string;
18
+ createdAt: string;
19
+ updatedAt: string;
20
+ deletedAt: string | null;
21
+ key: string;
22
+ displayValue?: string | undefined;
23
+ }>;
24
+ export type TokenDto = z.infer<typeof _TokenDto>;
25
+ export declare const _TokenUpsertDto: z.ZodObject<{
26
+ id: z.ZodOptional<z.ZodString>;
27
+ createdAt: z.ZodOptional<z.ZodString>;
28
+ updatedAt: z.ZodOptional<z.ZodString>;
29
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ displayValue: z.ZodOptional<z.ZodString>;
31
+ key: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ key: string;
34
+ id?: string | undefined;
35
+ createdAt?: string | undefined;
36
+ updatedAt?: string | undefined;
37
+ deletedAt?: string | null | undefined;
38
+ displayValue?: string | undefined;
39
+ }, {
40
+ key: string;
41
+ id?: string | undefined;
42
+ createdAt?: string | undefined;
43
+ updatedAt?: string | undefined;
44
+ deletedAt?: string | null | undefined;
45
+ displayValue?: string | undefined;
46
+ }>;
47
+ export type TokenUpsertDto = z.infer<typeof _TokenUpsertDto>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._TokenUpsertDto = exports._TokenDto = void 0;
4
+ const zod_1 = require("zod");
5
+ const base_dto_1 = require("./base.dto");
6
+ exports._TokenDto = base_dto_1._BaseDto.extend({
7
+ displayValue: zod_1.z.string().optional(),
8
+ key: zod_1.z.string(),
9
+ });
10
+ exports._TokenUpsertDto = exports._TokenDto.partial(base_dto_1.UPSERT_DTO_MASK);
11
+ //# sourceMappingURL=tokens.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.dto.js","sourceRoot":"","sources":["../../../src/dto/tokens.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AAExC,QAAA,SAAS,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,iBAAS,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { AgentDto, AgentUpsertDto, AssetDto, CustomActionDto, CustomActionUpsertDto, CustomScoreCohortDto, CustomScoreCohortUpsertDto, CustomScoreValueDto, CustomScoreValueUpsertDto, FindingSpecDto, FindingSpecUpsertDto, ProviderDto, ReportResultDto, SaasAssetDto, SaasComponentDto, SaasUserDto, TenantDto, TenantUpsertDto, UserDto } from '../dto';
1
+ import { AgentDto, AgentUpsertDto, AssetDto, CustomActionDto, CustomActionUpsertDto, CustomScoreCohortDto, CustomScoreCohortUpsertDto, CustomScoreValueDto, CustomScoreValueUpsertDto, FindingSpecDto, FindingSpecUpsertDto, ProviderDto, ReportResultDto, SaasAssetDto, SaasComponentDto, SaasUserDto, TenantDto, TenantUpsertDto, TokenDto, UserDto } from '../dto';
2
2
  import { AmpEntityService, AmpDataService, AmpReportService, AmpSettingsService, ConnectorsService, FindingsInsightsService, FindingsService, NotificationService, PredictionService } from '.';
3
3
  import { AmpRestClientOptions, AgentIdentityService, ConnectorInstallService, EnumService, RestClient } from './rest';
4
4
  import { UsersInsightsService } from './usersInsights.service';
@@ -41,6 +41,7 @@ export declare class AmpApi {
41
41
  readonly saasUsers: AmpDataService<SaasUserDto>;
42
42
  readonly settings: AmpSettingsService;
43
43
  readonly tenants: AmpEntityService<TenantUpsertDto, TenantDto>;
44
+ readonly tokens: AmpDataService<TokenDto>;
44
45
  readonly users: AmpDataService<UserDto>;
45
46
  readonly usersInsights: UsersInsightsService;
46
47
  readonly prediction: PredictionService;
@@ -44,6 +44,7 @@ class AmpApi {
44
44
  this.saasUsers = new _1.AmpDataServiceImpl(rest, constants_1.KIND.SAAS_USERS);
45
45
  this.settings = new _1.AmpSettingsService(rest);
46
46
  this.tenants = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.TENANTS);
47
+ this.tokens = new _1.AmpDataServiceImpl(rest, constants_1.KIND.TOKENS);
47
48
  this.users = new _1.AmpDataServiceImpl(rest, constants_1.KIND.USERS);
48
49
  this.usersInsights = new usersInsights_service_1.UsersInsightsService(rest);
49
50
  this.prediction = new _1.PredictionService(rest, constants_1.KIND.FINDINGS);
@@ -1 +1 @@
1
- {"version":3,"file":"AmpApi.js","sourceRoot":"","sources":["../../../src/services/AmpApi.ts"],"names":[],"mappings":";;;AAqBA,wBAaW;AACX,2CAAmD;AACnD,iCAA0J;AAC1J,mEAA6D;AAC7D,2DAAqD;AACrD,wDAAmD;AAInD;;;;;;;;;;;GAWG;AACH,MAAa,MAAM;IA4BjB,YAAY,IAAgB;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,uBAAoB,CAA2B,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QACpF,IAAI,CAAC,KAAK,GAAG,IAAI,qBAAkB,CAAW,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QACjE,IAAI,CAAC,OAAO,GAAG,IAAI,6BAAa,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAiB,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,aAAa,GAAG,IAAI,uB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, PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreValueDto, PlatformCustomScoreValueUpsertDto, PlatformFindingDto, PlatformFindingSpecDto, PlatformFindingSpecUpsertDto, PlatformFindingUpsertDto, PlatformFlowSpecDto, PlatformFlowSpecUpsertDto, PlatformFlowStateDto, PlatformFlowStateUpsertDto, PlatformJobExecutionStateDto, PlatformJobExecutionStateUpsertDto, PlatformJobSpecDto, PlatformJobSpecUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
1
+ import { PlatformAgentDto, PlatformAgentUpsertDto, PlatformConnectorDto, PlatformConnectorUpsertDto, PlatformCustomActionDto, PlatformCustomActionUpsertDto, PlatformCustomScoreCohortDto, PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreValueDto, PlatformCustomScoreValueUpsertDto, PlatformFindingDto, PlatformFindingSpecDto, PlatformFindingSpecUpsertDto, PlatformFindingUpsertDto, PlatformFlowSpecDto, PlatformFlowSpecUpsertDto, PlatformFlowStateDto, PlatformFlowStateUpsertDto, PlatformJobExecutionStateDto, PlatformJobExecutionStateUpsertDto, PlatformJobSpecDto, PlatformJobSpecUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, PlatformTokenDto, PlatformTokenUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
2
2
  import { AmpEntityService, AmpSdkAssetService, AmpSdkTenantService, AmpSdkUserService, TruncatableAmpEntityService } from './entity.service';
3
3
  import { AmpRestClientOptions, RestClient } from './rest';
4
4
  import { EnumService } from './rest/EnumService';
@@ -44,6 +44,7 @@ export declare class AmpSdkServices {
44
44
  readonly stagedSaaSUsers: TruncatableAmpEntityService<PlatformStagedSaasUserUpsertDto, PlatformStagedSaasUserDto>;
45
45
  readonly settings: AmpSdkSettingsService;
46
46
  readonly tenants: AmpSdkTenantService<TenantUpsertDto, TenantDto>;
47
+ readonly tokens: AmpSdkTenantService<PlatformTokenUpsertDto, PlatformTokenDto>;
47
48
  readonly users: AmpSdkUserService;
48
49
  constructor(rest: RestClient);
49
50
  static instance(options: AmpSdkOptions): AmpSdkServices;
@@ -47,6 +47,7 @@ class AmpSdkServices {
47
47
  this.stagedSaaSUsers = new entity_service_1.TruncatableAmpEntityServiceImpl(rest, constants_1.KIND.STAGED_SAAS_USERS, constants_1.TARGET_API_PLATFORM);
48
48
  this.settings = new settings_service_1.AmpSdkSettingsService(rest);
49
49
  this.tenants = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.TENANTS, constants_1.TARGET_API_PLATFORM);
50
+ this.tokens = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.TOKENS, constants_1.TARGET_API_PLATFORM);
50
51
  this.users = new entity_service_1.AmpSdkUserService(rest, constants_1.TARGET_API_PLATFORM);
51
52
  }
52
53
  static instance(options) {
@@ -1 +1 @@
1
- {"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;AA0CA,qDAQ0B;AAC1B,iCAA0E;AAC1E,2CAAsD;AACtD,oDAAmE;AACnE,yDAAyD;AACzD,6DAA+J;AAC/J,6DAAuD;AACvD,yEAAmE;AAInE;;;;;;;;GAQG;AACH,MAAa,cAAc;IA8BzB,YAAY,IAAgB;QAC1B,IAAI,CAAC,MAAM,GAAG,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AE,+BAAmB,CAAC,CAAC;QACzH,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;AAxED,wCAwEC"}
@@ -0,0 +1 @@
1
+ export declare const fillJsonPathTemplate: (raw: string, meta: unknown) => string;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.fillJsonPathTemplate = void 0;
7
+ const lodash_1 = __importDefault(require("lodash"));
8
+ const JSON_PATH_PATTERN = /(\$\.(?:(?:[a-zA-Z0-9_]+)(?:\.[a-zA-Z0-9_]+)*)?)/g;
9
+ const fillJsonPathTemplate = (raw, meta) => {
10
+ const jsonPathMatches = raw.match(JSON_PATH_PATTERN);
11
+ let result = raw;
12
+ if (jsonPathMatches) {
13
+ jsonPathMatches.forEach(jsonPath => {
14
+ const path = jsonPath.replace('$.', '');
15
+ let value = lodash_1.default.get(meta, path, '?');
16
+ if (!lodash_1.default.isString(value)) {
17
+ value = JSON.stringify(value);
18
+ }
19
+ result = result.replace(jsonPath, value);
20
+ });
21
+ }
22
+ return result;
23
+ };
24
+ exports.fillJsonPathTemplate = fillJsonPathTemplate;
25
+ //# sourceMappingURL=ContentTemplateService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentTemplateService.js","sourceRoot":"","sources":["../../../src/services/ContentTemplateService.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AACvB,MAAM,iBAAiB,GAAG,mDAAmD,CAAC;AAEvE,MAAM,oBAAoB,GAAG,CAAC,GAAW,EAAE,IAAa,EAAE,EAAE;IACjE,MAAM,eAAe,GAAG,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrD,IAAI,MAAM,GAAG,GAAG,CAAC;IACjB,IAAI,eAAe,EAAE,CAAC;QACpB,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YACjC,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACxC,IAAI,KAAK,GAAG,gBAAC,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;YACnC,IAAI,CAAC,gBAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBACvB,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAChC,CAAC;YACD,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAdW,QAAA,oBAAoB,wBAc/B"}
@@ -34,6 +34,7 @@ export declare const KIND: {
34
34
  STAGED_SAAS_COMPONENTS: string;
35
35
  STAGED_SAAS_USERS: string;
36
36
  TENANTS: string;
37
+ TOKENS: string;
37
38
  USERS: string;
38
39
  USERS_INSIGHTS: string;
39
40
  WORKFLOW_PROGRESS: string;
@@ -33,6 +33,7 @@ exports.KIND = {
33
33
  STAGED_SAAS_COMPONENTS: 'staged_saas_components',
34
34
  STAGED_SAAS_USERS: 'staged_saas_users',
35
35
  TENANTS: 'tenants',
36
+ TOKENS: 'tokens',
36
37
  USERS: 'users',
37
38
  USERS_INSIGHTS: 'coverage',
38
39
  WORKFLOW_PROGRESS: 'workflow_progress',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/services/constants.ts"],"names":[],"mappings":";;;AAIa,QAAA,2BAA2B,GAAG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