@kl1/contracts 1.3.0 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -274,7 +274,7 @@ export declare const ActionMessageSchema: z.ZodObject<{
274
274
  }>;
275
275
  export declare const SendMessageSchema: z.ZodObject<{
276
276
  roomId: z.ZodString;
277
- messageType: z.ZodEnum<[string, ...string[]]>;
277
+ messageType: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
278
278
  message: z.ZodOptional<z.ZodString>;
279
279
  messageAttachments: z.ZodOptional<z.ZodObject<{
280
280
  bucketName: z.ZodString;
@@ -694,7 +694,7 @@ export declare const InitiateMessageSchema: z.ZodObject<{
694
694
  contactId: z.ZodOptional<z.ZodString>;
695
695
  message: z.ZodObject<{
696
696
  message: z.ZodOptional<z.ZodString>;
697
- messageType: z.ZodEnum<[string, ...string[]]>;
697
+ messageType: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
698
698
  }, "strip", z.ZodTypeAny, {
699
699
  messageType: string;
700
700
  message?: string | undefined;
@@ -1661,8 +1661,8 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
1661
1661
  message: z.ZodObject<{
1662
1662
  id: z.ZodOptional<z.ZodString>;
1663
1663
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1664
- direction: z.ZodEnum<[string, ...string[]]>;
1665
- type: z.ZodEnum<[string, ...string[]]>;
1664
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
1665
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
1666
1666
  readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
1667
1667
  metadata: z.ZodOptional<z.ZodAny>;
1668
1668
  platformId: z.ZodOptional<z.ZodString>;
@@ -1715,7 +1715,7 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
1715
1715
  feedPostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1716
1716
  }, "strip", z.ZodTypeAny, {
1717
1717
  type: string;
1718
- direction: string;
1718
+ direction: "incoming" | "outgoing" | "system";
1719
1719
  message?: string | null | undefined;
1720
1720
  id?: string | undefined;
1721
1721
  url?: string | null | undefined;
@@ -1746,7 +1746,7 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
1746
1746
  feedPostId?: string | null | undefined;
1747
1747
  }, {
1748
1748
  type: string;
1749
- direction: string;
1749
+ direction: "incoming" | "outgoing" | "system";
1750
1750
  message?: string | null | undefined;
1751
1751
  id?: string | undefined;
1752
1752
  url?: string | null | undefined;
@@ -1779,7 +1779,7 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
1779
1779
  }, "strip", z.ZodTypeAny, {
1780
1780
  message: {
1781
1781
  type: string;
1782
- direction: string;
1782
+ direction: "incoming" | "outgoing" | "system";
1783
1783
  message?: string | null | undefined;
1784
1784
  id?: string | undefined;
1785
1785
  url?: string | null | undefined;
@@ -1864,7 +1864,7 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
1864
1864
  }, {
1865
1865
  message: {
1866
1866
  type: string;
1867
- direction: string;
1867
+ direction: "incoming" | "outgoing" | "system";
1868
1868
  message?: string | null | undefined;
1869
1869
  id?: string | undefined;
1870
1870
  url?: string | null | undefined;
@@ -1954,7 +1954,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1954
1954
  lastMessage: z.ZodOptional<z.ZodString>;
1955
1955
  handleTime: z.ZodOptional<z.ZodNumber>;
1956
1956
  isLatest: z.ZodBoolean;
1957
- direction: z.ZodEnum<[string, ...string[]]>;
1957
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
1958
1958
  metadata: z.ZodOptional<z.ZodAny>;
1959
1959
  createdAt: z.ZodString;
1960
1960
  updatedAt: z.ZodString;
@@ -2376,7 +2376,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2376
2376
  connectedUserName?: string | null | undefined;
2377
2377
  connectedUserId?: string | null | undefined;
2378
2378
  };
2379
- direction: string;
2379
+ direction: "incoming" | "outgoing" | "system";
2380
2380
  createdAt: string;
2381
2381
  updatedAt: string;
2382
2382
  actor: {
@@ -2468,7 +2468,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2468
2468
  connectedUserName?: string | null | undefined;
2469
2469
  connectedUserId?: string | null | undefined;
2470
2470
  };
2471
- direction: string;
2471
+ direction: "incoming" | "outgoing" | "system";
2472
2472
  createdAt: string;
2473
2473
  updatedAt: string;
2474
2474
  actor: {
@@ -2513,8 +2513,8 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2513
2513
  message: z.ZodObject<{
2514
2514
  id: z.ZodOptional<z.ZodString>;
2515
2515
  message: z.ZodOptional<z.ZodString>;
2516
- direction: z.ZodEnum<[string, ...string[]]>;
2517
- type: z.ZodEnum<[string, ...string[]]>;
2516
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
2517
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
2518
2518
  readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
2519
2519
  metadata: z.ZodOptional<z.ZodAny>;
2520
2520
  platformId: z.ZodOptional<z.ZodString>;
@@ -2571,7 +2571,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2571
2571
  label: z.ZodOptional<z.ZodString>;
2572
2572
  }, "strip", z.ZodTypeAny, {
2573
2573
  type: string;
2574
- direction: string;
2574
+ direction: "incoming" | "outgoing" | "system";
2575
2575
  message?: string | undefined;
2576
2576
  id?: string | undefined;
2577
2577
  url?: string | undefined;
@@ -2606,7 +2606,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2606
2606
  editedAt?: string | Date | null | undefined;
2607
2607
  }, {
2608
2608
  type: string;
2609
- direction: string;
2609
+ direction: "incoming" | "outgoing" | "system";
2610
2610
  message?: string | undefined;
2611
2611
  id?: string | undefined;
2612
2612
  url?: string | undefined;
@@ -2643,7 +2643,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2643
2643
  }, "strip", z.ZodTypeAny, {
2644
2644
  message: {
2645
2645
  type: string;
2646
- direction: string;
2646
+ direction: "incoming" | "outgoing" | "system";
2647
2647
  message?: string | undefined;
2648
2648
  id?: string | undefined;
2649
2649
  url?: string | undefined;
@@ -2728,7 +2728,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2728
2728
  connectedUserName?: string | null | undefined;
2729
2729
  connectedUserId?: string | null | undefined;
2730
2730
  };
2731
- direction: string;
2731
+ direction: "incoming" | "outgoing" | "system";
2732
2732
  createdAt: string;
2733
2733
  updatedAt: string;
2734
2734
  actor: {
@@ -2774,7 +2774,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2774
2774
  }, {
2775
2775
  message: {
2776
2776
  type: string;
2777
- direction: string;
2777
+ direction: "incoming" | "outgoing" | "system";
2778
2778
  message?: string | undefined;
2779
2779
  id?: string | undefined;
2780
2780
  url?: string | undefined;
@@ -2859,7 +2859,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2859
2859
  connectedUserName?: string | null | undefined;
2860
2860
  connectedUserId?: string | null | undefined;
2861
2861
  };
2862
- direction: string;
2862
+ direction: "incoming" | "outgoing" | "system";
2863
2863
  createdAt: string;
2864
2864
  updatedAt: string;
2865
2865
  actor: {
@@ -2910,7 +2910,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<z.objectUtil.e
2910
2910
  lastMessage: z.ZodOptional<z.ZodString>;
2911
2911
  handleTime: z.ZodOptional<z.ZodNumber>;
2912
2912
  isLatest: z.ZodBoolean;
2913
- direction: z.ZodEnum<[string, ...string[]]>;
2913
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
2914
2914
  metadata: z.ZodOptional<z.ZodAny>;
2915
2915
  createdAt: z.ZodString;
2916
2916
  updatedAt: z.ZodString;
@@ -3332,7 +3332,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<z.objectUtil.e
3332
3332
  connectedUserName?: string | null | undefined;
3333
3333
  connectedUserId?: string | null | undefined;
3334
3334
  };
3335
- direction: string;
3335
+ direction: "incoming" | "outgoing" | "system";
3336
3336
  createdAt: string;
3337
3337
  updatedAt: string;
3338
3338
  actor: {
@@ -3424,7 +3424,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<z.objectUtil.e
3424
3424
  connectedUserName?: string | null | undefined;
3425
3425
  connectedUserId?: string | null | undefined;
3426
3426
  };
3427
- direction: string;
3427
+ direction: "incoming" | "outgoing" | "system";
3428
3428
  createdAt: string;
3429
3429
  updatedAt: string;
3430
3430
  actor: {
@@ -3469,8 +3469,8 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<z.objectUtil.e
3469
3469
  message: z.ZodObject<{
3470
3470
  id: z.ZodOptional<z.ZodString>;
3471
3471
  message: z.ZodOptional<z.ZodString>;
3472
- direction: z.ZodEnum<[string, ...string[]]>;
3473
- type: z.ZodEnum<[string, ...string[]]>;
3472
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
3473
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
3474
3474
  readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
3475
3475
  metadata: z.ZodOptional<z.ZodAny>;
3476
3476
  platformId: z.ZodOptional<z.ZodString>;
@@ -3527,7 +3527,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<z.objectUtil.e
3527
3527
  label: z.ZodOptional<z.ZodString>;
3528
3528
  }, "strip", z.ZodTypeAny, {
3529
3529
  type: string;
3530
- direction: string;
3530
+ direction: "incoming" | "outgoing" | "system";
3531
3531
  message?: string | undefined;
3532
3532
  id?: string | undefined;
3533
3533
  url?: string | undefined;
@@ -3562,7 +3562,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<z.objectUtil.e
3562
3562
  editedAt?: string | Date | null | undefined;
3563
3563
  }, {
3564
3564
  type: string;
3565
- direction: string;
3565
+ direction: "incoming" | "outgoing" | "system";
3566
3566
  message?: string | undefined;
3567
3567
  id?: string | undefined;
3568
3568
  url?: string | undefined;
@@ -3610,7 +3610,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<z.objectUtil.e
3610
3610
  }>, "strip", z.ZodTypeAny, {
3611
3611
  message: {
3612
3612
  type: string;
3613
- direction: string;
3613
+ direction: "incoming" | "outgoing" | "system";
3614
3614
  message?: string | undefined;
3615
3615
  id?: string | undefined;
3616
3616
  url?: string | undefined;
@@ -3695,7 +3695,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<z.objectUtil.e
3695
3695
  connectedUserName?: string | null | undefined;
3696
3696
  connectedUserId?: string | null | undefined;
3697
3697
  };
3698
- direction: string;
3698
+ direction: "incoming" | "outgoing" | "system";
3699
3699
  createdAt: string;
3700
3700
  updatedAt: string;
3701
3701
  actor: {
@@ -3745,7 +3745,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<z.objectUtil.e
3745
3745
  }, {
3746
3746
  message: {
3747
3747
  type: string;
3748
- direction: string;
3748
+ direction: "incoming" | "outgoing" | "system";
3749
3749
  message?: string | undefined;
3750
3750
  id?: string | undefined;
3751
3751
  url?: string | undefined;
@@ -3830,7 +3830,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<z.objectUtil.e
3830
3830
  connectedUserName?: string | null | undefined;
3831
3831
  connectedUserId?: string | null | undefined;
3832
3832
  };
3833
- direction: string;
3833
+ direction: "incoming" | "outgoing" | "system";
3834
3834
  createdAt: string;
3835
3835
  updatedAt: string;
3836
3836
  actor: {
@@ -3888,8 +3888,8 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
3888
3888
  deletedAt: z.ZodNullable<z.ZodDate>;
3889
3889
  }, {
3890
3890
  message: z.ZodString;
3891
- direction: z.ZodEnum<[string, ...string[]]>;
3892
- type: z.ZodEnum<[string, ...string[]]>;
3891
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
3892
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
3893
3893
  readAt: z.ZodDate;
3894
3894
  metadata: z.ZodAny;
3895
3895
  platformId: z.ZodString;
@@ -3916,7 +3916,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
3916
3916
  firstResponseTime: z.ZodNumber;
3917
3917
  isLatest: z.ZodBoolean;
3918
3918
  isBotRoom: z.ZodBoolean;
3919
- direction: z.ZodEnum<[string, ...string[]]>;
3919
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
3920
3920
  platformContact: z.ZodObject<{
3921
3921
  id: z.ZodString;
3922
3922
  createdAt: z.ZodDate;
@@ -6601,7 +6601,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
6601
6601
  integrationId: string;
6602
6602
  } | null;
6603
6603
  };
6604
- direction: string;
6604
+ direction: "incoming" | "outgoing" | "system";
6605
6605
  status: number;
6606
6606
  createdAt: Date;
6607
6607
  updatedAt: Date;
@@ -7030,7 +7030,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
7030
7030
  integrationId: string;
7031
7031
  } | null;
7032
7032
  };
7033
- direction: string;
7033
+ direction: "incoming" | "outgoing" | "system";
7034
7034
  status: number;
7035
7035
  createdAt: Date;
7036
7036
  updatedAt: Date;
@@ -7404,8 +7404,8 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
7404
7404
  deletedAt: z.ZodNullable<z.ZodDate>;
7405
7405
  }, {
7406
7406
  message: z.ZodString;
7407
- direction: z.ZodEnum<[string, ...string[]]>;
7408
- type: z.ZodEnum<[string, ...string[]]>;
7407
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
7408
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
7409
7409
  readAt: z.ZodDate;
7410
7410
  metadata: z.ZodAny;
7411
7411
  platformId: z.ZodString;
@@ -8071,7 +8071,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
8071
8071
  message: string;
8072
8072
  id: string;
8073
8073
  url: string;
8074
- direction: string;
8074
+ direction: "incoming" | "outgoing" | "system";
8075
8075
  createdAt: Date;
8076
8076
  updatedAt: Date;
8077
8077
  deletedAt: Date | null;
@@ -8233,7 +8233,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
8233
8233
  message: string;
8234
8234
  id: string;
8235
8235
  url: string;
8236
- direction: string;
8236
+ direction: "incoming" | "outgoing" | "system";
8237
8237
  createdAt: Date;
8238
8238
  updatedAt: Date;
8239
8239
  deletedAt: Date | null;
@@ -9039,8 +9039,8 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
9039
9039
  deletedAt: z.ZodNullable<z.ZodDate>;
9040
9040
  }, {
9041
9041
  message: z.ZodString;
9042
- direction: z.ZodEnum<[string, ...string[]]>;
9043
- type: z.ZodEnum<[string, ...string[]]>;
9042
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
9043
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
9044
9044
  readAt: z.ZodDate;
9045
9045
  metadata: z.ZodAny;
9046
9046
  platformId: z.ZodString;
@@ -9067,7 +9067,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
9067
9067
  firstResponseTime: z.ZodNumber;
9068
9068
  isLatest: z.ZodBoolean;
9069
9069
  isBotRoom: z.ZodBoolean;
9070
- direction: z.ZodEnum<[string, ...string[]]>;
9070
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
9071
9071
  platformContact: z.ZodObject<{
9072
9072
  id: z.ZodString;
9073
9073
  createdAt: z.ZodDate;
@@ -11752,7 +11752,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
11752
11752
  integrationId: string;
11753
11753
  } | null;
11754
11754
  };
11755
- direction: string;
11755
+ direction: "incoming" | "outgoing" | "system";
11756
11756
  status: number;
11757
11757
  createdAt: Date;
11758
11758
  updatedAt: Date;
@@ -12181,7 +12181,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
12181
12181
  integrationId: string;
12182
12182
  } | null;
12183
12183
  };
12184
- direction: string;
12184
+ direction: "incoming" | "outgoing" | "system";
12185
12185
  status: number;
12186
12186
  createdAt: Date;
12187
12187
  updatedAt: Date;
@@ -12555,8 +12555,8 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
12555
12555
  deletedAt: z.ZodNullable<z.ZodDate>;
12556
12556
  }, {
12557
12557
  message: z.ZodString;
12558
- direction: z.ZodEnum<[string, ...string[]]>;
12559
- type: z.ZodEnum<[string, ...string[]]>;
12558
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
12559
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
12560
12560
  readAt: z.ZodDate;
12561
12561
  metadata: z.ZodAny;
12562
12562
  platformId: z.ZodString;
@@ -13222,7 +13222,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
13222
13222
  message: string;
13223
13223
  id: string;
13224
13224
  url: string;
13225
- direction: string;
13225
+ direction: "incoming" | "outgoing" | "system";
13226
13226
  createdAt: Date;
13227
13227
  updatedAt: Date;
13228
13228
  deletedAt: Date | null;
@@ -13384,7 +13384,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
13384
13384
  message: string;
13385
13385
  id: string;
13386
13386
  url: string;
13387
- direction: string;
13387
+ direction: "incoming" | "outgoing" | "system";
13388
13388
  createdAt: Date;
13389
13389
  updatedAt: Date;
13390
13390
  deletedAt: Date | null;
@@ -14187,7 +14187,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
14187
14187
  message: string;
14188
14188
  id: string;
14189
14189
  url: string;
14190
- direction: string;
14190
+ direction: "incoming" | "outgoing" | "system";
14191
14191
  createdAt: Date;
14192
14192
  updatedAt: Date;
14193
14193
  deletedAt: Date | null;
@@ -14390,7 +14390,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
14390
14390
  integrationId: string;
14391
14391
  } | null;
14392
14392
  };
14393
- direction: string;
14393
+ direction: "incoming" | "outgoing" | "system";
14394
14394
  status: number;
14395
14395
  createdAt: Date;
14396
14396
  updatedAt: Date;
@@ -14742,7 +14742,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
14742
14742
  message: string;
14743
14743
  id: string;
14744
14744
  url: string;
14745
- direction: string;
14745
+ direction: "incoming" | "outgoing" | "system";
14746
14746
  createdAt: Date;
14747
14747
  updatedAt: Date;
14748
14748
  deletedAt: Date | null;
@@ -14953,7 +14953,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
14953
14953
  message: string;
14954
14954
  id: string;
14955
14955
  url: string;
14956
- direction: string;
14956
+ direction: "incoming" | "outgoing" | "system";
14957
14957
  createdAt: Date;
14958
14958
  updatedAt: Date;
14959
14959
  deletedAt: Date | null;
@@ -15156,7 +15156,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
15156
15156
  integrationId: string;
15157
15157
  } | null;
15158
15158
  };
15159
- direction: string;
15159
+ direction: "incoming" | "outgoing" | "system";
15160
15160
  status: number;
15161
15161
  createdAt: Date;
15162
15162
  updatedAt: Date;
@@ -15508,7 +15508,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
15508
15508
  message: string;
15509
15509
  id: string;
15510
15510
  url: string;
15511
- direction: string;
15511
+ direction: "incoming" | "outgoing" | "system";
15512
15512
  createdAt: Date;
15513
15513
  updatedAt: Date;
15514
15514
  deletedAt: Date | null;
@@ -15720,7 +15720,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
15720
15720
  message: string;
15721
15721
  id: string;
15722
15722
  url: string;
15723
- direction: string;
15723
+ direction: "incoming" | "outgoing" | "system";
15724
15724
  createdAt: Date;
15725
15725
  updatedAt: Date;
15726
15726
  deletedAt: Date | null;
@@ -15923,7 +15923,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
15923
15923
  integrationId: string;
15924
15924
  } | null;
15925
15925
  };
15926
- direction: string;
15926
+ direction: "incoming" | "outgoing" | "system";
15927
15927
  status: number;
15928
15928
  createdAt: Date;
15929
15929
  updatedAt: Date;
@@ -16275,7 +16275,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
16275
16275
  message: string;
16276
16276
  id: string;
16277
16277
  url: string;
16278
- direction: string;
16278
+ direction: "incoming" | "outgoing" | "system";
16279
16279
  createdAt: Date;
16280
16280
  updatedAt: Date;
16281
16281
  deletedAt: Date | null;
@@ -16486,7 +16486,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
16486
16486
  message: string;
16487
16487
  id: string;
16488
16488
  url: string;
16489
- direction: string;
16489
+ direction: "incoming" | "outgoing" | "system";
16490
16490
  createdAt: Date;
16491
16491
  updatedAt: Date;
16492
16492
  deletedAt: Date | null;
@@ -16689,7 +16689,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
16689
16689
  integrationId: string;
16690
16690
  } | null;
