@ampsec/platform-client 81.1.0 → 81.2.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 (50) hide show
  1. package/build/src/dto/contexts.dto.d.ts +99 -0
  2. package/build/src/dto/contexts.dto.js +22 -0
  3. package/build/src/dto/contexts.dto.js.map +1 -0
  4. package/build/src/dto/conversations.dto.d.ts +158 -0
  5. package/build/src/dto/conversations.dto.js +28 -0
  6. package/build/src/dto/conversations.dto.js.map +1 -0
  7. package/build/src/dto/engagementConversations.dto.d.ts +1 -9
  8. package/build/src/dto/engagementConversations.dto.js +3 -13
  9. package/build/src/dto/engagementConversations.dto.js.map +1 -1
  10. package/build/src/dto/enums/engagementConversationStatus.d.ts +4 -0
  11. package/build/src/dto/enums/engagementConversationStatus.js +9 -0
  12. package/build/src/dto/enums/engagementConversationStatus.js.map +1 -0
  13. package/build/src/dto/enums/engagementDialogueSpeaker.d.ts +4 -0
  14. package/build/src/dto/enums/engagementDialogueSpeaker.js +9 -0
  15. package/build/src/dto/enums/engagementDialogueSpeaker.js.map +1 -0
  16. package/build/src/dto/enums/index.d.ts +2 -0
  17. package/build/src/dto/enums/index.js +2 -0
  18. package/build/src/dto/enums/index.js.map +1 -1
  19. package/build/src/dto/index.d.ts +2 -0
  20. package/build/src/dto/index.js +2 -0
  21. package/build/src/dto/index.js.map +1 -1
  22. package/build/src/dto/platform/index.d.ts +3 -0
  23. package/build/src/dto/platform/index.js +3 -0
  24. package/build/src/dto/platform/index.js.map +1 -1
  25. package/build/src/dto/platform/platform.contexts.dto.d.ts +106 -0
  26. package/build/src/dto/platform/platform.contexts.dto.js +12 -0
  27. package/build/src/dto/platform/platform.contexts.dto.js.map +1 -0
  28. package/build/src/dto/platform/platform.conversations.dto.d.ts +59 -0
  29. package/build/src/dto/platform/platform.conversations.dto.js +12 -0
  30. package/build/src/dto/platform/platform.conversations.dto.js.map +1 -0
  31. package/build/src/dto/platform/platform.dialogues.dto.d.ts +68 -0
  32. package/build/src/dto/platform/platform.dialogues.dto.js +12 -0
  33. package/build/src/dto/platform/platform.dialogues.dto.js.map +1 -0
  34. package/build/src/dto/platform/platform.engagementConversations.dto.d.ts +6 -6
  35. package/build/src/settings.d.ts +18 -0
  36. package/build/src/settings.js +24 -5
  37. package/build/src/settings.js.map +1 -1
  38. package/package.json +1 -1
  39. package/src/dto/contexts.dto.ts +24 -0
  40. package/src/dto/conversations.dto.ts +40 -0
  41. package/src/dto/engagementConversations.dto.ts +1 -11
  42. package/src/dto/enums/engagementConversationStatus.ts +4 -0
  43. package/src/dto/enums/engagementDialogueSpeaker.ts +4 -0
  44. package/src/dto/enums/index.ts +2 -0
  45. package/src/dto/index.ts +2 -0
  46. package/src/dto/platform/index.ts +3 -0
  47. package/src/dto/platform/platform.contexts.dto.ts +14 -0
  48. package/src/dto/platform/platform.conversations.dto.ts +14 -0
  49. package/src/dto/platform/platform.dialogues.dto.ts +14 -0
  50. package/src/settings.ts +26 -5
@@ -27,3 +27,5 @@ export * from './tenantStatusFlags';
27
27
  export * from './platformJobKind';
28
28
  export * from './metric.kind';
29
29
  export * from './timeZoneSource';
30
+ export * from './engagementDialogueSpeaker';
31
+ export * from './engagementConversationStatus';
package/src/dto/index.ts CHANGED
@@ -39,3 +39,5 @@ export * from './users.dto';
39
39
  export * from './messagingChannels';
40
40
  export * from './cohort.dto';
41
41
  export * from './actionExecution.dto';
42
+ export * from './conversations.dto';
43
+ export * from './contexts.dto';
@@ -27,3 +27,6 @@ export * from './platform.users.dto';
27
27
  export * from './tenant.based.dto';
28
28
  export * from './platform.actionExecution.dto';
