@kl1/contracts 1.0.52 → 1.0.53

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.
@@ -6635,10 +6635,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
6635
6635
  isLatest: z.ZodOptional<z.ZodBoolean>;
6636
6636
  direction: z.ZodOptional<z.ZodEnum<["incoming", "outgoing", "system"]>>;
6637
6637
  platformContact: z.ZodOptional<z.ZodObject<{
6638
- id: z.ZodString;
6639
- createdAt: z.ZodDate;
6640
- updatedAt: z.ZodDate;
6641
- deletedAt: z.ZodNullable<z.ZodDate>;
6642
6638
  channelId: z.ZodString;
6643
6639
  socialPlatformId: z.ZodString;
6644
6640
  type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
@@ -6660,16 +6656,13 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
6660
6656
  }>;
6661
6657
  contact: z.ZodObject<{
6662
6658
  id: z.ZodString;
6663
- createdAt: z.ZodDate;
6664
- updatedAt: z.ZodDate;
6665
- deletedAt: z.ZodNullable<z.ZodDate>;
6666
6659
  name: z.ZodString;
6667
6660
  address: z.ZodNullable<z.ZodString>;
6668
6661
  channel: z.ZodNullable<z.ZodString>;
6669
6662
  notes: z.ZodNullable<z.ZodString>;
6670
6663
  contactProfile: z.ZodNullable<z.ZodString>;
6671
6664
  socialProfileUrl: z.ZodNullable<z.ZodString>;
6672
- tags: z.ZodArray<z.ZodObject<{
6665
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
6673
6666
  id: z.ZodString;
6674
6667
  createdAt: z.ZodDate;
6675
6668
  updatedAt: z.ZodDate;
@@ -6687,7 +6680,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
6687
6680
  createdAt: Date;
6688
6681
  updatedAt: Date;
6689
6682
  deletedAt: Date | null;
6690
- }>, "many">;
6683
+ }>, "many">>;
6691
6684
  company: z.ZodNullable<z.ZodObject<Omit<{
6692
6685
  id: z.ZodString;
6693
6686
  createdAt: z.ZodDate;
@@ -6853,7 +6846,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
6853
6846
  phone?: string | null | undefined;
6854
6847
  industry?: string | null | undefined;
6855
6848
  }>>;
6856
- customFields: z.ZodArray<z.ZodObject<{
6849
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
6857
6850
  id: z.ZodString;
6858
6851
  createdAt: z.ZodDate;
6859
6852
  updatedAt: z.ZodDate;
@@ -7104,8 +7097,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7104
7097
  status?: string | undefined;
7105
7098
  };
7106
7099
  }[];
7107
- }>, "many">;
7108
- contactEmails: z.ZodArray<z.ZodObject<{
7100
+ }>, "many">>;
7101
+ contactEmails: z.ZodOptional<z.ZodArray<z.ZodObject<{
7109
7102
  id: z.ZodString;
7110
7103
  createdAt: z.ZodDate;
7111
7104
  updatedAt: z.ZodDate;
@@ -7126,8 +7119,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7126
7119
  createdAt: Date;
7127
7120
  updatedAt: Date;
7128
7121
  deletedAt: Date | null;
7129
- }>, "many">;
7130
- contactPhones: z.ZodArray<z.ZodObject<{
7122
+ }>, "many">>;
7123
+ contactPhones: z.ZodOptional<z.ZodArray<z.ZodObject<{
7131
7124
  id: z.ZodString;
7132
7125
  createdAt: z.ZodDate;
7133
7126
  updatedAt: z.ZodDate;
@@ -7148,7 +7141,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7148
7141
  updatedAt: Date;
7149
7142
  deletedAt: Date | null;
7150
7143
  phone: string;
7151
- }>, "many">;
7144
+ }>, "many">>;
7152
7145
  activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7153
7146
  id: z.ZodString;
7154
7147
  createdAt: z.ZodDate;
@@ -7214,10 +7207,27 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7214
7207
  channel: string | null;
7215
7208
  address: string | null;
7216
7209
  name: string;