16691
16691
  };
16692
- direction: string;
16692
+ direction: "incoming" | "outgoing" | "system";
16693
16693
  status: number;
16694
16694
  createdAt: Date;
16695
16695
  updatedAt: Date;
@@ -17041,7 +17041,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
17041
17041
  message: string;
17042
17042
  id: string;
17043
17043
  url: string;
17044
- direction: string;
17044
+ direction: "incoming" | "outgoing" | "system";
17045
17045
  createdAt: Date;
17046
17046
  updatedAt: Date;
17047
17047
  deletedAt: Date | null;
@@ -17253,7 +17253,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
17253
17253
  message: string;
17254
17254
  id: string;
17255
17255
  url: string;
17256
- direction: string;
17256
+ direction: "incoming" | "outgoing" | "system";
17257
17257
  createdAt: Date;
17258
17258
  updatedAt: Date;
17259
17259
  deletedAt: Date | null;
@@ -17456,7 +17456,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
17456
17456
  integrationId: string;
17457
17457
  } | null;
17458
17458
  };
17459
- direction: string;
17459
+ direction: "incoming" | "outgoing" | "system";
17460
17460
  status: number;
17461
17461
  createdAt: Date;
17462
17462
  updatedAt: Date;
@@ -17808,7 +17808,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
17808
17808
  message: string;
