@kl1/contracts 1.3.0 → 1.3.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.
@@ -1,8 +1,11 @@
1
1
  import z from 'zod';
2
- export declare const MessageDirectionTypeSchema: z.ZodEnum<[string, ...string[]]>;
3
- export declare const WorkflowAutoReplyMessageTypeSchema: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
4
- export declare const MessageTypeSchema: z.ZodEnum<[string, ...string[]]>;
5
- export declare const FeedPostTypeSchema: z.ZodEnum<[string, ...string[]]>;
2
+ /**
3
+ * Directions Enum
4
+ */
5
+ export declare const MessageDirectionTypeSchema: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
6
+ export declare const WorkflowAutoReplyMessageTypeSchema: z.ZodDefault<z.ZodEnum<["text", "image"]>>;
7
+ export declare const MessageTypeSchema: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
8
+ export declare const FeedPostTypeSchema: z.ZodEnum<["text", "added_photos", "added_video", "shared_story", "mobile_status_update", "no_data"]>;
6
9
  /**
7
10
  * Message Type Enum
8
11
  */
@@ -1105,7 +1108,7 @@ export declare const RoomSchema: z.ZodObject<z.objectUtil.extendShape<{
1105
1108
  firstResponseTime: z.ZodNumber;
1106
1109
  isLatest: z.ZodBoolean;
1107
1110
  isBotRoom: z.ZodBoolean;
1108
- direction: z.ZodEnum<[string, ...string[]]>;
1111
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
1109
1112
  platformContact: z.ZodObject<{
1110
1113
  id: z.ZodString;
1111
1114
  createdAt: z.ZodDate;
@@ -3790,7 +3793,7 @@ export declare const RoomSchema: z.ZodObject<z.objectUtil.extendShape<{
3790
3793
  integrationId: string;
3791
3794
  } | null;
3792
3795
  };
3793
- direction: string;
3796
+ direction: "incoming" | "outgoing" | "system";
3794
3797
  status: number;
3795
3798
  createdAt: Date;
3796
3799
  updatedAt: Date;
@@ -4219,7 +4222,7 @@ export declare const RoomSchema: z.ZodObject<z.objectUtil.extendShape<{
4219
4222
  integrationId: string;
4220
4223
  } | null;
4221
4224
  };
4222
- direction: string;
4225
+ direction: "incoming" | "outgoing" | "system";
4223
4226
  status: number;
4224
4227
  createdAt: Date;
4225
4228
  updatedAt: Date;
