@ampsec/platform-client 84.30.0 → 84.30.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.
Files changed (34) hide show
  1. package/build/src/dto/contexts.dto.d.ts +10 -10
  2. package/build/src/dto/conversations.dto.d.ts +5 -5
  3. package/build/src/dto/engagementContexts.dto.d.ts +6 -6
  4. package/build/src/dto/engagementConversations.dto.d.ts +7 -7
  5. package/build/src/dto/engagementLogs.dto.d.ts +54 -0
  6. package/build/src/dto/engagementLogs.dto.js +23 -0
  7. package/build/src/dto/engagementLogs.dto.js.map +1 -0
  8. package/build/src/dto/flows.dto.js.map +1 -1
  9. package/build/src/dto/index.d.ts +1 -0
  10. package/build/src/dto/index.js +1 -0
  11. package/build/src/dto/index.js.map +1 -1
  12. package/build/src/dto/notification.dto.d.ts +70 -66
  13. package/build/src/dto/notification.dto.js.map +1 -1
  14. package/build/src/dto/platform/platform.contexts.dto.d.ts +10 -10
  15. package/build/src/dto/platform/platform.dialogues.dto.d.ts +5 -5
  16. package/build/src/dto/platform/platform.engagementContexts.dto.d.ts +6 -6
  17. package/build/src/dto/platform/platform.engagementConversations.dto.d.ts +2 -2
  18. package/build/src/services/AmpApi.d.ts +2 -0
  19. package/build/src/services/AmpApi.js +2 -0
  20. package/build/src/services/AmpApi.js.map +1 -1
  21. package/build/src/services/constants.d.ts +1 -0
  22. package/build/src/services/constants.js +1 -0
  23. package/build/src/services/constants.js.map +1 -1
  24. package/build/src/services/engagementLogs.service.d.ts +9 -0
  25. package/build/src/services/engagementLogs.service.js +27 -0
  26. package/build/src/services/engagementLogs.service.js.map +1 -0
  27. package/package.json +1 -1
  28. package/src/dto/engagementLogs.dto.ts +50 -0
  29. package/src/dto/flows.dto.ts +2 -1
  30. package/src/dto/index.ts +1 -0
  31. package/src/dto/notification.dto.ts +5 -0
  32. package/src/services/AmpApi.ts +3 -0
  33. package/src/services/constants.ts +1 -0
  34. package/src/services/engagementLogs.service.ts +29 -0
@@ -50,11 +50,11 @@ export declare const _PlatformContextUpsertDto: z.ZodObject<z.objectUtil.extendS
50
50
  scheduleResolutionExpiry?: number | null | undefined;
51
51
  scheduleResolutionSubmitted?: number | null | undefined;
52
52
  }>>>;
53
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ teamId: z.ZodOptional<z.ZodString>;
53
55
  channelId: z.ZodOptional<z.ZodString>;
54
56
  tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
- conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
57
  engagementChannel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
- teamId: z.ZodOptional<z.ZodString>;
58
58
  notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
59
  findingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
60
  threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -83,11 +83,11 @@ export declare const _PlatformContextUpsertDto: z.ZodObject<z.objectUtil.extendS
83
83
  scheduleResolutionExpiry?: number | null | undefined;
84
84
  scheduleResolutionSubmitted?: number | null | undefined;
85
85
  } | null | undefined;
86
+ conversationId?: string | null | undefined;
87
+ teamId?: string | undefined;
86
88
  channelId?: string | undefined;
87
89
  tone?: string | null | undefined;
88
- conversationId?: string | null | undefined;
89
90
  engagementChannel?: string | null | undefined;
90
- teamId?: string | undefined;
91
91
  notificationId?: string | null | undefined;
92
92
  findingId?: string | null | undefined;
93
93
  threadId?: string | null | undefined;
@@ -114,11 +114,11 @@ export declare const _PlatformContextUpsertDto: z.ZodObject<z.objectUtil.extendS
114
114
  scheduleResolutionExpiry?: number | null | undefined;
115
115
  scheduleResolutionSubmitted?: number | null | undefined;
116
116
  } | null | undefined;
117
+ conversationId?: string | null | undefined;
118
+ teamId?: string | undefined;
117
119
  channelId?: string | undefined;
