@kl1/contracts 1.3.0 → 1.3.1

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.
@@ -8,7 +8,7 @@ export declare const platformWebchatContract: {
8
8
  lastMessage: z.ZodOptional<z.ZodString>;
9
9
  handleTime: z.ZodOptional<z.ZodNumber>;
10
10
  isLatest: z.ZodBoolean;
11
- direction: z.ZodEnum<[string, ...string[]]>;
11
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
12
12
  metadata: z.ZodOptional<z.ZodAny>;
13
13
  createdAt: z.ZodString;
14
14
  updatedAt: z.ZodString;
@@ -430,7 +430,7 @@ export declare const platformWebchatContract: {
430
430
  connectedUserName?: string | null | undefined;
431
431
  connectedUserId?: string | null | undefined;
432
432
  };
433
- direction: string;
433
+ direction: "incoming" | "outgoing" | "system";
434
434
  createdAt: string;
435
435
  updatedAt: string;
436
436
  actor: {
@@ -522,7 +522,7 @@ export declare const platformWebchatContract: {
522
522
  connectedUserName?: string | null | undefined;
523
523
  connectedUserId?: string | null | undefined;
524
524
  };
525
- direction: string;
525
+ direction: "incoming" | "outgoing" | "system";
526
526
  createdAt: string;
527
527
  updatedAt: string;
528
528
  actor: {
@@ -567,8 +567,8 @@ export declare const platformWebchatContract: {
567
567
  message: z.ZodObject<{
568
568
  id: z.ZodOptional<z.ZodString>;
569
569
  message: z.ZodOptional<z.ZodString>;
570
- direction: z.ZodEnum<[string, ...string[]]>;
571
- type: z.ZodEnum<[string, ...string[]]>;
570
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
571
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
572
572
  readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
573
573
  metadata: z.ZodOptional<z.ZodAny>;
574
574
  platformId: z.ZodOptional<z.ZodString>;
@@ -625,7 +625,7 @@ export declare const platformWebchatContract: {
625
625
  label: z.ZodOptional<z.ZodString>;
626
626
  }, "strip", z.ZodTypeAny, {
627
627
  type: string;
628
- direction: string;
628
+ direction: "incoming" | "outgoing" | "system";
629
629
  message?: string | undefined;
630
630
  id?: string | undefined;
631
631
  url?: string | undefined;
@@ -660,7 +660,7 @@ export declare const platformWebchatContract: {
660
660
  editedAt?: string | Date | null | undefined;
661
661
  }, {
662
662
  type: string;
663
- direction: string;
663
+ direction: "incoming" | "outgoing" | "system";
664
664
  message?: string | undefined;
665
665
  id?: string | undefined;
666
666
  url?: string | undefined;
@@ -697,7 +697,7 @@ export declare const platformWebchatContract: {
697
697
  }, "strip", z.ZodTypeAny, {
698
698
  message: {
699
699
  type: string;
700
- direction: string;
700
+ direction: "incoming" | "outgoing" | "system";
701
701
  message?: string | undefined;
702
702
  id?: string | undefined;
703
703
  url?: string | undefined;
@@ -782,7 +782,7 @@ export declare const platformWebchatContract: {
782
782
  connectedUserName?: string | null | undefined;
783
783
  connectedUserId?: string | null | undefined;
784
784
  };
785
- direction: string;
785
+ direction: "incoming" | "outgoing" | "system";
786
786
  createdAt: string;
787
787
  updatedAt: string;
788
788
  actor: {
@@ -828,7 +828,7 @@ export declare const platformWebchatContract: {
828
828
  }, {
829
829
  message: {
830
830
  type: string;
831
- direction: string;
831
+ direction: "incoming" | "outgoing" | "system";
832
832
  message?: string | undefined;
833
833
  id?: string | undefined;
834
834
  url?: string | undefined;
@@ -913,7 +913,7 @@ export declare const platformWebchatContract: {
913
913
  connectedUserName?: string | null | undefined;
914
914
  connectedUserId?: string | null | undefined;
915
915
  };
916
- direction: string;
916
+ direction: "incoming" | "outgoing" | "system";
917
917
  createdAt: string;
918
918
  updatedAt: string;
919
919
  actor: {
@@ -970,8 +970,8 @@ export declare const platformWebchatContract: {
970
970
  deletedAt: z.ZodNullable<z.ZodDate>;
971
971
  }, {
972
972
  message: z.ZodString;
973
- direction: z.ZodEnum<[string, ...string[]]>;
974
- type: z.ZodEnum<[string, ...string[]]>;
973
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
974
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
975
975
  readAt: z.ZodDate;
976
976
  metadata: z.ZodAny;
977
977
  platformId: z.ZodString;
@@ -998,7 +998,7 @@ export declare const platformWebchatContract: {
998
998
  firstResponseTime: z.ZodNumber;
999
999
  isLatest: z.ZodBoolean;
1000
1000
  isBotRoom: z.ZodBoolean;
1001
- direction: z.ZodEnum<[string, ...string[]]>;
1001
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
1002
1002
  platformContact: z.ZodObject<{
1003
1003
  id: z.ZodString;
1004
1004
  createdAt: z.ZodDate;
@@ -3683,7 +3683,7 @@ export declare const platformWebchatContract: {
3683
3683
  integrationId: string;
3684
3684
  } | null;
3685
3685
  };
3686
- direction: string;
3686
+ direction: "incoming" | "outgoing" | "system";
3687
3687
  status: number;
3688
3688
  createdAt: Date;
3689
3689
  updatedAt: Date;
@@ -4112,7 +4112,7 @@ export declare const platformWebchatContract: {
4112
4112
  integrationId: string;
4113
4113
  } | null;
4114
4114
  };
4115
- direction: string;
4115
+ direction: "incoming" | "outgoing" | "system";
4116
4116
  status: number;
4117
4117
  createdAt: Date;
4118
4118
  updatedAt: Date;
@@ -4486,8 +4486,8 @@ export declare const platformWebchatContract: {
4486
4486
  deletedAt: z.ZodNullable<z.ZodDate>;
4487
4487
  }, {
4488
4488
  message: z.ZodString;
4489
- direction: z.ZodEnum<[string, ...string[]]>;
4490
- type: z.ZodEnum<[string, ...string[]]>;
4489
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
4490
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
4491
4491
  readAt: z.ZodDate;
4492
4492
  metadata: z.ZodAny;
4493
4493
  platformId: z.ZodString;
@@ -5153,7 +5153,7 @@ export declare const platformWebchatContract: {
5153
5153
  message: string;
5154
5154
  id: string;
5155
5155
  url: string;
5156
- direction: string;
5156
+ direction: "incoming" | "outgoing" | "system";
5157
5157
  createdAt: Date;
5158
5158
  updatedAt: Date;
5159
5159
  deletedAt: Date | null;
@@ -5315,7 +5315,7 @@ export declare const platformWebchatContract: {
5315
5315
  message: string;
5316
5316
  id: string;
5317
5317
  url: string;
5318
- direction: string;
5318
+ direction: "incoming" | "outgoing" | "system";
5319
5319
  createdAt: Date;
5320
5320
  updatedAt: Date;
5321
5321
  deletedAt: Date | null;
@@ -6121,8 +6121,8 @@ export declare const platformWebchatContract: {
6121
6121
  deletedAt: z.ZodNullable<z.ZodDate>;
6122
6122
  }, {
6123
6123
  message: z.ZodString;
6124
- direction: z.ZodEnum<[string, ...string[]]>;
6125
- type: z.ZodEnum<[string, ...string[]]>;
6124
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
6125
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
6126
6126
  readAt: z.ZodDate;
6127
6127
  metadata: z.ZodAny;
6128
6128
  platformId: z.ZodString;
@@ -6149,7 +6149,7 @@ export declare const platformWebchatContract: {
6149
6149
  firstResponseTime: z.ZodNumber;
6150
6150
  isLatest: z.ZodBoolean;
6151
6151
  isBotRoom: z.ZodBoolean;
6152
- direction: z.ZodEnum<[string, ...string[]]>;
6152
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
6153
6153
  platformContact: z.ZodObject<{
6154
6154
  id: z.ZodString;
6155
6155
  createdAt: z.ZodDate;
@@ -8834,7 +8834,7 @@ export declare const platformWebchatContract: {
8834
8834
  integrationId: string;
8835
8835
  } | null;
8836
8836
  };
8837
- direction: string;
8837
+ direction: "incoming" | "outgoing" | "system";
8838
8838
  status: number;
8839
8839
  createdAt: Date;
8840
8840
  updatedAt: Date;
@@ -9263,7 +9263,7 @@ export declare const platformWebchatContract: {
9263
9263
  integrationId: string;
9264
9264
  } | null;
9265
9265
  };
9266
- direction: string;
9266
+ direction: "incoming" | "outgoing" | "system";
9267
9267
  status: number;
9268
9268
  createdAt: Date;
9269
9269
  updatedAt: Date;
@@ -9637,8 +9637,8 @@ export declare const platformWebchatContract: {
9637
9637
  deletedAt: z.ZodNullable<z.ZodDate>;
9638
9638
  }, {
9639
9639
  message: z.ZodString;
9640
- direction: z.ZodEnum<[string, ...string[]]>;
9641
- type: z.ZodEnum<[string, ...string[]]>;
9640
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
9641
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
9642
9642
  readAt: z.ZodDate;
9643
9643
  metadata: z.ZodAny;
9644
9644
  platformId: z.ZodString;
@@ -10304,7 +10304,7 @@ export declare const platformWebchatContract: {
10304
10304
  message: string;
10305
10305
  id: string;
10306
10306
  url: string;
10307
- direction: string;
10307
+ direction: "incoming" | "outgoing" | "system";
10308
10308
  createdAt: Date;
10309
10309
  updatedAt: Date;
10310
10310
  deletedAt: Date | null;
@@ -10466,7 +10466,7 @@ export declare const platformWebchatContract: {
10466
10466
  message: string;
10467
10467
  id: string;
10468
10468
  url: string;
10469
- direction: string;
10469
+ direction: "incoming" | "outgoing" | "system";
10470
10470
  createdAt: Date;
10471
10471
  updatedAt: Date;
10472
10472
  deletedAt: Date | null;
@@ -11269,7 +11269,7 @@ export declare const platformWebchatContract: {
11269
11269
  message: string;
11270
11270
  id: string;
11271
11271
  url: string;
11272
- direction: string;
11272
+ direction: "incoming" | "outgoing" | "system";
11273
11273
  createdAt: Date;
11274
11274
  updatedAt: Date;
11275
11275
  deletedAt: Date | null;
@@ -11472,7 +11472,7 @@ export declare const platformWebchatContract: {
11472
11472
  integrationId: string;
11473
11473
  } | null;
11474
11474
  };
11475
- direction: string;
11475
+ direction: "incoming" | "outgoing" | "system";
11476
11476
  status: number;
11477
11477
  createdAt: Date;
11478
11478
  updatedAt: Date;
@@ -11824,7 +11824,7 @@ export declare const platformWebchatContract: {
11824
11824
  message: string;
11825
11825
  id: string;
11826
11826
  url: string;
11827
- direction: string;
11827
+ direction: "incoming" | "outgoing" | "system";
11828
11828
  createdAt: Date;
11829
11829
  updatedAt: Date;
11830
11830
  deletedAt: Date | null;
@@ -12035,7 +12035,7 @@ export declare const platformWebchatContract: {
12035
12035
  message: string;
12036
12036
  id: string;
12037
12037
  url: string;
12038
- direction: string;
12038
+ direction: "incoming" | "outgoing" | "system";
12039
12039
  createdAt: Date;
12040
12040
  updatedAt: Date;
12041
12041
  deletedAt: Date | null;
@@ -12238,7 +12238,7 @@ export declare const platformWebchatContract: {
12238
12238
  integrationId: string;
12239
12239
  } | null;
12240
12240
  };
12241
- direction: string;
12241
+ direction: "incoming" | "outgoing" | "system";
12242
12242
  status: number;
12243
12243
  createdAt: Date;
12244
12244
  updatedAt: Date;
@@ -12590,7 +12590,7 @@ export declare const platformWebchatContract: {
12590
12590
  message: string;
12591
12591
  id: string;
12592
12592
  url: string;
12593
- direction: string;
12593
+ direction: "incoming" | "outgoing" | "system";
12594
12594
  createdAt: Date;
12595
12595
  updatedAt: Date;
12596
12596
  deletedAt: Date | null;
@@ -12802,7 +12802,7 @@ export declare const platformWebchatContract: {
12802
12802
  message: string;
12803
12803
  id: string;
12804
12804
  url: string;
12805
- direction: string;
12805
+ direction: "incoming" | "outgoing" | "system";
12806
12806
  createdAt: Date;
12807
12807
  updatedAt: Date;
12808
12808
  deletedAt: Date | null;
@@ -13005,7 +13005,7 @@ export declare const platformWebchatContract: {
13005
13005
  integrationId: string;
13006
13006
  } | null;
13007
13007
  };
13008
- direction: string;
13008
+ direction: "incoming" | "outgoing" | "system";
13009
13009
  status: number;
13010
13010
  createdAt: Date;
13011
13011
  updatedAt: Date;
@@ -13357,7 +13357,7 @@ export declare const platformWebchatContract: {
13357
13357
  message: string;
13358
13358
  id: string;
13359
13359
  url: string;
13360
- direction: string;
13360
+ direction: "incoming" | "outgoing" | "system";
13361
13361
  createdAt: Date;
13362
13362
  updatedAt: Date;
13363
13363
  deletedAt: Date | null;
@@ -13568,7 +13568,7 @@ export declare const platformWebchatContract: {
13568
13568
  message: string;
13569
13569
  id: string;
13570
13570
  url: string;
13571
- direction: string;
13571
+ direction: "incoming" | "outgoing" | "system";
13572
13572
  createdAt: Date;
13573
13573
  updatedAt: Date;
13574
13574
  deletedAt: Date | null;
@@ -13771,7 +13771,7 @@ export declare const platformWebchatContract: {
13771
13771
  integrationId: string;
13772
13772
  } | null;
13773
13773
  };
13774
- direction: string;
13774
+ direction: "incoming" | "outgoing" | "system";
13775
13775
  status: number;
13776
13776
  createdAt: Date;
13777
13777
  updatedAt: Date;
@@ -14123,7 +14123,7 @@ export declare const platformWebchatContract: {
14123
14123
  message: string;
14124
14124
  id: string;
14125
14125
  url: string;
14126
- direction: string;
14126
+ direction: "incoming" | "outgoing" | "system";
14127
14127
  createdAt: Date;
14128
14128
  updatedAt: Date;
14129
14129
  deletedAt: Date | null;
@@ -14335,7 +14335,7 @@ export declare const platformWebchatContract: {
14335
14335
  message: string;
14336
14336
  id: string;
14337
14337
  url: string;
14338
- direction: string;
14338
+ direction: "incoming" | "outgoing" | "system";
14339
14339
  createdAt: Date;
14340
14340
  updatedAt: Date;
14341
14341
  deletedAt: Date | null;
@@ -14538,7 +14538,7 @@ export declare const platformWebchatContract: {
14538
14538
  integrationId: string;
14539
14539
  } | null;
14540
14540
  };
14541
- direction: string;
14541
+ direction: "incoming" | "outgoing" | "system";
14542
14542
  status: number;
14543
14543
  createdAt: Date;
14544
14544
  updatedAt: Date;
@@ -14890,7 +14890,7 @@ export declare const platformWebchatContract: {
14890
14890
  message: string;
14891
14891
  id: string;
14892
14892
  url: string;
14893
- direction: string;
14893
+ direction: "incoming" | "outgoing" | "system";
14894
14894
  createdAt: Date;
14895
14895
  updatedAt: Date;
14896
14896
  deletedAt: Date | null;
@@ -15101,7 +15101,7 @@ export declare const platformWebchatContract: {
15101
15101
  message: string;
15102
15102
  id: string;
15103
15103
  url: string;
15104
- direction: string;
15104
+ direction: "incoming" | "outgoing" | "system";
15105
15105
  createdAt: Date;
15106
15106
  updatedAt: Date;
15107
15107
  deletedAt: Date | null;
@@ -15304,7 +15304,7 @@ export declare const platformWebchatContract: {
15304
15304
  integrationId: string;
15305
15305
  } | null;
15306
15306
  };
15307
- direction: string;
15307
+ direction: "incoming" | "outgoing" | "system";
15308
15308
  status: number;
15309
15309
  createdAt: Date;
15310
15310
  updatedAt: Date;
@@ -15656,7 +15656,7 @@ export declare const platformWebchatContract: {
15656
15656
  message: string;
15657
15657
  id: string;
15658
15658
  url: string;
15659
- direction: string;
15659
+ direction: "incoming" | "outgoing" | "system";
15660
15660
  createdAt: Date;
15661
15661
  updatedAt: Date;
15662
15662
  deletedAt: Date | null;
@@ -15870,7 +15870,7 @@ export declare const platformWebchatContract: {
15870
15870
  message: string;
15871
15871
  id: string;
15872
15872
  url: string;
15873
- direction: string;
15873
+ direction: "incoming" | "outgoing" | "system";
15874
15874
  createdAt: Date;
15875
15875
  updatedAt: Date;
15876
15876
  deletedAt: Date | null;
@@ -16073,7 +16073,7 @@ export declare const platformWebchatContract: {
16073
16073
  integrationId: string;
16074
16074
  } | null;
16075
16075
  };
16076
- direction: string;
16076
+ direction: "incoming" | "outgoing" | "system";
16077
16077
  status: number;
16078
16078
  createdAt: Date;
16079
16079
  updatedAt: Date;
@@ -16425,7 +16425,7 @@ export declare const platformWebchatContract: {
16425
16425
  message: string;
16426
16426
  id: string;
16427
16427
  url: string;
16428
- direction: string;
16428
+ direction: "incoming" | "outgoing" | "system";
16429
16429
  createdAt: Date;
16430
16430
  updatedAt: Date;
16431
16431
  deletedAt: Date | null;
@@ -16636,7 +16636,7 @@ export declare const platformWebchatContract: {
16636
16636
  message: string;
16637
16637
  id: string;
16638
16638
  url: string;
16639
- direction: string;
16639
+ direction: "incoming" | "outgoing" | "system";
16640
16640
  createdAt: Date;
16641
16641
  updatedAt: Date;
16642
16642
  deletedAt: Date | null;
@@ -16839,7 +16839,7 @@ export declare const platformWebchatContract: {
16839
16839
  integrationId: string;
16840
16840
  } | null;
16841
16841
  };
16842
- direction: string;
16842
+ direction: "incoming" | "outgoing" | "system";
16843
16843
  status: number;
16844
16844
  createdAt: Date;
16845
16845
  updatedAt: Date;
@@ -17191,7 +17191,7 @@ export declare const platformWebchatContract: {
17191
17191
  message: string;
17192
17192
  id: string;
17193
17193
  url: string;
17194
- direction: string;
17194
+ direction: "incoming" | "outgoing" | "system";
17195
17195
  createdAt: Date;
17196
17196
  updatedAt: Date;
17197
17197
  deletedAt: Date | null;
@@ -17406,7 +17406,7 @@ export declare const platformWebchatContract: {
17406
17406
  message: string;
17407
17407
  id: string;
17408
17408
  url: string;
17409
- direction: string;
17409
+ direction: "incoming" | "outgoing" | "system";
17410
17410
  createdAt: Date;
17411
17411
  updatedAt: Date;
17412
17412
  deletedAt: Date | null;
@@ -17609,7 +17609,7 @@ export declare const platformWebchatContract: {
17609
17609
  integrationId: string;
17610
17610
  } | null;
17611
17611
  };
17612
- direction: string;
17612
+ direction: "incoming" | "outgoing" | "system";
17613
17613
  status: number;
17614
17614
  createdAt: Date;
17615
17615
  updatedAt: Date;
@@ -17961,7 +17961,7 @@ export declare const platformWebchatContract: {
17961
17961
  message: string;
17962
17962
  id: string;
17963
17963
  url: string;
17964
- direction: string;
17964
+ direction: "incoming" | "outgoing" | "system";
17965
17965
  createdAt: Date;
17966
17966
  updatedAt: Date;
17967
17967
  deletedAt: Date | null;
@@ -18172,7 +18172,7 @@ export declare const platformWebchatContract: {
18172
18172
  message: string;
18173
18173
  id: string;
18174
18174
  url: string;
18175
- direction: string;
18175
+ direction: "incoming" | "outgoing" | "system";
18176
18176
  createdAt: Date;
18177
18177
  updatedAt: Date;
18178
18178
  deletedAt: Date | null;
@@ -18375,7 +18375,7 @@ export declare const platformWebchatContract: {
18375
18375
  integrationId: string;
18376
18376
  } | null;
18377
18377
  };
18378
- direction: string;
18378
+ direction: "incoming" | "outgoing" | "system";
18379
18379
  status: number;
18380
18380
  createdAt: Date;
18381
18381
  updatedAt: Date;
@@ -18727,7 +18727,7 @@ export declare const platformWebchatContract: {
18727
18727
  message: string;
18728
18728
  id: string;
18729
18729
  url: string;
18730
- direction: string;
18730
+ direction: "incoming" | "outgoing" | "system";
18731
18731
  createdAt: Date;
18732
18732
  updatedAt: Date;
18733
18733
  deletedAt: Date | null;