@@ -4561,8 +4564,8 @@ export declare const MessageSchema: z.ZodObject<z.objectUtil.extendShape<{
4561
4564
  deletedAt: z.ZodNullable<z.ZodDate>;
4562
4565
  }, {
4563
4566
  message: z.ZodString;
4564
- direction: z.ZodEnum<[string, ...string[]]>;
4565
- type: z.ZodEnum<[string, ...string[]]>;
4567
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
4568
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
4566
4569
  readAt: z.ZodDate;
4567
4570
  metadata: z.ZodAny;
4568
4571
  platformId: z.ZodString;
@@ -4589,7 +4592,7 @@ export declare const MessageSchema: z.ZodObject<z.objectUtil.extendShape<{
4589
4592
  firstResponseTime: z.ZodNumber;
4590
4593
  isLatest: z.ZodBoolean;
4591
4594
  isBotRoom: z.ZodBoolean;
4592
- direction: z.ZodEnum<[string, ...string[]]>;
4595
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
4593
4596
  platformContact: z.ZodObject<{
4594
4597
  id: z.ZodString;
4595
4598
  createdAt: z.ZodDate;
@@ -7274,7 +7277,7 @@ export declare const MessageSchema: z.ZodObject<z.objectUtil.extendShape<{
7274
7277
  integrationId: string;
7275
7278
  } | null;
7276
7279
  };
7277
- direction: string;
7280
+ direction: "incoming" | "outgoing" | "system";
7278
7281
  status: number;
7279
7282
  createdAt: Date;
7280
7283
  updatedAt: Date;
@@ -7703,7 +7706,7 @@ export declare const MessageSchema: z.ZodObject<z.objectUtil.extendShape<{
7703
7706
  integrationId: string;
7704
7707
  } | null;
7705
7708
  };
7706
- direction: string;
7709
+ direction: "incoming" | "outgoing" | "system";
7707
7710
  status: number;
7708
7711
  createdAt: Date;
7709
7712
  updatedAt: Date;
@@ -8077,8 +8080,8 @@ export declare const MessageSchema: z.ZodObject<z.objectUtil.extendShape<{
8077
8080
  deletedAt: z.ZodNullable<z.ZodDate>;
8078
8081
  }, {
8079
8082
  message: z.ZodString;
8080
- direction: z.ZodEnum<[string, ...string[]]>;
8081
- type: z.ZodEnum<[string, ...string[]]>;
8083
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
8084
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
8082
8085
  readAt: z.ZodDate;
8083
8086
  metadata: z.ZodAny;
8084
8087
  platformId: z.ZodString;
@@ -8744,7 +8747,7 @@ export declare const MessageSchema: z.ZodObject<z.objectUtil.extendShape<{
8744
8747
  message: string;
8745
8748
  id: string;
8746
8749
  url: string;
8747
- direction: string;
8750
+ direction: "incoming" | "outgoing" | "system";
8748
8751
  createdAt: Date;
8749
8752
  updatedAt: Date;
8750
8753
  deletedAt: Date | null;
@@ -8906,7 +8909,7 @@ export declare const MessageSchema: z.ZodObject<z.objectUtil.extendShape<{
8906
8909
  message: string;
8907
8910
  id: string;
8908
8911
  url: string;
8909
- direction: string;
8912
+ direction: "incoming" | "outgoing" | "system";
8910
8913
  createdAt: Date;
8911
8914
  updatedAt: Date;
8912
8915
  deletedAt: Date | null;
@@ -9709,7 +9712,7 @@ export declare const MessageSchema: z.ZodObject<z.objectUtil.extendShape<{
9709
9712
  message: string;
9710
9713
  id: string;
9711
9714
  url: string;
9712
- direction: string;
9715
+ direction: "incoming" | "outgoing" | "system";
9713
9716
  createdAt: Date;
9714
9717
  updatedAt: Date;
9715
9718
  deletedAt: Date | null;
@@ -9912,7 +9915,7 @@ export declare const MessageSchema: z.ZodObject<z.objectUtil.extendShape<{
9912
9915
  integrationId: string;
9913
9916
  } | null;
9914
9917
  };
9915
- direction: string;
9918
+ direction: "incoming" | "outgoing" | "system";
9916
9919
  status: number;
9917
9920
  createdAt: Date;
9918
9921
  updatedAt: Date;
@@ -10264,7 +10267,7 @@ export declare const MessageSchema: z.ZodObject<z.objectUtil.extendShape<{
10264
10267
  message: string;
10265
10268
  id: string;
10266
10269
  url: string;
10267
- direction: string;
10270
+ direction: "incoming" | "outgoing" | "system";
10268
10271
  createdAt: Date;
10269
10272
  updatedAt: Date;
10270
10273
  deletedAt: Date | null;
@@ -10475,7 +10478,7 @@ export declare const MessageSchema: z.ZodObject<z.objectUtil.extendShape<{
10475
10478
  message: string;
10476
10479
  id: string;
10477
10480
  url: string;
10478
- direction: string;
10481
+ direction: "incoming" | "outgoing" | "system";
10479
10482
  createdAt: Date;
10480
10483
  updatedAt: Date;
10481
10484
  deletedAt: Date | null;
@@ -10678,7 +10681,7 @@ export declare const MessageSchema: z.ZodObject<z.objectUtil.extendShape<{
10678
10681
  integrationId: string;
10679
10682
  } | null;
10680
10683
  };
10681
- direction: string;
10684
+ direction: "incoming" | "outgoing" | "system";
10682
10685
  status: number;
10683
10686
  createdAt: Date;
10684
10687
  updatedAt: Date;
@@ -11030,7 +11033,7 @@ export declare const MessageSchema: z.ZodObject<z.objectUtil.extendShape<{
11030
11033
  message: string;
11031
11034
  id: string;
11032
11035
  url: string;
11033
- direction: string;
11036
+ direction: "incoming" | "outgoing" | "system";
11034
11037
  createdAt: Date;
11035
11038
  updatedAt: Date;
11036
11039
  deletedAt: Date | null;
@@ -11244,8 +11247,8 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
11244
11247
  deletedAt: z.ZodNullable<z.ZodDate>;
11245
11248
  }, {
11246
11249
  message: z.ZodString;
11247
- direction: z.ZodEnum<[string, ...string[]]>;
11248
- type: z.ZodEnum<[string, ...string[]]>;
11250
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
11251
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
11249
11252
  readAt: z.ZodDate;
11250
11253
  metadata: z.ZodAny;
11251
11254
  platformId: z.ZodString;
@@ -11272,7 +11275,7 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
11272
11275
  firstResponseTime: z.ZodNumber;
11273
11276
  isLatest: z.ZodBoolean;
11274
11277
  isBotRoom: z.ZodBoolean;
11275
- direction: z.ZodEnum<[string, ...string[]]>;
11278
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
11276
11279
  platformContact: z.ZodObject<{
11277
11280
  id: z.ZodString;
11278
11281
  createdAt: z.ZodDate;
@@ -13957,7 +13960,7 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
13957
13960
  integrationId: string;
13958
13961
  } | null;
13959
13962
  };
13960
- direction: string;
13963
+ direction: "incoming" | "outgoing" | "system";
13961
13964
  status: number;
13962
13965
  createdAt: Date;
13963
13966
  updatedAt: Date;
@@ -14386,7 +14389,7 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
14386
14389
  integrationId: string;
14387
14390
  } | null;
14388
14391
  };
14389
- direction: string;
14392
+ direction: "incoming" | "outgoing" | "system";
14390
14393
  status: number;
14391
14394
  createdAt: Date;
14392
14395
  updatedAt: Date;
@@ -14760,8 +14763,8 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
14760
14763
  deletedAt: z.ZodNullable<z.ZodDate>;
14761
14764
  }, {
14762
14765
  message: z.ZodString;
14763
- direction: z.ZodEnum<[string, ...string[]]>;
14764
- type: z.ZodEnum<[string, ...string[]]>;
14766
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
14767
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
14765
14768
  readAt: z.ZodDate;
14766
14769
  metadata: z.ZodAny;
14767
14770
  platformId: z.ZodString;
@@ -15427,7 +15430,7 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
15427
15430
  message: string;
15428
15431
  id: string;
15429
15432
  url: string;
15430
- direction: string;
15433
+ direction: "incoming" | "outgoing" | "system";
15431
15434
  createdAt: Date;
15432
15435
  updatedAt: Date;
15433
15436
  deletedAt: Date | null;
@@ -15589,7 +15592,7 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
15589
15592
  message: string;
15590
15593
  id: string;
15591
15594
  url: string;
15592
- direction: string;
15595
+ direction: "incoming" | "outgoing" | "system";
15593
15596
  createdAt: Date;
15594
15597
  updatedAt: Date;
15595
15598
  deletedAt: Date | null;
@@ -16397,7 +16400,7 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
16397
16400
  deletedAt: z.ZodNullable<z.ZodDate>;
16398
16401
  }, {
16399
16402
  message: z.ZodNullable<z.ZodString>;
16400
- type: z.ZodUnion<[z.ZodEnum<[string, ...string[]]>, z.ZodEnum<[string, ...string[]]>]>;
16403
+ type: z.ZodUnion<[z.ZodEnum<["text", "added_photos", "added_video", "shared_story", "mobile_status_update", "no_data"]>, z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>]>;
16401
16404
  metadata: z.ZodAny;
16402
16405
  platformId: z.ZodString;
16403
16406
  platformMessageId: z.ZodString;
@@ -18791,7 +18794,7 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
18791
18794
  message: string;
18792
18795
  id: string;
18793
18796
  url: string;
18794
- direction: string;
18797
+ direction: "incoming" | "outgoing" | "system";
18795
18798
  createdAt: Date;
18796
18799
  updatedAt: Date;
18797
18800
  deletedAt: Date | null;
@@ -18994,7 +18997,7 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
18994
18997
  integrationId: string;
18995
18998
  } | null;
18996
18999
  };
18997
- direction: string;
19000
+ direction: "incoming" | "outgoing" | "system";
18998
19001
  status: number;
18999
19002
  createdAt: Date;
19000
19003
  updatedAt: Date;
@@ -19346,7 +19349,7 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
19346
19349
  message: string;
19347
19350
  id: string;
19348
19351
  url: string;
19349
- direction: string;
19352
+ direction: "incoming" | "outgoing" | "system";
19350
19353
  createdAt: Date;
19351
19354
  updatedAt: Date;
19352
19355
  deletedAt: Date | null;
@@ -19843,7 +19846,7 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
19843
19846
  message: string;
19844
19847
  id: string;
19845
19848
  url: string;
19846
- direction: string;
19849
+ direction: "incoming" | "outgoing" | "system";
19847
19850
  createdAt: Date;
19848
19851
  updatedAt: Date;
19849
19852
  deletedAt: Date | null;
@@ -20046,7 +20049,7 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
20046
20049
  integrationId: string;
20047
20050
  } | null;