118
120
  tone?: string | null | undefined;
119
- conversationId?: string | null | undefined;
120
121
  engagementChannel?: string | null | undefined;
121
- teamId?: string | undefined;
122
122
  notificationId?: string | null | undefined;
123
123
  findingId?: string | null | undefined;
124
124
  threadId?: string | null | undefined;
@@ -211,11 +211,11 @@ export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z
211
211
  scheduleResolutionExpiry?: number | null | undefined;
212
212
  scheduleResolutionSubmitted?: number | null | undefined;
213
213
  } | null | undefined;
214
+ conversationId?: string | null | undefined;
215
+ teamId?: string | undefined;
214
216
  channelId?: string | undefined;
215
217
  tone?: string | null | undefined;
216
- conversationId?: string | null | undefined;
217
218
  engagementChannel?: string | null | undefined;
218
- teamId?: string | undefined;
219
219
  notificationId?: string | null | undefined;
220
220
  findingId?: string | null | undefined;
221
221
  threadId?: string | null | undefined;
@@ -242,11 +242,11 @@ export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z
242
242
  scheduleResolutionExpiry?: number | null | undefined;
243
243
  scheduleResolutionSubmitted?: number | null | undefined;
244
244
  } | null | undefined;
245
+ conversationId?: string | null | undefined;
246
+ teamId?: string | undefined;
245
247
  channelId?: string | undefined;
246
248
  tone?: string | null | undefined;
247
- conversationId?: string | null | undefined;
248
249
  engagementChannel?: string | null | undefined;
249
- teamId?: string | undefined;
250
250
  notificationId?: string | null | undefined;
251
251
  findingId?: string | null | undefined;
252
252
  threadId?: string | null | undefined;
@@ -6,16 +6,16 @@ export declare const _PlatformDialogueUpsertDto: z.ZodObject<z.objectUtil.extend
6
6
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  conversationId: z.ZodString;
8
8
  speaker: z.ZodNativeEnum<typeof import("..").ENGAGEMENT_DIALOGUE_SPEAKER>;
9
- timestamp: z.ZodString;
10
9
  dialogueContext: z.ZodString;
10
+ timestamp: z.ZodString;
11
11
  }, {
12
12
  tid: z.ZodString;
13
13
  }>, "strip", z.ZodTypeAny, {
14
14
  tid: string;
15
15
  conversationId: string;
16
16
  speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
17
- timestamp: string;
18
17
  dialogueContext: string;
18
+ timestamp: string;
19
19
  id?: string | undefined;
20
20
  createdAt?: string | undefined;
21
21
  updatedAt?: string | undefined;
@@ -24,8 +24,8 @@ export declare const _PlatformDialogueUpsertDto: z.ZodObject<z.objectUtil.extend
24
24
  tid: string;
25
25
  conversationId: string;
26
26
  speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
27
- timestamp: string;
28
27
  dialogueContext: string;
28
+ timestamp: string;
29
29
  id?: string | undefined;
30
30
  createdAt?: string | undefined;
31
31
  updatedAt?: string | undefined;
@@ -51,8 +51,8 @@ export declare const _PlatformDialogueDto: z.ZodObject<z.objectUtil.extendShape<
51
51
  deletedAt: string | null;
52
52
  conversationId: string;
53
53
  speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
54
- timestamp: string;
55
54
  dialogueContext: string;
55
+ timestamp: string;
56
56
  }, {
57
57
  id: string;
58
58
  tid: string;
@@ -61,8 +61,8 @@ export declare const _PlatformDialogueDto: z.ZodObject<z.objectUtil.extendShape<
61
61
  deletedAt: string | null;
62
62
  conversationId: string;
63
63
  speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
64
- timestamp: string;
65
64
  dialogueContext: string;
65
+ timestamp: string;
66
66
  }>;
67
67
  export type PlatformDialogueDto = z.infer<typeof _PlatformDialogueDto>;
68
68
  export type PlatformDialogueUpsertDto = z.infer<typeof _PlatformDialogueUpsertDto>;
