@ampsec/platform-client 81.5.0 → 81.6.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.
- package/build/src/dto/contexts.dto.d.ts +0 -6
- package/build/src/dto/contexts.dto.js +0 -1
- package/build/src/dto/contexts.dto.js.map +1 -1
- package/build/src/dto/conversations.dto.d.ts +1 -0
- package/build/src/dto/platform/index.d.ts +1 -0
- package/build/src/dto/platform/index.js +1 -0
- package/build/src/dto/platform/index.js.map +1 -1
- package/build/src/dto/platform/platform.contexts.dto.d.ts +0 -6
- package/build/src/dto/platform/platform.conversationContext.dto.d.ts +56 -0
- package/build/src/dto/platform/platform.conversationContext.dto.js +12 -0
- package/build/src/dto/platform/platform.conversationContext.dto.js.map +1 -0
- package/build/src/services/AmpSdk.d.ts +5 -1
- package/build/src/services/AmpSdk.js +4 -0
- package/build/src/services/AmpSdk.js.map +1 -1
- package/build/src/services/constants.d.ts +4 -0
- package/build/src/services/constants.js +4 -0
- package/build/src/services/constants.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/contexts.dto.ts +0 -1
- package/src/dto/conversations.dto.ts +2 -0
- package/src/dto/platform/index.ts +1 -0
- package/src/dto/platform/platform.conversationContext.dto.ts +14 -0
- package/src/services/AmpSdk.ts +21 -0
- package/src/services/constants.ts +4 -0
|
@@ -8,7 +8,6 @@ export declare const _ContextDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8
8
|
}, {
|
|
9
9
|
conversationId: z.ZodString;
|
|
10
10
|
speaker: z.ZodNativeEnum<typeof ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
11
|
-
dialogueContext: z.ZodString;
|
|
12
11
|
extId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
12
|
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
13
|
fid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -24,7 +23,6 @@ export declare const _ContextDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
24
23
|
conversationId: string;
|
|
25
24
|
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
26
25
|
engagementChannel: EngagementChannelKind;
|
|
27
|
-
dialogueContext: string;
|
|
28
26
|
extId?: string | null | undefined;
|
|
29
27
|
fid?: string | null | undefined;
|
|
30
28
|
channelId?: string | undefined;
|
|
@@ -39,7 +37,6 @@ export declare const _ContextDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
39
37
|
conversationId: string;
|
|
40
38
|
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
41
39
|
engagementChannel: EngagementChannelKind;
|
|
42
|
-
dialogueContext: string;
|
|
43
40
|
extId?: string | null | undefined;
|
|
44
41
|
fid?: string | null | undefined;
|
|
45
42
|
channelId?: string | undefined;
|
|
@@ -59,7 +56,6 @@ export declare const _ContextUpsertDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
59
56
|
speaker: z.ZodNativeEnum<typeof ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
60
57
|
engagementChannel: z.ZodNativeEnum<typeof EngagementChannelKind>;
|
|
61
58
|
teamId: z.ZodOptional<z.ZodString>;
|
|
62
|
-
dialogueContext: z.ZodString;
|
|
63
59
|
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
60
|
threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
61
|
}, {
|
|
@@ -68,7 +64,6 @@ export declare const _ContextUpsertDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
68
64
|
conversationId: string;
|
|
69
65
|
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
70
66
|
engagementChannel: EngagementChannelKind;
|
|
71
|
-
dialogueContext: string;
|
|
72
67
|
id?: string | undefined;
|
|
73
68
|
createdAt?: string | undefined;
|
|
74
69
|
updatedAt?: string | undefined;
|
|
@@ -83,7 +78,6 @@ export declare const _ContextUpsertDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
83
78
|
conversationId: string;
|
|
84
79
|
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
85
80
|
engagementChannel: EngagementChannelKind;
|
|
86
|
-
dialogueContext: string;
|
|
87
81
|
id?: string | undefined;
|
|
88
82
|
createdAt?: string | undefined;
|
|
89
83
|
updatedAt?: string | undefined;
|
|
@@ -7,7 +7,6 @@ const enums_1 = require("./enums");
|
|
|
7
7
|
exports._ContextDto = base_dto_1._BaseDto.extend({
|
|
8
8
|
conversationId: zod_1.z.string(),
|
|
9
9
|
speaker: zod_1.z.nativeEnum(enums_1.ENGAGEMENT_DIALOGUE_SPEAKER),
|
|
10
|
-
dialogueContext: zod_1.z.string(),
|
|
11
10
|
extId: zod_1.z.string().nullish(),
|
|
12
11
|
notificationId: zod_1.z.string().nullish(),
|
|
13
12
|
fid: zod_1.z.string().nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contexts.dto.js","sourceRoot":"","sources":["../../../src/dto/contexts.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,mCAA2E;AAE9D,QAAA,WAAW,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACzC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,mCAA2B,CAAC;IAClD,
|
|
1
|
+
{"version":3,"file":"contexts.dto.js","sourceRoot":"","sources":["../../../src/dto/contexts.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,mCAA2E;AAE9D,QAAA,WAAW,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACzC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,mCAA2B,CAAC;IAClD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC3B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACpC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACzB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC9B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,iBAAiB,EAAE,OAAC,CAAC,UAAU,CAAC,6BAAqB,CAAC;CACvD,CAAC,CAAC;AAEU,QAAA,iBAAiB,GAAG,mBAAW,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC,MAAM,CAAC;IAC3E,iBAAiB,EAAE,OAAC,CAAC,UAAU,CAAC,6BAAqB,CAAC;CACvD,CAAC,CAAC"}
|
|
@@ -152,6 +152,7 @@ export declare const _ConversationContextUpsertDto: z.ZodObject<{
|
|
|
152
152
|
deletedAt?: string | null | undefined;
|
|
153
153
|
}>;
|
|
154
154
|
export type ConversationContextDto = z.infer<typeof _ConversationContextDto>;
|
|
155
|
+
export type ConversationContextUpsertDto = z.infer<typeof _ConversationContextUpsertDto>;
|
|
155
156
|
export type ConversationDto = z.infer<typeof _ConversationDto>;
|
|
156
157
|
export type ConversationUpsertDto = z.infer<typeof _ConversationUpsertDto>;
|
|
157
158
|
export type DialogueDto = z.infer<typeof _DialogueDto>;
|
|
@@ -46,4 +46,5 @@ __exportStar(require("./platform.ops.dto"), exports);
|
|
|
46
46
|
__exportStar(require("./platform.contexts.dto"), exports);
|
|
47
47
|
__exportStar(require("./platform.conversations.dto"), exports);
|
|
48
48
|
__exportStar(require("./platform.dialogues.dto"), exports);
|
|
49
|
+
__exportStar(require("./platform.conversationContext.dto"), exports);
|
|
49
50
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,8DAA4C;AAC5C,oEAAkD;AAClD,yEAAuD;AACvD,oEAAkD;AAClD,kEAAgD;AAChD,0DAAwC;AACxC,uDAAqC;AACrC,mEAAiD;AACjD,yDAAuC;AACvC,8DAA4C;AAC5C,2DAAyC;AACzC,+DAA6C;AAC7C,iEAA+C;AAC/C,4DAA0C;AAC1C,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,6DAA2C;AAC3C,wDAAsC;AACtC,uDAAqC;AACrC,qDAAmC;AACnC,iEAA+C;AAC/C,qDAAmC;AACnC,0DAAwC;AACxC,+DAA6C;AAC7C,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,8DAA4C;AAC5C,oEAAkD;AAClD,yEAAuD;AACvD,oEAAkD;AAClD,kEAAgD;AAChD,0DAAwC;AACxC,uDAAqC;AACrC,mEAAiD;AACjD,yDAAuC;AACvC,8DAA4C;AAC5C,2DAAyC;AACzC,+DAA6C;AAC7C,iEAA+C;AAC/C,4DAA0C;AAC1C,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,6DAA2C;AAC3C,wDAAsC;AACtC,uDAAqC;AACrC,qDAAmC;AACnC,iEAA+C;AAC/C,qDAAmC;AACnC,0DAAwC;AACxC,+DAA6C;AAC7C,2DAAyC;AACzC,qEAAmD"}
|
|
@@ -11,7 +11,6 @@ export declare const _PlatformContextUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
11
11
|
speaker: z.ZodNativeEnum<typeof import("..").ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
12
12
|
engagementChannel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
|
|
13
13
|
teamId: z.ZodOptional<z.ZodString>;
|
|
14
|
-
dialogueContext: z.ZodString;
|
|
15
14
|
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
15
|
threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
16
|
}, {
|
|
@@ -23,7 +22,6 @@ export declare const _PlatformContextUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
23
22
|
conversationId: string;
|
|
24
23
|
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
25
24
|
engagementChannel: import("..").EngagementChannelKind;
|
|
26
|
-
dialogueContext: string;
|
|
27
25
|
id?: string | undefined;
|
|
28
26
|
createdAt?: string | undefined;
|
|
29
27
|
updatedAt?: string | undefined;
|
|
@@ -39,7 +37,6 @@ export declare const _PlatformContextUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
39
37
|
conversationId: string;
|
|
40
38
|
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
41
39
|
engagementChannel: import("..").EngagementChannelKind;
|
|
42
|
-
dialogueContext: string;
|
|
43
40
|
id?: string | undefined;
|
|
44
41
|
createdAt?: string | undefined;
|
|
45
42
|
updatedAt?: string | undefined;
|
|
@@ -59,7 +56,6 @@ export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
59
56
|
}, {
|
|
60
57
|
conversationId: z.ZodString;
|
|
61
58
|
speaker: z.ZodNativeEnum<typeof import("..").ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
62
|
-
dialogueContext: z.ZodString;
|
|
63
59
|
extId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
60
|
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
61
|
fid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -78,7 +74,6 @@ export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
78
74
|
conversationId: string;
|
|
79
75
|
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
80
76
|
engagementChannel: import("..").EngagementChannelKind;
|
|
81
|
-
dialogueContext: string;
|
|
82
77
|
extId?: string | null | undefined;
|
|
83
78
|
fid?: string | null | undefined;
|
|
84
79
|
channelId?: string | undefined;
|
|
@@ -94,7 +89,6 @@ export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
94
89
|
conversationId: string;
|
|
95
90
|
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
96
91
|
engagementChannel: import("..").EngagementChannelKind;
|
|
97
|
-
dialogueContext: string;
|
|
98
92
|
extId?: string | null | undefined;
|
|
99
93
|
fid?: string | null | undefined;
|
|
100
94
|
channelId?: string | undefined;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const _PlatformConversationContextUpsertDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
5
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
6
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
context: z.ZodString;
|
|
8
|
+
conversationId: z.ZodString;
|
|
9
|
+
}, {
|
|
10
|
+
tid: z.ZodString;
|
|
11
|
+
}>, "strip", z.ZodTypeAny, {
|
|
12
|
+
tid: string;
|
|
13
|
+
context: string;
|
|
14
|
+
conversationId: string;
|
|
15
|
+
id?: string | undefined;
|
|
16
|
+
createdAt?: string | undefined;
|
|
17
|
+
updatedAt?: string | undefined;
|
|
18
|
+
deletedAt?: string | null | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
tid: string;
|
|
21
|
+
context: string;
|
|
22
|
+
conversationId: string;
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
createdAt?: string | undefined;
|
|
25
|
+
updatedAt?: string | undefined;
|
|
26
|
+
deletedAt?: string | null | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const _PlatformConversationContextDto: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
createdAt: z.ZodString;
|
|
31
|
+
updatedAt: z.ZodString;
|
|
32
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
33
|
+
}, {
|
|
34
|
+
conversationId: z.ZodString;
|
|
35
|
+
context: z.ZodString;
|
|
36
|
+
}>, {
|
|
37
|
+
tid: z.ZodString;
|
|
38
|
+
}>, "strip", z.ZodTypeAny, {
|
|
39
|
+
id: string;
|
|
40
|
+
tid: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
deletedAt: string | null;
|
|
44
|
+
context: string;
|
|
45
|
+
conversationId: string;
|
|
46
|
+
}, {
|
|
47
|
+
id: string;
|
|
48
|
+
tid: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
updatedAt: string;
|
|
51
|
+
deletedAt: string | null;
|
|
52
|
+
context: string;
|
|
53
|
+
conversationId: string;
|
|
54
|
+
}>;
|
|
55
|
+
export type PlatformConversationContextDto = z.infer<typeof _PlatformConversationContextDto>;
|
|
56
|
+
export type PlatformConversationContextUpsertDto = z.infer<typeof _PlatformConversationContextUpsertDto>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._PlatformConversationContextDto = exports._PlatformConversationContextUpsertDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const conversations_dto_1 = require("../conversations.dto");
|
|
6
|
+
exports._PlatformConversationContextUpsertDto = conversations_dto_1._ConversationContextUpsertDto.extend({
|
|
7
|
+
tid: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
exports._PlatformConversationContextDto = conversations_dto_1._ConversationContextDto.extend({
|
|
10
|
+
tid: zod_1.z.string(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=platform.conversationContext.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.conversationContext.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.conversationContext.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,4DAA4F;AAE/E,QAAA,qCAAqC,GAAG,iDAA6B,CAAC,MAAM,CAAC;IACxF,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEU,QAAA,+BAA+B,GAAG,2CAAuB,CAAC,MAAM,CAAC;IAC5E,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PlatformActionExecutionDto, PlatformActionExecutionUpsertDto, PlatformConnectorSyncDto, PlatformConnectorSyncUpsertDto, PlatformCustomActionDto, PlatformCustomActionUpsertDto, PlatformCustomScoreCohortDto, PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreValueDto, PlatformCustomScoreValueUpsertDto, PlatformFindingSpecDto, PlatformFindingSpecUpsertDto, PlatformFlowSpecDto, PlatformFlowSpecUpsertDto, PlatformFlowStateDto, PlatformFlowStateUpsertDto, PlatformJobExecutionStateDto, PlatformJobExecutionStateUpsertDto, PlatformJobSpecDto, PlatformJobSpecUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, PlatformTokenDto, PlatformTokenUpsertDto, ProviderDto } from '../dto';
|
|
1
|
+
import { PlatformActionExecutionDto, PlatformActionExecutionUpsertDto, PlatformConnectorSyncDto, PlatformConnectorSyncUpsertDto, PlatformContextDto, PlatformContextUpsertDto, PlatformConversationContextDto, PlatformConversationContextUpsertDto, PlatformConversationDto, PlatformConversationUpsertDto, PlatformCustomActionDto, PlatformCustomActionUpsertDto, PlatformCustomScoreCohortDto, PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreValueDto, PlatformCustomScoreValueUpsertDto, PlatformDialogueDto, PlatformDialogueUpsertDto, PlatformFindingSpecDto, PlatformFindingSpecUpsertDto, PlatformFlowSpecDto, PlatformFlowSpecUpsertDto, PlatformFlowStateDto, PlatformFlowStateUpsertDto, PlatformJobExecutionStateDto, PlatformJobExecutionStateUpsertDto, PlatformJobSpecDto, PlatformJobSpecUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, PlatformTokenDto, PlatformTokenUpsertDto, ProviderDto } from '../dto';
|
|
2
2
|
import { AmpEntityService, AmpSdkAssetService, AmpSdkTenantService, AmpSdkUserService, TenantNotesService, TruncatableAmpEntityService } from './entity.service';
|
|
3
3
|
import { AmpRestClientOptions, RestClient } from './rest';
|
|
4
4
|
import { EnumService } from './rest/EnumService';
|
|
@@ -55,6 +55,10 @@ export declare class AmpSdkServices {
|
|
|
55
55
|
readonly tenantNotes: TenantNotesService;
|
|
56
56
|
readonly tokens: AmpSdkTenantService<PlatformTokenUpsertDto, PlatformTokenDto>;
|
|
57
57
|
readonly users: AmpSdkUserService;
|
|
58
|
+
readonly conversations: AmpEntityService<PlatformConversationUpsertDto, PlatformConversationDto>;
|
|
59
|
+
readonly contexts: AmpEntityService<PlatformContextUpsertDto, PlatformContextDto>;
|
|
60
|
+
readonly dialogues: AmpEntityService<PlatformDialogueUpsertDto, PlatformDialogueDto>;
|
|
61
|
+
readonly conversationContexts: AmpEntityService<PlatformConversationContextUpsertDto, PlatformConversationContextDto>;
|
|
58
62
|
constructor(rest: RestClient);
|
|
59
63
|
static instance(options: AmpSdkOptions): AmpSdkServices;
|
|
60
64
|
}
|
|
@@ -32,6 +32,10 @@ class AmpSdkServices {
|
|
|
32
32
|
this.connectorSyncs = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CONNECTOR_SYNCS, constants_1.TARGET_API_PLATFORM);
|
|
33
33
|
this.contentful = new contentful_service_1.ContentfulService();
|
|
34
34
|
this.customActions = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_ACTIONS, constants_1.TARGET_API_PLATFORM);
|
|
35
|
+
this.conversations = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CONVERSATION, constants_1.TARGET_API_PLATFORM);
|
|
36
|
+
this.conversationContexts = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CONVERSATION_CONTEXT, constants_1.TARGET_API_PLATFORM);
|
|
37
|
+
this.contexts = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CONTEXT, constants_1.TARGET_API_PLATFORM);
|
|
38
|
+
this.dialogues = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.DIALOGUE, constants_1.TARGET_API_PLATFORM);
|
|
35
39
|
this.customScoreCohorts = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_SCORE_COHORTS, constants_1.TARGET_API_PLATFORM);
|
|
36
40
|
this.customScoreValues = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_SCORE_VALUES, constants_1.TARGET_API_PLATFORM);
|
|
37
41
|
this.engagements = new engagements_service_1.EngagementService(rest, constants_1.TARGET_API_PLATFORM);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;AAgDA,qDAS0B;AAC1B,iCAA0E;AAC1E,2CAAsD;AACtD,oDAAmE;AACnE,yDAAyD;AACzD,6DAA+J;AAC/J,6DAAuD;AACvD,yEAAmE;AACnE,6EAAsE;AACtE,mDAAqD;AACrD,0DAAqD;AACrD,yDAAmD;AACnD,+DAAwD;AAIxD;;;;;;;;GAQG;AACH,MAAa,cAAc;IAuCzB,YAAY,IAAgB;QAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,qCAAoB,CAA+D,IAAI,EAAE,gBAAI,CAAC,gBAAgB,EAAE,+BAAmB,CAAC,CAAC;QACjK,IAAI,CAAC,MAAM,GAAG,IAAI,oCAAoB,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,KAAK,GAAG,IAAI,mCAAkB,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;QAC/D,IAAI,CAAC,UAAU,GAAG,IAAI,qDAAwB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,cAAc,GAAG,IAAI,qCAAoB,CAA2D,IAAI,EAAE,gBAAI,CAAC,eAAe,EAAE,+BAAmB,CAAC,CAAC;QAC1J,IAAI,CAAC,UAAU,GAAG,IAAI,sCAAiB,EAAE,CAAC;QAC1C,IAAI,CAAC,aAAa,GAAG,IAAI,qCAAoB,CAAyD,IAAI,EAAE,gBAAI,CAAC,cAAc,EAAE,+BAAmB,CAAC,CAAC;QACtJ,IAAI,CAAC,aAAa,GAAG,IAAI,qCAAoB,CAAyD,IAAI,EAAE,gBAAI,CAAC,YAAY,EAAE,+BAAmB,CAAC,CAAC;QACpJ,IAAI,CAAC,oBAAoB,GAAG,IAAI,qCAAoB,CAClD,IAAI,EACJ,gBAAI,CAAC,oBAAoB,EACzB,+BAAmB,CACpB,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,IAAI,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,IAAI,+BAAc,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;QAC7D,IAAI,CAAC,WAAW,GAAG,IAAI,mCAAkB,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;QACrE,IAAI,CAAC,MAAM,GAAG,IAAI,qCAAoB,CAA2C,IAAI,EAAE,gBAAI,CAAC,MAAM,EAAE,+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;AA7FD,wCA6FC"}
|
|
@@ -14,6 +14,10 @@ export declare const KIND: {
|
|
|
14
14
|
CUSTOM_ACTIONS: string;
|
|
15
15
|
CUSTOM_SCORE_COHORTS: string;
|
|
16
16
|
CUSTOM_SCORE_VALUES: string;
|
|
17
|
+
CONVERSATION: string;
|
|
18
|
+
CONTEXT: string;
|
|
19
|
+
CONVERSATION_CONTEXT: string;
|
|
20
|
+
DIALOGUE: string;
|
|
17
21
|
ENGAGEMENT_CONVERSATIONS: string;
|
|
18
22
|
ENUM_DEPARTMENTS: string;
|
|
19
23
|
ENUM_ORGANIZATIONS: string;
|
|
@@ -13,6 +13,10 @@ exports.KIND = {
|
|
|
13
13
|
CUSTOM_ACTIONS: 'custom_actions',
|
|
14
14
|
CUSTOM_SCORE_COHORTS: 'custom_score_cohorts',
|
|
15
15
|
CUSTOM_SCORE_VALUES: 'custom_score_values',
|
|
16
|
+
CONVERSATION: 'conversations',
|
|
17
|
+
CONTEXT: 'contexts',
|
|
18
|
+
CONVERSATION_CONTEXT: 'conversation_contexts',
|
|
19
|
+
DIALOGUE: 'dialogues',
|
|
16
20
|
ENGAGEMENT_CONVERSATIONS: 'engagement_conversations',
|
|
17
21
|
ENUM_DEPARTMENTS: 'departments',
|
|
18
22
|
ENUM_ORGANIZATIONS: 'organizations',
|
|
@@ -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,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,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAAE,MAAM;IAChB,aAAa,EAAE,eAAe;IAC9B,SAAS,EAAE,WAAW;IACtB,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,oBAAoB;IACxC,sBAAsB,EAAE,wBAAwB;IAChD,iBAAiB,EAAE,mBAAmB;IACtC,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,cAAc;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5,7 +5,6 @@ import {EngagementChannelKind, ENGAGEMENT_DIALOGUE_SPEAKER} from './enums';
|
|
|
5
5
|
export const _ContextDto = _BaseDto.extend({
|
|
6
6
|
conversationId: z.string(),
|
|
7
7
|
speaker: z.nativeEnum(ENGAGEMENT_DIALOGUE_SPEAKER),
|
|
8
|
-
dialogueContext: z.string(),
|
|
9
8
|
extId: z.string().nullish(),
|
|
10
9
|
notificationId: z.string().nullish(),
|
|
11
10
|
fid: z.string().nullish(),
|
|
@@ -31,6 +31,8 @@ export const _ConversationContextUpsertDto = _ConversationContextDto.partial(UPS
|
|
|
31
31
|
|
|
32
32
|
export type ConversationContextDto = z.infer<typeof _ConversationContextDto>;
|
|
33
33
|
|
|
34
|
+
export type ConversationContextUpsertDto = z.infer<typeof _ConversationContextUpsertDto>;
|
|
35
|
+
|
|
34
36
|
export type ConversationDto = z.infer<typeof _ConversationDto>;
|
|
35
37
|
|
|
36
38
|
export type ConversationUpsertDto = z.infer<typeof _ConversationUpsertDto>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {z} from 'zod';
|
|
2
|
+
import {_ConversationContextDto, _ConversationContextUpsertDto} from '../conversations.dto';
|
|
3
|
+
|
|
4
|
+
export const _PlatformConversationContextUpsertDto = _ConversationContextUpsertDto.extend({
|
|
5
|
+
tid: z.string(),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export const _PlatformConversationContextDto = _ConversationContextDto.extend({
|
|
9
|
+
tid: z.string(),
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export type PlatformConversationContextDto = z.infer<typeof _PlatformConversationContextDto>;
|
|
13
|
+
|
|
14
|
+
export type PlatformConversationContextUpsertDto = z.infer<typeof _PlatformConversationContextUpsertDto>;
|
package/src/services/AmpSdk.ts
CHANGED
|
@@ -3,12 +3,20 @@ import {
|
|
|
3
3
|
PlatformActionExecutionUpsertDto,
|
|
4
4
|
PlatformConnectorSyncDto,
|
|
5
5
|
PlatformConnectorSyncUpsertDto,
|
|
6
|
+
PlatformContextDto,
|
|
7
|
+
PlatformContextUpsertDto,
|
|
8
|
+
PlatformConversationContextDto,
|
|
9
|
+
PlatformConversationContextUpsertDto,
|
|
10
|
+
PlatformConversationDto,
|
|
11
|
+
PlatformConversationUpsertDto,
|
|
6
12
|
PlatformCustomActionDto,
|
|
7
13
|
PlatformCustomActionUpsertDto,
|
|
8
14
|
PlatformCustomScoreCohortDto,
|
|
9
15
|
PlatformCustomScoreCohortUpsertDto,
|
|
10
16
|
PlatformCustomScoreValueDto,
|
|
11
17
|
PlatformCustomScoreValueUpsertDto,
|
|
18
|
+
PlatformDialogueDto,
|
|
19
|
+
PlatformDialogueUpsertDto,
|
|
12
20
|
PlatformFindingSpecDto,
|
|
13
21
|
PlatformFindingSpecUpsertDto,
|
|
14
22
|
PlatformFlowSpecDto,
|
|
@@ -106,6 +114,10 @@ export class AmpSdkServices {
|
|
|
106
114
|
readonly tenantNotes: TenantNotesService;
|
|
107
115
|
readonly tokens: AmpSdkTenantService<PlatformTokenUpsertDto, PlatformTokenDto>;
|
|
108
116
|
readonly users: AmpSdkUserService;
|
|
117
|
+
readonly conversations: AmpEntityService<PlatformConversationUpsertDto, PlatformConversationDto>;
|
|
118
|
+
readonly contexts: AmpEntityService<PlatformContextUpsertDto, PlatformContextDto>;
|
|
119
|
+
readonly dialogues: AmpEntityService<PlatformDialogueUpsertDto, PlatformDialogueDto>;
|
|
120
|
+
readonly conversationContexts: AmpEntityService<PlatformConversationContextUpsertDto, PlatformConversationContextDto>;
|
|
109
121
|
|
|
110
122
|
constructor(rest: RestClient) {
|
|
111
123
|
this.actionExecutions = new AmpEntityServiceImpl<PlatformActionExecutionUpsertDto, PlatformActionExecutionDto>(rest, KIND.ACTION_EXECUTION, TARGET_API_PLATFORM);
|
|
@@ -115,6 +127,15 @@ export class AmpSdkServices {
|
|
|
115
127
|
this.connectorSyncs = new AmpEntityServiceImpl<PlatformConnectorSyncUpsertDto, PlatformConnectorSyncDto>(rest, KIND.CONNECTOR_SYNCS, TARGET_API_PLATFORM);
|
|
116
128
|
this.contentful = new ContentfulService();
|
|
117
129
|
this.customActions = new AmpEntityServiceImpl<PlatformCustomActionUpsertDto, PlatformCustomActionDto>(rest, KIND.CUSTOM_ACTIONS, TARGET_API_PLATFORM);
|
|
130
|
+
this.conversations = new AmpEntityServiceImpl<PlatformConversationUpsertDto, PlatformConversationDto>(rest, KIND.CONVERSATION, TARGET_API_PLATFORM);
|
|
131
|
+
this.conversationContexts = new AmpEntityServiceImpl<PlatformConversationContextUpsertDto, PlatformConversationContextDto>(
|
|
132
|
+
rest,
|
|
133
|
+
KIND.CONVERSATION_CONTEXT,
|
|
134
|
+
TARGET_API_PLATFORM
|
|
135
|
+
);
|
|
136
|
+
this.contexts = new AmpEntityServiceImpl<PlatformContextUpsertDto, PlatformContextDto>(rest, KIND.CONTEXT, TARGET_API_PLATFORM);
|
|
137
|
+
this.dialogues = new AmpEntityServiceImpl<PlatformDialogueUpsertDto, PlatformDialogueDto>(rest, KIND.DIALOGUE, TARGET_API_PLATFORM);
|
|
138
|
+
|
|
118
139
|
this.customScoreCohorts = new AmpEntityServiceImpl<PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreCohortDto>(rest, KIND.CUSTOM_SCORE_COHORTS, TARGET_API_PLATFORM);
|
|
119
140
|
this.customScoreValues = new AmpEntityServiceImpl<PlatformCustomScoreValueUpsertDto, PlatformCustomScoreValueDto>(rest, KIND.CUSTOM_SCORE_VALUES, TARGET_API_PLATFORM);
|
|
120
141
|
this.engagements = new EngagementService(rest, TARGET_API_PLATFORM);
|
|
@@ -17,6 +17,10 @@ export const KIND = {
|
|
|
17
17
|
CUSTOM_ACTIONS: 'custom_actions',
|
|
18
18
|
CUSTOM_SCORE_COHORTS: 'custom_score_cohorts',
|
|
19
19
|
CUSTOM_SCORE_VALUES: 'custom_score_values',
|
|
20
|
+
CONVERSATION: 'conversations',
|
|
21
|
+
CONTEXT: 'contexts',
|
|
22
|
+
CONVERSATION_CONTEXT: 'conversation_contexts',
|
|
23
|
+
DIALOGUE: 'dialogues',
|
|
20
24
|
ENGAGEMENT_CONVERSATIONS: 'engagement_conversations',
|
|
21
25
|
ENUM_DEPARTMENTS: 'departments',
|
|
22
26
|
ENUM_ORGANIZATIONS: 'organizations',
|