29
29
  export * from './platform.ops.dto';
30
+ export * from './platform.contexts.dto';
31
+ export * from './platform.conversations.dto';
32
+ export * from './platform.dialogues.dto';
@@ -0,0 +1,14 @@
1
+ import {z} from 'zod';
2
+ import {_ContextDto, _ContextUpsertDto} from '../contexts.dto';
3
+
4
+ export const _PlatformContextUpsertDto = _ContextUpsertDto.extend({
5
+ tid: z.string(),
6
+ });
7
+
8
+ export const _PlatformContextDto = _ContextDto.extend({
9
+ tid: z.string(),
10
+ });
11
+
12
+ export type PlatformContextDto = z.infer<typeof _PlatformContextDto>;
13
+
14
+ export type PlatformContextUpsertDto = z.infer<typeof _PlatformContextUpsertDto>;
@@ -0,0 +1,14 @@
1
+ import {z} from 'zod';
2
+ import {_ConversationDto, _ConversationUpsertDto} from '../conversations.dto';
3
+
4
+ export const _PlatformConversationUpsertDto = _ConversationUpsertDto.extend({
5
+ tid: z.string(),
6
+ });
7
+
8
+ export const _PlatformConversationDto = _ConversationDto.extend({
9
+ tid: z.string(),
10
+ });
11
+
12
+ export type PlatformConversationDto = z.infer<typeof _PlatformConversationDto>;
13
+
14
+ export type PlatformConversationUpsertDto = z.infer<typeof _PlatformConversationUpsertDto>;
@@ -0,0 +1,14 @@
1
+ import {z} from 'zod';
2
+ import {_DialogueDto, _DialogueUpsertDto} from '../conversations.dto';
3
+
4
+ export const _PlatformDialogueUpsertDto = _DialogueUpsertDto.extend({
5
+ tid: z.string(),
6
+ });
7
+
8
+ export const _PlatformDialogueDto = _DialogueDto.extend({
9
+ tid: z.string(),
10
+ });
11
+
12
+ export type PlatformDialogueDto = z.infer<typeof _PlatformDialogueDto>;
13
+
14
+ export type PlatformDialogueUpsertDto = z.infer<typeof _PlatformDialogueUpsertDto>;
package/src/settings.ts CHANGED
@@ -109,7 +109,7 @@ const CROWDSTRIKE_SETTINGS = {
109
109
  CROWDSTRIKE_VULN_HIGH_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('crowdstrike.vuln.high.deadline', '30 day'),
110
110
  CROWDSTRIKE_VULN_MEDIUM_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('crowdstrike.vuln.medium.deadline', '90 day'),
111
111
  CROWDSTRIKE_VULN_LOW_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('crowdstrike.vuln.low.deadline', '180 day'),
112
- ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
112
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, true),
113
113
  CROWDSTRIKE_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('crowdstrike.include.managed.apps', []),
114
114
  CROWDSTRIKE_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('crowdstrike.exclude.managed.apps', []),
115
115
  };
@@ -120,10 +120,12 @@ const GOOGLE_SETTINGS = {
120
120
  GOOGLE_PRIV_ACCESS_GROUPS: AmpSettingsMap.asKey<string[]>('google.groups.priv.extIds', []),
121
121
  GOOGLE_SERV_ACCT_GROUPS: AmpSettingsMap.asKey<string[]>('google.groups.servAcct.extIds', []),
122
122
  GOOGLE_SERVICE_ACCOUNT_EMAILS: AmpSettingsMap.asKey<string[]>('google.service.account.emails', []),
123
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
123
124
  };
124
125
 
125
126
  const KNOWBE4_SETTINGS = {
126
127
  KNOWBE4_PHISHING_EXP: AmpSettingsMap.asKey<string>('knowbe4.phising.expiration', '90 days'),
128
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
127
129
  };
128
130
 
129
131
  const OKTA_SETTINGS = {
@@ -133,7 +135,7 @@ const OKTA_SETTINGS = {
133
135
  OKTA_SERV_ACCT_GROUPS: AmpSettingsMap.asKey<string[]>('okta.groups.servAcct.extIds', []),
134
136
  OKTA_SERVICE_ACCOUNT_EMAILS: AmpSettingsMap.asKey<string[]>('okta.service.account.emails', []),
135
137
  OKTA_USERS_CUSTOM_MAPPING: AmpSettingsMap.asKey<unknown>('okta.users.custom.mapping', {}),
136
- ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
138
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, true),
137
139
  };
138
140
 
