@ampsec/platform-client 81.6.1 → 81.6.2
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 +74 -23
- package/build/src/dto/contexts.dto.js +13 -7
- package/build/src/dto/contexts.dto.js.map +1 -1
- package/build/src/dto/conversations.dto.d.ts +0 -8
- package/build/src/dto/conversations.dto.js +0 -3
- package/build/src/dto/conversations.dto.js.map +1 -1
- package/build/src/dto/platform/platform.contexts.dto.d.ts +73 -21
- package/build/src/dto/platform/platform.conversations.dto.d.ts +0 -7
- package/package.json +1 -1
- package/src/dto/contexts.dto.ts +13 -8
- package/src/dto/conversations.dto.ts +0 -3
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { EngagementChannelKind, ENGAGEMENT_DIALOGUE_SPEAKER } from './enums';
|
|
3
2
|
export declare const _ContextDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
4
3
|
id: z.ZodString;
|
|
5
4
|
createdAt: z.ZodString;
|
|
@@ -7,87 +6,139 @@ export declare const _ContextDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7
6
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
8
7
|
}, {
|
|
9
8
|
conversationId: z.ZodString;
|
|
10
|
-
speaker: z.ZodNativeEnum<typeof ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
11
9
|
extId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
10
|
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
|
|
11
|
+
findingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
12
|
threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
13
|
channelId: z.ZodOptional<z.ZodString>;
|
|
16
14
|
teamId: z.ZodOptional<z.ZodString>;
|
|
17
|
-
|
|
15
|
+
externalQAChannelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
externalQAThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
parentThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
getInstructionsEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
20
|
+
markCompleteEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
scheduleResolutionSignal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
scheduleResolutionWorkflowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
scheduleResolutionExpiry: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
scheduleResolutionSubmitted: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
engagementChannel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
26
|
}>, "strip", z.ZodTypeAny, {
|
|
19
27
|
id: string;
|
|
20
28
|
createdAt: string;
|
|
21
29
|
updatedAt: string;
|
|
22
30
|
deletedAt: string | null;
|
|
23
31
|
conversationId: string;
|
|
24
|
-
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
25
|
-
engagementChannel: EngagementChannelKind;
|
|
26
32
|
extId?: string | null | undefined;
|
|
27
|
-
fid?: string | null | undefined;
|
|
28
33
|
channelId?: string | undefined;
|
|
34
|
+
tone?: string | null | undefined;
|
|
35
|
+
engagementChannel?: string | null | undefined;
|
|
29
36
|
teamId?: string | undefined;
|
|
30
37
|
notificationId?: string | null | undefined;
|
|
38
|
+
findingId?: string | null | undefined;
|
|
31
39
|
threadId?: string | null | undefined;
|
|
40
|
+
externalQAChannelId?: string | null | undefined;
|
|
41
|
+
externalQAThreadId?: string | null | undefined;
|
|
42
|
+
parentThreadId?: string | null | undefined;
|
|
43
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
44
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
45
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
46
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
47
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
48
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
32
49
|
}, {
|
|
33
50
|
id: string;
|
|
34
51
|
createdAt: string;
|
|
35
52
|
updatedAt: string;
|
|
36
53
|
deletedAt: string | null;
|
|
37
54
|
conversationId: string;
|
|
38
|
-
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
39
|
-
engagementChannel: EngagementChannelKind;
|
|
40
55
|
extId?: string | null | undefined;
|
|
41
|
-
fid?: string | null | undefined;
|
|
42
56
|
channelId?: string | undefined;
|
|
57
|
+
tone?: string | null | undefined;
|
|
58
|
+
engagementChannel?: string | null | undefined;
|
|
43
59
|
teamId?: string | undefined;
|
|
44
60
|
notificationId?: string | null | undefined;
|
|
61
|
+
findingId?: string | null | undefined;
|
|
45
62
|
threadId?: string | null | undefined;
|
|
63
|
+
externalQAChannelId?: string | null | undefined;
|
|
64
|
+
externalQAThreadId?: string | null | undefined;
|
|
65
|
+
parentThreadId?: string | null | undefined;
|
|
66
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
67
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
68
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
69
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
70
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
71
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
46
72
|
}>;
|
|
47
|
-
export declare const _ContextUpsertDto: z.ZodObject<
|
|
73
|
+
export declare const _ContextUpsertDto: z.ZodObject<{
|
|
48
74
|
id: z.ZodOptional<z.ZodString>;
|
|
49
75
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
50
76
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
51
77
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
78
|
extId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
-
fid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
79
|
channelId: z.ZodOptional<z.ZodString>;
|
|
80
|
+
tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
81
|
conversationId: z.ZodString;
|
|
56
|
-
|
|
57
|
-
engagementChannel: z.ZodNativeEnum<typeof EngagementChannelKind>;
|
|
82
|
+
engagementChannel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
83
|
teamId: z.ZodOptional<z.ZodString>;
|
|
59
84
|
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
findingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
86
|
threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
87
|
+
externalQAChannelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
externalQAThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
parentThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
getInstructionsEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
91
|
+
markCompleteEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
92
|
+
scheduleResolutionSignal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
scheduleResolutionWorkflowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
scheduleResolutionExpiry: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
95
|
+
scheduleResolutionSubmitted: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
97
|
conversationId: string;
|
|
65
|
-
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
66
|
-
engagementChannel: EngagementChannelKind;
|
|
67
98
|
id?: string | undefined;
|
|
68
99
|
createdAt?: string | undefined;
|
|
69
100
|
updatedAt?: string | undefined;
|
|
70
101
|
deletedAt?: string | null | undefined;
|
|
71
102
|
extId?: string | null | undefined;
|
|
72
|
-
fid?: string | null | undefined;
|
|
73
103
|
channelId?: string | undefined;
|
|
104
|
+
tone?: string | null | undefined;
|
|
105
|
+
engagementChannel?: string | null | undefined;
|
|
74
106
|
teamId?: string | undefined;
|
|
75
107
|
notificationId?: string | null | undefined;
|
|
108
|
+
findingId?: string | null | undefined;
|
|
76
109
|
threadId?: string | null | undefined;
|
|
110
|
+
externalQAChannelId?: string | null | undefined;
|
|
111
|
+
externalQAThreadId?: string | null | undefined;
|
|
112
|
+
parentThreadId?: string | null | undefined;
|
|
113
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
114
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
115
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
116
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
117
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
118
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
77
119
|
}, {
|
|
78
120
|
conversationId: string;
|
|
79
|
-
speaker: ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
80
|
-
engagementChannel: EngagementChannelKind;
|
|
81
121
|
id?: string | undefined;
|
|
82
122
|
createdAt?: string | undefined;
|
|
83
123
|
updatedAt?: string | undefined;
|
|
84
124
|
deletedAt?: string | null | undefined;
|
|
85
125
|
extId?: string | null | undefined;
|
|
86
|
-
fid?: string | null | undefined;
|
|
87
126
|
channelId?: string | undefined;
|
|
127
|
+
tone?: string | null | undefined;
|
|
128
|
+
engagementChannel?: string | null | undefined;
|
|
88
129
|
teamId?: string | undefined;
|
|
89
130
|
notificationId?: string | null | undefined;
|
|
131
|
+
findingId?: string | null | undefined;
|
|
90
132
|
threadId?: string | null | undefined;
|
|
133
|
+
externalQAChannelId?: string | null | undefined;
|
|
134
|
+
externalQAThreadId?: string | null | undefined;
|
|
135
|
+
parentThreadId?: string | null | undefined;
|
|
136
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
137
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
138
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
139
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
140
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
141
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
91
142
|
}>;
|
|
92
143
|
export type ContextDto = z.infer<typeof _ContextDto>;
|
|
93
144
|
export type ContextUpsertDto = z.infer<typeof _ContextUpsertDto>;
|
|
@@ -3,19 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports._ContextUpsertDto = exports._ContextDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const base_dto_1 = require("./base.dto");
|
|
6
|
-
const enums_1 = require("./enums");
|
|
7
6
|
exports._ContextDto = base_dto_1._BaseDto.extend({
|
|
8
7
|
conversationId: zod_1.z.string(),
|
|
9
|
-
speaker: zod_1.z.nativeEnum(enums_1.ENGAGEMENT_DIALOGUE_SPEAKER),
|
|
10
8
|
extId: zod_1.z.string().nullish(),
|
|
11
9
|
notificationId: zod_1.z.string().nullish(),
|
|
12
|
-
|
|
10
|
+
findingId: zod_1.z.string().nullish(),
|
|
13
11
|
threadId: zod_1.z.string().nullish(),
|
|
14
12
|
channelId: zod_1.z.string().optional(),
|
|
15
13
|
teamId: zod_1.z.string().optional(),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
externalQAChannelId: zod_1.z.string().nullish(),
|
|
15
|
+
externalQAThreadId: zod_1.z.string().nullish(),
|
|
16
|
+
tone: zod_1.z.string().nullish(),
|
|
17
|
+
parentThreadId: zod_1.z.string().nullish(),
|
|
18
|
+
getInstructionsEnabled: zod_1.z.boolean().nullish(),
|
|
19
|
+
markCompleteEnabled: zod_1.z.boolean().nullish(),
|
|
20
|
+
scheduleResolutionSignal: zod_1.z.string().nullish(),
|
|
21
|
+
scheduleResolutionWorkflowId: zod_1.z.string().nullish(),
|
|
22
|
+
scheduleResolutionExpiry: zod_1.z.number().nullish(),
|
|
23
|
+
scheduleResolutionSubmitted: zod_1.z.number().nullish(),
|
|
24
|
+
engagementChannel: zod_1.z.string().nullish(),
|
|
20
25
|
});
|
|
26
|
+
exports._ContextUpsertDto = exports._ContextDto.partial(base_dto_1.UPSERT_DTO_MASK);
|
|
21
27
|
//# sourceMappingURL=contexts.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contexts.dto.js","sourceRoot":"","sources":["../../../src/dto/contexts.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;
|
|
1
|
+
{"version":3,"file":"contexts.dto.js","sourceRoot":"","sources":["../../../src/dto/contexts.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AAExC,QAAA,WAAW,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACzC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC3B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACpC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC/B,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,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACzC,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACxC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC1B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACpC,sBAAsB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE;IAC7C,mBAAmB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE;IAC1C,wBAAwB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC9C,4BAA4B,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAClD,wBAAwB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC9C,2BAA2B,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACjD,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;CACxC,CAAC,CAAC;AAEU,QAAA,iBAAiB,GAAG,mBAAW,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { EngagementChannelKind } from './enums';
|
|
3
2
|
import { ENGAGEMENT_DIALOGUE_SPEAKER } from './enums/engagementDialogueSpeaker';
|
|
4
3
|
export declare const _DialogueDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
5
4
|
id: z.ZodString;
|
|
@@ -37,21 +36,18 @@ export declare const _ConversationDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
37
36
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
38
37
|
}, {
|
|
39
38
|
dialogueIds: z.ZodArray<z.ZodString, "many">;
|
|
40
|
-
engagementChannel: z.ZodNativeEnum<typeof EngagementChannelKind>;
|
|
41
39
|
}>, "strip", z.ZodTypeAny, {
|
|
42
40
|
id: string;
|
|
43
41
|
createdAt: string;
|
|
44
42
|
updatedAt: string;
|
|
45
43
|
deletedAt: string | null;
|
|
46
44
|
dialogueIds: string[];
|
|
47
|
-
engagementChannel: EngagementChannelKind;
|
|
48
45
|
}, {
|
|
49
46
|
id: string;
|
|
50
47
|
createdAt: string;
|
|
51
48
|
updatedAt: string;
|
|
52
49
|
deletedAt: string | null;
|
|
53
50
|
dialogueIds: string[];
|
|
54
|
-
engagementChannel: EngagementChannelKind;
|
|
55
51
|
}>;
|
|
56
52
|
export declare const _DialogueUpsertDto: z.ZodObject<{
|
|
57
53
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -87,19 +83,15 @@ export declare const _ConversationUpsertDto: z.ZodObject<z.objectUtil.extendShap
|
|
|
87
83
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
88
84
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
85
|
dialogueIds: z.ZodArray<z.ZodString, "many">;
|
|
90
|
-
engagementChannel: z.ZodNativeEnum<typeof EngagementChannelKind>;
|
|
91
86
|
}, {
|
|
92
87
|
dialogueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
93
|
-
engagementChannel: z.ZodNativeEnum<typeof EngagementChannelKind>;
|
|
94
88
|
}>, "strip", z.ZodTypeAny, {
|
|
95
|
-
engagementChannel: EngagementChannelKind;
|
|
96
89
|
id?: string | undefined;
|
|
97
90
|
createdAt?: string | undefined;
|
|
98
91
|
updatedAt?: string | undefined;
|
|
99
92
|
deletedAt?: string | null | undefined;
|
|
100
93
|
dialogueIds?: string[] | undefined;
|
|
101
94
|
}, {
|
|
102
|
-
engagementChannel: EngagementChannelKind;
|
|
103
95
|
id?: string | undefined;
|
|
104
96
|
createdAt?: string | undefined;
|
|
105
97
|
updatedAt?: string | undefined;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports._ConversationContextUpsertDto = exports._ConversationContextDto = exports._ConversationUpsertDto = exports._DialogueUpsertDto = exports._ConversationDto = exports._DialogueDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const base_dto_1 = require("./base.dto");
|
|
6
|
-
const enums_1 = require("./enums");
|
|
7
6
|
const engagementDialogueSpeaker_1 = require("./enums/engagementDialogueSpeaker");
|
|
8
7
|
exports._DialogueDto = base_dto_1._BaseDto.extend({
|
|
9
8
|
conversationId: zod_1.z.string(),
|
|
@@ -13,12 +12,10 @@ exports._DialogueDto = base_dto_1._BaseDto.extend({
|
|
|
13
12
|
});
|
|
14
13
|
exports._ConversationDto = base_dto_1._BaseDto.extend({
|
|
15
14
|
dialogueIds: zod_1.z.string().array(),
|
|
16
|
-
engagementChannel: zod_1.z.nativeEnum(enums_1.EngagementChannelKind),
|
|
17
15
|
});
|
|
18
16
|
exports._DialogueUpsertDto = exports._DialogueDto.partial(base_dto_1.UPSERT_DTO_MASK);
|
|
19
17
|
exports._ConversationUpsertDto = exports._ConversationDto.partial(base_dto_1.UPSERT_DTO_MASK).extend({
|
|
20
18
|
dialogueIds: zod_1.z.string().array().optional(),
|
|
21
|
-
engagementChannel: zod_1.z.nativeEnum(enums_1.EngagementChannelKind),
|
|
22
19
|
});
|
|
23
20
|
exports._ConversationContextDto = base_dto_1._BaseDto.extend({
|
|
24
21
|
conversationId: zod_1.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.dto.js","sourceRoot":"","sources":["../../../src/dto/conversations.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"conversations.dto.js","sourceRoot":"","sources":["../../../src/dto/conversations.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,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;CAChC,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;CAC3C,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,52 +1,77 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const _PlatformContextUpsertDto: z.ZodObject<z.objectUtil.extendShape<
|
|
2
|
+
export declare const _PlatformContextUpsertDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
3
|
id: z.ZodOptional<z.ZodString>;
|
|
4
4
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
5
5
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
6
6
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
extId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
fid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
8
|
channelId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
conversationId: z.ZodString;
|
|
11
|
-
|
|
12
|
-
engagementChannel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
|
|
11
|
+
engagementChannel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
12
|
teamId: z.ZodOptional<z.ZodString>;
|
|
14
13
|
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
findingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
externalQAChannelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
externalQAThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
parentThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
getInstructionsEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
20
|
+
markCompleteEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
scheduleResolutionSignal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
scheduleResolutionWorkflowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
scheduleResolutionExpiry: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
scheduleResolutionSubmitted: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
25
|
}, {
|
|
17
|
-
engagementChannel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
|
|
18
|
-
}>, {
|
|
19
26
|
tid: z.ZodString;
|
|
20
27
|
}>, "strip", z.ZodTypeAny, {
|
|
21
28
|
tid: string;
|
|
22
29
|
conversationId: string;
|
|
23
|
-
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
24
|
-
engagementChannel: import("..").EngagementChannelKind;
|
|
25
30
|
id?: string | undefined;
|
|
26
31
|
createdAt?: string | undefined;
|
|
27
32
|
updatedAt?: string | undefined;
|
|
28
33
|
deletedAt?: string | null | undefined;
|
|
29
34
|
extId?: string | null | undefined;
|
|
30
|
-
fid?: string | null | undefined;
|
|
31
35
|
channelId?: string | undefined;
|
|
36
|
+
tone?: string | null | undefined;
|
|
37
|
+
engagementChannel?: string | null | undefined;
|
|
32
38
|
teamId?: string | undefined;
|
|
33
39
|
notificationId?: string | null | undefined;
|
|
40
|
+
findingId?: string | null | undefined;
|
|
34
41
|
threadId?: string | null | undefined;
|
|
42
|
+
externalQAChannelId?: string | null | undefined;
|
|
43
|
+
externalQAThreadId?: string | null | undefined;
|
|
44
|
+
parentThreadId?: string | null | undefined;
|
|
45
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
46
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
47
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
48
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
49
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
50
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
35
51
|
}, {
|
|
36
52
|
tid: string;
|
|
37
53
|
conversationId: string;
|
|
38
|
-
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
39
|
-
engagementChannel: import("..").EngagementChannelKind;
|
|
40
54
|
id?: string | undefined;
|
|
41
55
|
createdAt?: string | undefined;
|
|
42
56
|
updatedAt?: string | undefined;
|
|
43
57
|
deletedAt?: string | null | undefined;
|
|
44
58
|
extId?: string | null | undefined;
|
|
45
|
-
fid?: string | null | undefined;
|
|
46
59
|
channelId?: string | undefined;
|
|
60
|
+
tone?: string | null | undefined;
|
|
61
|
+
engagementChannel?: string | null | undefined;
|
|
47
62
|
teamId?: string | undefined;
|
|
48
63
|
notificationId?: string | null | undefined;
|
|
64
|
+
findingId?: string | null | undefined;
|
|
49
65
|
threadId?: string | null | undefined;
|
|
66
|
+
externalQAChannelId?: string | null | undefined;
|
|
67
|
+
externalQAThreadId?: string | null | undefined;
|
|
68
|
+
parentThreadId?: string | null | undefined;
|
|
69
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
70
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
71
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
72
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
73
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
74
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
50
75
|
}>;
|
|
51
76
|
export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
52
77
|
id: z.ZodString;
|
|
@@ -55,14 +80,23 @@ export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
55
80
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
56
81
|
}, {
|
|
57
82
|
conversationId: z.ZodString;
|
|
58
|
-
speaker: z.ZodNativeEnum<typeof import("..").ENGAGEMENT_DIALOGUE_SPEAKER>;
|
|
59
83
|
extId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
84
|
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
-
|
|
85
|
+
findingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
86
|
threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
87
|
channelId: z.ZodOptional<z.ZodString>;
|
|
64
88
|
teamId: z.ZodOptional<z.ZodString>;
|
|
65
|
-
|
|
89
|
+
externalQAChannelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
externalQAThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
parentThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
getInstructionsEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
94
|
+
markCompleteEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
95
|
+
scheduleResolutionSignal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
scheduleResolutionWorkflowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
scheduleResolutionExpiry: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
98
|
+
scheduleResolutionSubmitted: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
99
|
+
engagementChannel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
100
|
}>, {
|
|
67
101
|
tid: z.ZodString;
|
|
68
102
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -72,14 +106,23 @@ export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
72
106
|
updatedAt: string;
|
|
73
107
|
deletedAt: string | null;
|
|
74
108
|
conversationId: string;
|
|
75
|
-
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
76
|
-
engagementChannel: import("..").EngagementChannelKind;
|
|
77
109
|
extId?: string | null | undefined;
|
|
78
|
-
fid?: string | null | undefined;
|
|
79
110
|
channelId?: string | undefined;
|
|
111
|
+
tone?: string | null | undefined;
|
|
112
|
+
engagementChannel?: string | null | undefined;
|
|
80
113
|
teamId?: string | undefined;
|
|
81
114
|
notificationId?: string | null | undefined;
|
|
115
|
+
findingId?: string | null | undefined;
|
|
82
116
|
threadId?: string | null | undefined;
|
|
117
|
+
externalQAChannelId?: string | null | undefined;
|
|
118
|
+
externalQAThreadId?: string | null | undefined;
|
|
119
|
+
parentThreadId?: string | null | undefined;
|
|
120
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
121
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
122
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
123
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
124
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
125
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
83
126
|
}, {
|
|
84
127
|
id: string;
|
|
85
128
|
tid: string;
|
|
@@ -87,14 +130,23 @@ export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
87
130
|
updatedAt: string;
|
|
88
131
|
deletedAt: string | null;
|
|
89
132
|
conversationId: string;
|
|
90
|
-
speaker: import("..").ENGAGEMENT_DIALOGUE_SPEAKER;
|
|
91
|
-
engagementChannel: import("..").EngagementChannelKind;
|
|
92
133
|
extId?: string | null | undefined;
|
|
93
|
-
fid?: string | null | undefined;
|
|
94
134
|
channelId?: string | undefined;
|
|
135
|
+
tone?: string | null | undefined;
|
|
136
|
+
engagementChannel?: string | null | undefined;
|
|
95
137
|
teamId?: string | undefined;
|
|
96
138
|
notificationId?: string | null | undefined;
|
|
139
|
+
findingId?: string | null | undefined;
|
|
97
140
|
threadId?: string | null | undefined;
|
|
141
|
+
externalQAChannelId?: string | null | undefined;
|
|
142
|
+
externalQAThreadId?: string | null | undefined;
|
|
143
|
+
parentThreadId?: string | null | undefined;
|
|
144
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
145
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
146
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
147
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
148
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
149
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
98
150
|
}>;
|
|
99
151
|
export type PlatformContextDto = z.infer<typeof _PlatformContextDto>;
|
|
100
152
|
export type PlatformContextUpsertDto = z.infer<typeof _PlatformContextUpsertDto>;
|
|
@@ -5,15 +5,12 @@ export declare const _PlatformConversationUpsertDto: z.ZodObject<z.objectUtil.ex
|
|
|
5
5
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
6
6
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
dialogueIds: z.ZodArray<z.ZodString, "many">;
|
|
8
|
-
engagementChannel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
|
|
9
8
|
}, {
|
|
10
9
|
dialogueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11
|
-
engagementChannel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
|
|
12
10
|
}>, {
|
|
13
11
|
tid: z.ZodString;
|
|
14
12
|
}>, "strip", z.ZodTypeAny, {
|
|
15
13
|
tid: string;
|
|
16
|
-
engagementChannel: import("..").EngagementChannelKind;
|
|
17
14
|
id?: string | undefined;
|
|
18
15
|
createdAt?: string | undefined;
|
|
19
16
|
updatedAt?: string | undefined;
|
|
@@ -21,7 +18,6 @@ export declare const _PlatformConversationUpsertDto: z.ZodObject<z.objectUtil.ex
|
|
|
21
18
|
dialogueIds?: string[] | undefined;
|
|
22
19
|
}, {
|
|
23
20
|
tid: string;
|
|
24
|
-
engagementChannel: import("..").EngagementChannelKind;
|
|
25
21
|
id?: string | undefined;
|
|
26
22
|
createdAt?: string | undefined;
|
|
27
23
|
updatedAt?: string | undefined;
|
|
@@ -35,7 +31,6 @@ export declare const _PlatformConversationDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
35
31
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
36
32
|
}, {
|
|
37
33
|
dialogueIds: z.ZodArray<z.ZodString, "many">;
|
|
38
|
-
engagementChannel: z.ZodNativeEnum<typeof import("..").EngagementChannelKind>;
|
|
39
34
|
}>, {
|
|
40
35
|
tid: z.ZodString;
|
|
41
36
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -45,7 +40,6 @@ export declare const _PlatformConversationDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
45
40
|
updatedAt: string;
|
|
46
41
|
deletedAt: string | null;
|
|
47
42
|
dialogueIds: string[];
|
|
48
|
-
engagementChannel: import("..").EngagementChannelKind;
|
|
49
43
|
}, {
|
|
50
44
|
id: string;
|
|
51
45
|
tid: string;
|
|
@@ -53,7 +47,6 @@ export declare const _PlatformConversationDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
53
47
|
updatedAt: string;
|
|
54
48
|
deletedAt: string | null;
|
|
55
49
|
dialogueIds: string[];
|
|
56
|
-
engagementChannel: import("..").EngagementChannelKind;
|
|
57
50
|
}>;
|
|
58
51
|
export type PlatformConversationDto = z.infer<typeof _PlatformConversationDto>;
|
|
59
52
|
export type PlatformConversationUpsertDto = z.infer<typeof _PlatformConversationUpsertDto>;
|
package/package.json
CHANGED
package/src/dto/contexts.dto.ts
CHANGED
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import {z} from 'zod';
|
|
2
2
|
import {UPSERT_DTO_MASK, _BaseDto} from './base.dto';
|
|
3
|
-
import {EngagementChannelKind, ENGAGEMENT_DIALOGUE_SPEAKER} from './enums';
|
|
4
3
|
|
|
5
4
|
export const _ContextDto = _BaseDto.extend({
|
|
6
5
|
conversationId: z.string(),
|
|
7
|
-
speaker: z.nativeEnum(ENGAGEMENT_DIALOGUE_SPEAKER),
|
|
8
6
|
extId: z.string().nullish(),
|
|
9
7
|
notificationId: z.string().nullish(),
|
|
10
|
-
|
|
8
|
+
findingId: z.string().nullish(),
|
|
11
9
|
threadId: z.string().nullish(),
|
|
12
10
|
channelId: z.string().optional(),
|
|
13
11
|
teamId: z.string().optional(),
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
externalQAChannelId: z.string().nullish(),
|
|
13
|
+
externalQAThreadId: z.string().nullish(),
|
|
14
|
+
tone: z.string().nullish(),
|
|
15
|
+
parentThreadId: z.string().nullish(),
|
|
16
|
+
getInstructionsEnabled: z.boolean().nullish(),
|
|
17
|
+
markCompleteEnabled: z.boolean().nullish(),
|
|
18
|
+
scheduleResolutionSignal: z.string().nullish(),
|
|
19
|
+
scheduleResolutionWorkflowId: z.string().nullish(),
|
|
20
|
+
scheduleResolutionExpiry: z.number().nullish(),
|
|
21
|
+
scheduleResolutionSubmitted: z.number().nullish(),
|
|
22
|
+
engagementChannel: z.string().nullish(),
|
|
19
23
|
});
|
|
20
24
|
|
|
25
|
+
export const _ContextUpsertDto = _ContextDto.partial(UPSERT_DTO_MASK);
|
|
21
26
|
export type ContextDto = z.infer<typeof _ContextDto>;
|
|
22
27
|
|
|
23
28
|
export type ContextUpsertDto = z.infer<typeof _ContextUpsertDto>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {z} from 'zod';
|
|
2
2
|
import {UPSERT_DTO_MASK, _BaseDto} from './base.dto';
|
|
3
|
-
import {EngagementChannelKind} from './enums';
|
|
4
3
|
import {ENGAGEMENT_DIALOGUE_SPEAKER} from './enums/engagementDialogueSpeaker';
|
|
5
4
|
|
|
6
5
|
export const _DialogueDto = _BaseDto.extend({
|
|
@@ -12,14 +11,12 @@ export const _DialogueDto = _BaseDto.extend({
|
|
|
12
11
|
|
|
13
12
|
export const _ConversationDto = _BaseDto.extend({
|
|
14
13
|
dialogueIds: z.string().array(),
|
|
15
|
-
engagementChannel: z.nativeEnum(EngagementChannelKind),
|
|
16
14
|
});
|
|
17
15
|
|
|
18
16
|
export const _DialogueUpsertDto = _DialogueDto.partial(UPSERT_DTO_MASK);
|
|
19
17
|
|
|
20
18
|
export const _ConversationUpsertDto = _ConversationDto.partial(UPSERT_DTO_MASK).extend({
|
|
21
19
|
dialogueIds: z.string().array().optional(),
|
|
22
|
-
engagementChannel: z.nativeEnum(EngagementChannelKind),
|
|
23
20
|
});
|
|
24
21
|
|
|
25
22
|
export const _ConversationContextDto = _BaseDto.extend({
|