17809
17809
  id: string;
17810
17810
  url: string;
17811
- direction: string;
17811
+ direction: "incoming" | "outgoing" | "system";
17812
17812
  createdAt: Date;
17813
17813
  updatedAt: Date;
17814
17814
  deletedAt: Date | null;
@@ -18019,7 +18019,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
18019
18019
  message: string;
18020
18020
  id: string;
18021
18021
  url: string;
18022
- direction: string;
18022
+ direction: "incoming" | "outgoing" | "system";
18023
18023
  createdAt: Date;
18024
18024
  updatedAt: Date;
18025
18025
  deletedAt: Date | null;
@@ -18222,7 +18222,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
18222
18222
  integrationId: string;
18223
18223
  } | null;
18224
18224
  };
18225
- direction: string;
18225
+ direction: "incoming" | "outgoing" | "system";
18226
18226
  status: number;
18227
18227
  createdAt: Date;
18228
18228
  updatedAt: Date;
@@ -18574,7 +18574,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
18574
18574
  message: string;
18575
18575
  id: string;
18576
18576
  url: string;
18577
- direction: string;
18577
+ direction: "incoming" | "outgoing" | "system";
18578
18578
  createdAt: Date;
18579
18579
  updatedAt: Date;
18580
18580
  deletedAt: Date | null;