20048
20051
  };
20049
- direction: string;
20052
+ direction: "incoming" | "outgoing" | "system";
20050
20053
  status: number;
20051
20054
  createdAt: Date;
20052
20055
  updatedAt: Date;
@@ -20398,7 +20401,7 @@ export declare const MessageWithFeedPostSchema: z.ZodObject<z.objectUtil.extendS
20398
20401
  message: string;
20399
20402
  id: string;
20400
20403
  url: string;
20401
- direction: string;
20404
+ direction: "incoming" | "outgoing" | "system";
20402
20405
  createdAt: Date;
20403
20406
  updatedAt: Date;
20404
20407
  deletedAt: Date | null;
@@ -20898,8 +20901,8 @@ export declare const RepliedMessageSchema: z.ZodObject<z.objectUtil.extendShape<
20898
20901
  deletedAt: z.ZodNullable<z.ZodDate>;
20899
20902
  }, {
20900
20903
  message: z.ZodString;
20901
- direction: z.ZodEnum<[string, ...string[]]>;
20902
- type: z.ZodEnum<[string, ...string[]]>;
20904
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
20905
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
20903
20906
  readAt: z.ZodDate;
20904
20907
  metadata: z.ZodAny;
20905
20908
  platformId: z.ZodString;
@@ -21565,7 +21568,7 @@ export declare const RepliedMessageSchema: z.ZodObject<z.objectUtil.extendShape<
21565
21568
  message: string;
21566
21569
  id: string;
21567
21570
  url: string;
21568
- direction: string;
21571
+ direction: "incoming" | "outgoing" | "system";
21569
21572
  createdAt: Date;
21570
21573
  updatedAt: Date;
21571
21574
  deletedAt: Date | null;
@@ -21727,7 +21730,7 @@ export declare const RepliedMessageSchema: z.ZodObject<z.objectUtil.extendShape<
21727
21730
  message: string;
21728
21731
  id: string;
21729
21732
  url: string;
21730
- direction: string;
21733
+ direction: "incoming" | "outgoing" | "system";
21731
21734
  createdAt: Date;
21732
21735
  updatedAt: Date;
21733
21736
  deletedAt: Date | null;
@@ -21905,8 +21908,8 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
21905
21908
  deletedAt: z.ZodNullable<z.ZodDate>;
21906
21909
  }, {
21907
21910
  message: z.ZodString;
21908
- direction: z.ZodEnum<[string, ...string[]]>;
21909
- type: z.ZodEnum<[string, ...string[]]>;
21911
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
21912
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
21910
21913
  readAt: z.ZodDate;
21911
21914
  metadata: z.ZodAny;
21912
21915
  platformId: z.ZodString;
@@ -21933,7 +21936,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
21933
21936
  firstResponseTime: z.ZodNumber;
21934
21937
  isLatest: z.ZodBoolean;
21935
21938
  isBotRoom: z.ZodBoolean;
21936
- direction: z.ZodEnum<[string, ...string[]]>;
21939
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
21937
21940
  platformContact: z.ZodObject<{
21938
21941
  id: z.ZodString;
21939
21942
  createdAt: z.ZodDate;
@@ -24618,7 +24621,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
24618
24621
  integrationId: string;
24619
24622
  } | null;
24620
24623
  };