@@ -4,15 +4,15 @@ export declare const _PlatformEngagementContextUpsertDto: z.ZodObject<z.objectUt
4
4
  createdAt: z.ZodOptional<z.ZodString>;
5
5
  updatedAt: z.ZodOptional<z.ZodString>;
6
6
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- contextKey: z.ZodString;
8
- channel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
9
7
  conversationId: z.ZodOptional<z.ZodString>;
8
+ channel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
9
+ contextKey: z.ZodString;
10
10
  }, {
11
11
  tid: z.ZodString;
12
12
  }>, "strip", z.ZodTypeAny, {
13
13
  tid: string;
14
- contextKey: string;
15
14
  channel: import("..").EngagementChannelKind;
15
+ contextKey: string;
16
16
  id?: string | undefined;
17
17
  createdAt?: string | undefined;
18
18
  updatedAt?: string | undefined;
@@ -20,8 +20,8 @@ export declare const _PlatformEngagementContextUpsertDto: z.ZodObject<z.objectUt
20
20
  conversationId?: string | undefined;
21
21
  }, {
22
22
  tid: string;
23
- contextKey: string;
24
23
  channel: import("..").EngagementChannelKind;
24
+ contextKey: string;
25
25
  id?: string | undefined;
26
26
  createdAt?: string | undefined;
27
27
  updatedAt?: string | undefined;
@@ -45,8 +45,8 @@ export declare const _PlatformEngagementContextDto: z.ZodObject<z.objectUtil.ext
45
45
  createdAt: string;
46
46
  updatedAt: string;
47
47
  deletedAt: string | null;
48
- contextKey: string;
49
48
  channel: import("..").EngagementChannelKind;
49
+ contextKey: string;
50
50
  conversationId?: string | undefined;
51
51
  }, {
52
52
  id: string;
@@ -54,8 +54,8 @@ export declare const _PlatformEngagementContextDto: z.ZodObject<z.objectUtil.ext
54
54
  createdAt: string;
55
55
  updatedAt: string;
56
56
  deletedAt: string | null;
57
- contextKey: string;
58
57
  channel: import("..").EngagementChannelKind;
58
+ contextKey: string;
59
59
  conversationId?: string | undefined;
60
60
  }>;
61
61
  export type PlatformEngagementContextDto = z.infer<typeof _PlatformEngagementContextDto>;
@@ -21,9 +21,9 @@ export declare const _PlatformEngagementConversationUpsertDto: z.ZodObject<z.obj
21
21
  createdAt?: string | undefined;
22
22
  updatedAt?: string | undefined;
23
23
  deletedAt?: string | null | undefined;
24
+ dialogueIds?: string[] | undefined;
24
25
  fid?: string | undefined;
25
26
  contextKey?: string | undefined;
26
- dialogueIds?: string[] | undefined;
27
27
  }, {
28
28
  status: import("..").ENGAGEMENT_CONVERSATION_STATUS;
29
29
  tid: string;
@@ -32,9 +32,9 @@ export declare const _PlatformEngagementConversationUpsertDto: z.ZodObject<z.obj
32
32
  createdAt?: string | undefined;
33
33
  updatedAt?: string | undefined;
34
34
  deletedAt?: string | null | undefined;
35
+ dialogueIds?: string[] | undefined;
35
36
  fid?: string | undefined;
36
37
  contextKey?: string | undefined;
37
- dialogueIds?: string[] | undefined;
38
38
  }>;
39
39
  export declare const _PlatformEngagementConversationDto: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
40
40
  id: z.ZodString;
@@ -7,6 +7,7 @@ import { CohortService } from './rest/CohortService';
7
7
  import { AgentsService } from './AgentsService';
8
8
  import { EngagementService } from './engagements.service';
9
9
  import { TrainingsService } from './trainings.service';
10
+ import { EngagementLogsService } from './engagementLogs.service';
10
11
  export type AmpApiOptions = AmpRestClientOptions;