@@ -18788,7 +18788,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
18788
18788
  message: string;
18789
18789
  id: string;
18790
18790
  url: string;
18791
- direction: string;
18791
+ direction: "incoming" | "outgoing" | "system";
18792
18792
  createdAt: Date;
18793
18793
  updatedAt: Date;
18794
18794
  deletedAt: Date | null;
@@ -18991,7 +18991,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
18991
18991
  integrationId: string;
18992
18992
  } | null;
18993
18993
  };
18994
- direction: string;
18994
+ direction: "incoming" | "outgoing" | "system";
18995
18995
  status: number;
18996
18996
  createdAt: Date;
18997
18997
  updatedAt: Date;
@@ -19343,7 +19343,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
19343
19343
  message: string;
19344
19344
  id: string;
19345
19345
  url: string;
19346
- direction: string;
19346
+ direction: "incoming" | "outgoing" | "system";
19347
19347
  createdAt: Date;
19348
19348
  updatedAt: Date;
19349
19349
  deletedAt: Date | null;
@@ -19554,7 +19554,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
19554
19554
  message: string;
19555
19555
  id: string;
19556
19556
  url: string;
19557
- direction: string;
19557
+ direction: "incoming" | "outgoing" | "system";
19558
19558
  createdAt: Date;
19559
19559
  updatedAt: Date;