24621
- direction: string;
24624
+ direction: "incoming" | "outgoing" | "system";
24622
24625
  status: number;
24623
24626
  createdAt: Date;
24624
24627
  updatedAt: Date;
@@ -25047,7 +25050,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
25047
25050
  integrationId: string;
25048
25051
  } | null;
25049
25052
  };
25050
- direction: string;
25053
+ direction: "incoming" | "outgoing" | "system";
25051
25054
  status: number;
25052
25055
  createdAt: Date;
25053
25056
  updatedAt: Date;
@@ -25421,8 +25424,8 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
25421
25424
  deletedAt: z.ZodNullable<z.ZodDate>;
25422
25425
  }, {
25423
25426
  message: z.ZodString;
25424
- direction: z.ZodEnum<[string, ...string[]]>;
25425
- type: z.ZodEnum<[string, ...string[]]>;
25427
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
25428
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
25426
25429
  readAt: z.ZodDate;
25427
25430
  metadata: z.ZodAny;
25428
25431
  platformId: z.ZodString;
@@ -26088,7 +26091,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
26088
26091
  message: string;
26089
26092
  id: string;
26090
26093
  url: string;
26091
- direction: string;
26094
+ direction: "incoming" | "outgoing" | "system";
26092
26095
  createdAt: Date;
26093
26096
  updatedAt: Date;
26094
26097
  deletedAt: Date | null;
@@ -26250,7 +26253,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
26250
26253
  message: string;
26251
26254
  id: string;
26252
26255
  url: string;
26253
- direction: string;
26256
+ direction: "incoming" | "outgoing" | "system";
26254
26257
  createdAt: Date;
26255
26258
  updatedAt: Date;
26256
26259
  deletedAt: Date | null;
@@ -28113,8 +28116,8 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
28113
28116
  deletedAt: z.ZodNullable<z.ZodDate>;
28114
28117
  }, {
28115
28118
  message: z.ZodString;
28116
- direction: z.ZodEnum<[string, ...string[]]>;
28117
- type: z.ZodEnum<[string, ...string[]]>;
28119
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
28120
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
28118
28121
  readAt: z.ZodDate;
28119
28122
  metadata: z.ZodAny;
28120
28123
  platformId: z.ZodString;
@@ -28141,7 +28144,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
28141
28144
  firstResponseTime: z.ZodNumber;
28142
28145
  isLatest: z.ZodBoolean;
28143
28146
  isBotRoom: z.ZodBoolean;
28144
- direction: z.ZodEnum<[string, ...string[]]>;
28147
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
28145
28148
  platformContact: z.ZodObject<{
28146
28149
  id: z.ZodString;
28147
28150
  createdAt: z.ZodDate;
@@ -30826,7 +30829,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
30826
30829
  integrationId: string;
30827
30830
  } | null;
30828
30831
  };
