@ampsec/platform-client 81.1.1 → 81.3.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.
Files changed (51) hide show
  1. package/build/src/dto/contexts.dto.d.ts +99 -0
  2. package/build/src/dto/contexts.dto.js +22 -0
  3. package/build/src/dto/contexts.dto.js.map +1 -0
  4. package/build/src/dto/conversations.dto.d.ts +158 -0
  5. package/build/src/dto/conversations.dto.js +28 -0
  6. package/build/src/dto/conversations.dto.js.map +1 -0
  7. package/build/src/dto/engagementConversations.dto.d.ts +1 -9
  8. package/build/src/dto/engagementConversations.dto.js +3 -13
  9. package/build/src/dto/engagementConversations.dto.js.map +1 -1
  10. package/build/src/dto/enums/engagementConversationStatus.d.ts +4 -0
  11. package/build/src/dto/enums/engagementConversationStatus.js +9 -0
  12. package/build/src/dto/enums/engagementConversationStatus.js.map +1 -0
  13. package/build/src/dto/enums/engagementDialogueSpeaker.d.ts +4 -0
  14. package/build/src/dto/enums/engagementDialogueSpeaker.js +9 -0
  15. package/build/src/dto/enums/engagementDialogueSpeaker.js.map +1 -0
  16. package/build/src/dto/enums/index.d.ts +2 -0
  17. package/build/src/dto/enums/index.js +2 -0
  18. package/build/src/dto/enums/index.js.map +1 -1
  19. package/build/src/dto/flows.dto.d.ts +213 -0
  20. package/build/src/dto/flows.dto.js +12 -1
  21. package/build/src/dto/flows.dto.js.map +1 -1
  22. package/build/src/dto/index.d.ts +2 -0
  23. package/build/src/dto/index.js +2 -0
  24. package/build/src/dto/index.js.map +1 -1
  25. package/build/src/dto/platform/index.d.ts +3 -0
  26. package/build/src/dto/platform/index.js +3 -0
  27. package/build/src/dto/platform/index.js.map +1 -1
  28. package/build/src/dto/platform/platform.contexts.dto.d.ts +106 -0
  29. package/build/src/dto/platform/platform.contexts.dto.js +12 -0
  30. package/build/src/dto/platform/platform.contexts.dto.js.map +1 -0
  31. package/build/src/dto/platform/platform.conversations.dto.d.ts +59 -0
  32. package/build/src/dto/platform/platform.conversations.dto.js +12 -0
  33. package/build/src/dto/platform/platform.conversations.dto.js.map +1 -0
  34. package/build/src/dto/platform/platform.dialogues.dto.d.ts +68 -0
  35. package/build/src/dto/platform/platform.dialogues.dto.js +12 -0
  36. package/build/src/dto/platform/platform.dialogues.dto.js.map +1 -0
  37. package/build/src/dto/platform/platform.engagementConversations.dto.d.ts +6 -6
  38. package/build/src/dto/platform/platform.flows.dto.d.ts +102 -0
  39. package/package.json +1 -1
  40. package/src/dto/contexts.dto.ts +24 -0
  41. package/src/dto/conversations.dto.ts +40 -0
  42. package/src/dto/engagementConversations.dto.ts +1 -11
  43. package/src/dto/enums/engagementConversationStatus.ts +4 -0
  44. package/src/dto/enums/engagementDialogueSpeaker.ts +4 -0
  45. package/src/dto/enums/index.ts +2 -0
  46. package/src/dto/flows.dto.ts +12 -1
  47. package/src/dto/index.ts +2 -0
  48. package/src/dto/platform/index.ts +3 -0
  49. package/src/dto/platform/platform.contexts.dto.ts +14 -0
  50. package/src/dto/platform/platform.conversations.dto.ts +14 -0
  51. package/src/dto/platform/platform.dialogues.dto.ts +14 -0
@@ -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("../engagementConversations.dto").ENGAGEMENT_CONVERSATION_STATUS>;
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("../engagementConversations.dto").ENGAGEMENT_CONVERSATION_STATUS;
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("../engagementConversations.dto").ENGAGEMENT_CONVERSATION_STATUS;
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("../engagementConversations.dto").ENGAGEMENT_CONVERSATION_STATUS>;
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("../engagementConversations.dto").ENGAGEMENT_CONVERSATION_STATUS;
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("../engagementConversations.dto").ENGAGEMENT_CONVERSATION_STATUS;
61
+ status: import("..").ENGAGEMENT_CONVERSATION_STATUS;
62
62
  id: string;
63
63
  tid: string;