19560
19560
  deletedAt: Date | null;
@@ -19757,7 +19757,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
19757
19757
  integrationId: string;
19758
19758
  } | null;
19759
19759
  };
19760
- direction: string;
19760
+ direction: "incoming" | "outgoing" | "system";
19761
19761
  status: number;
19762
19762
  createdAt: Date;
19763
19763
  updatedAt: Date;
@@ -20109,7 +20109,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
20109
20109
  message: string;
20110
20110
  id: string;
20111
20111
  url: string;
20112
- direction: string;
20112
+ direction: "incoming" | "outgoing" | "system";
20113
20113
  createdAt: Date;
20114
20114
  updatedAt: Date;
20115
20115
  deletedAt: Date | null;
@@ -20324,7 +20324,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
20324
20324
  message: string;
20325
20325
  id: string;
20326
20326
  url: string;
20327
- direction: string;
20327
+ direction: "incoming" | "outgoing" | "system";
20328
20328
  createdAt: Date;
20329
20329
  updatedAt: Date;
20330
20330
  deletedAt: Date | null;
@@ -20527,7 +20527,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
20527
20527
  integrationId: string;
20528
20528
  } | null;
20529
20529
  };
20530
- direction: string;
20530
+ direction: "incoming" | "outgoing" | "system";
20531
20531
  status: number;