30829
- direction: string;
30832
+ direction: "incoming" | "outgoing" | "system";
30830
30833
  status: number;
30831
30834
  createdAt: Date;
30832
30835
  updatedAt: Date;
@@ -31255,7 +31258,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
31255
31258
  integrationId: string;
31256
31259
  } | null;
31257
31260
  };
31258
- direction: string;
31261
+ direction: "incoming" | "outgoing" | "system";
31259
31262
  status: number;
31260
31263
  createdAt: Date;
31261
31264
  updatedAt: Date;
@@ -31629,8 +31632,8 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
31629
31632
  deletedAt: z.ZodNullable<z.ZodDate>;
31630
31633
  }, {
31631
31634
  message: z.ZodString;
31632
- direction: z.ZodEnum<[string, ...string[]]>;
31633
- type: z.ZodEnum<[string, ...string[]]>;
31635
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
31636
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
31634
31637
  readAt: z.ZodDate;
31635
31638
  metadata: z.ZodAny;
31636
31639
  platformId: z.ZodString;
@@ -32296,7 +32299,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
32296
32299
  message: string;
32297
32300
  id: string;
32298
32301
  url: string;
32299
- direction: string;
32302
+ direction: "incoming" | "outgoing" | "system";
32300
32303
  createdAt: Date;
32301
32304
  updatedAt: Date;
32302
32305
  deletedAt: Date | null;
@@ -32458,7 +32461,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
32458
32461
  message: string;
32459
32462
  id: string;
32460
32463
  url: string;
32461
- direction: string;
32464
+ direction: "incoming" | "outgoing" | "system";
32462
32465
  createdAt: Date;
32463
32466
  updatedAt: Date;
32464
32467
  deletedAt: Date | null;
@@ -33261,7 +33264,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
33261
33264
  message: string;
33262
33265
  id: string;
33263
33266
  url: string;
33264
- direction: string;
33267
+ direction: "incoming" | "outgoing" | "system";
33265
33268
  createdAt: Date;
33266
33269
  updatedAt: Date;
33267
33270
  deletedAt: Date | null;
@@ -33464,7 +33467,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
33464
33467
  integrationId: string;
33465
33468
  } | null;