7217
- createdAt: Date;
7218
- updatedAt: Date;
7219
- deletedAt: Date | null;
7220
- customFields: {
7210
+ notes: string | null;
7211
+ contactProfile: string | null;
7212
+ socialProfileUrl: string | null;
7213
+ company: {
7214
+ id: string;
7215
+ createdAt: Date;
7216
+ updatedAt: Date;
7217
+ deletedAt: Date | null;
7218
+ address?: string | null | undefined;
7219
+ name?: string | undefined;
7220
+ phone?: string | null | undefined;
7221
+ industry?: string | null | undefined;
7222
+ } | null;
7223
+ tags?: {
7224
+ id: string;
7225
+ name: string;
7226
+ createdAt: Date;
7227
+ updatedAt: Date;
7228
+ deletedAt: Date | null;
7229
+ }[] | undefined;
7230
+ customFields?: {
7221
7231
  id: string;
7222
7232
  createdAt: Date;
7223
7233
  updatedAt: Date;
@@ -7259,43 +7269,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7259
7269
  status?: string | undefined;
7260
7270
  };
7261
7271
  }[];
7262
- }[];
7263
- notes: string | null;
7264
- contactProfile: string | null;
7265
- socialProfileUrl: string | null;
7266
- tags: {
7267
- id: string;
7268
- name: string;
7269
- createdAt: Date;
7270
- updatedAt: Date;
7271
- deletedAt: Date | null;
7272
- }[];
7273
- company: {
7274
- id: string;
7275
- createdAt: Date;
7276
- updatedAt: Date;
7277
- deletedAt: Date | null;
7278
- address?: string | null | undefined;
7279
- name?: string | undefined;
7280
- phone?: string | null | undefined;
7281
- industry?: string | null | undefined;
7282
- } | null;
7283
- contactEmails: {
7272
+ }[] | undefined;
7273
+ contactEmails?: {
7284
7274
  id: string;
7285
7275
  isPrimary: boolean;
7286
7276
  email: string;
7287
7277
  createdAt: Date;
7288
7278
  updatedAt: Date;
7289
7279
  deletedAt: Date | null;
7290
- }[];
7291
- contactPhones: {
7280
+ }[] | undefined;
7281
+ contactPhones?: {
7292
7282
  id: string;
7293
7283
  isPrimary: boolean;
7294
7284
  createdAt: Date;
7295
7285
  updatedAt: Date;
7296
7286
  deletedAt: Date | null;
7297
7287
  phone: string;
7298
- }[];
7288
+ }[] | undefined;
7299
7289
  activityLogs?: {
7300
7290
  id: string;
7301
7291
  description: string;
@@ -7317,10 +7307,27 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7317
7307
  channel: string | null;
7318
7308
  address: string | null;
7319
7309
  name: string;
7320
- createdAt: Date;
7321
- updatedAt: Date;
7322
- deletedAt: Date | null;
7323
- customFields: {
7310
+ notes: string | null;
7311
+ contactProfile: string | null;
7312
+ socialProfileUrl: string | null;
7313
+ company: {
7314
+ id: string;
7315
+ createdAt: Date;
7316
+ updatedAt: Date;
7317
+ deletedAt: Date | null;
7318
+ address?: string | null | undefined;
7319
+ name?: string | undefined;
7320
+ phone?: string | null | undefined;
7321
+ industry?: string | null | undefined;
7322
+ } | null;
7323
+ tags?: {
7324
+ id: string;
7325
+ name: string;
7326
+ createdAt: Date;
7327
+ updatedAt: Date;
7328
+ deletedAt: Date | null;
7329
+ }[] | undefined;
7330
+ customFields?: {
7324
7331
  id: string;
7325
7332
  createdAt: Date;
7326
7333
  updatedAt: Date;
@@ -7362,43 +7369,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7362
7369
  status?: string | undefined;
7363
7370
  };
7364
7371
  }[];
7365
- }[];
7366
- notes: string | null;
7367
- contactProfile: string | null;
7368
- socialProfileUrl: string | null;
7369
- tags: {
7370
- id: string;
7371
- name: string;
7372
- createdAt: Date;
7373
- updatedAt: Date;
7374
- deletedAt: Date | null;
7375
- }[];
7376
- company: {
7377
- id: string;
7378
- createdAt: Date;
7379
- updatedAt: Date;
7380
- deletedAt: Date | null;
7381
- address?: string | null | undefined;
7382
- name?: string | undefined;
7383
- phone?: string | null | undefined;
7384
- industry?: string | null | undefined;
7385
- } | null;
7386
- contactEmails: {
7372
+ }[] | undefined;
7373
+ contactEmails?: {
7387
7374
  id: string;
7388
7375
  isPrimary: boolean;
7389
7376
  email: string;
7390
7377
  createdAt: Date;
7391
7378
  updatedAt: Date;
7392
7379
  deletedAt: Date | null;
7393
- }[];
7394
- contactPhones: {
7380
+ }[] | undefined;
7381
+ contactPhones?: {
7395
7382
  id: string;
7396
7383
  isPrimary: boolean;
7397
7384
  createdAt: Date;
7398
7385
  updatedAt: Date;
7399
7386
  deletedAt: Date | null;
7400
7387
  phone: string;
7401
- }[];
7388
+ }[] | undefined;
7402
7389
  activityLogs?: {
7403
7390
  id: string;
7404
7391
  description: string;
@@ -7418,26 +7405,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7418
7405
  }>;
