@ampsec/platform-client 81.6.3 → 81.6.4
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.
|
@@ -1,11 +1,36 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const _ContextMeta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3
|
+
tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
getInstructionsEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5
|
+
markCompleteEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6
|
+
scheduleResolutionSignal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
scheduleResolutionWorkflowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
scheduleResolutionExpiry: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
|
+
scheduleResolutionSubmitted: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
tone?: string | null | undefined;
|
|
12
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
13
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
14
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
15
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
16
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
17
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
tone?: string | null | undefined;
|
|
20
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
21
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
22
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
23
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
24
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
25
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
26
|
+
}>>>;
|
|
2
27
|
export declare const _ContextDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
28
|
id: z.ZodString;
|
|
4
29
|
createdAt: z.ZodString;
|
|
5
30
|
updatedAt: z.ZodString;
|
|
6
31
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
7
32
|
}, {
|
|
8
|
-
conversationId: z.ZodString
|
|
33
|
+
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
34
|
extId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
35
|
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
36
|
findingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -16,22 +41,50 @@ export declare const _ContextDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16
41
|
externalQAThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
42
|
tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
43
|
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
44
|
engagementChannel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
|
+
tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
getInstructionsEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
48
|
+
markCompleteEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
49
|
+
scheduleResolutionSignal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
scheduleResolutionWorkflowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
scheduleResolutionExpiry: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
|
+
scheduleResolutionSubmitted: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
tone?: string | null | undefined;
|
|
55
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
56
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
57
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
58
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
59
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
60
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
tone?: string | null | undefined;
|
|
63
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
64
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
65
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
66
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
67
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
68
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
69
|
+
}>>>;
|
|
26
70
|
}>, "strip", z.ZodTypeAny, {
|
|
27
71
|
id: string;
|
|
28
72
|
createdAt: string;
|
|
29
73
|
updatedAt: string;
|
|
30
74
|
deletedAt: string | null;
|
|
31
|
-
conversationId: string;
|
|
32
75
|
extId?: string | null | undefined;
|
|
76
|
+
meta?: {
|
|
77
|
+
tone?: string | null | undefined;
|
|
78
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
79
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
80
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
81
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
82
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
83
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
84
|
+
} | null | undefined;
|
|
33
85
|
channelId?: string | undefined;
|
|
34
86
|
tone?: string | null | undefined;
|
|
87
|
+
conversationId?: string | null | undefined;
|
|
35
88
|
engagementChannel?: string | null | undefined;
|
|
36
89
|
teamId?: string | undefined;
|
|
37
90
|
notificationId?: string | null | undefined;
|
|
@@ -40,21 +93,24 @@ export declare const _ContextDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
40
93
|
externalQAChannelId?: string | null | undefined;
|
|
41
94
|
externalQAThreadId?: string | null | undefined;
|
|
42
95
|
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;
|
|
49
96
|
}, {
|
|
50
97
|
id: string;
|
|
51
98
|
createdAt: string;
|
|
52
99
|
updatedAt: string;
|
|
53
100
|
deletedAt: string | null;
|
|
54
|
-
conversationId: string;
|
|
55
101
|
extId?: string | null | undefined;
|
|
102
|
+
meta?: {
|
|
103
|
+
tone?: string | null | undefined;
|
|
104
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
105
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
106
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
107
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
108
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
109
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
110
|
+
} | null | undefined;
|
|
56
111
|
channelId?: string | undefined;
|
|
57
112
|
tone?: string | null | undefined;
|
|
113
|
+
conversationId?: string | null | undefined;
|
|
58
114
|
engagementChannel?: string | null | undefined;
|
|
59
115
|
teamId?: string | undefined;
|
|
60
116
|
notificationId?: string | null | undefined;
|
|
@@ -63,22 +119,42 @@ export declare const _ContextDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
63
119
|
externalQAChannelId?: string | null | undefined;
|
|
64
120
|
externalQAThreadId?: string | null | undefined;
|
|
65
121
|
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;
|
|
72
122
|
}>;
|
|
123
|
+
export type ContextMeta = z.infer<typeof _ContextMeta>;
|
|
73
124
|
export declare const _ContextUpsertDto: z.ZodObject<{
|
|
74
125
|
id: z.ZodOptional<z.ZodString>;
|
|
75
126
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
76
127
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
77
128
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
129
|
extId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
131
|
+
tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
|
+
getInstructionsEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
133
|
+
markCompleteEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
134
|
+
scheduleResolutionSignal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
|
+
scheduleResolutionWorkflowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
136
|
+
scheduleResolutionExpiry: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
137
|
+
scheduleResolutionSubmitted: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
tone?: string | null | undefined;
|
|
140
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
141
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
142
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
143
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
144
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
145
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
tone?: string | null | undefined;
|
|
148
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
149
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
150
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
151
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
152
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
153
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
154
|
+
}>>>;
|
|
79
155
|
channelId: z.ZodOptional<z.ZodString>;
|
|
80
156
|
tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
-
conversationId: z.ZodString
|
|
157
|
+
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
158
|
engagementChannel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
159
|
teamId: z.ZodOptional<z.ZodString>;
|
|
84
160
|
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -87,21 +163,24 @@ export declare const _ContextUpsertDto: z.ZodObject<{
|
|
|
87
163
|
externalQAChannelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
164
|
externalQAThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
165
|
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
166
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
conversationId: string;
|
|
98
167
|
id?: string | undefined;
|
|
99
168
|
createdAt?: string | undefined;
|
|
100
169
|
updatedAt?: string | undefined;
|
|
101
170
|
deletedAt?: string | null | undefined;
|
|
102
171
|
extId?: string | null | undefined;
|
|
172
|
+
meta?: {
|
|
173
|
+
tone?: string | null | undefined;
|
|
174
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
175
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
176
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
177
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
178
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
179
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
180
|
+
} | null | undefined;
|
|
103
181
|
channelId?: string | undefined;
|
|
104
182
|
tone?: string | null | undefined;
|
|
183
|
+
conversationId?: string | null | undefined;
|
|
105
184
|
engagementChannel?: string | null | undefined;
|
|
106
185
|
teamId?: string | undefined;
|
|
107
186
|
notificationId?: string | null | undefined;
|
|
@@ -110,21 +189,24 @@ export declare const _ContextUpsertDto: z.ZodObject<{
|
|
|
110
189
|
externalQAChannelId?: string | null | undefined;
|
|
111
190
|
externalQAThreadId?: string | null | undefined;
|
|
112
191
|
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;
|
|
119
192
|
}, {
|
|
120
|
-
conversationId: string;
|
|
121
193
|
id?: string | undefined;
|
|
122
194
|
createdAt?: string | undefined;
|
|
123
195
|
updatedAt?: string | undefined;
|
|
124
196
|
deletedAt?: string | null | undefined;
|
|
125
197
|
extId?: string | null | undefined;
|
|
198
|
+
meta?: {
|
|
199
|
+
tone?: string | null | undefined;
|
|
200
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
201
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
202
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
203
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
204
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
205
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
206
|
+
} | null | undefined;
|
|
126
207
|
channelId?: string | undefined;
|
|
127
208
|
tone?: string | null | undefined;
|
|
209
|
+
conversationId?: string | null | undefined;
|
|
128
210
|
engagementChannel?: string | null | undefined;
|
|
129
211
|
teamId?: string | undefined;
|
|
130
212
|
notificationId?: string | null | undefined;
|
|
@@ -133,12 +215,6 @@ export declare const _ContextUpsertDto: z.ZodObject<{
|
|
|
133
215
|
externalQAChannelId?: string | null | undefined;
|
|
134
216
|
externalQAThreadId?: string | null | undefined;
|
|
135
217
|
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;
|
|
142
218
|
}>;
|
|
143
219
|
export type ContextDto = z.infer<typeof _ContextDto>;
|
|
144
220
|
export type ContextUpsertDto = z.infer<typeof _ContextUpsertDto>;
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._ContextUpsertDto = exports._ContextDto = void 0;
|
|
3
|
+
exports._ContextUpsertDto = exports._ContextDto = exports._ContextMeta = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const base_dto_1 = require("./base.dto");
|
|
6
|
+
exports._ContextMeta = zod_1.z
|
|
7
|
+
.object({
|
|
8
|
+
tone: zod_1.z.string().nullish(),
|
|
9
|
+
getInstructionsEnabled: zod_1.z.boolean().nullish(),
|
|
10
|
+
markCompleteEnabled: zod_1.z.boolean().nullish(),
|
|
11
|
+
scheduleResolutionSignal: zod_1.z.string().nullish(),
|
|
12
|
+
scheduleResolutionWorkflowId: zod_1.z.string().nullish(),
|
|
13
|
+
scheduleResolutionExpiry: zod_1.z.number().nullish(),
|
|
14
|
+
scheduleResolutionSubmitted: zod_1.z.number().nullish(),
|
|
15
|
+
})
|
|
16
|
+
.nullish();
|
|
6
17
|
exports._ContextDto = base_dto_1._BaseDto.extend({
|
|
7
|
-
conversationId: zod_1.z.string(),
|
|
18
|
+
conversationId: zod_1.z.string().nullish(),
|
|
8
19
|
extId: zod_1.z.string().nullish(),
|
|
9
20
|
notificationId: zod_1.z.string().nullish(),
|
|
10
21
|
findingId: zod_1.z.string().nullish(),
|
|
@@ -15,13 +26,8 @@ exports._ContextDto = base_dto_1._BaseDto.extend({
|
|
|
15
26
|
externalQAThreadId: zod_1.z.string().nullish(),
|
|
16
27
|
tone: zod_1.z.string().nullish(),
|
|
17
28
|
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
29
|
engagementChannel: zod_1.z.string().nullish(),
|
|
30
|
+
meta: exports._ContextMeta,
|
|
25
31
|
});
|
|
26
32
|
exports._ContextUpsertDto = exports._ContextDto.partial(base_dto_1.UPSERT_DTO_MASK);
|
|
27
33
|
//# 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;AAExC,QAAA,
|
|
1
|
+
{"version":3,"file":"contexts.dto.js","sourceRoot":"","sources":["../../../src/dto/contexts.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AAExC,QAAA,YAAY,GAAG,OAAC;KAC1B,MAAM,CAAC;IACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC1B,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;CAClD,CAAC;KACD,OAAO,EAAE,CAAC;AAEA,QAAA,WAAW,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACzC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACpC,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,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACvC,IAAI,EAAE,oBAAY;CACnB,CAAC,CAAC;AAIU,QAAA,iBAAiB,GAAG,mBAAW,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
|
|
@@ -5,9 +5,34 @@ export declare const _PlatformContextUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
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
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
|
+
tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
getInstructionsEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
11
|
+
markCompleteEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
+
scheduleResolutionSignal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
scheduleResolutionWorkflowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
scheduleResolutionExpiry: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
scheduleResolutionSubmitted: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
tone?: string | null | undefined;
|
|
18
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
19
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
20
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
21
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
22
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
23
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
tone?: string | null | undefined;
|
|
26
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
27
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
28
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
29
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
30
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
31
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
32
|
+
}>>>;
|
|
8
33
|
channelId: z.ZodOptional<z.ZodString>;
|
|
9
34
|
tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
conversationId: z.ZodString
|
|
35
|
+
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
36
|
engagementChannel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
37
|
teamId: z.ZodOptional<z.ZodString>;
|
|
13
38
|
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -16,24 +41,27 @@ export declare const _PlatformContextUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
16
41
|
externalQAChannelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
42
|
externalQAThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
43
|
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
44
|
}, {
|
|
26
45
|
tid: z.ZodString;
|
|
27
46
|
}>, "strip", z.ZodTypeAny, {
|
|
28
47
|
tid: string;
|
|
29
|
-
conversationId: string;
|
|
30
48
|
id?: string | undefined;
|
|
31
49
|
createdAt?: string | undefined;
|
|
32
50
|
updatedAt?: string | undefined;
|
|
33
51
|
deletedAt?: string | null | undefined;
|
|
34
52
|
extId?: string | null | undefined;
|
|
53
|
+
meta?: {
|
|
54
|
+
tone?: string | null | undefined;
|
|
55
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
56
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
57
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
58
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
59
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
60
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
61
|
+
} | null | undefined;
|
|
35
62
|
channelId?: string | undefined;
|
|
36
63
|
tone?: string | null | undefined;
|
|
64
|
+
conversationId?: string | null | undefined;
|
|
37
65
|
engagementChannel?: string | null | undefined;
|
|
38
66
|
teamId?: string | undefined;
|
|
39
67
|
notificationId?: string | null | undefined;
|
|
@@ -42,22 +70,25 @@ export declare const _PlatformContextUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
42
70
|
externalQAChannelId?: string | null | undefined;
|
|
43
71
|
externalQAThreadId?: string | null | undefined;
|
|
44
72
|
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;
|
|
51
73
|
}, {
|
|
52
74
|
tid: string;
|
|
53
|
-
conversationId: string;
|
|
54
75
|
id?: string | undefined;
|
|
55
76
|
createdAt?: string | undefined;
|
|
56
77
|
updatedAt?: string | undefined;
|
|
57
78
|
deletedAt?: string | null | undefined;
|
|
58
79
|
extId?: string | null | undefined;
|
|
80
|
+
meta?: {
|
|
81
|
+
tone?: string | null | undefined;
|
|
82
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
83
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
84
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
85
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
86
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
87
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
88
|
+
} | null | undefined;
|
|
59
89
|
channelId?: string | undefined;
|
|
60
90
|
tone?: string | null | undefined;
|
|
91
|
+
conversationId?: string | null | undefined;
|
|
61
92
|
engagementChannel?: string | null | undefined;
|
|
62
93
|
teamId?: string | undefined;
|
|
63
94
|
notificationId?: string | null | undefined;
|
|
@@ -66,12 +97,6 @@ export declare const _PlatformContextUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
66
97
|
externalQAChannelId?: string | null | undefined;
|
|
67
98
|
externalQAThreadId?: string | null | undefined;
|
|
68
99
|
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;
|
|
75
100
|
}>;
|
|
76
101
|
export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
77
102
|
id: z.ZodString;
|
|
@@ -79,7 +104,7 @@ export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
79
104
|
updatedAt: z.ZodString;
|
|
80
105
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
81
106
|
}, {
|
|
82
|
-
conversationId: z.ZodString
|
|
107
|
+
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
108
|
extId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
109
|
notificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
110
|
findingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -90,13 +115,32 @@ export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
90
115
|
externalQAThreadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
116
|
tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
117
|
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
118
|
engagementChannel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
120
|
+
tone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
getInstructionsEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
122
|
+
markCompleteEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
123
|
+
scheduleResolutionSignal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
scheduleResolutionWorkflowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
|
+
scheduleResolutionExpiry: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
126
|
+
scheduleResolutionSubmitted: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
tone?: string | null | undefined;
|
|
129
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
130
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
131
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
132
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
133
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
134
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
135
|
+
}, {
|
|
136
|
+
tone?: string | null | undefined;
|
|
137
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
138
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
139
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
140
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
141
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
142
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
143
|
+
}>>>;
|
|
100
144
|
}>, {
|
|
101
145
|
tid: z.ZodString;
|
|
102
146
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -105,10 +149,19 @@ export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
105
149
|
createdAt: string;
|
|
106
150
|
updatedAt: string;
|
|
107
151
|
deletedAt: string | null;
|
|
108
|
-
conversationId: string;
|
|
109
152
|
extId?: string | null | undefined;
|
|
153
|
+
meta?: {
|
|
154
|
+
tone?: string | null | undefined;
|
|
155
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
156
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
157
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
158
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
159
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
160
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
161
|
+
} | null | undefined;
|
|
110
162
|
channelId?: string | undefined;
|
|
111
163
|
tone?: string | null | undefined;
|
|
164
|
+
conversationId?: string | null | undefined;
|
|
112
165
|
engagementChannel?: string | null | undefined;
|
|
113
166
|
teamId?: string | undefined;
|
|
114
167
|
notificationId?: string | null | undefined;
|
|
@@ -117,22 +170,25 @@ export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
117
170
|
externalQAChannelId?: string | null | undefined;
|
|
118
171
|
externalQAThreadId?: string | null | undefined;
|
|
119
172
|
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;
|
|
126
173
|
}, {
|
|
127
174
|
id: string;
|
|
128
175
|
tid: string;
|
|
129
176
|
createdAt: string;
|
|
130
177
|
updatedAt: string;
|
|
131
178
|
deletedAt: string | null;
|
|
132
|
-
conversationId: string;
|
|
133
179
|
extId?: string | null | undefined;
|
|
180
|
+
meta?: {
|
|
181
|
+
tone?: string | null | undefined;
|
|
182
|
+
getInstructionsEnabled?: boolean | null | undefined;
|
|
183
|
+
markCompleteEnabled?: boolean | null | undefined;
|
|
184
|
+
scheduleResolutionSignal?: string | null | undefined;
|
|
185
|
+
scheduleResolutionWorkflowId?: string | null | undefined;
|
|
186
|
+
scheduleResolutionExpiry?: number | null | undefined;
|
|
187
|
+
scheduleResolutionSubmitted?: number | null | undefined;
|
|
188
|
+
} | null | undefined;
|
|
134
189
|
channelId?: string | undefined;
|
|
135
190
|
tone?: string | null | undefined;
|
|
191
|
+
conversationId?: string | null | undefined;
|
|
136
192
|
engagementChannel?: string | null | undefined;
|
|
137
193
|
teamId?: string | undefined;
|
|
138
194
|
notificationId?: string | null | undefined;
|
|
@@ -141,12 +197,6 @@ export declare const _PlatformContextDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
141
197
|
externalQAChannelId?: string | null | undefined;
|
|
142
198
|
externalQAThreadId?: string | null | undefined;
|
|
143
199
|
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;
|
|
150
200
|
}>;
|
|
151
201
|
export type PlatformContextDto = z.infer<typeof _PlatformContextDto>;
|
|
152
202
|
export type PlatformContextUpsertDto = z.infer<typeof _PlatformContextUpsertDto>;
|
package/package.json
CHANGED
package/src/dto/contexts.dto.ts
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import {z} from 'zod';
|
|
2
2
|
import {UPSERT_DTO_MASK, _BaseDto} from './base.dto';
|
|
3
3
|
|
|
4
|
+
export const _ContextMeta = z
|
|
5
|
+
.object({
|
|
6
|
+
tone: z.string().nullish(),
|
|
7
|
+
getInstructionsEnabled: z.boolean().nullish(),
|
|
8
|
+
markCompleteEnabled: z.boolean().nullish(),
|
|
9
|
+
scheduleResolutionSignal: z.string().nullish(),
|
|
10
|
+
scheduleResolutionWorkflowId: z.string().nullish(),
|
|
11
|
+
scheduleResolutionExpiry: z.number().nullish(),
|
|
12
|
+
scheduleResolutionSubmitted: z.number().nullish(),
|
|
13
|
+
})
|
|
14
|
+
.nullish();
|
|
15
|
+
|
|
4
16
|
export const _ContextDto = _BaseDto.extend({
|
|
5
|
-
conversationId: z.string(),
|
|
17
|
+
conversationId: z.string().nullish(),
|
|
6
18
|
extId: z.string().nullish(),
|
|
7
19
|
notificationId: z.string().nullish(),
|
|
8
20
|
findingId: z.string().nullish(),
|
|
@@ -13,15 +25,12 @@ export const _ContextDto = _BaseDto.extend({
|
|
|
13
25
|
externalQAThreadId: z.string().nullish(),
|
|
14
26
|
tone: z.string().nullish(),
|
|
15
27
|
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
28
|
engagementChannel: z.string().nullish(),
|
|
29
|
+
meta: _ContextMeta,
|
|
23
30
|
});
|
|
24
31
|
|
|
32
|
+
export type ContextMeta = z.infer<typeof _ContextMeta>;
|
|
33
|
+
|
|
25
34
|
export const _ContextUpsertDto = _ContextDto.partial(UPSERT_DTO_MASK);
|
|
26
35
|
export type ContextDto = z.infer<typeof _ContextDto>;
|
|
27
36
|
|