33466
33469
  };
33467
- direction: string;
33470
+ direction: "incoming" | "outgoing" | "system";
33468
33471
  status: number;
33469
33472
  createdAt: Date;
33470
33473
  updatedAt: Date;
@@ -33816,7 +33819,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
33816
33819
  message: string;
33817
33820
  id: string;
33818
33821
  url: string;
33819
- direction: string;
33822
+ direction: "incoming" | "outgoing" | "system";
33820
33823
  createdAt: Date;
33821
33824
  updatedAt: Date;
33822
33825
  deletedAt: Date | null;
@@ -34027,7 +34030,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
34027
34030
  message: string;
34028
34031
  id: string;
34029
34032
  url: string;
34030
- direction: string;
34033
+ direction: "incoming" | "outgoing" | "system";
34031
34034
  createdAt: Date;
34032
34035
  updatedAt: Date;
34033
34036
  deletedAt: Date | null;
@@ -34230,7 +34233,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
34230
34233
  integrationId: string;
34231
34234
  } | null;
34232
34235
  };
34233
- direction: string;
34236
+ direction: "incoming" | "outgoing" | "system";
34234
34237
  status: number;
34235
34238
  createdAt: Date;
34236
34239
  updatedAt: Date;
@@ -34582,7 +34585,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
34582
34585
  message: string;
34583
34586
  id: string;
34584
34587
  url: string;
34585
- direction: string;
34588
+ direction: "incoming" | "outgoing" | "system";
34586
34589
  createdAt: Date;
34587
34590
  updatedAt: Date;
34588
34591
  deletedAt: Date | null;
@@ -34794,13 +34797,13 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
34794
34797
  message: string;