20532
20532
  createdAt: Date;
20533
20533
  updatedAt: Date;
@@ -20879,7 +20879,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
20879
20879
  message: string;
20880
20880
  id: string;
20881
20881
  url: string;
20882
- direction: string;
20882
+ direction: "incoming" | "outgoing" | "system";
20883
20883
  createdAt: Date;
20884
20884
  updatedAt: Date;
20885
20885
  deletedAt: Date | null;
@@ -21090,7 +21090,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
21090
21090
  message: string;
21091
21091
  id: string;
21092
21092
  url: string;
21093
- direction: string;
21093
+ direction: "incoming" | "outgoing" | "system";
21094
21094
  createdAt: Date;
21095
21095
  updatedAt: Date;
21096
21096
  deletedAt: Date | null;
@@ -21293,7 +21293,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
21293
21293
  integrationId: string;
21294
21294
  } | null;
21295
21295
  };
21296
- direction: string;
21296
+ direction: "incoming" | "outgoing" | "system";
21297
21297
  status: number;
21298
21298
  createdAt: Date;
21299
21299
  updatedAt: Date;
@@ -21645,7 +21645,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<z.objectUtil.extendS
21645
21645
  message: string;
21646
21646
  id: string;
21647
21647
  url: string;
21648
- direction: string;
21648
+ direction: "incoming" | "outgoing" | "system";
21649
21649
  createdAt: Date;
