@ampsec/platform-client 81.1.1 → 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.
- package/build/src/dto/contexts.dto.d.ts +99 -0
- package/build/src/dto/contexts.dto.js +22 -0
- package/build/src/dto/contexts.dto.js.map +1 -0
- package/build/src/dto/conversations.dto.d.ts +158 -0
- package/build/src/dto/conversations.dto.js +28 -0
- package/build/src/dto/conversations.dto.js.map +1 -0
- package/build/src/dto/engagementConversations.dto.d.ts +1 -9
- package/build/src/dto/engagementConversations.dto.js +3 -13
- package/build/src/dto/engagementConversations.dto.js.map +1 -1
- package/build/src/dto/enums/engagementConversationStatus.d.ts +4 -0
- package/build/src/dto/enums/engagementConversationStatus.js +9 -0
- package/build/src/dto/enums/engagementConversationStatus.js.map +1 -0
- package/build/src/dto/enums/engagementDialogueSpeaker.d.ts +4 -0
- package/build/src/dto/enums/engagementDialogueSpeaker.js +9 -0
- package/build/src/dto/enums/engagementDialogueSpeaker.js.map +1 -0
- package/build/src/dto/enums/index.d.ts +2 -0
- package/build/src/dto/enums/index.js +2 -0
- package/build/src/dto/enums/index.js.map +1 -1
- package/build/src/dto/index.d.ts +2 -0
- package/build/src/dto/index.js +2 -0
- package/build/src/dto/index.js.map +1 -1
- package/build/src/dto/platform/index.d.ts +3 -0
- package/build/src/dto/platform/index.js +3 -0
- package/build/src/dto/platform/index.js.map +1 -1
- package/build/src/dto/platform/platform.contexts.dto.d.ts +106 -0
- package/build/src/dto/platform/platform.contexts.dto.js +12 -0
- package/build/src/dto/platform/platform.contexts.dto.js.map +1 -0
- package/build/src/dto/platform/platform.conversations.dto.d.ts +59 -0
- package/build/src/dto/platform/platform.conversations.dto.js +12 -0
- package/build/src/dto/platform/platform.conversations.dto.js.map +1 -0
- package/build/src/dto/platform/platform.dialogues.dto.d.ts +68 -0
- package/build/src/dto/platform/platform.dialogues.dto.js +12 -0
- package/build/src/dto/platform/platform.dialogues.dto.js.map +1 -0
- package/build/src/dto/platform/platform.engagementConversations.dto.d.ts +6 -6
- package/package.json +1 -1
- package/src/dto/contexts.dto.ts +24 -0
- package/src/dto/conversations.dto.ts +40 -0
- package/src/dto/engagementConversations.dto.ts +1 -11
- package/src/dto/enums/engagementConversationStatus.ts +4 -0
- package/src/dto/enums/engagementDialogueSpeaker.ts +4 -0
- package/src/dto/enums/index.ts +2 -0
- package/src/dto/index.ts +2 -0
- package/src/dto/platform/index.ts +3 -0
- package/src/dto/platform/platform.contexts.dto.ts +14 -0
- package/src/dto/platform/platform.conversations.dto.ts +14 -0
- package/src/dto/platform/platform.dialogues.dto.ts +14 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { EngagementChannelKind, ENGAGEMENT_DIALOGUE_SPEAKER } from './enums';
|
|
3
|
+
export declare const _ContextDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
createdAt: z.ZodString;
|
|
6
|
+
updatedAt: z.ZodString;
|
|
7
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
8
|
+
}, {
|
|
9
|
+
conversationId: z.ZodString;
|
|
10
|
+
speaker: z.ZodNativeEnum<typeof ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
11
|
+
dialogueContext: z.ZodString;
|
|
12
|
+
extId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
fid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
channelId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
engagementChannel: z.ZodNativeEnum<typeof EngagementChannelKind>;
|
|
19
|
+
}>, "strip", z.ZodTypeAny, {
|
|
20
|
+
id: string;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
deletedAt: string | null;
|
|
24
|
+
conversationId: string;
|
|
25
|
+
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
26
|
+
engagementChannel: EngagementChannelKind;
|
|
27
|
+
dialogueContext: string;
|
|
28
|
+
extId?: string | null | undefined;
|
|
29
|
+
fid?: string | null | undefined;
|
|
30
|
+
channelId?: string | undefined;
|
|
31
|
+
teamId?: string | undefined;
|
|
32
|
+
notificationId?: string | null | undefined;
|
|
33
|
+
threadId?: string | null | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
id: string;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
updatedAt: string;
|
|
38
|
+
deletedAt: string | null;
|
|
39
|
+
conversationId: string;
|
|
40
|
+
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
41
|
+
engagementChannel: EngagementChannelKind;
|
|
42
|
+
dialogueContext: string;
|
|
43
|
+
extId?: string | null | undefined;
|
|
44
|
+
fid?: string | null | undefined;
|
|
45
|
+
channelId?: string | undefined;
|
|
46
|
+
teamId?: string | undefined;
|
|
47
|
+
notificationId?: string | null | undefined;
|
|
48
|
+
threadId?: string | null | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
export declare const _ContextUpsertDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
51
|
+
id: z.ZodOptional<z.ZodString>;
|
|
52
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
53
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
54
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
extId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
fid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
channelId: z.ZodOptional<z.ZodString>;
|
|
58
|
+
conversationId: z.ZodString;
|
|
59
|
+
speaker: z.ZodNativeEnum<typeof ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
60
|
+
engagementChannel: z.ZodNativeEnum<typeof EngagementChannelKind>;
|
|
61
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
dialogueContext: z.ZodString;
|
|
63
|
+
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
}, {
|
|
66
|
+
engagementChannel: z.ZodNativeEnum<typeof EngagementChannelKind>;
|
|
67
|
+
}>, "strip", z.ZodTypeAny, {
|
|
68
|
+
conversationId: string;
|
|
69
|
+
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
70
|
+
engagementChannel: EngagementChannelKind;
|
|
71
|
+
dialogueContext: string;
|
|
72
|
+
id?: string | undefined;
|
|
73
|
+
createdAt?: string | undefined;
|
|
74
|
+
updatedAt?: string | undefined;
|
|
75
|
+
deletedAt?: string | null | undefined;
|
|
76
|
+
extId?: string | null | undefined;
|
|
77
|
+
fid?: string | null | undefined;
|
|
78
|
+
channelId?: string | undefined;
|
|
79
|
+
teamId?: string | undefined;
|
|
80
|
+
notificationId?: string | null | undefined;
|
|
81
|
+
threadId?: string | null | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
conversationId: string;
|
|
84
|
+
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
85
|
+
engagementChannel: EngagementChannelKind;
|
|
86
|
+
dialogueContext: string;
|
|
87
|
+
id?: string | undefined;
|
|
88
|
+
createdAt?: string | undefined;
|
|
89
|
+
updatedAt?: string | undefined;
|
|
90
|
+
deletedAt?: string | null | undefined;
|
|
91
|
+
extId?: string | null | undefined;
|
|
92
|
+
fid?: string | null | undefined;
|
|
93
|
+
channelId?: string | undefined;
|
|
94
|
+
teamId?: string | undefined;
|
|
95
|
+
notificationId?: string | null | undefined;
|
|
96
|
+
threadId?: string | null | undefined;
|
|
97
|
+
}>;
|
|
98
|
+
export type ContextDto = z.infer<typeof _ContextDto>;
|
|
99
|
+
export type ContextUpsertDto = z.infer<typeof _ContextUpsertDto>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._ContextUpsertDto = exports._ContextDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const base_dto_1 = require("./base.dto");
|
|
6
|
+
const enums_1 = require("./enums");
|
|
7
|
+
exports._ContextDto = base_dto_1._BaseDto.extend({
|
|
8
|
+
conversationId: zod_1.z.string(),
|
|
9
|
+
speaker: zod_1.z.nativeEnum(enums_1.ENGAGEMENT_DIALOGUE_SPEAKER),
|
|
10
|
+
dialogueContext: zod_1.z.string(),
|
|
11
|
+
extId: zod_1.z.string().nullish(),
|
|
12
|
+
notificationId: zod_1.z.string().nullish(),
|
|
13
|
+
fid: zod_1.z.string().nullish(),
|
|
14
|
+
threadId: zod_1.z.string().nullish(),
|
|
15
|
+
channelId: zod_1.z.string().optional(),
|
|
16
|
+
teamId: zod_1.z.string().optional(),
|
|
17
|
+
engagementChannel: zod_1.z.nativeEnum(enums_1.EngagementChannelKind),
|
|
18
|
+
});
|
|
19
|
+
exports._ContextUpsertDto = exports._ContextDto.partial(base_dto_1.UPSERT_DTO_MASK).extend({
|
|
20
|
+
engagementChannel: zod_1.z.nativeEnum(enums_1.EngagementChannelKind),
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=contexts.dto.js.map
|
|
@@ -0,0 +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,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;IAC3B,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"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { EngagementChannelKind } from './enums';
|
|
3
|
+
import { ENGAGEMENT_DIALOGUE_SPEAKER } from './enums/engagementDialogueSpeaker';
|
|
4
|
+
export declare const _DialogueDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
createdAt: z.ZodString;
|
|
7
|
+
updatedAt: z.ZodString;
|
|
8
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, {
|
|
10
|
+
conversationId: z.ZodString;
|
|
11
|
+
speaker: z.ZodNativeEnum<typeof ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
12
|
+
dialogueContext: z.ZodString;
|
|
13
|
+
timestamp: z.ZodString;
|
|
14
|
+
}>, "strip", z.ZodTypeAny, {
|
|
15
|
+
id: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
deletedAt: string | null;
|
|
19
|
+
conversationId: string;
|
|
20
|
+
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
21
|
+
timestamp: string;
|
|
22
|
+
dialogueContext: string;
|
|
23
|
+
}, {
|
|
24
|
+
id: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
27
|
+
deletedAt: string | null;
|
|
28
|
+
conversationId: string;
|
|
29
|
+
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
30
|
+
timestamp: string;
|
|
31
|
+
dialogueContext: string;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const _ConversationDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
createdAt: z.ZodString;
|
|
36
|
+
updatedAt: z.ZodString;
|
|
37
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, {
|
|
39
|
+
dialogueIds: z.ZodArray<z.ZodString, "many">;
|
|
40
|
+
engagementChannel: z.ZodNativeEnum<typeof EngagementChannelKind>;
|
|
41
|
+
}>, "strip", z.ZodTypeAny, {
|
|
42
|
+
id: string;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
deletedAt: string | null;
|
|
46
|
+
dialogueIds: string[];
|
|
47
|
+
engagementChannel: EngagementChannelKind;
|
|
48
|
+
}, {
|
|
49
|
+
id: string;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
updatedAt: string;
|
|
52
|
+
deletedAt: string | null;
|
|
53
|
+
dialogueIds: string[];
|
|
54
|
+
engagementChannel: EngagementChannelKind;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const _DialogueUpsertDto: z.ZodObject<{
|
|
57
|
+
id: z.ZodOptional<z.ZodString>;
|
|
58
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
59
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
60
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
conversationId: z.ZodString;
|
|
62
|
+
speaker: z.ZodNativeEnum<typeof ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
63
|
+
timestamp: z.ZodString;
|
|
64
|
+
dialogueContext: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
conversationId: string;
|
|
67
|
+
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
68
|
+
timestamp: string;
|
|
69
|
+
dialogueContext: string;
|
|
70
|
+
id?: string | undefined;
|
|
71
|
+
createdAt?: string | undefined;
|
|
72
|
+
updatedAt?: string | undefined;
|
|
73
|
+
deletedAt?: string | null | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
conversationId: string;
|
|
76
|
+
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
77
|
+
timestamp: string;
|
|
78
|
+
dialogueContext: string;
|
|
79
|
+
id?: string | undefined;
|
|
80
|
+
createdAt?: string | undefined;
|
|
81
|
+
updatedAt?: string | undefined;
|
|
82
|
+
deletedAt?: string | null | undefined;
|
|
83
|
+
}>;
|
|
84
|
+
export declare const _ConversationUpsertDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
85
|
+
id: z.ZodOptional<z.ZodString>;
|
|
86
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
87
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
88
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
dialogueIds: z.ZodArray<z.ZodString, "many">;
|
|
90
|
+
engagementChannel: z.ZodNativeEnum<typeof EngagementChannelKind>;
|
|
91
|
+
}, {
|
|
92
|
+
dialogueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
93
|
+
engagementChannel: z.ZodNativeEnum<typeof EngagementChannelKind>;
|
|
94
|
+
}>, "strip", z.ZodTypeAny, {
|
|
95
|
+
engagementChannel: EngagementChannelKind;
|
|
96
|
+
id?: string | undefined;
|
|
97
|
+
createdAt?: string | undefined;
|
|
98
|
+
updatedAt?: string | undefined;
|
|
99
|
+
deletedAt?: string | null | undefined;
|
|
100
|
+
dialogueIds?: string[] | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
engagementChannel: EngagementChannelKind;
|
|
103
|
+
id?: string | undefined;
|
|
104
|
+
createdAt?: string | undefined;
|
|
105
|
+
updatedAt?: string | undefined;
|
|
106
|
+
deletedAt?: string | null | undefined;
|
|
107
|
+
dialogueIds?: string[] | undefined;
|
|
108
|
+
}>;
|
|
109
|
+
export declare const _ConversationContextDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
createdAt: z.ZodString;
|
|
112
|
+
updatedAt: z.ZodString;
|
|
113
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
114
|
+
}, {
|
|
115
|
+
conversationId: z.ZodString;
|
|
116
|
+
context: z.ZodString;
|
|
117
|
+
}>, "strip", z.ZodTypeAny, {
|
|
118
|
+
id: string;
|
|
119
|
+
createdAt: string;
|
|
120
|
+
updatedAt: string;
|
|
121
|
+
deletedAt: string | null;
|
|
122
|
+
context: string;
|
|
123
|
+
conversationId: string;
|
|
124
|
+
}, {
|
|
125
|
+
id: string;
|
|
126
|
+
createdAt: string;
|
|
127
|
+
updatedAt: string;
|
|
128
|
+
deletedAt: string | null;
|
|
129
|
+
context: string;
|
|
130
|
+
conversationId: string;
|
|
131
|
+
}>;
|
|
132
|
+
export declare const _ConversationContextUpsertDto: z.ZodObject<{
|
|
133
|
+
id: z.ZodOptional<z.ZodString>;
|
|
134
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
135
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
136
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
context: z.ZodString;
|
|
138
|
+
conversationId: z.ZodString;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
context: string;
|
|
141
|
+
conversationId: string;
|
|
142
|
+
id?: string | undefined;
|
|
143
|
+
createdAt?: string | undefined;
|
|
144
|
+
updatedAt?: string | undefined;
|
|
145
|
+
deletedAt?: string | null | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
context: string;
|
|
148
|
+
conversationId: string;
|
|
149
|
+
id?: string | undefined;
|
|
150
|
+
createdAt?: string | undefined;
|
|
151
|
+
updatedAt?: string | undefined;
|
|
152
|
+
deletedAt?: string | null | undefined;
|
|
153
|
+
}>;
|
|
154
|
+
export type ConversationContextDto = z.infer<typeof _ConversationContextDto>;
|
|
155
|
+
export type ConversationDto = z.infer<typeof _ConversationDto>;
|
|
156
|
+
export type ConversationUpsertDto = z.infer<typeof _ConversationUpsertDto>;
|
|
157
|
+
export type DialogueDto = z.infer<typeof _DialogueDto>;
|
|
158
|
+
export type DialogueUpsertDto = z.infer<typeof _DialogueUpsertDto>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._ConversationContextUpsertDto = exports._ConversationContextDto = exports._ConversationUpsertDto = exports._DialogueUpsertDto = exports._ConversationDto = exports._DialogueDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const base_dto_1 = require("./base.dto");
|
|
6
|
+
const enums_1 = require("./enums");
|
|
7
|
+
const engagementDialogueSpeaker_1 = require("./enums/engagementDialogueSpeaker");
|
|
8
|
+
exports._DialogueDto = base_dto_1._BaseDto.extend({
|
|
9
|
+
conversationId: zod_1.z.string(),
|
|
10
|
+
speaker: zod_1.z.nativeEnum(engagementDialogueSpeaker_1.ENGAGEMENT_DIALOGUE_SPEAKER),
|
|
11
|
+
dialogueContext: zod_1.z.string(),
|
|
12
|
+
timestamp: zod_1.z.string(),
|
|
13
|
+
});
|
|
14
|
+
exports._ConversationDto = base_dto_1._BaseDto.extend({
|
|
15
|
+
dialogueIds: zod_1.z.string().array(),
|
|
16
|
+
engagementChannel: zod_1.z.nativeEnum(enums_1.EngagementChannelKind),
|
|
17
|
+
});
|
|
18
|
+
exports._DialogueUpsertDto = exports._DialogueDto.partial(base_dto_1.UPSERT_DTO_MASK);
|
|
19
|
+
exports._ConversationUpsertDto = exports._ConversationDto.partial(base_dto_1.UPSERT_DTO_MASK).extend({
|
|
20
|
+
dialogueIds: zod_1.z.string().array().optional(),
|
|
21
|
+
engagementChannel: zod_1.z.nativeEnum(enums_1.EngagementChannelKind),
|
|
22
|
+
});
|
|
23
|
+
exports._ConversationContextDto = base_dto_1._BaseDto.extend({
|
|
24
|
+
conversationId: zod_1.z.string(),
|
|
25
|
+
context: zod_1.z.string(),
|
|
26
|
+
});
|
|
27
|
+
exports._ConversationContextUpsertDto = exports._ConversationContextDto.partial(base_dto_1.UPSERT_DTO_MASK);
|
|
28
|
+
//# sourceMappingURL=conversations.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.dto.js","sourceRoot":"","sources":["../../../src/dto/conversations.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,mCAA8C;AAC9C,iFAA8E;AAEjE,QAAA,YAAY,GAAG,mBAAQ,CAAC,MAAM,CAAC;IAC1C,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,uDAA2B,CAAC;IAClD,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;IAC3B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEU,QAAA,gBAAgB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IAC/B,iBAAiB,EAAE,OAAC,CAAC,UAAU,CAAC,6BAAqB,CAAC;CACvD,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,oBAAY,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC;AAE3D,QAAA,sBAAsB,GAAG,wBAAgB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC,MAAM,CAAC;IACrF,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC1C,iBAAiB,EAAE,OAAC,CAAC,UAAU,CAAC,6BAAqB,CAAC;CACvD,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACrD,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEU,QAAA,6BAA6B,GAAG,+BAAuB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { EngagementChannelKind } from './enums';
|
|
3
|
-
export declare enum ENGAGEMENT_DIALOGUE_SPEAKER {
|
|
4
|
-
USER = "USER",
|
|
5
|
-
BOT = "BOT"
|
|
6
|
-
}
|
|
7
|
-
export declare enum ENGAGEMENT_CONVERSATION_STATUS {
|
|
8
|
-
READY = "READY",
|
|
9
|
-
PROCESSING = "PROCESSING"
|
|
10
|
-
}
|
|
2
|
+
import { ENGAGEMENT_CONVERSATION_STATUS, ENGAGEMENT_DIALOGUE_SPEAKER, EngagementChannelKind } from './enums';
|
|
11
3
|
export declare const _EngagementDialogueDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
12
4
|
id: z.ZodString;
|
|
13
5
|
createdAt: z.ZodString;
|
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._EngagementConversationUpsertDto = exports._EngagementDialogueUpsertDto = exports._EngagementConversationDto = exports._EngagementDialogueDto =
|
|
3
|
+
exports._EngagementConversationUpsertDto = exports._EngagementDialogueUpsertDto = exports._EngagementConversationDto = exports._EngagementDialogueDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const base_dto_1 = require("./base.dto");
|
|
6
6
|
const enums_1 = require("./enums");
|
|
7
|
-
var ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
8
|
-
(function (ENGAGEMENT_DIALOGUE_SPEAKER) {
|
|
9
|
-
ENGAGEMENT_DIALOGUE_SPEAKER["USER"] = "USER";
|
|
10
|
-
ENGAGEMENT_DIALOGUE_SPEAKER["BOT"] = "BOT";
|
|
11
|
-
})(ENGAGEMENT_DIALOGUE_SPEAKER || (exports.ENGAGEMENT_DIALOGUE_SPEAKER = ENGAGEMENT_DIALOGUE_SPEAKER = {}));
|
|
12
|
-
var ENGAGEMENT_CONVERSATION_STATUS;
|
|
13
|
-
(function (ENGAGEMENT_CONVERSATION_STATUS) {
|
|
14
|
-
ENGAGEMENT_CONVERSATION_STATUS["READY"] = "READY";
|
|
15
|
-
ENGAGEMENT_CONVERSATION_STATUS["PROCESSING"] = "PROCESSING";
|
|
16
|
-
})(ENGAGEMENT_CONVERSATION_STATUS || (exports.ENGAGEMENT_CONVERSATION_STATUS = ENGAGEMENT_CONVERSATION_STATUS = {}));
|
|
17
7
|
exports._EngagementDialogueDto = base_dto_1._BaseDto.extend({
|
|
18
8
|
conversationId: zod_1.z.string(),
|
|
19
|
-
speaker: zod_1.z.nativeEnum(ENGAGEMENT_DIALOGUE_SPEAKER),
|
|
9
|
+
speaker: zod_1.z.nativeEnum(enums_1.ENGAGEMENT_DIALOGUE_SPEAKER),
|
|
20
10
|
content: zod_1.z.string(),
|
|
21
11
|
timestamp: zod_1.z.string(),
|
|
22
12
|
createdAt: zod_1.z.string().optional(),
|
|
@@ -25,7 +15,7 @@ exports._EngagementDialogueDto = base_dto_1._BaseDto.extend({
|
|
|
25
15
|
});
|
|
26
16
|
exports._EngagementConversationDto = base_dto_1._BaseDto.extend({
|
|
27
17
|
dialogueIds: zod_1.z.string().array(),
|
|
28
|
-
status: zod_1.z.nativeEnum(ENGAGEMENT_CONVERSATION_STATUS),
|
|
18
|
+
status: zod_1.z.nativeEnum(enums_1.ENGAGEMENT_CONVERSATION_STATUS),
|
|
29
19
|
createdAt: zod_1.z.string().optional(),
|
|
30
20
|
updatedAt: zod_1.z.string().optional(),
|
|
31
21
|
deletedAt: zod_1.z.string().optional().nullable(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engagementConversations.dto.js","sourceRoot":"","sources":["../../../src/dto/engagementConversations.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"engagementConversations.dto.js","sourceRoot":"","sources":["../../../src/dto/engagementConversations.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,mCAA2G;AAE9F,QAAA,sBAAsB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACpD,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,mCAA2B,CAAC;IAClD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACxD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,sCAA8B,CAAC;IACpD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,8BAAsB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC,MAAM,CAAC;IACjG,iBAAiB,EAAE,OAAC,CAAC,UAAU,CAAC,6BAAqB,CAAC;IACtD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEU,QAAA,gCAAgC,GAAG,kCAA0B,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC,MAAM,CAAC;IACzG,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC1C,iBAAiB,EAAE,OAAC,CAAC,UAAU,CAAC,6BAAqB,CAAC;IACtD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ENGAGEMENT_CONVERSATION_STATUS = void 0;
|
|
4
|
+
var ENGAGEMENT_CONVERSATION_STATUS;
|
|
5
|
+
(function (ENGAGEMENT_CONVERSATION_STATUS) {
|
|
6
|
+
ENGAGEMENT_CONVERSATION_STATUS["READY"] = "READY";
|
|
7
|
+
ENGAGEMENT_CONVERSATION_STATUS["PROCESSING"] = "PROCESSING";
|
|
8
|
+
})(ENGAGEMENT_CONVERSATION_STATUS || (exports.ENGAGEMENT_CONVERSATION_STATUS = ENGAGEMENT_CONVERSATION_STATUS = {}));
|
|
9
|
+
//# sourceMappingURL=engagementConversationStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engagementConversationStatus.js","sourceRoot":"","sources":["../../../../src/dto/enums/engagementConversationStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,8BAGX;AAHD,WAAY,8BAA8B;IACxC,iDAAe,CAAA;IACf,2DAAyB,CAAA;AAC3B,CAAC,EAHW,8BAA8B,8CAA9B,8BAA8B,QAGzC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ENGAGEMENT_DIALOGUE_SPEAKER = void 0;
|
|
4
|
+
var ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
5
|
+
(function (ENGAGEMENT_DIALOGUE_SPEAKER) {
|
|
6
|
+
ENGAGEMENT_DIALOGUE_SPEAKER["USER"] = "USER";
|
|
7
|
+
ENGAGEMENT_DIALOGUE_SPEAKER["BOT"] = "BOT";
|
|
8
|
+
})(ENGAGEMENT_DIALOGUE_SPEAKER || (exports.ENGAGEMENT_DIALOGUE_SPEAKER = ENGAGEMENT_DIALOGUE_SPEAKER = {}));
|
|
9
|
+
//# sourceMappingURL=engagementDialogueSpeaker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engagementDialogueSpeaker.js","sourceRoot":"","sources":["../../../../src/dto/enums/engagementDialogueSpeaker.ts"],"names":[],"mappings":";;;AAAA,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,4CAAa,CAAA;IACb,0CAAW,CAAA;AACb,CAAC,EAHW,2BAA2B,2CAA3B,2BAA2B,QAGtC"}
|
|
@@ -43,4 +43,6 @@ __exportStar(require("./tenantStatusFlags"), exports);
|
|
|
43
43
|
__exportStar(require("./platformJobKind"), exports);
|
|
44
44
|
__exportStar(require("./metric.kind"), exports);
|
|
45
45
|
__exportStar(require("./timeZoneSource"), exports);
|
|
46
|
+
__exportStar(require("./engagementDialogueSpeaker"), exports);
|
|
47
|
+
__exportStar(require("./engagementConversationStatus"), exports);
|
|
46
48
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,iDAA+B;AAC/B,0DAAwC;AACxC,mDAAiC;AACjC,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,wDAAsC;AACtC,mDAAiC;AACjC,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,oDAAkC;AAClC,gDAA8B;AAC9B,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,iDAA+B;AAC/B,0DAAwC;AACxC,mDAAiC;AACjC,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,wDAAsC;AACtC,mDAAiC;AACjC,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,oDAAkC;AAClC,gDAA8B;AAC9B,mDAAiC;AACjC,8DAA4C;AAC5C,iEAA+C"}
|
package/build/src/dto/index.d.ts
CHANGED
package/build/src/dto/index.js
CHANGED
|
@@ -55,4 +55,6 @@ __exportStar(require("./users.dto"), exports);
|
|
|
55
55
|
__exportStar(require("./messagingChannels"), exports);
|
|
56
56
|
__exportStar(require("./cohort.dto"), exports);
|
|
57
57
|
__exportStar(require("./actionExecution.dto"), exports);
|
|
58
|
+
__exportStar(require("./conversations.dto"), exports);
|
|
59
|
+
__exportStar(require("./contexts.dto"), exports);
|
|
58
60
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,wCAAsB;AACtB,2DAAyC;AACzC,gEAA8C;AAC9C,2DAAyC;AACzC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,oDAAkC;AAClC,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B;AAC7B,wDAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,wCAAsB;AACtB,2DAAyC;AACzC,gEAA8C;AAC9C,2DAAyC;AACzC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,oDAAkC;AAClC,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B;AAC7B,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B"}
|
|
@@ -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';
|
|
@@ -43,4 +43,7 @@ __exportStar(require("./platform.users.dto"), exports);
|
|
|
43
43
|
__exportStar(require("./tenant.based.dto"), exports);
|
|
44
44
|
__exportStar(require("./platform.actionExecution.dto"), exports);
|
|
45
45
|
__exportStar(require("./platform.ops.dto"), exports);
|
|
46
|
+
__exportStar(require("./platform.contexts.dto"), exports);
|
|
47
|
+
__exportStar(require("./platform.conversations.dto"), exports);
|
|
48
|
+
__exportStar(require("./platform.dialogues.dto"), exports);
|
|
46
49
|
//# 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"}
|
|
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"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const _PlatformContextUpsertDto: z.ZodObject<z.objectUtil.extendShape<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
|
+
extId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
fid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
channelId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
conversationId: z.ZodString;
|
|
11
|
+
speaker: z.ZodNativeEnum<typeof import("..").ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
12
|
+
engagementChannel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
|
|
13
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
dialogueContext: z.ZodString;
|
|
15
|
+
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, {
|
|
18
|
+
engagementChannel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
|
|
19
|
+
}>, {
|
|
20
|
+
tid: z.ZodString;
|
|
21
|
+
}>, "strip", z.ZodTypeAny, {
|
|
22
|
+
tid: string;
|
|
23
|
+
conversationId: string;
|
|
24
|
+
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
25
|
+
engagementChannel: import("..").EngagementChannelKind;
|
|
26
|
+
dialogueContext: string;
|
|
27
|
+
id?: string | undefined;
|
|
28
|
+
createdAt?: string | undefined;
|
|
29
|
+
updatedAt?: string | undefined;
|
|
30
|
+
deletedAt?: string | null | undefined;
|
|
31
|
+
extId?: string | null | undefined;
|
|
32
|
+
fid?: string | null | undefined;
|
|
33
|
+
channelId?: string | undefined;
|
|
34
|
+
teamId?: string | undefined;
|
|
35
|
+
notificationId?: string | null | undefined;
|
|
36
|
+
threadId?: string | null | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
tid: string;
|
|
39
|
+
conversationId: string;
|
|
40
|
+
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
41
|
+
engagementChannel: import("..").EngagementChannelKind;
|
|
42
|
+
dialogueContext: string;
|
|
43
|
+
id?: string | undefined;
|
|
44
|
+
createdAt?: string | undefined;
|
|
45
|
+
updatedAt?: string | undefined;
|
|
46
|
+
deletedAt?: string | null | undefined;
|
|
47
|
+
extId?: string | null | undefined;
|
|
48
|
+
fid?: string | null | undefined;
|
|
49
|
+
channelId?: string | undefined;
|
|
50
|
+
teamId?: string | undefined;
|
|
51
|
+
notificationId?: string | null | undefined;
|
|
52
|
+
threadId?: string | null | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
createdAt: z.ZodString;
|
|
57
|
+
updatedAt: z.ZodString;
|
|
58
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
59
|
+
}, {
|
|
60
|
+
conversationId: z.ZodString;
|
|
61
|
+
speaker: z.ZodNativeEnum<typeof import("..").ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
62
|
+
dialogueContext: z.ZodString;
|
|
63
|
+
extId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
fid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
channelId: z.ZodOptional<z.ZodString>;
|
|
68
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
69
|
+
engagementChannel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
|
|
70
|
+
}>, {
|
|
71
|
+
tid: z.ZodString;
|
|
72
|
+
}>, "strip", z.ZodTypeAny, {
|
|
73
|
+
id: string;
|
|
74
|
+
tid: string;
|
|
75
|
+
createdAt: string;
|
|
76
|
+
updatedAt: string;
|
|
77
|
+
deletedAt: string | null;
|
|
78
|
+
conversationId: string;
|
|
79
|
+
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
80
|
+
engagementChannel: import("..").EngagementChannelKind;
|
|
81
|
+
dialogueContext: string;
|
|
82
|
+
extId?: string | null | undefined;
|
|
83
|
+
fid?: string | null | undefined;
|
|
84
|
+
channelId?: string | undefined;
|
|
85
|
+
teamId?: string | undefined;
|
|
86
|
+
notificationId?: string | null | undefined;
|
|
87
|
+
threadId?: string | null | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
id: string;
|
|
90
|
+
tid: string;
|
|
91
|
+
createdAt: string;
|
|
92
|
+
updatedAt: string;
|
|
93
|
+
deletedAt: string | null;
|
|
94
|
+
conversationId: string;
|
|
95
|
+
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
96
|
+
engagementChannel: import("..").EngagementChannelKind;
|
|
97
|
+
dialogueContext: string;
|
|
98
|
+
extId?: string | null | undefined;
|
|
99
|
+
fid?: string | null | undefined;
|
|
100
|
+
channelId?: string | undefined;
|
|
101
|
+
teamId?: string | undefined;
|
|
102
|
+
notificationId?: string | null | undefined;
|
|
103
|
+
threadId?: string | null | undefined;
|
|
104
|
+
}>;
|
|
105
|
+
export type PlatformContextDto = z.infer<typeof _PlatformContextDto>;
|
|
106
|
+
export type PlatformContextUpsertDto = z.infer<typeof _PlatformContextUpsertDto>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._PlatformContextDto = exports._PlatformContextUpsertDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const contexts_dto_1 = require("../contexts.dto");
|
|
6
|
+
exports._PlatformContextUpsertDto = contexts_dto_1._ContextUpsertDto.extend({
|
|
7
|
+
tid: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
exports._PlatformContextDto = contexts_dto_1._ContextDto.extend({
|
|
10
|
+
tid: zod_1.z.string(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=platform.contexts.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.contexts.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.contexts.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,kDAA+D;AAElD,QAAA,yBAAyB,GAAG,gCAAiB,CAAC,MAAM,CAAC;IAChE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,0BAAW,CAAC,MAAM,CAAC;IACpD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const _PlatformConversationUpsertDto: z.ZodObject<z.objectUtil.extendShape<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
|
+
dialogueIds: z.ZodArray<z.ZodString, "many">;
|
|
8
|
+
engagementChannel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
|
|
9
|
+
}, {
|
|
10
|
+
dialogueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11
|
+
engagementChannel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
|
|
12
|
+
}>, {
|
|
13
|
+
tid: z.ZodString;
|
|
14
|
+
}>, "strip", z.ZodTypeAny, {
|
|
15
|
+
tid: string;
|
|
16
|
+
engagementChannel: import("..").EngagementChannelKind;
|
|
17
|
+
id?: string | undefined;
|
|
18
|
+
createdAt?: string | undefined;
|
|
19
|
+
updatedAt?: string | undefined;
|
|
20
|
+
deletedAt?: string | null | undefined;
|
|
21
|
+
dialogueIds?: string[] | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
tid: string;
|
|
24
|
+
engagementChannel: import("..").EngagementChannelKind;
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
createdAt?: string | undefined;
|
|
27
|
+
updatedAt?: string | undefined;
|
|
28
|
+
deletedAt?: string | null | undefined;
|
|
29
|
+
dialogueIds?: string[] | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const _PlatformConversationDto: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
createdAt: z.ZodString;
|
|
34
|
+
updatedAt: z.ZodString;
|
|
35
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, {
|
|
37
|
+
dialogueIds: z.ZodArray<z.ZodString, "many">;
|
|
38
|
+
engagementChannel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
|
|
39
|
+
}>, {
|
|
40
|
+
tid: z.ZodString;
|
|
41
|
+
}>, "strip", z.ZodTypeAny, {
|
|
42
|
+
id: string;
|
|
43
|
+
tid: string;
|
|
44
|
+
createdAt: string;
|
|
45
|
+
updatedAt: string;
|
|
46
|
+
deletedAt: string | null;
|
|
47
|
+
dialogueIds: string[];
|
|
48
|
+
engagementChannel: import("..").EngagementChannelKind;
|
|
49
|
+
}, {
|
|
50
|
+
id: string;
|
|
51
|
+
tid: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
deletedAt: string | null;
|
|
55
|
+
dialogueIds: string[];
|
|
56
|
+
engagementChannel: import("..").EngagementChannelKind;
|
|
57
|
+
}>;
|
|
58
|
+
export type PlatformConversationDto = z.infer<typeof _PlatformConversationDto>;
|
|
59
|
+
export type PlatformConversationUpsertDto = z.infer<typeof _PlatformConversationUpsertDto>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._PlatformConversationDto = exports._PlatformConversationUpsertDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const conversations_dto_1 = require("../conversations.dto");
|
|
6
|
+
exports._PlatformConversationUpsertDto = conversations_dto_1._ConversationUpsertDto.extend({
|
|
7
|
+
tid: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
exports._PlatformConversationDto = conversations_dto_1._ConversationDto.extend({
|
|
10
|
+
tid: zod_1.z.string(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=platform.conversations.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.conversations.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.conversations.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,4DAA8E;AAEjE,QAAA,8BAA8B,GAAG,0CAAsB,CAAC,MAAM,CAAC;IAC1E,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,oCAAgB,CAAC,MAAM,CAAC;IAC9D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const _PlatformDialogueUpsertDto: 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
|
+
conversationId: z.ZodString;
|
|
8
|
+
speaker: z.ZodNativeEnum<typeof import("..").ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
9
|
+
timestamp: z.ZodString;
|
|
10
|
+
dialogueContext: z.ZodString;
|
|
11
|
+
}, {
|
|
12
|
+
tid: z.ZodString;
|
|
13
|
+
}>, "strip", z.ZodTypeAny, {
|
|
14
|
+
tid: string;
|
|
15
|
+
conversationId: string;
|
|
16
|
+
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
17
|
+
timestamp: string;
|
|
18
|
+
dialogueContext: string;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
createdAt?: string | undefined;
|
|
21
|
+
updatedAt?: string | undefined;
|
|
22
|
+
deletedAt?: string | null | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
tid: string;
|
|
25
|
+
conversationId: string;
|
|
26
|
+
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
27
|
+
timestamp: string;
|
|
28
|
+
dialogueContext: string;
|
|
29
|
+
id?: string | undefined;
|
|
30
|
+
createdAt?: string | undefined;
|
|
31
|
+
updatedAt?: string | undefined;
|
|
32
|
+
deletedAt?: string | null | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const _PlatformDialogueDto: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
createdAt: z.ZodString;
|
|
37
|
+
updatedAt: z.ZodString;
|
|
38
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
39
|
+
}, {
|
|
40
|
+
conversationId: z.ZodString;
|
|
41
|
+
speaker: z.ZodNativeEnum<typeof import("..").ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
42
|
+
dialogueContext: z.ZodString;
|
|
43
|
+
timestamp: z.ZodString;
|
|
44
|
+
}>, {
|
|
45
|
+
tid: z.ZodString;
|
|
46
|
+
}>, "strip", z.ZodTypeAny, {
|
|
47
|
+
id: string;
|
|
48
|
+
tid: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
updatedAt: string;
|
|
51
|
+
deletedAt: string | null;
|
|
52
|
+
conversationId: string;
|
|
53
|
+
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
54
|
+
timestamp: string;
|
|
55
|
+
dialogueContext: string;
|
|
56
|
+
}, {
|
|
57
|
+
id: string;
|
|
58
|
+
tid: string;
|
|
59
|
+
createdAt: string;
|
|
60
|
+
updatedAt: string;
|
|
61
|
+
deletedAt: string | null;
|
|
62
|
+
conversationId: string;
|
|
63
|
+
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
64
|
+
timestamp: string;
|
|
65
|
+
dialogueContext: string;
|
|
66
|
+
}>;
|
|
67
|
+
export type PlatformDialogueDto = z.infer<typeof _PlatformDialogueDto>;
|
|
68
|
+
export type PlatformDialogueUpsertDto = z.infer<typeof _PlatformDialogueUpsertDto>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._PlatformDialogueDto = exports._PlatformDialogueUpsertDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const conversations_dto_1 = require("../conversations.dto");
|
|
6
|
+
exports._PlatformDialogueUpsertDto = conversations_dto_1._DialogueUpsertDto.extend({
|
|
7
|
+
tid: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
exports._PlatformDialogueDto = conversations_dto_1._DialogueDto.extend({
|
|
10
|
+
tid: zod_1.z.string(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=platform.dialogues.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.dialogues.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.dialogues.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,4DAAsE;AAEzD,QAAA,0BAA0B,GAAG,sCAAkB,CAAC,MAAM,CAAC;IAClE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEU,QAAA,oBAAoB,GAAG,gCAAY,CAAC,MAAM,CAAC;IACtD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const _PlatformEngagementConversationUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
|
-
status: z.ZodNativeEnum<typeof import("
|
|
3
|
+
status: z.ZodNativeEnum<typeof import("..").ENGAGEMENT_CONVERSATION_STATUS>;
|
|
4
4
|
id: z.ZodOptional<z.ZodString>;
|
|
5
5
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
6
6
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -14,7 +14,7 @@ export declare const _PlatformEngagementConversationUpsertDto: z.ZodObject<z.obj
|
|
|
14
14
|
}>, {
|
|
15
15
|
tid: z.ZodString;
|
|
16
16
|
}>, "strip", z.ZodTypeAny, {
|
|
17
|
-
status: import("
|
|
17
|
+
status: import("..").ENGAGEMENT_CONVERSATION_STATUS;
|
|
18
18
|
tid: string;
|
|
19
19
|
engagementChannel: import("..").EngagementChannelKind;
|
|
20
20
|
id?: string | undefined;
|
|
@@ -25,7 +25,7 @@ export declare const _PlatformEngagementConversationUpsertDto: z.ZodObject<z.obj
|
|
|
25
25
|
contextKey?: string | undefined;
|
|
26
26
|
dialogueIds?: string[] | undefined;
|
|
27
27
|
}, {
|
|
28
|
-
status: import("
|
|
28
|
+
status: import("..").ENGAGEMENT_CONVERSATION_STATUS;
|
|
29
29
|
tid: string;
|
|
30
30
|
engagementChannel: import("..").EngagementChannelKind;
|
|
31
31
|
id?: string | undefined;
|
|
@@ -43,14 +43,14 @@ export declare const _PlatformEngagementConversationDto: z.ZodObject<z.objectUti
|
|
|
43
43
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
44
44
|
}, {
|
|
45
45
|
dialogueIds: z.ZodArray<z.ZodString, "many">;
|
|
46
|
-
status: z.ZodNativeEnum<typeof import("
|
|
46
|
+
status: z.ZodNativeEnum<typeof import("..").ENGAGEMENT_CONVERSATION_STATUS>;
|
|
47
47
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
48
48
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
49
49
|
deletedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
50
50
|
}>, {
|
|
51
51
|
tid: z.ZodString;
|
|
52
52
|
}>, "strip", z.ZodTypeAny, {
|
|
53
|
-
status: import("
|
|
53
|
+
status: import("..").ENGAGEMENT_CONVERSATION_STATUS;
|
|
54
54
|
id: string;
|
|
55
55
|
tid: string;
|
|
56
56
|
dialogueIds: string[];
|
|
@@ -58,7 +58,7 @@ export declare const _PlatformEngagementConversationDto: z.ZodObject<z.objectUti
|
|
|
58
58
|
updatedAt?: string | undefined;
|
|
59
59
|
deletedAt?: string | null | undefined;
|
|
60
60
|
}, {
|
|
61
|
-
status: import("
|
|
61
|
+
status: import("..").ENGAGEMENT_CONVERSATION_STATUS;
|
|
62
62
|
id: string;
|
|
63
63
|
tid: string;
|
|
64
64
|
dialogueIds: string[];
|
package/package.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {z} from 'zod';
|
|
2
|
+
import {UPSERT_DTO_MASK, _BaseDto} from './base.dto';
|
|
3
|
+
import {EngagementChannelKind, ENGAGEMENT_DIALOGUE_SPEAKER} from './enums';
|
|
4
|
+
|
|
5
|
+
export const _ContextDto = _BaseDto.extend({
|
|
6
|
+
conversationId: z.string(),
|
|
7
|
+
speaker: z.nativeEnum(ENGAGEMENT_DIALOGUE_SPEAKER),
|
|
8
|
+
dialogueContext: z.string(),
|
|
9
|
+
extId: z.string().nullish(),
|
|
10
|
+
notificationId: z.string().nullish(),
|
|
11
|
+
fid: z.string().nullish(),
|
|
12
|
+
threadId: z.string().nullish(),
|
|
13
|
+
channelId: z.string().optional(),
|
|
14
|
+
teamId: z.string().optional(),
|
|
15
|
+
engagementChannel: z.nativeEnum(EngagementChannelKind),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export const _ContextUpsertDto = _ContextDto.partial(UPSERT_DTO_MASK).extend({
|
|
19
|
+
engagementChannel: z.nativeEnum(EngagementChannelKind),
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export type ContextDto = z.infer<typeof _ContextDto>;
|
|
23
|
+
|
|
24
|
+
export type ContextUpsertDto = z.infer<typeof _ContextUpsertDto>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {z} from 'zod';
|
|
2
|
+
import {UPSERT_DTO_MASK, _BaseDto} from './base.dto';
|
|
3
|
+
import {EngagementChannelKind} from './enums';
|
|
4
|
+
import {ENGAGEMENT_DIALOGUE_SPEAKER} from './enums/engagementDialogueSpeaker';
|
|
5
|
+
|
|
6
|
+
export const _DialogueDto = _BaseDto.extend({
|
|
7
|
+
conversationId: z.string(),
|
|
8
|
+
speaker: z.nativeEnum(ENGAGEMENT_DIALOGUE_SPEAKER),
|
|
9
|
+
dialogueContext: z.string(),
|
|
10
|
+
timestamp: z.string(),
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export const _ConversationDto = _BaseDto.extend({
|
|
14
|
+
dialogueIds: z.string().array(),
|
|
15
|
+
engagementChannel: z.nativeEnum(EngagementChannelKind),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export const _DialogueUpsertDto = _DialogueDto.partial(UPSERT_DTO_MASK);
|
|
19
|
+
|
|
20
|
+
export const _ConversationUpsertDto = _ConversationDto.partial(UPSERT_DTO_MASK).extend({
|
|
21
|
+
dialogueIds: z.string().array().optional(),
|
|
22
|
+
engagementChannel: z.nativeEnum(EngagementChannelKind),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export const _ConversationContextDto = _BaseDto.extend({
|
|
26
|
+
conversationId: z.string(),
|
|
27
|
+
context: z.string(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export const _ConversationContextUpsertDto = _ConversationContextDto.partial(UPSERT_DTO_MASK);
|
|
31
|
+
|
|
32
|
+
export type ConversationContextDto = z.infer<typeof _ConversationContextDto>;
|
|
33
|
+
|
|
34
|
+
export type ConversationDto = z.infer<typeof _ConversationDto>;
|
|
35
|
+
|
|
36
|
+
export type ConversationUpsertDto = z.infer<typeof _ConversationUpsertDto>;
|
|
37
|
+
|
|
38
|
+
export type DialogueDto = z.infer<typeof _DialogueDto>;
|
|
39
|
+
|
|
40
|
+
export type DialogueUpsertDto = z.infer<typeof _DialogueUpsertDto>;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import {z} from 'zod';
|
|
2
2
|
import {UPSERT_DTO_MASK, _BaseDto} from './base.dto';
|
|
3
|
-
import {EngagementChannelKind} from './enums';
|
|
4
|
-
|
|
5
|
-
export enum ENGAGEMENT_DIALOGUE_SPEAKER {
|
|
6
|
-
USER = 'USER',
|
|
7
|
-
BOT = 'BOT',
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export enum ENGAGEMENT_CONVERSATION_STATUS {
|
|
11
|
-
READY = 'READY',
|
|
12
|
-
PROCESSING = 'PROCESSING',
|
|
13
|
-
}
|
|
3
|
+
import {ENGAGEMENT_CONVERSATION_STATUS, ENGAGEMENT_DIALOGUE_SPEAKER, EngagementChannelKind} from './enums';
|
|
14
4
|
|
|
15
5
|
export const _EngagementDialogueDto = _BaseDto.extend({
|
|
16
6
|
conversationId: z.string(),
|
package/src/dto/enums/index.ts
CHANGED
package/src/dto/index.ts
CHANGED
|
@@ -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>;
|