34795
34798
  id: string;
34796
34799
  url: string;
34797
- direction: string;
34800
+ direction: "incoming" | "outgoing" | "system";
34798
34801
  children: {
34799
34802
  type: string;
34800
34803
  message: string;
34801
34804
  id: string;
34802
34805
  url: string;
34803
- direction: string;
34806
+ direction: "incoming" | "outgoing" | "system";
34804
34807
  createdAt: Date;
34805
34808
  updatedAt: Date;
34806
34809
  deletedAt: Date | null;
@@ -35003,7 +35006,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
35003
35006
  integrationId: string;
35004
35007
  } | null;
35005
35008
  };
35006
- direction: string;
35009
+ direction: "incoming" | "outgoing" | "system";
35007
35010
  status: number;
35008
35011
  createdAt: Date;
35009
35012
  updatedAt: Date;
@@ -35355,7 +35358,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
35355
35358
  message: string;
35356
35359
  id: string;
35357
35360
  url: string;
35358
- direction: string;
35361
+ direction: "incoming" | "outgoing" | "system";
35359
35362
  createdAt: Date;
35360
35363
  updatedAt: Date;
35361
35364
  deletedAt: Date | null;
@@ -35764,7 +35767,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
35764
35767
  integrationId: string;
35765
35768
  } | null;
35766
35769
  };
35767
- direction: string;
35770
+ direction: "incoming" | "outgoing" | "system";
35768
35771
  status: number;
35769
35772
  createdAt: Date;
35770
35773
  updatedAt: Date;
@@ -36116,7 +36119,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
36116
36119
  message: string;
36117
36120
  id: string;
36118
36121
  url: string;
36119
- direction: string;
36122
+ direction: "incoming" | "outgoing" | "system";
36120
36123
  createdAt: Date;
36121
36124
  updatedAt: Date;
36122
36125
  deletedAt: Date | null;
@@ -36454,13 +36457,13 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
36454
36457
  message: string;
36455
36458
  id: string;
36456
36459
  url: string;
36457
- direction: string;
36460
+ direction: "incoming" | "outgoing" | "system";
36458
36461
  children: {
36459
36462
  type: string;
36460
36463
  message: string;
36461
36464
  id: string;
36462
36465
  url: string;
36463
- direction: string;
36466
+ direction: "incoming" | "outgoing" | "system";
36464
36467
  createdAt: Date;
36465
36468
  updatedAt: Date;
36466
36469
  deletedAt: Date | null;
@@ -36663,7 +36666,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
36663
36666
  integrationId: string;
36664
36667
  } | null;
36665
36668
  };
36666
- direction: string;
36669
+ direction: "incoming" | "outgoing" | "system";
36667
36670
  status: number;
36668
36671
  createdAt: Date;
36669
36672
  updatedAt: Date;
@@ -37015,7 +37018,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
37015
37018
  message: string;
37016
37019
  id: string;
37017
37020
  url: string;
37018
- direction: string;
37021
+ direction: "incoming" | "outgoing" | "system";
37019
37022
  createdAt: Date;
37020
37023
  updatedAt: Date;
37021
37024
  deletedAt: Date | null;
@@ -37424,7 +37427,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
37424
37427
  integrationId: string;
37425
37428
  } | null;
37426
37429
  };
37427
- direction: string;
37430
+ direction: "incoming" | "outgoing" | "system";
37428
37431
  status: number;
37429
37432
  createdAt: Date;
37430
37433
  updatedAt: Date;
@@ -37776,7 +37779,7 @@ export declare const MessageRelevanceSchema: z.ZodObject<z.objectUtil.extendShap
37776
37779
  message: string;
37777
37780
  id: string;
37778
37781
  url: string;
37779
- direction: string;
37782
+ direction: "incoming" | "outgoing" | "system";
37780
37783
  createdAt: Date;
37781
37784
  updatedAt: Date;
37782
37785
  deletedAt: Date | null;