139
141
  const ONELOGIN_SETTINGS = {
@@ -142,6 +144,7 @@ const ONELOGIN_SETTINGS = {
142
144
  ONELOGIN_PRIV_ACCESS_GROUPS: AmpSettingsMap.asKey<string[]>('onelogin.groups.priv.extIds', []),
143
145
  ONELOGIN_SERV_ACCT_GROUPS: AmpSettingsMap.asKey<string[]>('onelogin.groups.servAcct.extIds', []),
144
146
  ONELOGIN_SERVICE_ACCCOUNT_EMAILS: AmpSettingsMap.asKey<string[]>('onelogin.service.account.emails', []),
147
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
145
148
  };
146
149
 
147
150
  const SLACK_SETTINGS = {
@@ -157,7 +160,7 @@ const SLACK_SETTINGS = {
157
160
  'slack.templates.contactSecurity',
158
161
  'Thanks for getting in touch! We forwarded your message to our security team and they will get back to you shortly.'
159
162
  ),
160
- ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
163
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, true),
161
164
  };
162
165
 
163
166
  const TENABLE_SETTINGS = {
@@ -176,7 +179,7 @@ const TENABLE_SETTINGS = {
176
179
  ETL_VULN_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_VULN_ENABLED_KEY, true),
177
180
  ETL_DEVICE_SECURITY_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_SECURITY_ENABLED_KEY, false),
178
181
  ETL_DEVICE_MANAGEMENT_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_MANAGEMENT_ENABLED_KEY, false),
179
- ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
182
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, true),
180
183
  TENABLE_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('tenable.include.managed.apps', []),
181
184
  TENABLE_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('tenable.exclude.managed.apps', []),
182
185
  };
@@ -186,6 +189,7 @@ const QUALYS_SETTINGS = {
186
189
  QUALYS_VULN_HIGH_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('qualys.vuln.high.deadline', '30 day'),
187
190
  QUALYS_VULN_MEDIUM_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('qualys.vuln.medium.deadline', '90 day'),
188
191
  QUALYS_VULN_LOW_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('qualys.vuln.low.deadline', '180 day'),
192
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
189
193
  };
190
194
 
191
195
  const RAPID7_SETTINGS = {
@@ -198,6 +202,7 @@ const RAPID7_SETTINGS = {
198
202
  RAPID7_VULN_LOW_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('rapid7.vuln.low.deadline', '180 day'),
199
203
  RAPID7_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('rapid7.include.managed.apps', []),
200
204
  RAPID7_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('rapid7.exclude.managed.apps', []),
205
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
201
206
  };
202
207
 
203
208
  const CARBONBLACK_SETTINGS = {
@@ -205,6 +210,7 @@ const CARBONBLACK_SETTINGS = {
205
210
  CARBONBLACK_VULN_HIGH_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('carbonblack.vuln.high.deadline', '30 day'),
206
211
  CARBONBLACK_VULN_MEDIUM_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('carbonblack.vuln.medium.deadline', '90 day'),
207
212
  CARBONBLACK_VULN_LOW_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('carbonblack.vuln.low.deadline', '180 day'),
213
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
208
214
  };
209
215
 
210
216
  const SENTINELONE_SETTINGS = {
@@ -218,6 +224,7 @@ const SENTINELONE_SETTINGS = {
218
224
  ETL_VULN_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_VULN_ENABLED_KEY, false),
219
225
  ETL_DEVICE_MANAGEMENT_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_MANAGEMENT_ENABLED_KEY, false),
220
226
  ETL_DEVICE_SECURITY_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_SECURITY_ENABLED_KEY, true),
227
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
221
228
  };
222
229
 
223
230
  const CORTEX_SETTINGS = {
@@ -229,6 +236,7 @@ const CORTEX_SETTINGS = {
229
236
  ETL_VULN_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_VULN_ENABLED_KEY, false),
230
237
  ETL_DEVICE_MANAGEMENT_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_MANAGEMENT_ENABLED_KEY, false),
231
238
  ETL_DEVICE_SECURITY_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_SECURITY_ENABLED_KEY, true),
239
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, true),
232
240
  };
233
241
 
234
242
  const KANDJI_SETTINGS = {
@@ -239,6 +247,7 @@ const KANDJI_SETTINGS = {
239
247
  ETL_VULN_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_VULN_ENABLED_KEY, false),
240
248
  ETL_DEVICE_MANAGEMENT_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_MANAGEMENT_ENABLED_KEY, true),
241
249
  ETL_DEVICE_SECURITY_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_SECURITY_ENABLED_KEY, false),
