@kl1/contracts 1.1.52-uat → 1.1.54-uat

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,7 +1,7 @@
1
1
  import z from 'zod';
2
2
  import { DefaultQueryParamsSchema } from '../base-contract';
3
3
  import { MessageRelevanceSchema, MessageSchema, MessageWithFeedPostSchema, OrderQueryParamSchema, RoomSchema } from './schema';
4
- import { ChannelSchema, GetRoomsSchema, LineStickerSchema, ReceiveMessageSchema, ReloginChanelSchema, SearchRoomsSchema, SendMessageResponseSchema, SendMessageSchema, ActionMessageSchema, SendMessageToPlatformSchema, SendMessageWithActionTypeSchema, SolveRoomSchema, UpdateAssigneeSchema, UpdateRoomAttributesSchema, UpdateRoomTagsAndNotesSchema } from './validation';
4
+ import { ChannelSchema, GetRoomsSchema, LineStickerSchema, ReceiveMessageSchema, ReloginChanelSchema, SearchRoomsSchema, SendMessageResponseSchema, SendMessageSchema, ActionMessageSchema, SendMessageToPlatformSchema, SendMessageWithActionTypeSchema, SolveRoomSchema, UpdateAssigneeByWorkflowSchema, UpdateAssigneeSchema, UpdateRoomAttributesSchema, UpdateRoomTagsAndNotesSchema } from './validation';
5
5
  import { FeedPostSchema } from '../facebook-feed/schema';
6
6
  export type GetRoomRequest = z.infer<typeof GetRoomsSchema>;
7
7
  export type UpdateRoomAttributesRequest = z.infer<typeof UpdateRoomAttributesSchema>;
@@ -10,6 +10,7 @@ export type SendMessageRequest = z.infer<typeof SendMessageSchema>;
10
10
  export type ActionMessageRequest = z.infer<typeof ActionMessageSchema>;
11
11
  export type SolveRoomRequest = z.infer<typeof SolveRoomSchema>;
12
12
  export type UpdateAssigneeRequest = z.infer<typeof UpdateAssigneeSchema>;
13
+ export type UpdateAssigneeByWorkflowRequest = z.infer<typeof UpdateAssigneeByWorkflowSchema>;
13
14
  export type SearchRoomsRequest = z.infer<typeof SearchRoomsSchema>;
14
15
  export type SendMessageToPlatformRequest = z.infer<typeof SendMessageToPlatformSchema>;
15
16
  export type SendMessageWithActionPayload = z.infer<typeof SendMessageWithActionTypeSchema>;