11
12
  /**
12
13
  * AMP API
@@ -51,6 +52,7 @@ export declare class AmpApi {
51
52
  readonly users: AmpDataService<UserDto>;
52
53
  readonly usersInsights: UsersInsightsService;
53
54
  readonly prediction: PredictionService;
55
+ readonly engagementLogs: EngagementLogsService;
54
56
  constructor(rest: RestClient);
55
57
  static instance(options: AmpApiOptions): AmpApi;
56
58
  }
@@ -10,6 +10,7 @@ const CohortService_1 = require("./rest/CohortService");
10
10
  const AgentsService_1 = require("./AgentsService");
11
11
  const engagements_service_1 = require("./engagements.service");
12
12
  const trainings_service_1 = require("./trainings.service");
13
+ const engagementLogs_service_1 = require("./engagementLogs.service");
13
14
  /**
14
15
  * AMP API
15
16
  * This client is a wrapper around the AMP REST API meant to be used by
@@ -33,6 +34,7 @@ class AmpApi {
33
34
  this.customScoreCohorts = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_SCORE_COHORTS);
34
35
  this.customScoreValues = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_SCORE_VALUES);
35
36
  this.engagements = new engagements_service_1.EngagementService(rest);
37
+ this.engagementLogs = new engagementLogs_service_1.EngagementLogsService(rest);
36
38
  this.enums = new rest_1.DefaultEnumService(rest);
37
39
  this.findings = new _1.FindingsService(rest);
38
40
  this.findingsInsights = new _1.FindingsInsightsService(rest, constants_1.KIND.FINDINGS_INSIGHTS);
@@ -1 +1 @@
1
- {"version":3,"file":"AmpApi.js","sourceRoot":"","sources":["../../../src/services/AmpApi.ts"],"names":[],"mappings":";;;AAmBA,wBAcW;AACX,2CAAmD;AACnD,iCAA0J;AAC1J,mEAA6D;AAC7D,2DAAqD;AACrD,wDAAmD;AACnD,mDAA8C;AAC9C,+DAAwD;AACxD,2DAAqD;AAIrD;;;;;;;;;;;GAWG;AACH,MAAa,MAAM;IAgCjB,YAAY,IAAgB;QAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,qBAAkB,CAAqB,IAAI,EAAE,gBAAI,CAAC,gBAAgB,CAAC,CAAC;QAChG,IAAI,CAAC,MAAM,GAAG,IAAI,6BAAa,CAAC,IAAI,CAAC,CAAC;QACtC,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,uBAAoB,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,kBAAkB,GAAG,IAAI,uBAAoB,CAAmD,IAAI,EAAE,gBAAI,CAAC,oBAAoB,CAAC,CAAC;QACtI,IAAI,CAAC,iBAAiB,GAAG,IAAI,uBAAoB,CAAiD,IAAI,EAAE,gBAAI,CAAC,mBAAmB,CAAC,CAAC;QAClI,IAAI,CAAC,WAAW,GAAG,IAAI,uCAAiB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,KAAK,GAAG,IAAI,yBAAkB,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAe,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,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declare const KIND: {
28
28
  FINDINGS_TAGS: string;
29
29
  FLOW_SPECS: string;
30
30
  FLOW_STATES: string;
31
+ ENGAGEMENT_LOGS: string;
31
32
  INSIGHTS: string;
32
33
  JOB_EXECUTIONS: string;
33
34
  JOB_SPEC: string;
@@ -27,6 +27,7 @@ exports.KIND = {
27
27
  FINDINGS_TAGS: 'findings_tags',
28
28
  FLOW_SPECS: 'flow_specs',
29
29
  FLOW_STATES: 'flow_states',
30
+ ENGAGEMENT_LOGS: 'engagement_logs',
30
31
  INSIGHTS: 'insights',
31
32
  JOB_EXECUTIONS: 'job_executions',
32
33
  JOB_SPEC: 'jobs',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/services/constants.ts"],"names":[],"mappings":";;;AAIa,QAAA,2BAA2B,GAAG,CAAC,CAAC;AAGhC,QAAA,mBAAmB,GAAc,UAAU,CAAC;AAC5C,QAAA,gBAAgB,GAAc,KAAK,CAAC;AACpC,QAAA,iBAAiB,GAAc,KAAK,CAAC;AAErC,QAAA,IAAI,GAAG;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;IAChC,oBAAoB,EAAE,sBAAsB;IAC5C,mBAAmB,EAAE,qBAAqB;IAC1C,YAAY,EAAE,eAAe;IAC7B,OAAO,EAAE,UAAU;IACnB,oBAAoB,EAAE,uBAAuB;IAC7C,QAAQ,EAAE,WAAW;IACrB,wBAAwB,EAAE,0BAA0B;IACpD,gBAAgB,EAAE,aAAa;IAC/B,kBAAkB,EAAE,eAAe;IACnC,WAAW,EAAE,QAAQ;IACrB,QAAQ,EAAE,UAAU;IACpB,iBAAiB,EAAE,mBAAmB;IACtC,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,eAAe;IAC9B,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,QAAQ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,GAAG;IACjC,6BAA6B;IAC7B,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACf,CAAC;AAEc,qCAAmB,GAAG;IACpC,OAAO,EAAE;QACP,6BAA6B;QAC7B,YAAY,EAAE,cAAc;QAC5B,WAAW,EAAE,aAAa;QAC1B,YAAY,EAAE,cAAc;QAC5B,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,MAAM;KACb;IACD,IAAI,EAAE;QACJ,6BAA6B;QAC7B,SAAS,EAAE,gBAAgB;QAC3B,QAAQ,EAAE,eAAe;QACzB,YAAY,EAAE,mBAAmB;QACjC,UAAU,EAAE,iBAAiB;QAC7B,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,gBAAgB;KACxB;IACD,KAAK,EAAE;QACL,6BAA6B;QAC7B,YAAY,EAAE,oBAAoB;QAClC,YAAY,EAAE,gBAAgB;QAC9B,UAAU,EAAE,qBAAqB;KAClC;CACF,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { FlowStateWithRelationsDto, Page } from '../dto';
2
+ import { RestClient } from './rest';
3
+ import { FilterCriteria } from '../FilterCriteria';
4
+ import { AmpDataServiceImpl } from './data.service';
5
+ export declare class EngagementLogsService extends AmpDataServiceImpl<FlowStateWithRelationsDto> {
6
+ constructor(rest: RestClient);
7
+ list: (filter: FilterCriteria) => Promise<Page<FlowStateWithRelationsDto>>;
8
+ getById: (flowStateId: string) => Promise<Page<FlowStateWithRelationsDto>>;
9
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EngagementLogsService = void 0;
4
+ const constants_1 = require("./constants");
5
+ const data_service_1 = require("./data.service");
6
+ class EngagementLogsService extends data_service_1.AmpDataServiceImpl {
7
+ constructor(rest) {
8
+ super(rest, constants_1.KIND.ENGAGEMENT_LOGS);
9
+ this.list = async (filter) => {
10
+ const res = await this.rest.call({
11
+ url: `/${this.targetApi}/v1/${constants_1.KIND.ENGAGEMENT_LOGS}`,
12
+ method: 'GET',
13
+ params: filter,
14
+ });
15
+ return res.data;
16
+ };
17
+ this.getById = async (flowStateId) => {
18
+ const res = await this.rest.call({
19
+ url: `/${this.targetApi}/v1/${constants_1.KIND.ENGAGEMENT_LOGS}/${flowStateId}`,
20
+ method: 'GET',
21
+ });
22
+ return res.data;
23
+ };
24
+ }
25
+ }
26
+ exports.EngagementLogsService = EngagementLogsService;
27
+ //# sourceMappingURL=engagementLogs.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engagementLogs.service.js","sourceRoot":"","sources":["../../../src/services/engagementLogs.service.ts"],"names":[],"mappings":";;;AAGA,2CAAiC;AAEjC,iDAAkD;AAElD,MAAa,qBAAsB,SAAQ,iCAA6C;IACtF,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,EAAE,gBAAI,CAAC,eAAe,CAAC,CAAC;QAGpC,SAAI,GAAG,KAAK,EAAE,MAAsB,EAA4C,EAAE;YAChF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,gBAAI,CAAC,eAAe,EAAE;gBACpD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,MAAM;aACf,CAAC,CAAC;YACH,OAAO,GAAG,CAAC,IAAuC,CAAC;QACrD,CAAC,CAAC;QAEF,YAAO,GAAG,KAAK,EAAE,WAAmB,EAA4C,EAAE;YAChF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,gBAAI,CAAC,eAAe,IAAI,WAAW,EAAE;gBACnE,MAAM,EAAE,KAAK;aACd,CAAC,CAAC;YACH,OAAO,GAAG,CAAC,IAAuC,CAAC;QACrD,CAAC,CAAC;IAjBF,CAAC;CAkBF;AArBD,sDAqBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "84.30.0",
3
+ "version": "84.30.1",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -0,0 +1,50 @@
1
+ import {z} from 'zod';
2
+ import {FlowStateDto} from './flows.dto';
3
+ import {NotificationWithConversationContextDto} from './notification.dto';
4
+ import {SimpleUserDto} from './users.dto';
5
+ import {SimpleAssetDto} from './assets.dto';
6
+ import {FindingDto} from './findings.dto';
7
+ import {SaasComponentDto} from './saasComponents.dto';
8
+ import {DialogueDto} from './conversations.dto';
9
+
10
+ /**
11
+ * Event types for engagement feed items.
12
+ */
13
+ export const _EngagementLogEventType = z.enum(['StateTrigger', 'StateTransaction', 'BackgroundStateTransaction', 'Notification', 'Dialogue', 'ConversationContext']);
14
+
15
+ export type EngagementLogEventType = z.infer<typeof _EngagementLogEventType>;
16
+
17
+ /**
18
+ * Actor types for engagement events.
19
+ */
20
+ export const _EngagementLogEventActor = z.enum(['SYSTEM', 'USER', 'BOT', 'ADMIN']);
21
+
22
+ export type EngagementLogEventActor = z.infer<typeof _EngagementLogEventActor>;
23
+
24
+ /**
25
+ * A single event in the engagement feed.
26
+ * Represents a unified view of state transitions, notifications, dialogues, etc.
27
+ */
28
+ export const _EngagementLogEventDto = z.object({
29
+ timestamp: z.string(),
30
+ eventType: _EngagementLogEventType,
31
+ data: z.record(z.any()),
32
+ actor: z.string(),
33
+ });
34
+
35
+ export type EngagementLogEventDto = z.infer<typeof _EngagementLogEventDto>;
36
+ export type EngagementLogStatsDto = Record<string, string | number>;
37
+ /**
38
+ * Extended FlowState DTO that includes optional related entities.
39
+ * Used when querying flow states with additional context for engagement logs.
40
+ */
41
+ export type FlowStateWithRelationsDto = FlowStateDto & {
42
+ notifications?: NotificationWithConversationContextDto[];
43
+ dialogues?: DialogueDto[];
44
+ user?: SimpleUserDto;
45
+ finding?: FindingDto;
46
+ asset?: SimpleAssetDto;
47
+ saasComponent?: SaasComponentDto;
48
+ stats: EngagementLogStatsDto;
49
+ log?: EngagementLogEventDto[];
50
+ };
@@ -2,7 +2,8 @@ import {z} from 'zod';
2
2
  import {_BaseDto, _BaseUpsertDto} from './base.dto';