250
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
242
251
  KANDJI_VULN_CRIT_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('kandji.vuln.crit.deadline', '13 day'),
243
252
  KANDJI_VULN_HIGH_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('kandji.vuln.high.deadline', '30 day'),
244
253
  KANDJI_VULN_MEDIUM_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('kandji.vuln.medium.deadline', '90 day'),
@@ -253,6 +262,7 @@ const DEFENDER_SETTINGS = {
253
262
  ETL_VULN_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_VULN_ENABLED_KEY, false),
254
263
  ETL_DEVICE_MANAGEMENT_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_MANAGEMENT_ENABLED_KEY, false),
255
264
  ETL_DEVICE_SECURITY_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_SECURITY_ENABLED_KEY, true),
265
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
256
266
  DEFENDER_VULN_CRIT_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('defender.vuln.crit.deadline', '13 day'),
257
267
  DEFENDER_VULN_HIGH_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('defender.vuln.high.deadline', '30 day'),
258
268
  DEFENDER_VULN_MEDIUM_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('defender.vuln.medium.deadline', '90 day'),
@@ -263,12 +273,14 @@ const JAMF_SETTINGS = {
263
273
  ETL_VULN_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_VULN_ENABLED_KEY, false),
264
274
  ETL_DEVICE_MANAGEMENT_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_MANAGEMENT_ENABLED_KEY, true),
265
275
  ETL_DEVICE_SECURITY_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_SECURITY_ENABLED_KEY, false),
276
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
266
277
  };
267
278
 
268
279
  const INTUNE_SETTINGS = {
269
280
  ETL_VULN_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_VULN_ENABLED_KEY, false),
270
281
  ETL_DEVICE_MANAGEMENT_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_MANAGEMENT_ENABLED_KEY, true),
271
282
  ETL_DEVICE_SECURITY_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_SECURITY_ENABLED_KEY, false),
283
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, false),
272
284
  };
273
285
 
274
286
  const VMWARE_SETTINGS = {
@@ -277,6 +289,7 @@ const VMWARE_SETTINGS = {
277
289
  ETL_DEVICE_SECURITY_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_DEVICE_SECURITY_ENABLED_KEY, false),
278
290
  VMWARE_INCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('vmware.include.managed.apps', []),
279
291
  VMWARE_EXCLUDE_MANAGED_APPS: AmpSettingsMap.asKey<string[]>('vmware.exclude.managed.apps', []),
292
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, true),
280
293
  };
281
294
 
282
295
  const ENTRA_SETTINGS = {
@@ -286,12 +299,19 @@ const ENTRA_SETTINGS = {
286
299
  ENTRA_PRIV_ACCESS_GROUPS: AmpSettingsMap.asKey<string[]>('entra.groups.priv.extIds', []),
287
300
  ENTRA_SERV_ACCT_GROUPS: AmpSettingsMap.asKey<string[]>('entra.groups.servAcct.extIds', []),
288
301
  ENTRA_SERVICE_ACCOUNT_EMAILS: AmpSettingsMap.asKey<string[]>('entra.service.account.emails', []),
302
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, true),
289
303
  };
290
304
 
291
305
  const PROOFPOINT_SETTINGS = {
292
306
  PROOFPOINT_TOP_CLICKER_THRESHOLD: AmpSettingsMap.asKey<number>('proofpoint.top.clicker.threshold', 10),
293
- PROOFPOINT_VERY_ATTACKED_PEOPLE_THRESHOLD: AmpSettingsMap.asKey<number>('proofpoint.very.attacked.people.threshold', 10),
307
+ PROOFPOINT_VERY_ATTACKED_PEOPLE_THRESHOLD: AmpSettingsMap.asKey<number>('proofpoint.very.attacked.people.threshold', 100),
308
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, true),
309
+ };
310
+
311
+ const AUTOMOX_SETTINGS = {
312
+ ETL_V2_ENABLED: AmpSettingsMap.asKey<boolean>(ETL_V2_ENABLED_KEY, true),
294
313
  };
314
+
295
315
  /**
296
316
  * Collection of hard coded settings to be use centrally across services and user interfaces.
297
317
  *
@@ -348,4 +368,5 @@ export const AMP_SETTINGS = {
348
368
  cortex: {...CORTEX_SETTINGS},
349
369
  entra: {...ENTRA_SETTINGS},
350
370
  proofpoint: {...PROOFPOINT_SETTINGS},
371
+ automox: {...AUTOMOX_SETTINGS},
351
372
  };