@@ -35,7 +36,7 @@ export declare const receiveMessageContract: {
35
36
  deletedAt: z.ZodNullable<z.ZodString>;
36
37
  message: z.ZodOptional<z.ZodString>;
37
38
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
38
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
39
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
39
40
  metadata: z.ZodAny;
40
41
  platformId: z.ZodString;
41
42
  platformMessageId: z.ZodString;
@@ -13719,7 +13720,7 @@ export declare const mainChatContract: {
13719
13720
  page: z.ZodNumber;
13720
13721
  pageSize: z.ZodNumber;
13721
13722
  data: z.ZodArray<z.ZodObject<{
13722
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
13723
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
13723
13724
  message: z.ZodString;
13724
13725
  id: z.ZodString;
13725
13726
  url: z.ZodString;
@@ -17150,7 +17151,7 @@ export declare const mainChatContract: {
17150
17151
  deletedAt: z.ZodNullable<z.ZodDate>;
17151
17152
  message: z.ZodString;
17152
17153
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
17153
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
17154
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
17154
17155
  readAt: z.ZodDate;
17155
17156
  metadata: z.ZodAny;
17156
17157
  platformId: z.ZodString;
@@ -18344,7 +18345,7 @@ export declare const mainChatContract: {
18344
18345
  updatedAt: z.ZodDate;
18345
18346
  deletedAt: z.ZodNullable<z.ZodDate>;
18346
18347
  message: z.ZodNullable<z.ZodString>;
18347
- type: z.ZodUnion<[z.ZodEnum<["text", "added_photos", "shared_story", "mobile_status_update"]>, z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>]>;
18348
+ type: z.ZodUnion<[z.ZodEnum<["text", "added_photos", "shared_story", "mobile_status_update"]>, z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>]>;
18348
18349
  metadata: z.ZodAny;
18349
18350
  platformId: z.ZodString;
18350
18351
  platformMessageId: z.ZodString;
@@ -28088,12 +28089,15 @@ export declare const mainChatContract: {
28088
28089
  body: z.ZodObject<{
28089
28090
  assigneeId: z.ZodString;
28090
28091
  roomId: z.ZodString;
28092
+ actionType: z.ZodDefault<z.ZodEnum<["assign_to_me", "hangover_to_me", "assign_other_agent"]>>;
28091
28093
  }, "strip", z.ZodTypeAny, {
28092
28094
  assigneeId: string;
28093
28095
  roomId: string;
28096
+ actionType: "assign_to_me" | "hangover_to_me" | "assign_other_agent";
28094
28097
  }, {
28095
28098
  assigneeId: string;
28096
28099
  roomId: string;
28100
+ actionType?: "assign_to_me" | "hangover_to_me" | "assign_other_agent" | undefined;
28097
28101
  }>;
28098
28102
  summary: "Update room assignee";
28099
28103
  method: "POST";
@@ -34767,7 +34771,7 @@ export declare const mainChatContract: {
34767
34771
  latestIncomingMessage: z.ZodObject<{
34768
34772
  message: z.ZodString;
34769
34773
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
34770
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
34774
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
34771
34775
  readAt: z.ZodDate;
34772
34776
  metadata: z.ZodAny;
34773
34777
  platformId: z.ZodString;
@@ -48629,7 +48633,7 @@ export declare const mainChatMessageContract: {
48629
48633
  sendMessage: {
48630
48634
  body: z.ZodObject<{
48631
48635
  roomId: z.ZodString;
48632
- messageType: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
48636
+ messageType: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
48633
48637
  message: z.ZodOptional<z.ZodString>;
48634
48638
  messageAttachments: z.ZodOptional<z.ZodObject<{
48635
48639
  bucketName: z.ZodString;
@@ -49038,7 +49042,7 @@ export declare const mainChatMessageContract: {
49038
49042
  200: z.ZodObject<{
49039
49043
  requestId: z.ZodString;
49040
49044
  data: z.ZodObject<{
49041
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
49045
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
49042
49046
  message: z.ZodString;
49043
49047
  id: z.ZodString;
49044
49048
  url: z.ZodString;
@@ -52469,7 +52473,7 @@ export declare const mainChatMessageContract: {
52469
52473
  deletedAt: z.ZodNullable<z.ZodDate>;
52470
52474
  message: z.ZodString;
52471
52475
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
52472
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
52476
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
52473
52477
  readAt: z.ZodDate;
52474
52478
  metadata: z.ZodAny;
52475
52479
  platformId: z.ZodString;
@@ -53662,7 +53666,7 @@ export declare const mainChatMessageContract: {
53662
53666
  deletedAt: z.ZodNullable<z.ZodDate>;
53663
53667
  message: z.ZodString;
53664
53668
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
53665
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
53669
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
53666
53670
  readAt: z.ZodDate;
53667
53671
  metadata: z.ZodAny;
53668
53672
  platformId: z.ZodString;
@@ -56654,7 +56658,7 @@ export declare const mainChatMessageContract: {
56654
56658
  deletedAt: z.ZodNullable<z.ZodDate>;
56655
56659
  message: z.ZodString;
56656
56660
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
56657
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
56661
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
56658
56662
  readAt: z.ZodDate;
56659
56663
  metadata: z.ZodAny;
56660
56664
  platformId: z.ZodString;
@@ -65378,7 +65382,7 @@ export declare const mainChatMessageContract: {
65378
65382
  deletedAt: z.ZodNullable<z.ZodDate>;
65379
65383
  message: z.ZodString;
65380
65384
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
65381
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
65385
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
65382
65386
  readAt: z.ZodDate;
65383
65387
  metadata: z.ZodAny;
65384
65388
  platformId: z.ZodString;
@@ -68370,7 +68374,7 @@ export declare const mainChatMessageContract: {
68370
68374
  deletedAt: z.ZodNullable<z.ZodDate>;
68371
68375
  message: z.ZodString;
68372
68376
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
68373
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
68377
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
68374
68378
  readAt: z.ZodDate;
68375
68379
  metadata: z.ZodAny;
68376
68380
  platformId: z.ZodString;
@@ -72855,7 +72859,7 @@ export declare const mainFeedContract: {
72855
72859
  updatedAt: z.ZodDate;
72856
72860
  deletedAt: z.ZodNullable<z.ZodDate>;
72857
72861
  message: z.ZodNullable<z.ZodString>;
72858
- type: z.ZodUnion<[z.ZodEnum<["text", "added_photos", "shared_story", "mobile_status_update"]>, z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>]>;
72862
+ type: z.ZodUnion<[z.ZodEnum<["text", "added_photos", "shared_story", "mobile_status_update"]>, z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>]>;
72859
72863
  metadata: z.ZodAny;
72860
72864
  platformId: z.ZodString;
72861
72865
  platformMessageId: z.ZodString;
@@ -75435,7 +75439,7 @@ export declare const mainFeedContract: {
75435
75439
  page: z.ZodNumber;
75436
75440
  pageSize: z.ZodNumber;
75437
75441
  data: z.ZodObject<{
75438
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
75442
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
75439
75443
  message: z.ZodString;
75440
75444
  id: z.ZodString;
75441
75445
  url: z.ZodString;
@@ -78866,7 +78870,7 @@ export declare const mainFeedContract: {
78866
78870
  deletedAt: z.ZodNullable<z.ZodDate>;
78867
78871
  message: z.ZodString;
78868
78872
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
78869
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
78873
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
78870
78874
  readAt: z.ZodDate;
78871
78875
  metadata: z.ZodAny;
78872
78876
  platformId: z.ZodString;
@@ -80993,7 +80997,7 @@ export declare const mainFeedContract: {
80993
80997
  deletedAt: z.ZodNullable<z.ZodDate>;
80994
80998
  message: z.ZodString;
80995
80999
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
80996
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
81000
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
80997
81001
  readAt: z.ZodDate;
80998
81002
  metadata: z.ZodAny;
80999
81003
  platformId: z.ZodString;
@@ -83985,7 +83989,7 @@ export declare const mainFeedContract: {
83985
83989
  deletedAt: z.ZodNullable<z.ZodDate>;
83986
83990
  message: z.ZodString;
83987
83991
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
83988
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
83992
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
83989
83993
  readAt: z.ZodDate;
83990
83994
  metadata: z.ZodAny;
83991
83995
  platformId: z.ZodString;