21650
21650
  updatedAt: Date;
21651
21651
  deletedAt: Date | null;
@@ -22219,8 +22219,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
22219
22219
  updatedAt: z.ZodString;
22220
22220
  deletedAt: z.ZodNullable<z.ZodString>;
22221
22221
  message: z.ZodOptional<z.ZodString>;
22222
- direction: z.ZodEnum<[string, ...string[]]>;
22223
- type: z.ZodEnum<[string, ...string[]]>;
22222
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
22223
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
22224
22224
  metadata: z.ZodAny;
22225
22225
  platformId: z.ZodString;
22226
22226
  platformMessageId: z.ZodString;
@@ -22242,7 +22242,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
22242
22242
  firstResponseAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22243
22243
  firstResponseTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22244
22244
  isLatest: z.ZodOptional<z.ZodBoolean>;
22245
- direction: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
22245
+ direction: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>>;
22246
22246
  platformContact: z.ZodOptional<z.ZodObject<{
22247
22247
  id: z.ZodString;
22248
22248
  createdAt: z.ZodString;
@@ -24438,7 +24438,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
24438
24438
  connectedUserName?: string | null | undefined;
24439
24439
  connectedUserId?: string | null | undefined;
24440
24440
  } | undefined;
24441
- direction?: string | undefined;
24441
+ direction?: "incoming" | "outgoing" | "system" | undefined;
24442
24442
  createdAt?: string | undefined;