7419
7406
  }, "strip", z.ZodTypeAny, {
7420
7407
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
7421
- id: string;
7422
7408
  metadata: {
7423
7409
  id: string;
7424
7410
  name: string;
7425
7411
  picture?: string | undefined;
7426
7412
  additionalCredentials?: any;
7427
7413
  };
7428
- createdAt: Date;
7429
- updatedAt: Date;
7430
- deletedAt: Date | null;
7431
7414
  channelId: string;
7432
7415
  contact: {
7433
7416
  id: string;
7434
7417
  channel: string | null;
7435
7418
  address: string | null;
7436
7419
  name: string;
7437
- createdAt: Date;
7438
- updatedAt: Date;
7439
- deletedAt: Date | null;
7440
- customFields: {
7420
+ notes: string | null;
7421
+ contactProfile: string | null;
7422
+ socialProfileUrl: string | null;
7423
+ company: {
7424
+ id: string;
7425
+ createdAt: Date;
7426
+ updatedAt: Date;
7427
+ deletedAt: Date | null;
7428
+ address?: string | null | undefined;
7429
+ name?: string | undefined;
7430
+ phone?: string | null | undefined;
7431
+ industry?: string | null | undefined;
7432
+ } | null;
7433
+ tags?: {
7434
+ id: string;
7435
+ name: string;
7436
+ createdAt: Date;
7437
+ updatedAt: Date;
7438
+ deletedAt: Date | null;
7439
+ }[] | undefined;
7440
+ customFields?: {
7441
7441
  id: string;
7442
7442
  createdAt: Date;
7443
7443
  updatedAt: Date;
@@ -7479,43 +7479,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7479
7479
  status?: string | undefined;
7480
7480
  };
7481
7481
  }[];
7482
- }[];
7483
- notes: string | null;
7484
- contactProfile: string | null;
7485
- socialProfileUrl: string | null;
7486
- tags: {
7487
- id: string;
7488
- name: string;
7489
- createdAt: Date;
7490
- updatedAt: Date;
7491
- deletedAt: Date | null;
7492
- }[];
7493
- company: {
7494
- id: string;
7495
- createdAt: Date;
7496
- updatedAt: Date;
7497
- deletedAt: Date | null;
7498
- address?: string | null | undefined;
7499
- name?: string | undefined;
7500
- phone?: string | null | undefined;
7501
- industry?: string | null | undefined;
7502
- } | null;
7503
- contactEmails: {
7482
+ }[] | undefined;
7483
+ contactEmails?: {
7504
7484
  id: string;
7505
7485
  isPrimary: boolean;
7506
7486
  email: string;
7507
7487
  createdAt: Date;
7508
7488
  updatedAt: Date;
7509
7489
  deletedAt: Date | null;
7510
- }[];
7511
- contactPhones: {
7490
+ }[] | undefined;
7491
+ contactPhones?: {
7512
7492
  id: string;
7513
7493
  isPrimary: boolean;
7514
7494
  createdAt: Date;
7515
7495
  updatedAt: Date;
7516
7496
  deletedAt: Date | null;
7517
7497
  phone: string;
7518
- }[];
7498
+ }[] | undefined;
7519
7499
  activityLogs?: {
7520
7500
  id: string;
7521
7501
  description: string;
@@ -7536,26 +7516,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7536
7516
  socialPlatformId: string;
7537
7517
  }, {
7538
7518
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
7539
- id: string;
7540
7519
  metadata: {
7541
7520
  id: string;
7542
7521
  name: string;
7543
7522
  picture?: string | undefined;
7544
7523
  additionalCredentials?: any;
7545
7524
  };
7546
- createdAt: Date;
7547
- updatedAt: Date;
7548
- deletedAt: Date | null;
7549
7525
  channelId: string;
7550
7526
  contact: {
7551
7527
  id: string;
7552
7528
  channel: string | null;
7553
7529
  address: string | null;
7554
7530
  name: string;
7555
- createdAt: Date;
7556
- updatedAt: Date;
7557
- deletedAt: Date | null;
7558
- customFields: {
7531
+ notes: string | null;
7532
+ contactProfile: string | null;
7533
+ socialProfileUrl: string | null;
7534
+ company: {
7535
+ id: string;
7536
+ createdAt: Date;
7537
+ updatedAt: Date;
7538
+ deletedAt: Date | null;
7539
+ address?: string | null | undefined;
7540
+ name?: string | undefined;
7541
+ phone?: string | null | undefined;
7542
+ industry?: string | null | undefined;
7543
+ } | null;
7544
+ tags?: {
7545
+ id: string;
7546
+ name: string;
7547
+ createdAt: Date;
7548
+ updatedAt: Date;
7549
+ deletedAt: Date | null;
7550
+ }[] | undefined;
7551
+ customFields?: {
7559
7552
  id: string;
7560
7553
  createdAt: Date;
7561
7554
  updatedAt: Date;
@@ -7597,43 +7590,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7597
7590
  status?: string | undefined;
7598
7591
  };
7599
7592
  }[];
7600
- }[];
7601
- notes: string | null;
7602
- contactProfile: string | null;
7603
- socialProfileUrl: string | null;
7604
- tags: {
7605
- id: string;
7606
- name: string;
7607
- createdAt: Date;
7608
- updatedAt: Date;
7609
- deletedAt: Date | null;
7610
- }[];
7611
- company: {
7612
- id: string;
7613
- createdAt: Date;
7614
- updatedAt: Date;
7615
- deletedAt: Date | null;
7616
- address?: string | null | undefined;
7617
- name?: string | undefined;
7618
- phone?: string | null | undefined;
7619
- industry?: string | null | undefined;
7620
- } | null;
7621
- contactEmails: {
7593
+ }[] | undefined;
7594
+ contactEmails?: {
7622
7595
  id: string;
7623
7596
  isPrimary: boolean;
7624
7597
  email: string;
7625
7598
  createdAt: Date;
7626
7599
  updatedAt: Date;
7627
7600
  deletedAt: Date | null;
7628
- }[];
7629
- contactPhones: {
7601
+ }[] | undefined;
7602
+ contactPhones?: {
7630
7603
  id: string;
7631
7604
  isPrimary: boolean;
7632
7605
  createdAt: Date;
7633
7606
  updatedAt: Date;
7634
7607
  deletedAt: Date | null;
7635
7608
  phone: string;
7636
- }[];
7609
+ }[] | undefined;
7637
7610
  activityLogs?: {
7638
7611
  id: string;
7639
7612
  description: string;
@@ -8305,26 +8278,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8305
8278
  direction?: "incoming" | "outgoing" | "system" | undefined;
8306
8279
  platformContact?: {
8307
8280
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
8308
- id: string;
8309
8281
  metadata: {
8310
8282
  id: string;
8311
8283
  name: string;
8312
8284
  picture?: string | undefined;
8313
8285
  additionalCredentials?: any;
8314
8286
  };
8315
- createdAt: Date;
8316
- updatedAt: Date;
8317
- deletedAt: Date | null;
8318
8287
  channelId: string;
8319
8288
  contact: {
8320
8289
  id: string;
8321
8290
  channel: string | null;
8322
8291
  address: string | null;
8323
8292
  name: string;
8324
- createdAt: Date;
8325
- updatedAt: Date;
8326
- deletedAt: Date | null;
8327
- customFields: {
8293
+ notes: string | null;
8294
+ contactProfile: string | null;
8295
+ socialProfileUrl: string | null;
8296
+ company: {
8297
+ id: string;
8298
+ createdAt: Date;
8299
+ updatedAt: Date;
8300
+ deletedAt: Date | null;
8301
+ address?: string | null | undefined;
8302
+ name?: string | undefined;
8303
+ phone?: string | null | undefined;
8304
+ industry?: string | null | undefined;
8305
+ } | null;
8306
+ tags?: {
8307
+ id: string;
8308
+ name: string;
8309
+ createdAt: Date;
8310
+ updatedAt: Date;
8311
+ deletedAt: Date | null;
8312
+ }[] | undefined;
8313
+ customFields?: {
8328
8314
  id: string;
8329
8315
  createdAt: Date;
8330
8316
  updatedAt: Date;
@@ -8366,43 +8352,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8366
8352
  status?: string | undefined;
8367
8353
  };
8368
8354
  }[];
8369
- }[];
8370
- notes: string | null;
8371
- contactProfile: string | null;
8372
- socialProfileUrl: string | null;
8373
- tags: {
8374
- id: string;
8375
- name: string;
8376
- createdAt: Date;
8377
- updatedAt: Date;
8378
- deletedAt: Date | null;
8379
- }[];
8380
- company: {
8381
- id: string;
8382
- createdAt: Date;
8383
- updatedAt: Date;
8384
- deletedAt: Date | null;
8385
- address?: string | null | undefined;
8386
- name?: string | undefined;
8387
- phone?: string | null | undefined;
8388
- industry?: string | null | undefined;
8389
- } | null;
8390
- contactEmails: {
8355
+ }[] | undefined;
8356
+ contactEmails?: {
8391
8357
  id: string;
8392
8358
  isPrimary: boolean;
8393
8359
  email: string;
8394
8360
  createdAt: Date;
8395
8361
  updatedAt: Date;
8396
8362
  deletedAt: Date | null;
8397
- }[];
8398
- contactPhones: {
8363
+ }[] | undefined;
8364
+ contactPhones?: {
8399
8365
  id: string;
8400
8366
  isPrimary: boolean;
8401
8367
  createdAt: Date;
8402
8368
  updatedAt: Date;
8403
8369
  deletedAt: Date | null;
8404
8370
  phone: string;
8405
- }[];
8371
+ }[] | undefined;
8406
8372
  activityLogs?: {
8407
8373
  id: string;
8408
8374
  description: string;
@@ -8578,26 +8544,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8578
8544
  direction?: "incoming" | "outgoing" | "system" | undefined;
8579
8545
  platformContact?: {
8580
8546
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
8581
- id: string;
8582
8547
  metadata: {
8583
8548
  id: string;
8584
8549
  name: string;
8585
8550
  picture?: string | undefined;
8586
8551
  additionalCredentials?: any;
8587
8552
  };
8588
- createdAt: Date;
8589
- updatedAt: Date;
8590
- deletedAt: Date | null;
8591
8553
  channelId: string;
8592
8554
  contact: {
8593
8555
  id: string;
8594
8556
  channel: string | null;
8595
8557
  address: string | null;
8596
8558
  name: string;
8597
- createdAt: Date;
8598
- updatedAt: Date;
8599
- deletedAt: Date | null;
8600
- customFields: {
8559
+ notes: string | null;
8560
+ contactProfile: string | null;
8561
+ socialProfileUrl: string | null;
8562
+ company: {
8563
+ id: string;
8564
+ createdAt: Date;
8565
+ updatedAt: Date;
8566
+ deletedAt: Date | null;
8567
+ address?: string | null | undefined;
8568
+ name?: string | undefined;
8569
+ phone?: string | null | undefined;
8570
+ industry?: string | null | undefined;
8571
+ } | null;
8572
+ tags?: {
8573
+ id: string;
8574
+ name: string;
8575
+ createdAt: Date;
8576
+ updatedAt: Date;
8577
+ deletedAt: Date | null;
8578
+ }[] | undefined;
8579
+ customFields?: {
8601
8580
  id: string;
8602
8581
  createdAt: Date;
8603
8582
  updatedAt: Date;
@@ -8639,43 +8618,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8639
8618
  status?: string | undefined;
8640
8619
  };
8641
8620
  }[];
8642
- }[];
8643
- notes: string | null;
8644
- contactProfile: string | null;
8645
- socialProfileUrl: string | null;
8646
- tags: {
8647
- id: string;
8648
- name: string;
8649
- createdAt: Date;
8650
- updatedAt: Date;
8651
- deletedAt: Date | null;
8652
- }[];
8653
- company: {
8654
- id: string;
8655
- createdAt: Date;
8656
- updatedAt: Date;
8657
- deletedAt: Date | null;
8658
- address?: string | null | undefined;
8659
- name?: string | undefined;
8660
- phone?: string | null | undefined;
8661
- industry?: string | null | undefined;
8662
- } | null;
8663
- contactEmails: {
8621
+ }[] | undefined;
8622
+ contactEmails?: {
8664
8623
  id: string;
8665
8624
  isPrimary: boolean;
8666
8625
  email: string;
8667
8626
  createdAt: Date;
8668
8627
  updatedAt: Date;
8669
8628
  deletedAt: Date | null;
8670
- }[];
8671
- contactPhones: {
8629
+ }[] | undefined;
8630
+ contactPhones?: {
8672
8631
  id: string;
8673
8632
  isPrimary: boolean;
8674
8633
  createdAt: Date;
8675
8634
  updatedAt: Date;
8676
8635
  deletedAt: Date | null;
8677
8636
  phone: string;
8678
- }[];
8637
+ }[] | undefined;
8679
8638
  activityLogs?: {
8680
8639
  id: string;
8681
8640
  description: string;
@@ -9503,26 +9462,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9503
9462
  direction?: "incoming" | "outgoing" | "system" | undefined;
9504
9463
  platformContact?: {
9505
9464
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
9506
- id: string;
9507
9465
  metadata: {
9508
9466
  id: string;
9509
9467
  name: string;
9510
9468
  picture?: string | undefined;
9511
9469
  additionalCredentials?: any;
9512
9470
  };
9513
- createdAt: Date;
9514
- updatedAt: Date;
9515
- deletedAt: Date | null;
9516
9471
  channelId: string;
9517
9472
  contact: {
9518
9473
  id: string;
9519
9474
  channel: string | null;
9520
9475
  address: string | null;
9521
9476
  name: string;
9522
- createdAt: Date;
9523
- updatedAt: Date;
9524
- deletedAt: Date | null;
9525
- customFields: {
9477
+ notes: string | null;
9478
+ contactProfile: string | null;
9479
+ socialProfileUrl: string | null;
9480
+ company: {
9481
+ id: string;
9482
+ createdAt: Date;
9483
+ updatedAt: Date;
9484
+ deletedAt: Date | null;
9485
+ address?: string | null | undefined;
9486
+ name?: string | undefined;
9487
+ phone?: string | null | undefined;
9488
+ industry?: string | null | undefined;
9489
+ } | null;
9490
+ tags?: {
9491
+ id: string;
9492
+ name: string;
9493
+ createdAt: Date;
9494
+ updatedAt: Date;
9495
+ deletedAt: Date | null;
9496
+ }[] | undefined;
9497
+ customFields?: {
9526
9498
  id: string;
9527
9499
  createdAt: Date;
9528
9500
  updatedAt: Date;
@@ -9564,43 +9536,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9564
9536
  status?: string | undefined;
9565
9537
  };
9566
9538
  }[];
9567
- }[];
9568
- notes: string | null;
9569
- contactProfile: string | null;
9570
- socialProfileUrl: string | null;
9571
- tags: {
9572
- id: string;
9573
- name: string;
9574
- createdAt: Date;
9575
- updatedAt: Date;
9576
- deletedAt: Date | null;
9577
- }[];
9578
- company: {
9579
- id: string;
9580
- createdAt: Date;
9581
- updatedAt: Date;
9582
- deletedAt: Date | null;
9583
- address?: string | null | undefined;
9584
- name?: string | undefined;
9585
- phone?: string | null | undefined;
9586
- industry?: string | null | undefined;
9587
- } | null;
9588
- contactEmails: {
9539
+ }[] | undefined;
9540
+ contactEmails?: {
9589
9541
  id: string;
9590
9542
  isPrimary: boolean;
9591
9543
  email: string;
9592
9544
  createdAt: Date;
9593
9545
  updatedAt: Date;
9594
9546
  deletedAt: Date | null;
9595
- }[];
9596
- contactPhones: {
9547
+ }[] | undefined;
9548
+ contactPhones?: {
9597
9549
  id: string;
9598
9550
  isPrimary: boolean;
9599
9551
  createdAt: Date;
9600
9552
  updatedAt: Date;
9601
9553
  deletedAt: Date | null;
9602
9554
  phone: string;
9603
- }[];
9555
+ }[] | undefined;
9604
9556
  activityLogs?: {
9605
9557
  id: string;
9606
9558
  description: string;
@@ -9934,26 +9886,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9934
9886
  direction?: "incoming" | "outgoing" | "system" | undefined;
9935
9887
  platformContact?: {
9936
9888
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
9937
- id: string;
9938
9889
  metadata: {
9939
9890
  id: string;
9940
9891
  name: string;
9941
9892
  picture?: string | undefined;
9942
9893
  additionalCredentials?: any;
9943
9894
  };
9944
- createdAt: Date;
9945
- updatedAt: Date;
9946
- deletedAt: Date | null;
9947
9895
  channelId: string;
9948
9896
  contact: {
9949
9897
  id: string;
9950
9898
  channel: string | null;
9951
9899
  address: string | null;
9952
9900
  name: string;
9953
- createdAt: Date;
9954
- updatedAt: Date;
9955
- deletedAt: Date | null;
9956
- customFields: {
9901
+ notes: string | null;
9902
+ contactProfile: string | null;
9903
+ socialProfileUrl: string | null;
9904
+ company: {
9905
+ id: string;
9906
+ createdAt: Date;
9907
+ updatedAt: Date;
9908
+ deletedAt: Date | null;
9909
+ address?: string | null | undefined;
9910
+ name?: string | undefined;
9911
+ phone?: string | null | undefined;
9912
+ industry?: string | null | undefined;
9913
+ } | null;
9914
+ tags?: {
9915
+ id: string;
9916
+ name: string;
9917
+ createdAt: Date;
9918
+ updatedAt: Date;
9919
+ deletedAt: Date | null;
9920
+ }[] | undefined;
9921
+ customFields?: {
9957
9922
  id: string;
9958
9923
  createdAt: Date;
9959
9924
  updatedAt: Date;
@@ -9995,43 +9960,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9995
9960
  status?: string | undefined;
9996
9961
  };
9997
9962
  }[];
9998
- }[];
9999
- notes: string | null;
10000
- contactProfile: string | null;
10001
- socialProfileUrl: string | null;
10002
- tags: {
10003
- id: string;
10004
- name: string;
10005
- createdAt: Date;
10006
- updatedAt: Date;
10007
- deletedAt: Date | null;
10008
- }[];
10009
- company: {
10010
- id: string;
10011
- createdAt: Date;
10012
- updatedAt: Date;
10013
- deletedAt: Date | null;
10014
- address?: string | null | undefined;
10015
- name?: string | undefined;
10016
- phone?: string | null | undefined;
10017
- industry?: string | null | undefined;
10018
- } | null;
10019
- contactEmails: {
9963
+ }[] | undefined;
9964
+ contactEmails?: {
10020
9965
  id: string;
10021
9966
  isPrimary: boolean;
10022
9967
  email: string;
10023
9968
  createdAt: Date;
10024
9969
  updatedAt: Date;
10025
9970
  deletedAt: Date | null;
10026
- }[];
10027
- contactPhones: {
9971
+ }[] | undefined;
9972
+ contactPhones?: {
10028
9973
  id: string;
10029
9974
  isPrimary: boolean;
10030
9975
  createdAt: Date;
10031
9976
  updatedAt: Date;
10032
9977
  deletedAt: Date | null;
10033
9978
  phone: string;
10034
- }[];
9979
+ }[] | undefined;
10035
9980
  activityLogs?: {
10036
9981
  id: string;
10037
9982
  description: string;
@@ -10367,26 +10312,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10367
10312
  direction?: "incoming" | "outgoing" | "system" | undefined;
10368
10313
  platformContact?: {
10369
10314
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
10370
- id: string;
10371
10315
  metadata: {
10372
10316
  id: string;
10373
10317
  name: string;
10374
10318
  picture?: string | undefined;
10375
10319
  additionalCredentials?: any;
10376
10320
  };
10377
- createdAt: Date;
10378
- updatedAt: Date;
10379
- deletedAt: Date | null;
10380
10321
  channelId: string;
10381
10322
  contact: {
10382
10323
  id: string;
10383
10324
  channel: string | null;
10384
10325
  address: string | null;
10385
10326
  name: string;
10386
- createdAt: Date;
10387
- updatedAt: Date;
10388
- deletedAt: Date | null;
10389
- customFields: {
10327
+ notes: string | null;
10328
+ contactProfile: string | null;
10329
+ socialProfileUrl: string | null;
10330
+ company: {
10331
+ id: string;
10332
+ createdAt: Date;
10333
+ updatedAt: Date;
10334
+ deletedAt: Date | null;
10335
+ address?: string | null | undefined;
10336
+ name?: string | undefined;
10337
+ phone?: string | null | undefined;
10338
+ industry?: string | null | undefined;
10339
+ } | null;
10340
+ tags?: {
10341
+ id: string;
10342
+ name: string;
10343
+ createdAt: Date;
10344
+ updatedAt: Date;
10345
+ deletedAt: Date | null;
10346
+ }[] | undefined;
10347
+ customFields?: {
10390
10348
  id: string;
10391
10349
  createdAt: Date;
10392
10350
  updatedAt: Date;
@@ -10428,43 +10386,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10428
10386
  status?: string | undefined;
10429
10387
  };
10430
10388
  }[];
10431
- }[];
10432
- notes: string | null;
10433
- contactProfile: string | null;
10434
- socialProfileUrl: string | null;
10435
- tags: {
10436
- id: string;
10437
- name: string;
10438
- createdAt: Date;
10439
- updatedAt: Date;
10440
- deletedAt: Date | null;
10441
- }[];
10442
- company: {
10443
- id: string;
10444
- createdAt: Date;
10445
- updatedAt: Date;
10446
- deletedAt: Date | null;
10447
- address?: string | null | undefined;
10448
- name?: string | undefined;
10449
- phone?: string | null | undefined;
10450
- industry?: string | null | undefined;
10451
- } | null;
10452
- contactEmails: {
10389
+ }[] | undefined;
10390
+ contactEmails?: {
10453
10391
  id: string;
10454
10392
  isPrimary: boolean;
10455
10393
  email: string;
10456
10394
  createdAt: Date;
10457
10395
  updatedAt: Date;
10458
10396
  deletedAt: Date | null;
10459
- }[];
10460
- contactPhones: {
10397
+ }[] | undefined;
10398
+ contactPhones?: {
10461
10399
  id: string;
10462
10400
  isPrimary: boolean;
10463
10401
  createdAt: Date;
10464
10402
  updatedAt: Date;
10465
10403
  deletedAt: Date | null;
10466
10404
  phone: string;
10467
- }[];
10405
+ }[] | undefined;
10468
10406
  activityLogs?: {
10469
10407
  id: string;
10470
10408
  description: string;
@@ -10800,26 +10738,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10800
10738
  direction?: "incoming" | "outgoing" | "system" | undefined;
10801
10739
  platformContact?: {
10802
10740
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
10803
- id: string;
10804
10741
  metadata: {
10805
10742
  id: string;
10806
10743
  name: string;
10807
10744
  picture?: string | undefined;
10808
10745
  additionalCredentials?: any;
10809
10746
  };
10810
- createdAt: Date;
10811
- updatedAt: Date;
10812
- deletedAt: Date | null;
10813
10747
  channelId: string;
10814
10748
  contact: {
10815
10749
  id: string;
10816
10750
  channel: string | null;
10817
10751
  address: string | null;
10818
10752
  name: string;
10819
- createdAt: Date;
10820
- updatedAt: Date;
10821
- deletedAt: Date | null;
10822
- customFields: {
10753
+ notes: string | null;
10754
+ contactProfile: string | null;
10755
+ socialProfileUrl: string | null;
10756
+ company: {
10757
+ id: string;
10758
+ createdAt: Date;
10759
+ updatedAt: Date;
10760
+ deletedAt: Date | null;
10761
+ address?: string | null | undefined;
10762
+ name?: string | undefined;
10763
+ phone?: string | null | undefined;
10764
+ industry?: string | null | undefined;
10765
+ } | null;
10766
+ tags?: {
10767
+ id: string;
10768
+ name: string;
10769
+ createdAt: Date;
10770
+ updatedAt: Date;
10771
+ deletedAt: Date | null;
10772
+ }[] | undefined;
10773
+ customFields?: {
10823
10774
  id: string;
10824
10775
  createdAt: Date;
10825
10776
  updatedAt: Date;
@@ -10861,43 +10812,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10861
10812
  status?: string | undefined;
10862
10813
  };
10863
10814
  }[];
10864
- }[];
10865
- notes: string | null;
10866
- contactProfile: string | null;
10867
- socialProfileUrl: string | null;
10868
- tags: {
10869
- id: string;
10870
- name: string;
10871
- createdAt: Date;
10872
- updatedAt: Date;
10873
- deletedAt: Date | null;
10874
- }[];
10875
- company: {
10876
- id: string;
10877
- createdAt: Date;
10878
- updatedAt: Date;
10879
- deletedAt: Date | null;
10880
- address?: string | null | undefined;
10881
- name?: string | undefined;
10882
- phone?: string | null | undefined;
10883
- industry?: string | null | undefined;
10884
- } | null;
10885
- contactEmails: {
10815
+ }[] | undefined;
10816
+ contactEmails?: {
10886
10817
  id: string;
10887
10818
  isPrimary: boolean;
10888
10819
  email: string;
10889
10820
  createdAt: Date;
10890
10821
  updatedAt: Date;
10891
10822
  deletedAt: Date | null;
10892
- }[];
10893
- contactPhones: {
10823
+ }[] | undefined;
10824
+ contactPhones?: {
10894
10825
  id: string;
10895
10826
  isPrimary: boolean;
10896
10827
  createdAt: Date;
10897
10828
  updatedAt: Date;
10898
10829
  deletedAt: Date | null;
10899
10830
  phone: string;
10900
- }[];
10831
+ }[] | undefined;
10901
10832
  activityLogs?: {
10902
10833
  id: string;
10903
10834
  description: string;