3
3
  import {_PaginationFilter, _SortFilter} from '../FilterCriteria';
4
4
  import {FindingStatus} from './enums';
5
-
5
+ import {_NotificationDto} from './notification.dto';
6
+ import {_SimpleUserDto} from './users.dto';
6
7
  export const EMAIL_CID = 'E00000000000';
7
8
  export const CUSTOM_FINDINGS_CID = 'C00000000000';
8
9
 
package/src/dto/index.ts CHANGED
@@ -12,6 +12,7 @@ export * from './defaultConnector.dto';
12
12
  export * from './eng';
13
13
  export * from './engagementContexts.dto';
14
14
  export * from './engagementConversations.dto';
15
+ export * from './engagementLogs.dto';
15
16
  export * from './engagementMappings.dto';
16
17
  export * from './entityIdSummaries.dto';
17
18
  export * from './enum.dto';
@@ -1,5 +1,6 @@
1
1
  import {z} from 'zod';
2
2
  import {BaseDto, _BaseDto, _BaseUpsertDto} from './base.dto';
3
+ import {ConversationContextDto} from './conversations.dto';
3
4
 
4
5
  export enum NotificationStatus {
5
6
  ERROR = 'ERROR',
@@ -213,3 +214,7 @@ export const _CreateNotificationDto = _BaseUpsertDto.merge(
213
214
  })