64
64
  dialogueIds: string[];
@@ -256,6 +256,29 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
256
256
  findingStatus?: import("..").FindingStatus | null | undefined;
257
257
  responseMessage?: string | undefined;
258
258
  }>>;
259
+ launchActionsV2: z.ZodOptional<z.ZodObject<{
260
+ id: z.ZodString;
261
+ actions: z.ZodArray<z.ZodObject<{
262
+ actionId: z.ZodNullable<z.ZodString>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ actionId: string | null;
265
+ }, {
266
+ actionId: string | null;
267
+ }>, "many">;
268
+ findingStatus: z.ZodNullable<z.ZodNativeEnum<typeof import("..").FindingStatus>>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ id: string;
271
+ actions: {
272
+ actionId: string | null;
273
+ }[];
274
+ findingStatus: import("..").FindingStatus | null;
275
+ }, {
276
+ id: string;
277
+ actions: {
278
+ actionId: string | null;
279
+ }[];
280
+ findingStatus: import("..").FindingStatus | null;
281
+ }>>;
259
282
  actionButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
260
283
  id: z.ZodString;
261
284
  actions: z.ZodArray<z.ZodObject<{
@@ -309,6 +332,13 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
309
332
  findingStatus?: import("..").FindingStatus | null | undefined;
310
333
  responseMessage?: string | undefined;
311
334
  } | undefined;