24443
24443
  updatedAt?: string | undefined;
24444
24444
  deletedAt?: string | null | undefined;
@@ -24791,7 +24791,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
24791
24791
  connectedUserName?: string | null | undefined;
24792
24792
  connectedUserId?: string | null | undefined;
24793
24793
  } | undefined;
24794
- direction?: string | undefined;
24794
+ direction?: "incoming" | "outgoing" | "system" | undefined;
24795
24795
  createdAt?: string | undefined;
24796
24796
  updatedAt?: string | undefined;
24797
24797
  deletedAt?: string | null | undefined;
@@ -25747,7 +25747,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
25747
25747
  }, "strip", z.ZodTypeAny, {
25748
25748
  type: string;
25749
25749
  id: string;
25750
- direction: string;
25750
+ direction: "incoming" | "outgoing" | "system";
25751
25751
  createdAt: string;
25752
25752
  updatedAt: string;
25753
25753
  deletedAt: string | null;
@@ -25803,7 +25803,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
25803
25803
  connectedUserName?: string | null | undefined;
25804
25804
  connectedUserId?: string | null | undefined;
25805
25805
  } | undefined;
25806
- direction?: string | undefined;
25806
+ direction?: "incoming" | "outgoing" | "system" | undefined;
25807
25807
  createdAt?: string | undefined;
25808
25808
  updatedAt?: string | undefined;
25809
25809
  deletedAt?: string | null | undefined;
@@ -26263,7 +26263,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
26263
26263
  }, {
26264
26264
  type: string;
26265
26265
  id: string;
26266
- direction: string;
26266
+ direction: "incoming" | "outgoing" | "system";
26267
26267
  createdAt: string;
26268
26268
  updatedAt: string;
26269
26269
  deletedAt: string | null;
@@ -26319,7 +26319,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
26319
26319
  connectedUserName?: string | null | undefined;
26320
26320
  connectedUserId?: string | null | undefined;
26321
26321
  } | undefined;
26322
- direction?: string | undefined;
26322
+ direction?: "incoming" | "outgoing" | "system" | undefined;
26323
26323
  createdAt?: string | undefined;
26324
26324
  updatedAt?: string | undefined;
26325
26325
  deletedAt?: string | null | undefined;
@@ -26781,7 +26781,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
26781
26781
  message: {
26782
26782
  type: string;
26783
26783
  id: string;
26784
- direction: string;
26784
+ direction: "incoming" | "outgoing" | "system";
26785
26785
  createdAt: string;
26786
26786
  updatedAt: string;
26787
26787
  deletedAt: string | null;
@@ -26837,7 +26837,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
26837
26837
  connectedUserName?: string | null | undefined;
26838
26838
  connectedUserId?: string | null | undefined;
26839
26839
  } | undefined;
26840
- direction?: string | undefined;
26840
+ direction?: "incoming" | "outgoing" | "system" | undefined;
26841
26841
  createdAt?: string | undefined;
26842
26842
  updatedAt?: string | undefined;
26843
26843
  deletedAt?: string | null | undefined;
@@ -27299,7 +27299,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
27299
27299
  message: {
27300
27300
  type: string;
27301
27301
  id: string;
27302
- direction: string;
27302
+ direction: "incoming" | "outgoing" | "system";
27303
27303
  createdAt: string;
27304
27304
  updatedAt: string;
27305
27305
  deletedAt: string | null;
@@ -27355,7 +27355,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
27355
27355
  connectedUserName?: string | null | undefined;
27356
27356
  connectedUserId?: string | null | undefined;
27357
27357
  } | undefined;
27358
- direction?: string | undefined;
27358
+ direction?: "incoming" | "outgoing" | "system" | undefined;
27359
27359
  createdAt?: string | undefined;
27360
27360
  updatedAt?: string | undefined;
27361
27361
  deletedAt?: string | null | undefined;