214
215
  );
215
216
  export type CreateNotificationDto = z.infer<typeof _CreateNotificationDto>;
217
+
218
+ export type NotificationWithConversationContextDto = NotificationDto & {
219
+ conversationContext?: ConversationContextDto;
220
+ };
@@ -40,6 +40,7 @@ import {CohortService} from './rest/CohortService';
40
40
  import {AgentsService} from './AgentsService';
41
41
  import {EngagementService} from './engagements.service';
42
42
  import {TrainingsService} from './trainings.service';
43
+ import {EngagementLogsService} from './engagementLogs.service';
43
44
 
44
45
  export type AmpApiOptions = AmpRestClientOptions;
45
46
 
@@ -86,6 +87,7 @@ export class AmpApi {
86
87
  readonly users: AmpDataService<UserDto>;
87
88
  readonly usersInsights: UsersInsightsService;
88
89
  readonly prediction: PredictionService;
90
+ readonly engagementLogs: EngagementLogsService;
89
91
 
90
92
  constructor(rest: RestClient) {
91
93
  this.actionExecutions = new AmpDataServiceImpl<ActionExecutionDto>(rest, KIND.ACTION_EXECUTION);
@@ -97,6 +99,7 @@ export class AmpApi {
97
99
  this.customScoreCohorts = new AmpEntityServiceImpl<CustomScoreCohortUpsertDto, CustomScoreCohortDto>(rest, KIND.CUSTOM_SCORE_COHORTS);
98
100
  this.customScoreValues = new AmpEntityServiceImpl<CustomScoreValueUpsertDto, CustomScoreValueDto>(rest, KIND.CUSTOM_SCORE_VALUES);
99
101
  this.engagements = new EngagementService(rest);
102
+ this.engagementLogs = new EngagementLogsService(rest);
100
103
  this.enums = new DefaultEnumService(rest);
101
104
  this.findings = new FindingsService(rest);
102
105
  this.findingsInsights = new FindingsInsightsService(rest, KIND.FINDINGS_INSIGHTS);
@@ -31,6 +31,7 @@ export const KIND = {
31
31
  FINDINGS_TAGS: 'findings_tags',
32
32
  FLOW_SPECS: 'flow_specs',
33
33
  FLOW_STATES: 'flow_states',
34
+ ENGAGEMENT_LOGS: 'engagement_logs',
34
35
  INSIGHTS: 'insights',
35
36
  JOB_EXECUTIONS: 'job_executions',
36
37
  JOB_SPEC: 'jobs',
@@ -0,0 +1,29 @@
1
+ import _ from 'lodash';
2
+ import {FlowStateWithRelationsDto, Page} from '../dto';
3
+ import {RestClient} from './rest';
4
+ import {KIND} from './constants';
5
+ import {FilterCriteria} from '../FilterCriteria';
6
+ import {AmpDataServiceImpl} from './data.service';
7
+
8
+ export class EngagementLogsService extends AmpDataServiceImpl<FlowStateWithRelationsDto> {
9
+ constructor(rest: RestClient) {
10
+ super(rest, KIND.ENGAGEMENT_LOGS);
11
+ }
12
+
13
+ list = async (filter: FilterCriteria): Promise<Page<FlowStateWithRelationsDto>> => {
14
+ const res = await this.rest.call({
15
+ url: `/${this.targetApi}/v1/${KIND.ENGAGEMENT_LOGS}`,
16
+ method: 'GET',
17
+ params: filter,
18
+ });
19
+ return res.data as Page<FlowStateWithRelationsDto>;
20
+ };
21
+
22
+ getById = async (flowStateId: string): Promise<Page<FlowStateWithRelationsDto>> => {
23
+ const res = await this.rest.call({
24
+ url: `/${this.targetApi}/v1/${KIND.ENGAGEMENT_LOGS}/${flowStateId}`,
25
+ method: 'GET',
26
+ });
27
+ return res.data as Page<FlowStateWithRelationsDto>;
28
+ };
29
+ }