335
+ launchActionsV2?: {
336
+ id: string;
337
+ actions: {
338
+ actionId: string | null;
339
+ }[];
340
+ findingStatus: import("..").FindingStatus | null;
341
+ } | undefined;
312
342
  actionButtons?: {
313
343
  id: string;
314
344
  actions: {
@@ -344,6 +374,13 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
344
374
  findingStatus?: import("..").FindingStatus | null | undefined;
345
375
  responseMessage?: string | undefined;
346
376
  } | undefined;
377
+ launchActionsV2?: {
378
+ id: string;
379
+ actions: {
380
+ actionId: string | null;
381
+ }[];
382
+ findingStatus: import("..").FindingStatus | null;
383
+ } | undefined;
347
384
  actionButtons?: {
348
385
  id: string;
349
386
  actions: {
@@ -535,6 +572,13 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
535
572
  findingStatus?: import("..").FindingStatus | null | undefined;
536
573
  responseMessage?: string | undefined;
537
574
  } | undefined;
575
+ launchActionsV2?: {
576
+ id: string;
577
+ actions: {
578
+ actionId: string | null;
579
+ }[];
580
+ findingStatus: import("..").FindingStatus | null;
581
+ } | undefined;
538
582
  actionButtons?: {
539
583
  id: string;
540
584
  actions: {
@@ -669,6 +713,13 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
669
713
  findingStatus?: import("..").FindingStatus | null | undefined;
670
714
  responseMessage?: string | undefined;
671
715
  } | undefined;
716
+ launchActionsV2?: {
717
+ id: string;
718
+ actions: {
719
+ actionId: string | null;
720
+ }[];
721
+ findingStatus: import("..").FindingStatus | null;
722
+ } | undefined;
672
723
  actionButtons?: {
673
724
  id: string;
674
725
  actions: {
@@ -1006,6 +1057,29 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
1006
1057
  findingStatus?: import("..").FindingStatus | null | undefined;
1007
1058
  responseMessage?: string | undefined;
1008
1059
  }>>;
1060
+ launchActionsV2: z.ZodOptional<z.ZodObject<{
1061
+ id: z.ZodString;
1062
+ actions: z.ZodArray<z.ZodObject<{
1063
+ actionId: z.ZodNullable<z.ZodString>;
1064
+ }, "strip", z.ZodTypeAny, {
1065
+ actionId: string | null;
1066
+ }, {
1067
+ actionId: string | null;
1068
+ }>, "many">;
1069
+ findingStatus: z.ZodNullable<z.ZodNativeEnum<typeof import("..").FindingStatus>>;
1070
+ }, "strip", z.ZodTypeAny, {
1071
+ id: string;
1072
+ actions: {
1073
+ actionId: string | null;
1074
+ }[];
1075
+ findingStatus: import("..").FindingStatus | null;
1076
+ }, {
1077
+ id: string;
1078
+ actions: {
1079
+ actionId: string | null;
1080
+ }[];
1081
+ findingStatus: import("..").FindingStatus | null;
1082
+ }>>;
1009
1083
  actionButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
1010
1084
  id: z.ZodString;
1011
1085
  actions: z.ZodArray<z.ZodObject<{
@@ -1059,6 +1133,13 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
1059
1133
  findingStatus?: import("..").FindingStatus | null | undefined;
1060
1134
  responseMessage?: string | undefined;
1061
1135
  } | undefined;
1136
+ launchActionsV2?: {
1137
+ id: string;
1138
+ actions: {
1139
+ actionId: string | null;
1140
+ }[];
1141
+ findingStatus: import("..").FindingStatus | null;
1142
+ } | undefined;
1062
1143
  actionButtons?: {
1063
1144
  id: string;
1064
1145
  actions: {
@@ -1094,6 +1175,13 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
1094
1175
  findingStatus?: import("..").FindingStatus | null | undefined;
1095
1176
  responseMessage?: string | undefined;
1096
1177
  } | undefined;
1178
+ launchActionsV2?: {
1179
+ id: string;
1180
+ actions: {
1181
+ actionId: string | null;
1182
+ }[];
1183
+ findingStatus: import("..").FindingStatus | null;
1184
+ } | undefined;
1097
1185
  actionButtons?: {
1098
1186
  id: string;
1099
1187
  actions: {
@@ -1280,6 +1368,13 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
1280
1368
  findingStatus?: import("..").FindingStatus | null | undefined;
1281
1369
  responseMessage?: string | undefined;
1282
1370
  } | undefined;
1371
+ launchActionsV2?: {
1372
+ id: string;
1373
+ actions: {
1374
+ actionId: string | null;
1375
+ }[];
1376
+ findingStatus: import("..").FindingStatus | null;
1377
+ } | undefined;
1283
1378
  actionButtons?: {
1284
1379
  id: string;
1285
1380
  actions: {
@@ -1422,6 +1517,13 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
1422
1517
  findingStatus?: import("..").FindingStatus | null | undefined;
1423
1518
  responseMessage?: string | undefined;
1424
1519
  } | undefined;
1520
+ launchActionsV2?: {
1521
+ id: string;
1522
+ actions: {
1523
+ actionId: string | null;
1524
+ }[];
1525
+ findingStatus: import("..").FindingStatus | null;
1526
+ } | undefined;
1425
1527
  actionButtons?: {
1426
1528
  id: string;
1427
1529
  actions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "81.1.1",
3
+ "version": "81.3.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -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(),
@@ -0,0 +1,4 @@
1
+ export enum ENGAGEMENT_CONVERSATION_STATUS {
2
+ READY = 'READY',
3
+ PROCESSING = 'PROCESSING',
4
+ }
@@ -0,0 +1,4 @@
1
+ export enum ENGAGEMENT_DIALOGUE_SPEAKER {
2
+ USER = 'USER',
3
+ BOT = 'BOT',
4
+ }
@@ -27,3 +27,5 @@ export * from './tenantStatusFlags';
27
27
  export * from './platformJobKind';
28
28
  export * from './metric.kind';
29
29
  export * from './timeZoneSource';
30
+ export * from './engagementDialogueSpeaker';
31
+ export * from './engagementConversationStatus';
@@ -155,6 +155,17 @@ export const _FlowActionButton = z.object({
155
155
  actionLabel: z.string().max(24),
156
156
  });
157
157
 
158
+ export const _FlowLaunchAction = z.object({
159
+ id: z.string(),
160
+ actions: z
161
+ .object({
162
+ actionId: z.string().nullable(),
163
+ })
164
+ .array()
165
+ .max(6),
166
+ findingStatus: z.nativeEnum(FindingStatus).nullable(),
167
+ });
168
+
158
169
  export type FlowActionButton = z.infer<typeof _FlowActionButton>;
159
170
 
160
171
  const _FlowActionDetails = z.object({
@@ -188,8 +199,8 @@ export const _FlowActions = z.object({
188
199
  resolveNowAction: _FlowActionDetails.optional(),
189
200
 
190
201
  scheduleResolutionAction: _FlowActionDetails.optional(),
191
-
192
202
  launchAction: _FlowActionDetails.optional(),
203
+ launchActionsV2: _FlowLaunchAction.optional(),
193
204
  // TODO: validate and adjust max actions supported after v0
194
205
  actionButtons: z.array(_FlowActionButton).max(6).optional(),
195
206
  });
package/src/dto/index.ts CHANGED
@@ -39,3 +39,5 @@ export * from './users.dto';
39
39
  export * from './messagingChannels';
40
40
  export * from './cohort.dto';
41
41
  export * from './actionExecution.dto';
42
+ export * from './conversations.dto';
43
+ export * from './contexts.dto';
@@ -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>;