@kl1/contracts 1.0.29 → 1.0.31

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.
@@ -27615,10 +27615,8 @@ export declare const apiContract: {
27615
27615
  additionalCredentials?: any;
27616
27616
  }>;
27617
27617
  platformId: import("zod").ZodString;
27618
- brandName: import("zod").ZodString;
27619
- connectedUserName: import("zod").ZodString;
27620
27618
  connectedUserId: import("zod").ZodString;
27621
- actor: import("zod").ZodObject<{
27619
+ actor: import("zod").ZodOptional<import("zod").ZodObject<{
27622
27620
  id: import("zod").ZodString;
27623
27621
  createdAt: import("zod").ZodDate;
27624
27622
  updatedAt: import("zod").ZodDate;
@@ -27816,7 +27814,7 @@ export declare const apiContract: {
27816
27814
  extensionName: string;
27817
27815
  telephonySignature: string | null;
27818
27816
  } | undefined;
27819
- }>;
27817
+ }>>;
27820
27818
  }, "strip", import("zod").ZodTypeAny, {
27821
27819
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
27822
27820
  name: string;
@@ -27826,11 +27824,9 @@ export declare const apiContract: {
27826
27824
  accessToken: string;
27827
27825
  additionalCredentials?: any;
27828
27826
  };
27829
- brandName: string;
27830
27827
  platformId: string;
27831
- connectedUserName: string;
27832
27828
  connectedUserId: string;
27833
- actor: {
27829
+ actor?: {
27834
27830
  id: string;
27835
27831
  address: string | null;
27836
27832
  name: string;
@@ -27872,7 +27868,7 @@ export declare const apiContract: {
27872
27868
  extensionName: string;
27873
27869
  telephonySignature: string | null;
27874
27870
  } | undefined;
27875
- };
27871
+ } | undefined;
27876
27872
  }, {
27877
27873
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
27878
27874
  name: string;
@@ -27882,11 +27878,9 @@ export declare const apiContract: {
27882
27878
  accessToken: string;
27883
27879
  additionalCredentials?: any;
27884
27880
  };
27885
- brandName: string;
27886
27881
  platformId: string;
27887
- connectedUserName: string;
27888
27882
  connectedUserId: string;
27889
- actor: {
27883
+ actor?: {
27890
27884
  id: string;
27891
27885
  address: string | null;
27892
27886
  name: string;
@@ -27928,14 +27922,14 @@ export declare const apiContract: {
27928
27922
  extensionName: string;
27929
27923
  telephonySignature: string | null;
27930
27924
  } | undefined;
27931
- };
27925
+ } | undefined;
27932
27926
  }>;
27933
27927
  summary: "Connect message channel";
27934
27928
  method: "POST";
27935
27929
  responses: {
27936
27930
  200: import("zod").ZodObject<{
27937
27931
  requestId: import("zod").ZodString;
27938
- channel: import("zod").ZodArray<import("zod").ZodOptional<import("zod").ZodObject<{
27932
+ channel: import("zod").ZodOptional<import("zod").ZodObject<{
27939
27933
  id: import("zod").ZodOptional<import("zod").ZodString>;
27940
27934
  createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
27941
27935
  updatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
@@ -28287,9 +28281,10 @@ export declare const apiContract: {
28287
28281
  telephonySignature: string | null;
28288
28282
  } | undefined;
28289
28283
  } | undefined;
28290
- }>>, "many">;
28284
+ }>>;
28291
28285
  }, "strip", import("zod").ZodTypeAny, {
28292
- channel: ({
28286
+ requestId: string;
28287
+ channel?: {
28293
28288
  id?: string | undefined;
28294
28289
  createdAt?: Date | undefined;
28295
28290
  updatedAt?: Date | undefined;
@@ -28351,10 +28346,10 @@ export declare const apiContract: {
28351
28346
  telephonySignature: string | null;
28352
28347
  } | undefined;
28353
28348
  } | undefined;
28354
- } | undefined)[];
28355
- requestId: string;
28349
+ } | undefined;
28356
28350
  }, {
28357
- channel: ({
28351
+ requestId: string;
28352
+ channel?: {
28358
28353
  id?: string | undefined;
28359
28354
  createdAt?: Date | undefined;
28360
28355
  updatedAt?: Date | undefined;
@@ -28416,8 +28411,7 @@ export declare const apiContract: {
28416
28411
  telephonySignature: string | null;
28417
28412
  } | undefined;
28418
28413
  } | undefined;
28419
- } | undefined)[];
28420
- requestId: string;
28414
+ } | undefined;
28421
28415
  }>;
28422
28416
  408: import("zod").ZodObject<{
28423
28417
  message: import("zod").ZodString;
@@ -28454,7 +28448,7 @@ export declare const apiContract: {
28454
28448
  responses: {
28455
28449
  200: import("zod").ZodObject<{
28456
28450
  requestId: import("zod").ZodString;
28457
- channels: import("zod").ZodOptional<import("zod").ZodObject<{
28451
+ channels: import("zod").ZodArray<import("zod").ZodOptional<import("zod").ZodObject<{
28458
28452
  id: import("zod").ZodOptional<import("zod").ZodString>;
28459
28453
  createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
28460
28454
  updatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
@@ -28806,10 +28800,10 @@ export declare const apiContract: {
28806
28800
  telephonySignature: string | null;
28807
28801
  } | undefined;
28808
28802
  } | undefined;
28809
- }>>;
28803
+ }>>, "many">;
28810
28804
  }, "strip", import("zod").ZodTypeAny, {
28811
28805
  requestId: string;
28812
- channels?: {
28806
+ channels: ({
28813
28807
  id?: string | undefined;
28814
28808
  createdAt?: Date | undefined;
28815
28809
  updatedAt?: Date | undefined;
@@ -28871,10 +28865,10 @@ export declare const apiContract: {
28871
28865
  telephonySignature: string | null;
28872
28866
  } | undefined;
28873
28867
  } | undefined;
28874
- } | undefined;
28868
+ } | undefined)[];
28875
28869
  }, {
28876
28870
  requestId: string;
28877
- channels?: {
28871
+ channels: ({
28878
28872
  id?: string | undefined;
28879
28873
  createdAt?: Date | undefined;
28880
28874
  updatedAt?: Date | undefined;
@@ -28936,7 +28930,7 @@ export declare const apiContract: {
28936
28930
  telephonySignature: string | null;
28937
28931
  } | undefined;
28938
28932
  } | undefined;
28939
- } | undefined;
28933
+ } | undefined)[];
28940
28934
  }>;
28941
28935
  };
28942
28936
  path: "channel/";
@@ -31408,20 +31402,80 @@ export declare const apiContract: {
31408
31402
  'x-client-timezone'?: string | undefined;
31409
31403
  }>>>;
31410
31404
  };
31411
- getById: {
31412
- summary: "Get a contact by id";
31405
+ getAll: {
31406
+ summary: "Get all contacts";
31413
31407
  method: "GET";
31414
- pathParams: import("zod").ZodObject<{
31415
- id: import("zod").ZodString;
31408
+ query: import("zod").ZodObject<{
31409
+ page: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
31410
+ pageSize: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
31411
+ keyword: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
31412
+ company: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
31413
+ name: import("zod").ZodOptional<import("zod").ZodString>;
31414
+ address: import("zod").ZodOptional<import("zod").ZodString>;
31415
+ channel: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
31416
+ selectedDate: import("zod").ZodOptional<import("zod").ZodString>;
31417
+ customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
31418
+ attributeId: import("zod").ZodString;
31419
+ type: import("zod").ZodString;
31420
+ value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
31421
+ }, "strip", import("zod").ZodTypeAny, {
31422
+ type: string;
31423
+ value: (string | string[]) & (string | string[] | undefined);
31424
+ attributeId: string;
31425
+ }, {
31426
+ type: string;
31427
+ value: (string | string[]) & (string | string[] | undefined);
31428
+ attributeId: string;
31429
+ }>, "many">>;
31430
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
31431
+ phone: import("zod").ZodOptional<import("zod").ZodString>;
31432
+ email: import("zod").ZodOptional<import("zod").ZodString>;
31433
+ notes: import("zod").ZodOptional<import("zod").ZodString>;
31416
31434
  }, "strip", import("zod").ZodTypeAny, {
31417
- id: string;
31435
+ page?: number | undefined;
31436
+ pageSize?: number | undefined;
31437
+ keyword?: string | undefined;
31438
+ company?: string[] | undefined;
31439
+ name?: string | undefined;
31440
+ address?: string | undefined;
31441
+ channel?: string[] | undefined;
31442
+ selectedDate?: string | undefined;
31443
+ customFields?: {
31444
+ type: string;
31445
+ value: (string | string[]) & (string | string[] | undefined);
31446
+ attributeId: string;
31447
+ }[] | undefined;
31448
+ tags?: string[] | undefined;
31449
+ phone?: string | undefined;
31450
+ email?: string | undefined;
31451
+ notes?: string | undefined;
31418
31452
  }, {
31419
- id: string;
31453
+ page?: number | undefined;
31454
+ pageSize?: number | undefined;
31455
+ keyword?: string | undefined;
31456
+ company?: string[] | undefined;
31457
+ name?: string | undefined;
31458
+ address?: string | undefined;
31459
+ channel?: string[] | undefined;
31460
+ selectedDate?: string | undefined;
31461
+ customFields?: {
31462
+ type: string;
31463
+ value: (string | string[]) & (string | string[] | undefined);
31464
+ attributeId: string;
31465
+ }[] | undefined;
31466
+ tags?: string[] | undefined;
31467
+ phone?: string | undefined;
31468
+ email?: string | undefined;
31469
+ notes?: string | undefined;
31420
31470
  }>;
31421
31471
  responses: {
31422
31472
  200: import("zod").ZodObject<{
31423
31473
  requestId: import("zod").ZodString;
31424
- data: import("zod").ZodObject<{
31474
+ page: import("zod").ZodNumber;
31475
+ pageSize: import("zod").ZodNumber;
31476
+ total: import("zod").ZodNumber;
31477
+ lastPage: import("zod").ZodNumber;
31478
+ data: import("zod").ZodArray<import("zod").ZodObject<{
31425
31479
  id: import("zod").ZodString;
31426
31480
  createdAt: import("zod").ZodDate;
31427
31481
  updatedAt: import("zod").ZodDate;
@@ -32160,7 +32214,7 @@ export declare const apiContract: {
32160
32214
  entity: string;
32161
32215
  };
32162
32216
  }[] | undefined;
32163
- }>;
32217
+ }>, "many">;
32164
32218
  }, "strip", import("zod").ZodTypeAny, {
32165
32219
  data: {
32166
32220
  id: string;
@@ -32263,7 +32317,11 @@ export declare const apiContract: {
32263
32317
  entity: string;
32264
32318
  };
32265
32319
  }[] | undefined;
32266
- };
32320
+ }[];
32321
+ total: number;
32322
+ page: number;
32323
+ pageSize: number;
32324
+ lastPage: number;
32267
32325
  requestId: string;
32268
32326
  }, {
32269
32327
  data: {
@@ -32367,7 +32425,11 @@ export declare const apiContract: {
32367
32425
  entity: string;
32368
32426
  };
32369
32427
  }[] | undefined;
32370
- };
32428
+ }[];
32429
+ total: number;
32430
+ page: number;
32431
+ pageSize: number;
32432
+ lastPage: number;
32371
32433
  requestId: string;
32372
32434
  }>;
32373
32435
  400: import("zod").ZodObject<{
@@ -32422,7 +32484,7 @@ export declare const apiContract: {
32422
32484
  error?: any;
32423
32485
  }>;
32424
32486
  };
32425
- path: "contact/:id";
32487
+ path: "contact";
32426
32488
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
32427
32489
  'x-tenant': import("zod").ZodString;
32428
32490
  authorization: import("zod").ZodString;
@@ -32440,71 +32502,21 @@ export declare const apiContract: {
32440
32502
  'x-client-timezone'?: string | undefined;
32441
32503
  }>>>;
32442
32504
  };
32443
- getAll: {
32444
- summary: "Get all contacts";
32505
+ filterContacts: {
32506
+ summary: "Get all contacts by filtering with only keyword";
32445
32507
  method: "GET";
32446
32508
  query: import("zod").ZodObject<{
32447
32509
  page: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
32448
32510
  pageSize: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
32449
- keyword: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
32450
- company: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
32451
- name: import("zod").ZodOptional<import("zod").ZodString>;
32452
- address: import("zod").ZodOptional<import("zod").ZodString>;
32453
- channel: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
32454
- selectedDate: import("zod").ZodOptional<import("zod").ZodString>;
32455
- customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
32456
- attributeId: import("zod").ZodString;
32457
- type: import("zod").ZodString;
32458
- value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
32459
- }, "strip", import("zod").ZodTypeAny, {
32460
- type: string;
32461
- value: (string | string[]) & (string | string[] | undefined);
32462
- attributeId: string;
32463
- }, {
32464
- type: string;
32465
- value: (string | string[]) & (string | string[] | undefined);
32466
- attributeId: string;
32467
- }>, "many">>;
32468
- tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
32469
- phone: import("zod").ZodOptional<import("zod").ZodString>;
32470
- email: import("zod").ZodOptional<import("zod").ZodString>;
32471
- notes: import("zod").ZodOptional<import("zod").ZodString>;
32511
+ keyword: import("zod").ZodOptional<import("zod").ZodString>;
32472
32512
  }, "strip", import("zod").ZodTypeAny, {
32473
32513
  page?: number | undefined;
32474
32514
  pageSize?: number | undefined;
32475
32515
  keyword?: string | undefined;
32476
- company?: string[] | undefined;
32477
- name?: string | undefined;
32478
- address?: string | undefined;
32479
- channel?: string[] | undefined;
32480
- selectedDate?: string | undefined;
32481
- customFields?: {
32482
- type: string;
32483
- value: (string | string[]) & (string | string[] | undefined);
32484
- attributeId: string;
32485
- }[] | undefined;
32486
- tags?: string[] | undefined;
32487
- phone?: string | undefined;
32488
- email?: string | undefined;
32489
- notes?: string | undefined;
32490
32516
  }, {
32491
32517
  page?: number | undefined;
32492
32518
  pageSize?: number | undefined;
32493
32519
  keyword?: string | undefined;
32494
- company?: string[] | undefined;
32495
- name?: string | undefined;
32496
- address?: string | undefined;
32497
- channel?: string[] | undefined;
32498
- selectedDate?: string | undefined;
32499
- customFields?: {
32500
- type: string;
32501
- value: (string | string[]) & (string | string[] | undefined);
32502
- attributeId: string;
32503
- }[] | undefined;
32504
- tags?: string[] | undefined;
32505
- phone?: string | undefined;
32506
- email?: string | undefined;
32507
- notes?: string | undefined;
32508
32520
  }>;
32509
32521
  responses: {
32510
32522
  200: import("zod").ZodObject<{
@@ -33522,7 +33534,7 @@ export declare const apiContract: {
33522
33534
  error?: any;
33523
33535
  }>;
33524
33536
  };
33525
- path: "contact";
33537
+ path: "contact/filter/list";
33526
33538
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
33527
33539
  'x-tenant': import("zod").ZodString;
33528
33540
  authorization: import("zod").ZodString;
@@ -33540,30 +33552,283 @@ export declare const apiContract: {
33540
33552
  'x-client-timezone'?: string | undefined;
33541
33553
  }>>>;
33542
33554
  };
33543
- filterContacts: {
33544
- summary: "Get all contacts by filtering with only keyword";
33545
- method: "GET";
33546
- query: import("zod").ZodObject<{
33547
- page: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
33548
- pageSize: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
33549
- keyword: import("zod").ZodOptional<import("zod").ZodString>;
33555
+ update: {
33556
+ body: import("zod").ZodObject<{
33557
+ name: import("zod").ZodOptional<import("zod").ZodObject<{
33558
+ isRequired: import("zod").ZodBoolean;
33559
+ attributeId: import("zod").ZodString;
33560
+ value: import("zod").ZodString;
33561
+ }, "strip", import("zod").ZodTypeAny, {
33562
+ value: string;
33563
+ isRequired: boolean;
33564
+ attributeId: string;
33565
+ }, {
33566
+ value: string;
33567
+ isRequired: boolean;
33568
+ attributeId: string;
33569
+ }>>;
33570
+ email: import("zod").ZodOptional<import("zod").ZodObject<{
33571
+ isRequired: import("zod").ZodBoolean;
33572
+ attributeId: import("zod").ZodString;
33573
+ value: import("zod").ZodArray<import("zod").ZodObject<{
33574
+ email: import("zod").ZodString;
33575
+ isPrimary: import("zod").ZodBoolean;
33576
+ }, "strip", import("zod").ZodTypeAny, {
33577
+ isPrimary: boolean;
33578
+ email: string;
33579
+ }, {
33580
+ isPrimary: boolean;
33581
+ email: string;
33582
+ }>, "many">;
33583
+ }, "strip", import("zod").ZodTypeAny, {
33584
+ value: {
33585
+ isPrimary: boolean;
33586
+ email: string;
33587
+ }[];
33588
+ isRequired: boolean;
33589
+ attributeId: string;
33590
+ }, {
33591
+ value: {
33592
+ isPrimary: boolean;
33593
+ email: string;
33594
+ }[];
33595
+ isRequired: boolean;
33596
+ attributeId: string;
33597
+ }>>;
33598
+ channel: import("zod").ZodOptional<import("zod").ZodObject<{
33599
+ isRequired: import("zod").ZodBoolean;
33600
+ attributeId: import("zod").ZodString;
33601
+ value: import("zod").ZodString;
33602
+ }, "strip", import("zod").ZodTypeAny, {
33603
+ value: string;
33604
+ isRequired: boolean;
33605
+ attributeId: string;
33606
+ }, {
33607
+ value: string;
33608
+ isRequired: boolean;
33609
+ attributeId: string;
33610
+ }>>;
33611
+ address: import("zod").ZodOptional<import("zod").ZodObject<{
33612
+ isRequired: import("zod").ZodBoolean;
33613
+ attributeId: import("zod").ZodString;
33614
+ value: import("zod").ZodString;
33615
+ }, "strip", import("zod").ZodTypeAny, {
33616
+ value: string;
33617
+ isRequired: boolean;
33618
+ attributeId: string;
33619
+ }, {
33620
+ value: string;
33621
+ isRequired: boolean;
33622
+ attributeId: string;
33623
+ }>>;
33624
+ phone: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodObject<{
33625
+ isRequired: import("zod").ZodBoolean;
33626
+ attributeId: import("zod").ZodString;
33627
+ value: import("zod").ZodArray<import("zod").ZodObject<{
33628
+ phone: import("zod").ZodString;
33629
+ isPrimary: import("zod").ZodBoolean;
33630
+ }, "strip", import("zod").ZodTypeAny, {
33631
+ isPrimary: boolean;
33632
+ phone: string;
33633
+ }, {
33634
+ isPrimary: boolean;
33635
+ phone: string;
33636
+ }>, "many">;
33637
+ }, "strip", import("zod").ZodTypeAny, {
33638
+ value: {
33639
+ isPrimary: boolean;
33640
+ phone: string;
33641
+ }[];
33642
+ isRequired: boolean;
33643
+ attributeId: string;
33644
+ }, {
33645
+ value: {
33646
+ isPrimary: boolean;
33647
+ phone: string;
33648
+ }[];
33649
+ isRequired: boolean;
33650
+ attributeId: string;
33651
+ }>>>;
33652
+ notes: import("zod").ZodOptional<import("zod").ZodObject<{
33653
+ isRequired: import("zod").ZodBoolean;
33654
+ attributeId: import("zod").ZodString;
33655
+ value: import("zod").ZodString;
33656
+ }, "strip", import("zod").ZodTypeAny, {
33657
+ value: string;
33658
+ isRequired: boolean;
33659
+ attributeId: string;
33660
+ }, {
33661
+ value: string;
33662
+ isRequired: boolean;
33663
+ attributeId: string;
33664
+ }>>;
33665
+ tags: import("zod").ZodOptional<import("zod").ZodObject<{
33666
+ isRequired: import("zod").ZodBoolean;
33667
+ attributeId: import("zod").ZodString;
33668
+ value: import("zod").ZodArray<import("zod").ZodString, "many">;
33669
+ }, "strip", import("zod").ZodTypeAny, {
33670
+ value: string[];
33671
+ isRequired: boolean;
33672
+ attributeId: string;
33673
+ }, {
33674
+ value: string[];
33675
+ isRequired: boolean;
33676
+ attributeId: string;
33677
+ }>>;
33678
+ company: import("zod").ZodOptional<import("zod").ZodObject<{
33679
+ isRequired: import("zod").ZodBoolean;
33680
+ attributeId: import("zod").ZodString;
33681
+ value: import("zod").ZodString;
33682
+ }, "strip", import("zod").ZodTypeAny, {
33683
+ value: string;
33684
+ isRequired: boolean;
33685
+ attributeId: string;
33686
+ }, {
33687
+ value: string;
33688
+ isRequired: boolean;
33689
+ attributeId: string;
33690
+ }>>;
33691
+ customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
33692
+ isRequired: import("zod").ZodBoolean;
33693
+ attributeId: import("zod").ZodString;
33694
+ value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
33695
+ type: import("zod").ZodString;
33696
+ isDefaultAttribute: import("zod").ZodBoolean;
33697
+ }, "strip", import("zod").ZodTypeAny, {
33698
+ type: string;
33699
+ value: (string | string[]) & (string | string[] | undefined);
33700
+ isRequired: boolean;
33701
+ attributeId: string;
33702
+ isDefaultAttribute: boolean;
33703
+ }, {
33704
+ type: string;
33705
+ value: (string | string[]) & (string | string[] | undefined);
33706
+ isRequired: boolean;
33707
+ attributeId: string;
33708
+ isDefaultAttribute: boolean;
33709
+ }>, "many">>;
33550
33710
  }, "strip", import("zod").ZodTypeAny, {
33551
- page?: number | undefined;
33552
- pageSize?: number | undefined;
33553
- keyword?: string | undefined;
33711
+ name?: {
33712
+ value: string;
33713
+ isRequired: boolean;
33714
+ attributeId: string;
33715
+ } | undefined;
33716
+ email?: {
33717
+ value: {
33718
+ isPrimary: boolean;
33719
+ email: string;
33720
+ }[];
33721
+ isRequired: boolean;
33722
+ attributeId: string;
33723
+ } | undefined;
33724
+ channel?: {
33725
+ value: string;
33726
+ isRequired: boolean;
33727
+ attributeId: string;
33728
+ } | undefined;
33729
+ address?: {
33730
+ value: string;
33731
+ isRequired: boolean;
33732
+ attributeId: string;
33733
+ } | undefined;
33734
+ phone?: {
33735
+ value: {
33736
+ isPrimary: boolean;
33737
+ phone: string;
33738
+ }[];
33739
+ isRequired: boolean;
33740
+ attributeId: string;
33741
+ } | undefined;
33742
+ notes?: {
33743
+ value: string;
33744
+ isRequired: boolean;
33745
+ attributeId: string;
33746
+ } | undefined;
33747
+ tags?: {
33748
+ value: string[];
33749
+ isRequired: boolean;
33750
+ attributeId: string;
33751
+ } | undefined;
33752
+ company?: {
33753
+ value: string;
33754
+ isRequired: boolean;
33755
+ attributeId: string;
33756
+ } | undefined;
33757
+ customFields?: {
33758
+ type: string;
33759
+ value: (string | string[]) & (string | string[] | undefined);
33760
+ isRequired: boolean;
33761
+ attributeId: string;
33762
+ isDefaultAttribute: boolean;
33763
+ }[] | undefined;
33554
33764
  }, {
33555
- page?: number | undefined;
33556
- pageSize?: number | undefined;
33557
- keyword?: string | undefined;
33765
+ name?: {
33766
+ value: string;
33767
+ isRequired: boolean;
33768
+ attributeId: string;
33769
+ } | undefined;
33770
+ email?: {
33771
+ value: {
33772
+ isPrimary: boolean;
33773
+ email: string;
33774
+ }[];
33775
+ isRequired: boolean;
33776
+ attributeId: string;
33777
+ } | undefined;
33778
+ channel?: {
33779
+ value: string;
33780
+ isRequired: boolean;
33781
+ attributeId: string;
33782
+ } | undefined;
33783
+ address?: {
33784
+ value: string;
33785
+ isRequired: boolean;
33786
+ attributeId: string;
33787
+ } | undefined;
33788
+ phone?: {
33789
+ value: {
33790
+ isPrimary: boolean;
33791
+ phone: string;
33792
+ }[];
33793
+ isRequired: boolean;
33794
+ attributeId: string;
33795
+ } | undefined;
33796
+ notes?: {
33797
+ value: string;
33798
+ isRequired: boolean;
33799
+ attributeId: string;
33800
+ } | undefined;
33801
+ tags?: {
33802
+ value: string[];
33803
+ isRequired: boolean;
33804
+ attributeId: string;
33805
+ } | undefined;
33806
+ company?: {
33807
+ value: string;
33808
+ isRequired: boolean;
33809
+ attributeId: string;
33810
+ } | undefined;
33811
+ customFields?: {
33812
+ type: string;
33813
+ value: (string | string[]) & (string | string[] | undefined);
33814
+ isRequired: boolean;
33815
+ attributeId: string;
33816
+ isDefaultAttribute: boolean;
33817
+ }[] | undefined;
33818
+ }>;
33819
+ summary: "Update a contact";
33820
+ method: "PATCH";
33821
+ pathParams: import("zod").ZodObject<{
33822
+ id: import("zod").ZodString;
33823
+ }, "strip", import("zod").ZodTypeAny, {
33824
+ id: string;
33825
+ }, {
33826
+ id: string;
33558
33827
  }>;
33559
33828
  responses: {
33560
33829
  200: import("zod").ZodObject<{
33561
33830
  requestId: import("zod").ZodString;
33562
- page: import("zod").ZodNumber;
33563
- pageSize: import("zod").ZodNumber;
33564
- total: import("zod").ZodNumber;
33565
- lastPage: import("zod").ZodNumber;
33566
- data: import("zod").ZodArray<import("zod").ZodObject<{
33831
+ data: import("zod").ZodObject<{
33567
33832
  id: import("zod").ZodString;
33568
33833
  createdAt: import("zod").ZodDate;
33569
33834
  updatedAt: import("zod").ZodDate;
@@ -34302,7 +34567,7 @@ export declare const apiContract: {
34302
34567
  entity: string;
34303
34568
  };
34304
34569
  }[] | undefined;
34305
- }>, "many">;
34570
+ }>;
34306
34571
  }, "strip", import("zod").ZodTypeAny, {
34307
34572
  data: {
34308
34573
  id: string;
@@ -34405,11 +34670,7 @@ export declare const apiContract: {
34405
34670
  entity: string;
34406
34671
  };
34407
34672
  }[] | undefined;
34408
- }[];
34409
- total: number;
34410
- page: number;
34411
- pageSize: number;
34412
- lastPage: number;
34673
+ };
34413
34674
  requestId: string;
34414
34675
  }, {
34415
34676
  data: {
@@ -34513,11 +34774,7 @@ export declare const apiContract: {
34513
34774
  entity: string;
34514
34775
  };
34515
34776
  }[] | undefined;
34516
- }[];
34517
- total: number;
34518
- page: number;
34519
- pageSize: number;
34520
- lastPage: number;
34777
+ };
34521
34778
  requestId: string;
34522
34779
  }>;
34523
34780
  400: import("zod").ZodObject<{
@@ -34572,7 +34829,7 @@ export declare const apiContract: {
34572
34829
  error?: any;
34573
34830
  }>;
34574
34831
  };
34575
- path: "contact/filter";
34832
+ path: "contact/:id";
34576
34833
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
34577
34834
  'x-tenant': import("zod").ZodString;
34578
34835
  authorization: import("zod").ZodString;
@@ -34590,281 +34847,110 @@ export declare const apiContract: {
34590
34847
  'x-client-timezone'?: string | undefined;
34591
34848
  }>>>;
34592
34849
  };
34593
- update: {
34594
- body: import("zod").ZodObject<{
34595
- name: import("zod").ZodOptional<import("zod").ZodObject<{
34596
- isRequired: import("zod").ZodBoolean;
34597
- attributeId: import("zod").ZodString;
34598
- value: import("zod").ZodString;
34599
- }, "strip", import("zod").ZodTypeAny, {
34600
- value: string;
34601
- isRequired: boolean;
34602
- attributeId: string;
34603
- }, {
34604
- value: string;
34605
- isRequired: boolean;
34606
- attributeId: string;
34607
- }>>;
34608
- email: import("zod").ZodOptional<import("zod").ZodObject<{
34609
- isRequired: import("zod").ZodBoolean;
34610
- attributeId: import("zod").ZodString;
34611
- value: import("zod").ZodArray<import("zod").ZodObject<{
34612
- email: import("zod").ZodString;
34613
- isPrimary: import("zod").ZodBoolean;
34614
- }, "strip", import("zod").ZodTypeAny, {
34615
- isPrimary: boolean;
34616
- email: string;
34617
- }, {
34618
- isPrimary: boolean;
34619
- email: string;
34620
- }>, "many">;
34621
- }, "strip", import("zod").ZodTypeAny, {
34622
- value: {
34623
- isPrimary: boolean;
34624
- email: string;
34625
- }[];
34626
- isRequired: boolean;
34627
- attributeId: string;
34628
- }, {
34629
- value: {
34630
- isPrimary: boolean;
34631
- email: string;
34632
- }[];
34633
- isRequired: boolean;
34634
- attributeId: string;
34635
- }>>;
34636
- channel: import("zod").ZodOptional<import("zod").ZodObject<{
34637
- isRequired: import("zod").ZodBoolean;
34638
- attributeId: import("zod").ZodString;
34639
- value: import("zod").ZodString;
34850
+ delete: {
34851
+ body: null;
34852
+ summary: "Delete a contact";
34853
+ method: "DELETE";
34854
+ pathParams: import("zod").ZodObject<{
34855
+ id: import("zod").ZodString;
34856
+ }, "strip", import("zod").ZodTypeAny, {
34857
+ id: string;
34858
+ }, {
34859
+ id: string;
34860
+ }>;
34861
+ responses: {
34862
+ 200: import("zod").ZodObject<{
34863
+ requestId: import("zod").ZodString;
34864
+ message: import("zod").ZodString;
34640
34865
  }, "strip", import("zod").ZodTypeAny, {
34641
- value: string;
34642
- isRequired: boolean;
34643
- attributeId: string;
34866
+ message: string;
34867
+ requestId: string;
34644
34868
  }, {
34645
- value: string;
34646
- isRequired: boolean;
34647
- attributeId: string;
34648
- }>>;
34649
- address: import("zod").ZodOptional<import("zod").ZodObject<{
34650
- isRequired: import("zod").ZodBoolean;
34651
- attributeId: import("zod").ZodString;
34652
- value: import("zod").ZodString;
34869
+ message: string;
34870
+ requestId: string;
34871
+ }>;
34872
+ 400: import("zod").ZodObject<{
34873
+ message: import("zod").ZodString;
34653
34874
  }, "strip", import("zod").ZodTypeAny, {
34654
- value: string;
34655
- isRequired: boolean;
34656
- attributeId: string;
34875
+ message: string;
34657
34876
  }, {
34658
- value: string;
34659
- isRequired: boolean;
34660
- attributeId: string;
34661
- }>>;
34662
- phone: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodObject<{
34663
- isRequired: import("zod").ZodBoolean;
34664
- attributeId: import("zod").ZodString;
34665
- value: import("zod").ZodArray<import("zod").ZodObject<{
34666
- phone: import("zod").ZodString;
34667
- isPrimary: import("zod").ZodBoolean;
34668
- }, "strip", import("zod").ZodTypeAny, {
34669
- isPrimary: boolean;
34670
- phone: string;
34671
- }, {
34672
- isPrimary: boolean;
34673
- phone: string;
34674
- }>, "many">;
34877
+ message: string;
34878
+ }>;
34879
+ 409: import("zod").ZodObject<{
34880
+ message: import("zod").ZodString;
34675
34881
  }, "strip", import("zod").ZodTypeAny, {
34676
- value: {
34677
- isPrimary: boolean;
34678
- phone: string;
34679
- }[];
34680
- isRequired: boolean;
34681
- attributeId: string;
34882
+ message: string;
34682
34883
  }, {
34683
- value: {
34684
- isPrimary: boolean;
34685
- phone: string;
34686
- }[];
34687
- isRequired: boolean;
34688
- attributeId: string;
34689
- }>>>;
34690
- notes: import("zod").ZodOptional<import("zod").ZodObject<{
34691
- isRequired: import("zod").ZodBoolean;
34692
- attributeId: import("zod").ZodString;
34693
- value: import("zod").ZodString;
34884
+ message: string;
34885
+ }>;
34886
+ 500: import("zod").ZodObject<{
34887
+ message: import("zod").ZodString;
34694
34888
  }, "strip", import("zod").ZodTypeAny, {
34695
- value: string;
34696
- isRequired: boolean;
34697
- attributeId: string;
34889
+ message: string;
34698
34890
  }, {
34699
- value: string;
34700
- isRequired: boolean;
34701
- attributeId: string;
34702
- }>>;
34703
- tags: import("zod").ZodOptional<import("zod").ZodObject<{
34704
- isRequired: import("zod").ZodBoolean;
34705
- attributeId: import("zod").ZodString;
34706
- value: import("zod").ZodArray<import("zod").ZodString, "many">;
34891
+ message: string;
34892
+ }>;
34893
+ 401: import("zod").ZodObject<{
34894
+ message: import("zod").ZodString;
34895
+ error: import("zod").ZodAny;
34707
34896
  }, "strip", import("zod").ZodTypeAny, {
34708
- value: string[];
34709
- isRequired: boolean;
34710
- attributeId: string;
34897
+ message: string;
34898
+ error?: any;
34711
34899
  }, {
34712
- value: string[];
34713
- isRequired: boolean;
34714
- attributeId: string;
34715
- }>>;
34716
- company: import("zod").ZodOptional<import("zod").ZodObject<{
34717
- isRequired: import("zod").ZodBoolean;
34718
- attributeId: import("zod").ZodString;
34719
- value: import("zod").ZodString;
34900
+ message: string;
34901
+ error?: any;
34902
+ }>;
34903
+ 404: import("zod").ZodObject<{
34904
+ message: import("zod").ZodString;
34905
+ error: import("zod").ZodAny;
34720
34906
  }, "strip", import("zod").ZodTypeAny, {
34721
- value: string;
34722
- isRequired: boolean;
34723
- attributeId: string;
34907
+ message: string;
34908
+ error?: any;
34724
34909
  }, {
34725
- value: string;
34726
- isRequired: boolean;
34727
- attributeId: string;
34728
- }>>;
34729
- customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
34730
- isRequired: import("zod").ZodBoolean;
34731
- attributeId: import("zod").ZodString;
34732
- value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
34733
- type: import("zod").ZodString;
34734
- isDefaultAttribute: import("zod").ZodBoolean;
34910
+ message: string;
34911
+ error?: any;
34912
+ }>;
34913
+ 422: import("zod").ZodObject<{
34914
+ message: import("zod").ZodString;
34915
+ error: import("zod").ZodAny;
34735
34916
  }, "strip", import("zod").ZodTypeAny, {
34736
- type: string;
34737
- value: (string | string[]) & (string | string[] | undefined);
34738
- isRequired: boolean;
34739
- attributeId: string;
34740
- isDefaultAttribute: boolean;
34917
+ message: string;
34918
+ error?: any;
34741
34919
  }, {
34742
- type: string;
34743
- value: (string | string[]) & (string | string[] | undefined);
34744
- isRequired: boolean;
34745
- attributeId: string;
34746
- isDefaultAttribute: boolean;
34747
- }>, "many">>;
34920
+ message: string;
34921
+ error?: any;
34922
+ }>;
34923
+ };
34924
+ path: "contact/:id";
34925
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
34926
+ 'x-tenant': import("zod").ZodString;
34927
+ authorization: import("zod").ZodString;
34928
+ 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
34929
+ 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
34748
34930
  }, "strip", import("zod").ZodTypeAny, {
34749
- name?: {
34750
- value: string;
34751
- isRequired: boolean;
34752
- attributeId: string;
34753
- } | undefined;
34754
- email?: {
34755
- value: {
34756
- isPrimary: boolean;
34757
- email: string;
34758
- }[];
34759
- isRequired: boolean;
34760
- attributeId: string;
34761
- } | undefined;
34762
- channel?: {
34763
- value: string;
34764
- isRequired: boolean;
34765
- attributeId: string;
34766
- } | undefined;
34767
- address?: {
34768
- value: string;
34769
- isRequired: boolean;
34770
- attributeId: string;
34771
- } | undefined;
34772
- phone?: {
34773
- value: {
34774
- isPrimary: boolean;
34775
- phone: string;
34776
- }[];
34777
- isRequired: boolean;
34778
- attributeId: string;
34779
- } | undefined;
34780
- notes?: {
34781
- value: string;
34782
- isRequired: boolean;
34783
- attributeId: string;
34784
- } | undefined;
34785
- tags?: {
34786
- value: string[];
34787
- isRequired: boolean;
34788
- attributeId: string;
34789
- } | undefined;
34790
- company?: {
34791
- value: string;
34792
- isRequired: boolean;
34793
- attributeId: string;
34794
- } | undefined;
34795
- customFields?: {
34796
- type: string;
34797
- value: (string | string[]) & (string | string[] | undefined);
34798
- isRequired: boolean;
34799
- attributeId: string;
34800
- isDefaultAttribute: boolean;
34801
- }[] | undefined;
34931
+ 'x-tenant': string;
34932
+ authorization: string;
34933
+ 'x-client-timezone': string;
34934
+ 'x-code'?: string | undefined;
34802
34935
  }, {
34803
- name?: {
34804
- value: string;
34805
- isRequired: boolean;
34806
- attributeId: string;
34807
- } | undefined;
34808
- email?: {
34809
- value: {
34810
- isPrimary: boolean;
34811
- email: string;
34812
- }[];
34813
- isRequired: boolean;
34814
- attributeId: string;
34815
- } | undefined;
34816
- channel?: {
34817
- value: string;
34818
- isRequired: boolean;
34819
- attributeId: string;
34820
- } | undefined;
34821
- address?: {
34822
- value: string;
34823
- isRequired: boolean;
34824
- attributeId: string;
34825
- } | undefined;
34826
- phone?: {
34827
- value: {
34828
- isPrimary: boolean;
34829
- phone: string;
34830
- }[];
34831
- isRequired: boolean;
34832
- attributeId: string;
34833
- } | undefined;
34834
- notes?: {
34835
- value: string;
34836
- isRequired: boolean;
34837
- attributeId: string;
34838
- } | undefined;
34839
- tags?: {
34840
- value: string[];
34841
- isRequired: boolean;
34842
- attributeId: string;
34843
- } | undefined;
34844
- company?: {
34845
- value: string;
34846
- isRequired: boolean;
34847
- attributeId: string;
34848
- } | undefined;
34849
- customFields?: {
34850
- type: string;
34851
- value: (string | string[]) & (string | string[] | undefined);
34852
- isRequired: boolean;
34853
- attributeId: string;
34854
- isDefaultAttribute: boolean;
34855
- }[] | undefined;
34856
- }>;
34857
- summary: "Update a contact";
34858
- method: "PATCH";
34859
- pathParams: import("zod").ZodObject<{
34860
- id: import("zod").ZodString;
34936
+ 'x-tenant': string;
34937
+ authorization: string;
34938
+ 'x-code'?: string | undefined;
34939
+ 'x-client-timezone'?: string | undefined;
34940
+ }>>>;
34941
+ };
34942
+ createContactByPhone: {
34943
+ body: import("zod").ZodObject<{
34944
+ phoneNumber: import("zod").ZodEffects<import("zod").ZodString, string, string>;
34861
34945
  }, "strip", import("zod").ZodTypeAny, {
34862
- id: string;
34946
+ phoneNumber: string;
34863
34947
  }, {
34864
- id: string;
34948
+ phoneNumber: string;
34865
34949
  }>;
34950
+ summary: "Create a new contact using phone number";
34951
+ method: "POST";
34866
34952
  responses: {
34867
- 200: import("zod").ZodObject<{
34953
+ 201: import("zod").ZodObject<{
34868
34954
  requestId: import("zod").ZodString;
34869
34955
  data: import("zod").ZodObject<{
34870
34956
  id: import("zod").ZodString;
@@ -35867,99 +35953,7 @@ export declare const apiContract: {
35867
35953
  error?: any;
35868
35954
  }>;
35869
35955
  };
35870
- path: "contact/:id";
35871
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
35872
- 'x-tenant': import("zod").ZodString;
35873
- authorization: import("zod").ZodString;
35874
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
35875
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
35876
- }, "strip", import("zod").ZodTypeAny, {
35877
- 'x-tenant': string;
35878
- authorization: string;
35879
- 'x-client-timezone': string;
35880
- 'x-code'?: string | undefined;
35881
- }, {
35882
- 'x-tenant': string;
35883
- authorization: string;
35884
- 'x-code'?: string | undefined;
35885
- 'x-client-timezone'?: string | undefined;
35886
- }>>>;
35887
- };
35888
- delete: {
35889
- body: null;
35890
- summary: "Delete a contact";
35891
- method: "DELETE";
35892
- pathParams: import("zod").ZodObject<{
35893
- id: import("zod").ZodString;
35894
- }, "strip", import("zod").ZodTypeAny, {
35895
- id: string;
35896
- }, {
35897
- id: string;
35898
- }>;
35899
- responses: {
35900
- 200: import("zod").ZodObject<{
35901
- requestId: import("zod").ZodString;
35902
- message: import("zod").ZodString;
35903
- }, "strip", import("zod").ZodTypeAny, {
35904
- message: string;
35905
- requestId: string;
35906
- }, {
35907
- message: string;
35908
- requestId: string;
35909
- }>;
35910
- 400: import("zod").ZodObject<{
35911
- message: import("zod").ZodString;
35912
- }, "strip", import("zod").ZodTypeAny, {
35913
- message: string;
35914
- }, {
35915
- message: string;
35916
- }>;
35917
- 409: import("zod").ZodObject<{
35918
- message: import("zod").ZodString;
35919
- }, "strip", import("zod").ZodTypeAny, {
35920
- message: string;
35921
- }, {
35922
- message: string;
35923
- }>;
35924
- 500: import("zod").ZodObject<{
35925
- message: import("zod").ZodString;
35926
- }, "strip", import("zod").ZodTypeAny, {
35927
- message: string;
35928
- }, {
35929
- message: string;
35930
- }>;
35931
- 401: import("zod").ZodObject<{
35932
- message: import("zod").ZodString;
35933
- error: import("zod").ZodAny;
35934
- }, "strip", import("zod").ZodTypeAny, {
35935
- message: string;
35936
- error?: any;
35937
- }, {
35938
- message: string;
35939
- error?: any;
35940
- }>;
35941
- 404: import("zod").ZodObject<{
35942
- message: import("zod").ZodString;
35943
- error: import("zod").ZodAny;
35944
- }, "strip", import("zod").ZodTypeAny, {
35945
- message: string;
35946
- error?: any;
35947
- }, {
35948
- message: string;
35949
- error?: any;
35950
- }>;
35951
- 422: import("zod").ZodObject<{
35952
- message: import("zod").ZodString;
35953
- error: import("zod").ZodAny;
35954
- }, "strip", import("zod").ZodTypeAny, {
35955
- message: string;
35956
- error?: any;
35957
- }, {
35958
- message: string;
35959
- error?: any;
35960
- }>;
35961
- };
35962
- path: "contact/:id";
35956
+ path: "contact/phone";
35963
35957
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
35964
35958
  'x-tenant': import("zod").ZodString;
35965
35959
  authorization: import("zod").ZodString;
@@ -35977,16 +35971,19 @@ export declare const apiContract: {
35977
35971
  'x-client-timezone'?: string | undefined;
35978
35972
  }>>>;
35979
35973
  };
35980
- createContactByPhone: {
35974
+ updateFromOngoingCall: {
35981
35975
  body: import("zod").ZodObject<{
35982
- phoneNumber: import("zod").ZodEffects<import("zod").ZodString, string, string>;
35976
+ name: import("zod").ZodOptional<import("zod").ZodString>;
35977
+ companyId: import("zod").ZodOptional<import("zod").ZodString>;
35983
35978
  }, "strip", import("zod").ZodTypeAny, {
35984
- phoneNumber: string;
35979
+ name?: string | undefined;
35980
+ companyId?: string | undefined;
35985
35981
  }, {
35986
- phoneNumber: string;
35982
+ name?: string | undefined;
35983
+ companyId?: string | undefined;
35987
35984
  }>;
35988
- summary: "Create a new contact using phone number";
35989
- method: "POST";
35985
+ summary: "Update a contact with name and company while making ongoing call";
35986
+ method: "PATCH";
35990
35987
  responses: {
35991
35988
  201: import("zod").ZodObject<{
35992
35989
  requestId: import("zod").ZodString;
@@ -36991,7 +36988,7 @@ export declare const apiContract: {
36991
36988
  error?: any;
36992
36989
  }>;
36993
36990
  };
36994
- path: "contact/phone";
36991
+ path: "contact/:id/ongoing";
36995
36992
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36996
36993
  'x-tenant': import("zod").ZodString;
36997
36994
  authorization: import("zod").ZodString;
@@ -37009,21 +37006,57 @@ export declare const apiContract: {
37009
37006
  'x-client-timezone'?: string | undefined;
37010
37007
  }>>>;
37011
37008
  };
37012
- updateFromOngoingCall: {
37009
+ merge: {
37013
37010
  body: import("zod").ZodObject<{
37014
- name: import("zod").ZodOptional<import("zod").ZodString>;
37015
- companyId: import("zod").ZodOptional<import("zod").ZodString>;
37011
+ primaryContactId: import("zod").ZodString;
37012
+ emails: import("zod").ZodArray<import("zod").ZodObject<{
37013
+ email: import("zod").ZodString;
37014
+ isPrimary: import("zod").ZodBoolean;
37015
+ }, "strip", import("zod").ZodTypeAny, {
37016
+ isPrimary: boolean;
37017
+ email: string;
37018
+ }, {
37019
+ isPrimary: boolean;
37020
+ email: string;
37021
+ }>, "many">;
37022
+ phones: import("zod").ZodArray<import("zod").ZodObject<{
37023
+ phone: import("zod").ZodString;
37024
+ isPrimary: import("zod").ZodBoolean;
37025
+ }, "strip", import("zod").ZodTypeAny, {
37026
+ isPrimary: boolean;
37027
+ phone: string;
37028
+ }, {
37029
+ isPrimary: boolean;
37030
+ phone: string;
37031
+ }>, "many">;
37032
+ otherContacts: import("zod").ZodArray<import("zod").ZodString, "many">;
37016
37033
  }, "strip", import("zod").ZodTypeAny, {
37017
- name?: string | undefined;
37018
- companyId?: string | undefined;
37034
+ primaryContactId: string;
37035
+ emails: {
37036
+ isPrimary: boolean;
37037
+ email: string;
37038
+ }[];
37039
+ phones: {
37040
+ isPrimary: boolean;
37041
+ phone: string;
37042
+ }[];
37043
+ otherContacts: string[];
37019
37044
  }, {
37020
- name?: string | undefined;
37021
- companyId?: string | undefined;
37045
+ primaryContactId: string;
37046
+ emails: {
37047
+ isPrimary: boolean;
37048
+ email: string;
37049
+ }[];
37050
+ phones: {
37051
+ isPrimary: boolean;
37052
+ phone: string;
37053
+ }[];
37054
+ otherContacts: string[];
37022
37055
  }>;
37023
- summary: "Update a contact with name and company while making ongoing call";
37024
- method: "PATCH";
37056
+ summary: "Merge contacts into a single contact.";
37057
+ method: "POST";
37025
37058
  responses: {
37026
- 201: import("zod").ZodObject<{
37059
+ 200: import("zod").ZodObject<{
37027
37060
  requestId: import("zod").ZodString;
37028
37061
  data: import("zod").ZodObject<{
37029
37062
  id: import("zod").ZodString;
@@ -38026,7 +38059,7 @@ export declare const apiContract: {
38026
38059
  error?: any;
38027
38060
  }>;
38028
38061
  };
38029
- path: "contact/:id/ongoing";
38062
+ path: "contact/merge";
38030
38063
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
38031
38064
  'x-tenant': import("zod").ZodString;
38032
38065
  authorization: import("zod").ZodString;
@@ -38044,55 +38077,385 @@ export declare const apiContract: {
38044
38077
  'x-client-timezone'?: string | undefined;
38045
38078
  }>>>;
38046
38079
  };
38047
- merge: {
38080
+ checkContactPhone: {
38048
38081
  body: import("zod").ZodObject<{
38049
- primaryContactId: import("zod").ZodString;
38050
- emails: import("zod").ZodArray<import("zod").ZodObject<{
38051
- email: import("zod").ZodString;
38052
- isPrimary: import("zod").ZodBoolean;
38082
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
38083
+ phoneNumber: import("zod").ZodString;
38084
+ }, "strip", import("zod").ZodTypeAny, {
38085
+ phoneNumber: string;
38086
+ contactId?: string | undefined;
38087
+ }, {
38088
+ phoneNumber: string;
38089
+ contactId?: string | undefined;
38090
+ }>;
38091
+ summary: "Check whether a contact owns a phone number";
38092
+ method: "POST";
38093
+ responses: {
38094
+ 200: import("zod").ZodObject<{
38095
+ requestId: import("zod").ZodString;
38096
+ existed: import("zod").ZodBoolean;
38053
38097
  }, "strip", import("zod").ZodTypeAny, {
38054
- isPrimary: boolean;
38055
- email: string;
38098
+ requestId: string;
38099
+ existed: boolean;
38056
38100
  }, {
38057
- isPrimary: boolean;
38058
- email: string;
38059
- }>, "many">;
38060
- phones: import("zod").ZodArray<import("zod").ZodObject<{
38061
- phone: import("zod").ZodString;
38062
- isPrimary: import("zod").ZodBoolean;
38101
+ requestId: string;
38102
+ existed: boolean;
38103
+ }>;
38104
+ 400: import("zod").ZodObject<{
38105
+ message: import("zod").ZodString;
38063
38106
  }, "strip", import("zod").ZodTypeAny, {
38064
- isPrimary: boolean;
38065
- phone: string;
38107
+ message: string;
38066
38108
  }, {
38067
- isPrimary: boolean;
38068
- phone: string;
38069
- }>, "many">;
38070
- otherContacts: import("zod").ZodArray<import("zod").ZodString, "many">;
38109
+ message: string;
38110
+ }>;
38111
+ 409: import("zod").ZodObject<{
38112
+ message: import("zod").ZodString;
38113
+ }, "strip", import("zod").ZodTypeAny, {
38114
+ message: string;
38115
+ }, {
38116
+ message: string;
38117
+ }>;
38118
+ 500: import("zod").ZodObject<{
38119
+ message: import("zod").ZodString;
38120
+ }, "strip", import("zod").ZodTypeAny, {
38121
+ message: string;
38122
+ }, {
38123
+ message: string;
38124
+ }>;
38125
+ 401: import("zod").ZodObject<{
38126
+ message: import("zod").ZodString;
38127
+ error: import("zod").ZodAny;
38128
+ }, "strip", import("zod").ZodTypeAny, {
38129
+ message: string;
38130
+ error?: any;
38131
+ }, {
38132
+ message: string;
38133
+ error?: any;
38134
+ }>;
38135
+ 404: import("zod").ZodObject<{
38136
+ message: import("zod").ZodString;
38137
+ error: import("zod").ZodAny;
38138
+ }, "strip", import("zod").ZodTypeAny, {
38139
+ message: string;
38140
+ error?: any;
38141
+ }, {
38142
+ message: string;
38143
+ error?: any;
38144
+ }>;
38145
+ 422: import("zod").ZodObject<{
38146
+ message: import("zod").ZodString;
38147
+ error: import("zod").ZodAny;
38148
+ }, "strip", import("zod").ZodTypeAny, {
38149
+ message: string;
38150
+ error?: any;
38151
+ }, {
38152
+ message: string;
38153
+ error?: any;
38154
+ }>;
38155
+ };
38156
+ path: "contact/check/phone";
38157
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
38158
+ 'x-tenant': import("zod").ZodString;
38159
+ authorization: import("zod").ZodString;
38160
+ 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
38161
+ 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
38071
38162
  }, "strip", import("zod").ZodTypeAny, {
38072
- primaryContactId: string;
38073
- emails: {
38074
- isPrimary: boolean;
38075
- email: string;
38076
- }[];
38077
- phones: {
38078
- isPrimary: boolean;
38079
- phone: string;
38080
- }[];
38081
- otherContacts: string[];
38163
+ 'x-tenant': string;
38164
+ authorization: string;
38165
+ 'x-client-timezone': string;
38166
+ 'x-code'?: string | undefined;
38082
38167
  }, {
38083
- primaryContactId: string;
38084
- emails: {
38085
- isPrimary: boolean;
38086
- email: string;
38087
- }[];
38088
- phones: {
38089
- isPrimary: boolean;
38090
- phone: string;
38091
- }[];
38092
- otherContacts: string[];
38168
+ 'x-tenant': string;
38169
+ authorization: string;
38170
+ 'x-code'?: string | undefined;
38171
+ 'x-client-timezone'?: string | undefined;
38172
+ }>>>;
38173
+ };
38174
+ checkContactEmail: {
38175
+ body: import("zod").ZodObject<{
38176
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
38177
+ email: import("zod").ZodString;
38178
+ }, "strip", import("zod").ZodTypeAny, {
38179
+ email: string;
38180
+ contactId?: string | undefined;
38181
+ }, {
38182
+ email: string;
38183
+ contactId?: string | undefined;
38093
38184
  }>;
38094
- summary: "Merge contacts into a single contact.";
38185
+ summary: "Check whether a contact owns a email";
38095
38186
  method: "POST";
38187
+ responses: {
38188
+ 200: import("zod").ZodObject<{
38189
+ requestId: import("zod").ZodString;
38190
+ existed: import("zod").ZodBoolean;
38191
+ }, "strip", import("zod").ZodTypeAny, {
38192
+ requestId: string;
38193
+ existed: boolean;
38194
+ }, {
38195
+ requestId: string;
38196
+ existed: boolean;
38197
+ }>;
38198
+ 400: import("zod").ZodObject<{
38199
+ message: import("zod").ZodString;
38200
+ }, "strip", import("zod").ZodTypeAny, {
38201
+ message: string;
38202
+ }, {
38203
+ message: string;
38204
+ }>;
38205
+ 409: import("zod").ZodObject<{
38206
+ message: import("zod").ZodString;
38207
+ }, "strip", import("zod").ZodTypeAny, {
38208
+ message: string;
38209
+ }, {
38210
+ message: string;
38211
+ }>;
38212
+ 500: import("zod").ZodObject<{
38213
+ message: import("zod").ZodString;
38214
+ }, "strip", import("zod").ZodTypeAny, {
38215
+ message: string;
38216
+ }, {
38217
+ message: string;
38218
+ }>;
38219
+ 401: import("zod").ZodObject<{
38220
+ message: import("zod").ZodString;
38221
+ error: import("zod").ZodAny;
38222
+ }, "strip", import("zod").ZodTypeAny, {
38223
+ message: string;
38224
+ error?: any;
38225
+ }, {
38226
+ message: string;
38227
+ error?: any;
38228
+ }>;
38229
+ 404: import("zod").ZodObject<{
38230
+ message: import("zod").ZodString;
38231
+ error: import("zod").ZodAny;
38232
+ }, "strip", import("zod").ZodTypeAny, {
38233
+ message: string;
38234
+ error?: any;
38235
+ }, {
38236
+ message: string;
38237
+ error?: any;
38238
+ }>;
38239
+ 422: import("zod").ZodObject<{
38240
+ message: import("zod").ZodString;
38241
+ error: import("zod").ZodAny;
38242
+ }, "strip", import("zod").ZodTypeAny, {
38243
+ message: string;
38244
+ error?: any;
38245
+ }, {
38246
+ message: string;
38247
+ error?: any;
38248
+ }>;
38249
+ };
38250
+ path: "contact/check/email";
38251
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
38252
+ 'x-tenant': import("zod").ZodString;
38253
+ authorization: import("zod").ZodString;
38254
+ 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
38255
+ 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
38256
+ }, "strip", import("zod").ZodTypeAny, {
38257
+ 'x-tenant': string;
38258
+ authorization: string;
38259
+ 'x-client-timezone': string;
38260
+ 'x-code'?: string | undefined;
38261
+ }, {
38262
+ 'x-tenant': string;
38263
+ authorization: string;
38264
+ 'x-code'?: string | undefined;
38265
+ 'x-client-timezone'?: string | undefined;
38266
+ }>>>;
38267
+ };
38268
+ addAttachments: {
38269
+ body: import("zod").ZodObject<{
38270
+ attributeId: import("zod").ZodString;
38271
+ attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
38272
+ bucketName: import("zod").ZodString;
38273
+ fileKey: import("zod").ZodString;
38274
+ fileName: import("zod").ZodString;
38275
+ fileSize: import("zod").ZodNumber;
38276
+ }, "strip", import("zod").ZodTypeAny, {
38277
+ fileName: string;
38278
+ fileKey: string;
38279
+ bucketName: string;
38280
+ fileSize: number;
38281
+ }, {
38282
+ fileName: string;
38283
+ fileKey: string;
38284
+ bucketName: string;
38285
+ fileSize: number;
38286
+ }>, "many">>;
38287
+ }, "strip", import("zod").ZodTypeAny, {
38288
+ attributeId: string;
38289
+ attachments?: {
38290
+ fileName: string;
38291
+ fileKey: string;
38292
+ bucketName: string;
38293
+ fileSize: number;
38294
+ }[] | undefined;
38295
+ }, {
38296
+ attributeId: string;
38297
+ attachments?: {
38298
+ fileName: string;
38299
+ fileKey: string;
38300
+ bucketName: string;
38301
+ fileSize: number;
38302
+ }[] | undefined;
38303
+ }>;
38304
+ summary: " attachment information from pre-uploaded files in AWS S3 to contacts.";
38305
+ method: "POST";
38306
+ pathParams: import("zod").ZodObject<{
38307
+ id: import("zod").ZodString;
38308
+ }, "strip", import("zod").ZodTypeAny, {
38309
+ id: string;
38310
+ }, {
38311
+ id: string;
38312
+ }>;
38313
+ responses: {
38314
+ 201: import("zod").ZodObject<{
38315
+ requestId: import("zod").ZodString;
38316
+ message: import("zod").ZodObject<{
38317
+ id: import("zod").ZodString;
38318
+ createdAt: import("zod").ZodDate;
38319
+ updatedAt: import("zod").ZodDate;
38320
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
38321
+ textValue: import("zod").ZodNullable<import("zod").ZodString>;
38322
+ booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
38323
+ numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
38324
+ dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
38325
+ entityId: import("zod").ZodString;
38326
+ attributeId: import("zod").ZodString;
38327
+ }, "strip", import("zod").ZodTypeAny, {
38328
+ id: string;
38329
+ createdAt: Date;
38330
+ updatedAt: Date;
38331
+ deletedAt: Date | null;
38332
+ attributeId: string;
38333
+ textValue: string | null;
38334
+ booleanValue: boolean | null;
38335
+ numberValue: number | null;
38336
+ dateValue: Date | null;
38337
+ entityId: string;
38338
+ }, {
38339
+ id: string;
38340
+ createdAt: Date;
38341
+ updatedAt: Date;
38342
+ deletedAt: Date | null;
38343
+ attributeId: string;
38344
+ textValue: string | null;
38345
+ booleanValue: boolean | null;
38346
+ numberValue: number | null;
38347
+ dateValue: Date | null;
38348
+ entityId: string;
38349
+ }>;
38350
+ }, "strip", import("zod").ZodTypeAny, {
38351
+ message: {
38352
+ id: string;
38353
+ createdAt: Date;
38354
+ updatedAt: Date;
38355
+ deletedAt: Date | null;
38356
+ attributeId: string;
38357
+ textValue: string | null;
38358
+ booleanValue: boolean | null;
38359
+ numberValue: number | null;
38360
+ dateValue: Date | null;
38361
+ entityId: string;
38362
+ };
38363
+ requestId: string;
38364
+ }, {
38365
+ message: {
38366
+ id: string;
38367
+ createdAt: Date;
38368
+ updatedAt: Date;
38369
+ deletedAt: Date | null;
38370
+ attributeId: string;
38371
+ textValue: string | null;
38372
+ booleanValue: boolean | null;
38373
+ numberValue: number | null;
38374
+ dateValue: Date | null;
38375
+ entityId: string;
38376
+ };
38377
+ requestId: string;
38378
+ }>;
38379
+ 400: import("zod").ZodObject<{
38380
+ message: import("zod").ZodString;
38381
+ }, "strip", import("zod").ZodTypeAny, {
38382
+ message: string;
38383
+ }, {
38384
+ message: string;
38385
+ }>;
38386
+ 409: import("zod").ZodObject<{
38387
+ message: import("zod").ZodString;
38388
+ }, "strip", import("zod").ZodTypeAny, {
38389
+ message: string;
38390
+ }, {
38391
+ message: string;
38392
+ }>;
38393
+ 500: import("zod").ZodObject<{
38394
+ message: import("zod").ZodString;
38395
+ }, "strip", import("zod").ZodTypeAny, {
38396
+ message: string;
38397
+ }, {
38398
+ message: string;
38399
+ }>;
38400
+ 401: import("zod").ZodObject<{
38401
+ message: import("zod").ZodString;
38402
+ error: import("zod").ZodAny;
38403
+ }, "strip", import("zod").ZodTypeAny, {
38404
+ message: string;
38405
+ error?: any;
38406
+ }, {
38407
+ message: string;
38408
+ error?: any;
38409
+ }>;
38410
+ 404: import("zod").ZodObject<{
38411
+ message: import("zod").ZodString;
38412
+ error: import("zod").ZodAny;
38413
+ }, "strip", import("zod").ZodTypeAny, {
38414
+ message: string;
38415
+ error?: any;
38416
+ }, {
38417
+ message: string;
38418
+ error?: any;
38419
+ }>;
38420
+ 422: import("zod").ZodObject<{
38421
+ message: import("zod").ZodString;
38422
+ error: import("zod").ZodAny;
38423
+ }, "strip", import("zod").ZodTypeAny, {
38424
+ message: string;
38425
+ error?: any;
38426
+ }, {
38427
+ message: string;
38428
+ error?: any;
38429
+ }>;
38430
+ };
38431
+ path: "contact/:id/attachments";
38432
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
38433
+ 'x-tenant': import("zod").ZodString;
38434
+ authorization: import("zod").ZodString;
38435
+ 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
38436
+ 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
38437
+ }, "strip", import("zod").ZodTypeAny, {
38438
+ 'x-tenant': string;
38439
+ authorization: string;
38440
+ 'x-client-timezone': string;
38441
+ 'x-code'?: string | undefined;
38442
+ }, {
38443
+ 'x-tenant': string;
38444
+ authorization: string;
38445
+ 'x-code'?: string | undefined;
38446
+ 'x-client-timezone'?: string | undefined;
38447
+ }>>>;
38448
+ };
38449
+ getById: {
38450
+ summary: "Get a contact by id";
38451
+ method: "GET";
38452
+ pathParams: import("zod").ZodObject<{
38453
+ id: import("zod").ZodString;
38454
+ }, "strip", import("zod").ZodTypeAny, {
38455
+ id: string;
38456
+ }, {
38457
+ id: string;
38458
+ }>;
38096
38459
  responses: {
38097
38460
  200: import("zod").ZodObject<{
38098
38461
  requestId: import("zod").ZodString;
@@ -39097,376 +39460,7 @@ export declare const apiContract: {
39097
39460
  error?: any;
39098
39461
  }>;
39099
39462
  };
39100
- path: "contact/merge";
39101
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
39102
- 'x-tenant': import("zod").ZodString;
39103
- authorization: import("zod").ZodString;
39104
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
39105
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
39106
- }, "strip", import("zod").ZodTypeAny, {
39107
- 'x-tenant': string;
39108
- authorization: string;
39109
- 'x-client-timezone': string;
39110
- 'x-code'?: string | undefined;
39111
- }, {
39112
- 'x-tenant': string;
39113
- authorization: string;
39114
- 'x-code'?: string | undefined;
39115
- 'x-client-timezone'?: string | undefined;
39116
- }>>>;
39117
- };
39118
- checkContactPhone: {
39119
- body: import("zod").ZodObject<{
39120
- contactId: import("zod").ZodOptional<import("zod").ZodString>;
39121
- phoneNumber: import("zod").ZodString;
39122
- }, "strip", import("zod").ZodTypeAny, {
39123
- phoneNumber: string;
39124
- contactId?: string | undefined;
39125
- }, {
39126
- phoneNumber: string;
39127
- contactId?: string | undefined;
39128
- }>;
39129
- summary: "Check whether a contact owns a phone number";
39130
- method: "POST";
39131
- responses: {
39132
- 200: import("zod").ZodObject<{
39133
- requestId: import("zod").ZodString;
39134
- existed: import("zod").ZodBoolean;
39135
- }, "strip", import("zod").ZodTypeAny, {
39136
- requestId: string;
39137
- existed: boolean;
39138
- }, {
39139
- requestId: string;
39140
- existed: boolean;
39141
- }>;
39142
- 400: import("zod").ZodObject<{
39143
- message: import("zod").ZodString;
39144
- }, "strip", import("zod").ZodTypeAny, {
39145
- message: string;
39146
- }, {
39147
- message: string;
39148
- }>;
39149
- 409: import("zod").ZodObject<{
39150
- message: import("zod").ZodString;
39151
- }, "strip", import("zod").ZodTypeAny, {
39152
- message: string;
39153
- }, {
39154
- message: string;
39155
- }>;
39156
- 500: import("zod").ZodObject<{
39157
- message: import("zod").ZodString;
39158
- }, "strip", import("zod").ZodTypeAny, {
39159
- message: string;
39160
- }, {
39161
- message: string;
39162
- }>;
39163
- 401: import("zod").ZodObject<{
39164
- message: import("zod").ZodString;
39165
- error: import("zod").ZodAny;
39166
- }, "strip", import("zod").ZodTypeAny, {
39167
- message: string;
39168
- error?: any;
39169
- }, {
39170
- message: string;
39171
- error?: any;
39172
- }>;
39173
- 404: import("zod").ZodObject<{
39174
- message: import("zod").ZodString;
39175
- error: import("zod").ZodAny;
39176
- }, "strip", import("zod").ZodTypeAny, {
39177
- message: string;
39178
- error?: any;
39179
- }, {
39180
- message: string;
39181
- error?: any;
39182
- }>;
39183
- 422: import("zod").ZodObject<{
39184
- message: import("zod").ZodString;
39185
- error: import("zod").ZodAny;
39186
- }, "strip", import("zod").ZodTypeAny, {
39187
- message: string;
39188
- error?: any;
39189
- }, {
39190
- message: string;
39191
- error?: any;
39192
- }>;
39193
- };
39194
- path: "contact/check/phone";
39195
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
39196
- 'x-tenant': import("zod").ZodString;
39197
- authorization: import("zod").ZodString;
39198
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
39199
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
39200
- }, "strip", import("zod").ZodTypeAny, {
39201
- 'x-tenant': string;
39202
- authorization: string;
39203
- 'x-client-timezone': string;
39204
- 'x-code'?: string | undefined;
39205
- }, {
39206
- 'x-tenant': string;
39207
- authorization: string;
39208
- 'x-code'?: string | undefined;
39209
- 'x-client-timezone'?: string | undefined;
39210
- }>>>;
39211
- };
39212
- checkContactEmail: {
39213
- body: import("zod").ZodObject<{
39214
- contactId: import("zod").ZodOptional<import("zod").ZodString>;
39215
- email: import("zod").ZodString;
39216
- }, "strip", import("zod").ZodTypeAny, {
39217
- email: string;
39218
- contactId?: string | undefined;
39219
- }, {
39220
- email: string;
39221
- contactId?: string | undefined;
39222
- }>;
39223
- summary: "Check whether a contact owns a email";
39224
- method: "POST";
39225
- responses: {
39226
- 200: import("zod").ZodObject<{
39227
- requestId: import("zod").ZodString;
39228
- existed: import("zod").ZodBoolean;
39229
- }, "strip", import("zod").ZodTypeAny, {
39230
- requestId: string;
39231
- existed: boolean;
39232
- }, {
39233
- requestId: string;
39234
- existed: boolean;
39235
- }>;
39236
- 400: import("zod").ZodObject<{
39237
- message: import("zod").ZodString;
39238
- }, "strip", import("zod").ZodTypeAny, {
39239
- message: string;
39240
- }, {
39241
- message: string;
39242
- }>;
39243
- 409: import("zod").ZodObject<{
39244
- message: import("zod").ZodString;
39245
- }, "strip", import("zod").ZodTypeAny, {
39246
- message: string;
39247
- }, {
39248
- message: string;
39249
- }>;
39250
- 500: import("zod").ZodObject<{
39251
- message: import("zod").ZodString;
39252
- }, "strip", import("zod").ZodTypeAny, {
39253
- message: string;
39254
- }, {
39255
- message: string;
39256
- }>;
39257
- 401: import("zod").ZodObject<{
39258
- message: import("zod").ZodString;
39259
- error: import("zod").ZodAny;
39260
- }, "strip", import("zod").ZodTypeAny, {
39261
- message: string;
39262
- error?: any;
39263
- }, {
39264
- message: string;
39265
- error?: any;
39266
- }>;
39267
- 404: import("zod").ZodObject<{
39268
- message: import("zod").ZodString;
39269
- error: import("zod").ZodAny;
39270
- }, "strip", import("zod").ZodTypeAny, {
39271
- message: string;
39272
- error?: any;
39273
- }, {
39274
- message: string;
39275
- error?: any;
39276
- }>;
39277
- 422: import("zod").ZodObject<{
39278
- message: import("zod").ZodString;
39279
- error: import("zod").ZodAny;
39280
- }, "strip", import("zod").ZodTypeAny, {
39281
- message: string;
39282
- error?: any;
39283
- }, {
39284
- message: string;
39285
- error?: any;
39286
- }>;
39287
- };
39288
- path: "contact/check/email";
39289
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
39290
- 'x-tenant': import("zod").ZodString;
39291
- authorization: import("zod").ZodString;
39292
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
39293
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
39294
- }, "strip", import("zod").ZodTypeAny, {
39295
- 'x-tenant': string;
39296
- authorization: string;
39297
- 'x-client-timezone': string;
39298
- 'x-code'?: string | undefined;
39299
- }, {
39300
- 'x-tenant': string;
39301
- authorization: string;
39302
- 'x-code'?: string | undefined;
39303
- 'x-client-timezone'?: string | undefined;
39304
- }>>>;
39305
- };
39306
- addAttachments: {
39307
- body: import("zod").ZodObject<{
39308
- attributeId: import("zod").ZodString;
39309
- attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
39310
- bucketName: import("zod").ZodString;
39311
- fileKey: import("zod").ZodString;
39312
- fileName: import("zod").ZodString;
39313
- fileSize: import("zod").ZodNumber;
39314
- }, "strip", import("zod").ZodTypeAny, {
39315
- fileName: string;
39316
- fileKey: string;
39317
- bucketName: string;
39318
- fileSize: number;
39319
- }, {
39320
- fileName: string;
39321
- fileKey: string;
39322
- bucketName: string;
39323
- fileSize: number;
39324
- }>, "many">>;
39325
- }, "strip", import("zod").ZodTypeAny, {
39326
- attributeId: string;
39327
- attachments?: {
39328
- fileName: string;
39329
- fileKey: string;
39330
- bucketName: string;
39331
- fileSize: number;
39332
- }[] | undefined;
39333
- }, {
39334
- attributeId: string;
39335
- attachments?: {
39336
- fileName: string;
39337
- fileKey: string;
39338
- bucketName: string;
39339
- fileSize: number;
39340
- }[] | undefined;
39341
- }>;
39342
- summary: " attachment information from pre-uploaded files in AWS S3 to contacts.";
39343
- method: "POST";
39344
- pathParams: import("zod").ZodObject<{
39345
- id: import("zod").ZodString;
39346
- }, "strip", import("zod").ZodTypeAny, {
39347
- id: string;
39348
- }, {
39349
- id: string;
39350
- }>;
39351
- responses: {
39352
- 201: import("zod").ZodObject<{
39353
- requestId: import("zod").ZodString;
39354
- message: import("zod").ZodObject<{
39355
- id: import("zod").ZodString;
39356
- createdAt: import("zod").ZodDate;
39357
- updatedAt: import("zod").ZodDate;
39358
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
39359
- textValue: import("zod").ZodNullable<import("zod").ZodString>;
39360
- booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
39361
- numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
39362
- dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
39363
- entityId: import("zod").ZodString;
39364
- attributeId: import("zod").ZodString;
39365
- }, "strip", import("zod").ZodTypeAny, {
39366
- id: string;
39367
- createdAt: Date;
39368
- updatedAt: Date;
39369
- deletedAt: Date | null;
39370
- attributeId: string;
39371
- textValue: string | null;
39372
- booleanValue: boolean | null;
39373
- numberValue: number | null;
39374
- dateValue: Date | null;
39375
- entityId: string;
39376
- }, {
39377
- id: string;
39378
- createdAt: Date;
39379
- updatedAt: Date;
39380
- deletedAt: Date | null;
39381
- attributeId: string;
39382
- textValue: string | null;
39383
- booleanValue: boolean | null;
39384
- numberValue: number | null;
39385
- dateValue: Date | null;
39386
- entityId: string;
39387
- }>;
39388
- }, "strip", import("zod").ZodTypeAny, {
39389
- message: {
39390
- id: string;
39391
- createdAt: Date;
39392
- updatedAt: Date;
39393
- deletedAt: Date | null;
39394
- attributeId: string;
39395
- textValue: string | null;
39396
- booleanValue: boolean | null;
39397
- numberValue: number | null;
39398
- dateValue: Date | null;
39399
- entityId: string;
39400
- };
39401
- requestId: string;
39402
- }, {
39403
- message: {
39404
- id: string;
39405
- createdAt: Date;
39406
- updatedAt: Date;
39407
- deletedAt: Date | null;
39408
- attributeId: string;
39409
- textValue: string | null;
39410
- booleanValue: boolean | null;
39411
- numberValue: number | null;
39412
- dateValue: Date | null;
39413
- entityId: string;
39414
- };
39415
- requestId: string;
39416
- }>;
39417
- 400: import("zod").ZodObject<{
39418
- message: import("zod").ZodString;
39419
- }, "strip", import("zod").ZodTypeAny, {
39420
- message: string;
39421
- }, {
39422
- message: string;
39423
- }>;
39424
- 409: import("zod").ZodObject<{
39425
- message: import("zod").ZodString;
39426
- }, "strip", import("zod").ZodTypeAny, {
39427
- message: string;
39428
- }, {
39429
- message: string;
39430
- }>;
39431
- 500: import("zod").ZodObject<{
39432
- message: import("zod").ZodString;
39433
- }, "strip", import("zod").ZodTypeAny, {
39434
- message: string;
39435
- }, {
39436
- message: string;
39437
- }>;
39438
- 401: import("zod").ZodObject<{
39439
- message: import("zod").ZodString;
39440
- error: import("zod").ZodAny;
39441
- }, "strip", import("zod").ZodTypeAny, {
39442
- message: string;
39443
- error?: any;
39444
- }, {
39445
- message: string;
39446
- error?: any;
39447
- }>;
39448
- 404: import("zod").ZodObject<{
39449
- message: import("zod").ZodString;
39450
- error: import("zod").ZodAny;
39451
- }, "strip", import("zod").ZodTypeAny, {
39452
- message: string;
39453
- error?: any;
39454
- }, {
39455
- message: string;
39456
- error?: any;
39457
- }>;
39458
- 422: import("zod").ZodObject<{
39459
- message: import("zod").ZodString;
39460
- error: import("zod").ZodAny;
39461
- }, "strip", import("zod").ZodTypeAny, {
39462
- message: string;
39463
- error?: any;
39464
- }, {
39465
- message: string;
39466
- error?: any;
39467
- }>;
39468
- };
39469
- path: "contact/:id/attachments";
39463
+ path: "contact/:id";
39470
39464
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
39471
39465
  'x-tenant': import("zod").ZodString;
39472
39466
  authorization: import("zod").ZodString;
@@ -39654,7 +39648,7 @@ export declare const apiContract: {
39654
39648
  responses: {
39655
39649
  201: import("zod").ZodObject<{
39656
39650
  requestId: import("zod").ZodString;
39657
- message: import("zod").ZodObject<{
39651
+ data: import("zod").ZodObject<{
39658
39652
  id: import("zod").ZodString;
39659
39653
  createdAt: import("zod").ZodDate;
39660
39654
  updatedAt: import("zod").ZodDate;
@@ -40024,7 +40018,7 @@ export declare const apiContract: {
40024
40018
  ticketNumber?: number | undefined;
40025
40019
  }>;
40026
40020
  }, "strip", import("zod").ZodTypeAny, {
40027
- message: {
40021
+ data: {
40028
40022
  type: string;
40029
40023
  id: string;
40030
40024
  channel: string;
@@ -40084,7 +40078,7 @@ export declare const apiContract: {
40084
40078
  };
40085
40079
  requestId: string;
40086
40080
  }, {
40087
- message: {
40081
+ data: {
40088
40082
  type: string;
40089
40083
  id: string;
40090
40084
  channel: string;
@@ -51226,12 +51220,30 @@ export declare const platformContract: {
51226
51220
  accessToken: string;
51227
51221
  additionalCredentials?: any;
51228
51222
  }>;
51229
- brandName: import("zod").ZodString;
51230
51223
  platformId: import("zod").ZodString;
51224
+ brandName: import("zod").ZodString;
51231
51225
  status: import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>;
51232
- isReloginRequired: import("zod").ZodBoolean;
51233
51226
  connectedUserName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
51234
51227
  connectedUserId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
51228
+ actor: import("zod").ZodObject<{
51229
+ id: import("zod").ZodString;
51230
+ name: import("zod").ZodString;
51231
+ email: import("zod").ZodString;
51232
+ address: import("zod").ZodNullable<import("zod").ZodString>;
51233
+ phone: import("zod").ZodNullable<import("zod").ZodString>;
51234
+ }, "strip", import("zod").ZodTypeAny, {
51235
+ id: string;
51236
+ address: string | null;
51237
+ name: string;
51238
+ email: string;
51239
+ phone: string | null;
51240
+ }, {
51241
+ id: string;
51242
+ address: string | null;
51243
+ name: string;
51244
+ email: string;
51245
+ phone: string | null;
51246
+ }>;
51235
51247
  }, "strip", import("zod").ZodTypeAny, {
51236
51248
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
51237
51249
  name: string;
@@ -51244,7 +51256,13 @@ export declare const platformContract: {
51244
51256
  status: boolean;
51245
51257
  brandName: string;
51246
51258
  platformId: string;
51247
- isReloginRequired: boolean;
51259
+ actor: {
51260
+ id: string;
51261
+ address: string | null;
51262
+ name: string;
51263
+ email: string;
51264
+ phone: string | null;
51265
+ };
51248
51266
  connectedUserName?: string | null | undefined;
51249
51267
  connectedUserId?: string | null | undefined;
51250
51268
  }, {
@@ -51259,7 +51277,13 @@ export declare const platformContract: {
51259
51277
  status: boolean;
51260
51278
  brandName: string;
51261
51279
  platformId: string;
51262
- isReloginRequired: boolean;
51280
+ actor: {
51281
+ id: string;
51282
+ address: string | null;
51283
+ name: string;
51284
+ email: string;
51285
+ phone: string | null;
51286
+ };
51263
51287
  connectedUserName?: string | null | undefined;
51264
51288
  connectedUserId?: string | null | undefined;
51265
51289
  }>;
@@ -51277,7 +51301,13 @@ export declare const platformContract: {
51277
51301
  status: boolean;
51278
51302
  brandName: string;
51279
51303
  platformId: string;
51280
- isReloginRequired: boolean;
51304
+ actor: {
51305
+ id: string;
51306
+ address: string | null;
51307
+ name: string;
51308
+ email: string;
51309
+ phone: string | null;
51310
+ };
51281
51311
  connectedUserName?: string | null | undefined;
51282
51312
  connectedUserId?: string | null | undefined;
51283
51313
  };
@@ -51324,7 +51354,13 @@ export declare const platformContract: {
51324
51354
  status: boolean;
51325
51355
  brandName: string;
51326
51356
  platformId: string;
51327
- isReloginRequired: boolean;
51357
+ actor: {
51358
+ id: string;
51359
+ address: string | null;
51360
+ name: string;
51361
+ email: string;
51362
+ phone: string | null;
51363
+ };
51328
51364
  connectedUserName?: string | null | undefined;
51329
51365
  connectedUserId?: string | null | undefined;
51330
51366
  };
@@ -51361,7 +51397,7 @@ export declare const platformContract: {
51361
51397
  message: import("zod").ZodObject<{
51362
51398
  message: import("zod").ZodOptional<import("zod").ZodString>;
51363
51399
  direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
51364
- type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
51400
+ type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
51365
51401
  readAt: import("zod").ZodOptional<import("zod").ZodDate>;
51366
51402
  metadata: import("zod").ZodOptional<import("zod").ZodAny>;
51367
51403
  platformId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -51417,7 +51453,7 @@ export declare const platformContract: {
51417
51453
  phone: string | null;
51418
51454
  }>;
51419
51455
  }, "strip", import("zod").ZodTypeAny, {
51420
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
51456
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
51421
51457
  direction: "incoming" | "outgoing" | "system";
51422
51458
  sender: {
51423
51459
  address: string | null;
@@ -51447,7 +51483,7 @@ export declare const platformContract: {
51447
51483
  fileSize: number;
51448
51484
  } | undefined;
51449
51485
  }, {
51450
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
51486
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
51451
51487
  direction: "incoming" | "outgoing" | "system";
51452
51488
  sender: {
51453
51489
  address: string | null;
@@ -51479,7 +51515,7 @@ export declare const platformContract: {
51479
51515
  }>;
51480
51516
  }, "strip", import("zod").ZodTypeAny, {
51481
51517
  message: {
51482
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
51518
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
51483
51519
  direction: "incoming" | "outgoing" | "system";
51484
51520
  sender: {
51485
51521
  address: string | null;
@@ -51523,7 +51559,13 @@ export declare const platformContract: {
51523
51559
  status: boolean;
51524
51560
  brandName: string;
51525
51561
  platformId: string;
51526
- isReloginRequired: boolean;
51562
+ actor: {
51563
+ id: string;
51564
+ address: string | null;
51565
+ name: string;
51566
+ email: string;
51567
+ phone: string | null;
51568
+ };
51527
51569
  connectedUserName?: string | null | undefined;
51528
51570
  connectedUserId?: string | null | undefined;
51529
51571
  };
@@ -51559,7 +51601,7 @@ export declare const platformContract: {
51559
51601
  };
51560
51602
  }, {
51561
51603
  message: {
51562
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
51604
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
51563
51605
  direction: "incoming" | "outgoing" | "system";
51564
51606
  sender: {
51565
51607
  address: string | null;
@@ -51603,7 +51645,13 @@ export declare const platformContract: {
51603
51645
  status: boolean;
51604
51646
  brandName: string;
51605
51647
  platformId: string;
51606
- isReloginRequired: boolean;
51648
+ actor: {
51649
+ id: string;
51650
+ address: string | null;
51651
+ name: string;
51652
+ email: string;
51653
+ phone: string | null;
51654
+ };
51607
51655
  connectedUserName?: string | null | undefined;
51608
51656
  connectedUserId?: string | null | undefined;
51609
51657
  };
@@ -51649,7 +51697,7 @@ export declare const platformContract: {
51649
51697
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
51650
51698
  message: import("zod").ZodString;
51651
51699
  direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
51652
- type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
51700
+ type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
51653
51701
  readAt: import("zod").ZodDate;
51654
51702
  metadata: import("zod").ZodAny;
51655
51703
  platformId: import("zod").ZodString;
@@ -54823,7 +54871,7 @@ export declare const platformContract: {
54823
54871
  } | undefined;
54824
54872
  }>;
54825
54873
  }, "strip", import("zod").ZodTypeAny, {
54826
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
54874
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
54827
54875
  message: string;
54828
54876
  id: string;
54829
54877
  url: string;
@@ -55295,7 +55343,7 @@ export declare const platformContract: {
55295
55343
  metadata?: any;
55296
55344
  template?: any;
55297
55345
  }, {
55298
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
55346
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
55299
55347
  message: string;
55300
55348
  id: string;
55301
55349
  url: string;
@@ -55769,7 +55817,7 @@ export declare const platformContract: {
55769
55817
  }>;
55770
55818
  }, "strip", import("zod").ZodTypeAny, {
55771
55819
  data: {
55772
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
55820
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
55773
55821
  message: string;
55774
55822
  id: string;
55775
55823
  url: string;
@@ -56244,7 +56292,7 @@ export declare const platformContract: {
56244
56292
  requestId: string;
56245
56293
  }, {
56246
56294
  data: {
56247
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
56295
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
56248
56296
  message: string;
56249
56297
  id: string;
56250
56298
  url: string;
@@ -56733,9 +56781,9 @@ export declare const platformContract: {
56733
56781
  };
56734
56782
  connectToService: {
56735
56783
  body: import("zod").ZodObject<{
56736
- name: import("zod").ZodString;
56737
- type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
56738
- metadata: import("zod").ZodObject<{
56784
+ name: import("zod").ZodOptional<import("zod").ZodString>;
56785
+ type: import("zod").ZodOptional<import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
56786
+ metadata: import("zod").ZodOptional<import("zod").ZodObject<{
56739
56787
  id: import("zod").ZodString;
56740
56788
  name: import("zod").ZodString;
56741
56789
  accessToken: import("zod").ZodString;
@@ -56750,43 +56798,73 @@ export declare const platformContract: {
56750
56798
  name: string;
56751
56799
  accessToken: string;
56752
56800
  additionalCredentials?: any;
56753
- }>;
56754
- brandName: import("zod").ZodString;
56755
- platformId: import("zod").ZodString;
56756
- status: import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>;
56757
- isReloginRequired: import("zod").ZodBoolean;
56758
- connectedUserName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
56759
- connectedUserId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
56801
+ }>>;
56802
+ platformId: import("zod").ZodOptional<import("zod").ZodString>;
56803
+ brandName: import("zod").ZodOptional<import("zod").ZodString>;
56804
+ status: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>>;
56805
+ connectedUserName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
56806
+ connectedUserId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
56807
+ actor: import("zod").ZodOptional<import("zod").ZodObject<{
56808
+ id: import("zod").ZodString;
56809
+ name: import("zod").ZodString;
56810
+ email: import("zod").ZodString;
56811
+ address: import("zod").ZodNullable<import("zod").ZodString>;
56812
+ phone: import("zod").ZodNullable<import("zod").ZodString>;
56813
+ }, "strip", import("zod").ZodTypeAny, {
56814
+ id: string;
56815
+ address: string | null;
56816
+ name: string;
56817
+ email: string;
56818
+ phone: string | null;
56819
+ }, {
56820
+ id: string;
56821
+ address: string | null;
56822
+ name: string;
56823
+ email: string;
56824
+ phone: string | null;
56825
+ }>>;
56760
56826
  }, "strip", import("zod").ZodTypeAny, {
56761
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
56762
- name: string;
56763
- metadata: {
56827
+ name?: string | undefined;
56828
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
56829
+ metadata?: {
56764
56830
  id: string;
56765
56831
  name: string;
56766
56832
  accessToken: string;
56767
56833
  additionalCredentials?: any;
56768
- };
56769
- status: boolean;
56770
- brandName: string;
56771
- platformId: string;
56772
- isReloginRequired: boolean;
56834
+ } | undefined;
56835
+ platformId?: string | undefined;
56836
+ brandName?: string | undefined;
56837
+ status?: boolean | undefined;
56773
56838
  connectedUserName?: string | null | undefined;
56774
56839
  connectedUserId?: string | null | undefined;
56840
+ actor?: {
56841
+ id: string;
56842
+ address: string | null;
56843
+ name: string;
56844
+ email: string;
56845
+ phone: string | null;
56846
+ } | undefined;
56775
56847
  }, {
56776
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
56777
- name: string;
56778
- metadata: {
56848
+ name?: string | undefined;
56849
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
56850
+ metadata?: {
56779
56851
  id: string;
56780
56852
  name: string;
56781
56853
  accessToken: string;
56782
56854
  additionalCredentials?: any;
56783
- };
56784
- status: boolean;
56785
- brandName: string;
56786
- platformId: string;
56787
- isReloginRequired: boolean;
56855
+ } | undefined;
56856
+ platformId?: string | undefined;
56857
+ brandName?: string | undefined;
56858
+ status?: boolean | undefined;
56788
56859
  connectedUserName?: string | null | undefined;
56789
56860
  connectedUserId?: string | null | undefined;
56861
+ actor?: {
56862
+ id: string;
56863
+ address: string | null;
56864
+ name: string;
56865
+ email: string;
56866
+ phone: string | null;
56867
+ } | undefined;
56790
56868
  }>;
56791
56869
  method: "POST";
56792
56870
  responses: {
@@ -56811,12 +56889,30 @@ export declare const platformContract: {
56811
56889
  accessToken: string;
56812
56890
  additionalCredentials?: any;
56813
56891
  }>;
56814
- brandName: import("zod").ZodString;
56815
56892
  platformId: import("zod").ZodString;
56893
+ brandName: import("zod").ZodString;
56816
56894
  status: import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>;
56817
- isReloginRequired: import("zod").ZodBoolean;
56818
56895
  connectedUserName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
56819
56896
  connectedUserId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
56897
+ actor: import("zod").ZodObject<{
56898
+ id: import("zod").ZodString;
56899
+ name: import("zod").ZodString;
56900
+ email: import("zod").ZodString;
56901
+ address: import("zod").ZodNullable<import("zod").ZodString>;
56902
+ phone: import("zod").ZodNullable<import("zod").ZodString>;
56903
+ }, "strip", import("zod").ZodTypeAny, {
56904
+ id: string;
56905
+ address: string | null;
56906
+ name: string;
56907
+ email: string;
56908
+ phone: string | null;
56909
+ }, {
56910
+ id: string;
56911
+ address: string | null;
56912
+ name: string;
56913
+ email: string;
56914
+ phone: string | null;
56915
+ }>;
56820
56916
  }, "strip", import("zod").ZodTypeAny, {
56821
56917
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
56822
56918
  name: string;
@@ -56829,7 +56925,13 @@ export declare const platformContract: {
56829
56925
  status: boolean;
56830
56926
  brandName: string;
56831
56927
  platformId: string;
56832
- isReloginRequired: boolean;
56928
+ actor: {
56929
+ id: string;
56930
+ address: string | null;
56931
+ name: string;
56932
+ email: string;
56933
+ phone: string | null;
56934
+ };
56833
56935
  connectedUserName?: string | null | undefined;
56834
56936
  connectedUserId?: string | null | undefined;
56835
56937
  }, {
@@ -56844,7 +56946,13 @@ export declare const platformContract: {
56844
56946
  status: boolean;
56845
56947
  brandName: string;
56846
56948
  platformId: string;
56847
- isReloginRequired: boolean;
56949
+ actor: {
56950
+ id: string;
56951
+ address: string | null;
56952
+ name: string;
56953
+ email: string;
56954
+ phone: string | null;
56955
+ };
56848
56956
  connectedUserName?: string | null | undefined;
56849
56957
  connectedUserId?: string | null | undefined;
56850
56958
  }>;
@@ -56861,7 +56969,13 @@ export declare const platformContract: {
56861
56969
  status: boolean;
56862
56970
  brandName: string;
56863
56971
  platformId: string;
56864
- isReloginRequired: boolean;
56972
+ actor: {
56973
+ id: string;
56974
+ address: string | null;
56975
+ name: string;
56976
+ email: string;
56977
+ phone: string | null;
56978
+ };
56865
56979
  connectedUserName?: string | null | undefined;
56866
56980
  connectedUserId?: string | null | undefined;
56867
56981
  };
@@ -56879,7 +56993,13 @@ export declare const platformContract: {
56879
56993
  status: boolean;
56880
56994
  brandName: string;
56881
56995
  platformId: string;
56882
- isReloginRequired: boolean;
56996
+ actor: {
56997
+ id: string;
56998
+ address: string | null;
56999
+ name: string;
57000
+ email: string;
57001
+ phone: string | null;
57002
+ };
56883
57003
  connectedUserName?: string | null | undefined;
56884
57004
  connectedUserId?: string | null | undefined;
56885
57005
  };
@@ -56908,6 +57028,255 @@ export declare const platformContract: {
56908
57028
  };
56909
57029
  path: "/connect";
56910
57030
  };
57031
+ disconnectToService: {
57032
+ body: import("zod").ZodObject<{
57033
+ name: import("zod").ZodOptional<import("zod").ZodString>;
57034
+ type: import("zod").ZodOptional<import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
57035
+ metadata: import("zod").ZodOptional<import("zod").ZodObject<{
57036
+ id: import("zod").ZodString;
57037
+ name: import("zod").ZodString;
57038
+ accessToken: import("zod").ZodString;
57039
+ additionalCredentials: import("zod").ZodOptional<import("zod").ZodAny>;
57040
+ }, "strip", import("zod").ZodTypeAny, {
57041
+ id: string;
57042
+ name: string;
57043
+ accessToken: string;
57044
+ additionalCredentials?: any;
57045
+ }, {
57046
+ id: string;
57047
+ name: string;
57048
+ accessToken: string;
57049
+ additionalCredentials?: any;
57050
+ }>>;
57051
+ platformId: import("zod").ZodOptional<import("zod").ZodString>;
57052
+ brandName: import("zod").ZodOptional<import("zod").ZodString>;
57053
+ status: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>>;
57054
+ connectedUserName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
57055
+ connectedUserId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
57056
+ actor: import("zod").ZodOptional<import("zod").ZodObject<{
57057
+ id: import("zod").ZodString;
57058
+ name: import("zod").ZodString;
57059
+ email: import("zod").ZodString;
57060
+ address: import("zod").ZodNullable<import("zod").ZodString>;
57061
+ phone: import("zod").ZodNullable<import("zod").ZodString>;
57062
+ }, "strip", import("zod").ZodTypeAny, {
57063
+ id: string;
57064
+ address: string | null;
57065
+ name: string;
57066
+ email: string;
57067
+ phone: string | null;
57068
+ }, {
57069
+ id: string;
57070
+ address: string | null;
57071
+ name: string;
57072
+ email: string;
57073
+ phone: string | null;
57074
+ }>>;
57075
+ }, "strip", import("zod").ZodTypeAny, {
57076
+ name?: string | undefined;
57077
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
57078
+ metadata?: {
57079
+ id: string;
57080
+ name: string;
57081
+ accessToken: string;
57082
+ additionalCredentials?: any;
57083
+ } | undefined;
57084
+ platformId?: string | undefined;
57085
+ brandName?: string | undefined;
57086
+ status?: boolean | undefined;
57087
+ connectedUserName?: string | null | undefined;
57088
+ connectedUserId?: string | null | undefined;
57089
+ actor?: {
57090
+ id: string;
57091
+ address: string | null;
57092
+ name: string;
57093
+ email: string;
57094
+ phone: string | null;
57095
+ } | undefined;
57096
+ }, {
57097
+ name?: string | undefined;
57098
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
57099
+ metadata?: {
57100
+ id: string;
57101
+ name: string;
57102
+ accessToken: string;
57103
+ additionalCredentials?: any;
57104
+ } | undefined;
57105
+ platformId?: string | undefined;
57106
+ brandName?: string | undefined;
57107
+ status?: boolean | undefined;
57108
+ connectedUserName?: string | null | undefined;
57109
+ connectedUserId?: string | null | undefined;
57110
+ actor?: {
57111
+ id: string;
57112
+ address: string | null;
57113
+ name: string;
57114
+ email: string;
57115
+ phone: string | null;
57116
+ } | undefined;
57117
+ }>;
57118
+ method: "POST";
57119
+ responses: {
57120
+ 200: import("zod").ZodObject<{
57121
+ requestId: import("zod").ZodString;
57122
+ data: import("zod").ZodObject<{
57123
+ name: import("zod").ZodString;
57124
+ type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
57125
+ metadata: import("zod").ZodObject<{
57126
+ id: import("zod").ZodString;
57127
+ name: import("zod").ZodString;
57128
+ accessToken: import("zod").ZodString;
57129
+ additionalCredentials: import("zod").ZodOptional<import("zod").ZodAny>;
57130
+ }, "strip", import("zod").ZodTypeAny, {
57131
+ id: string;
57132
+ name: string;
57133
+ accessToken: string;
57134
+ additionalCredentials?: any;
57135
+ }, {
57136
+ id: string;
57137
+ name: string;
57138
+ accessToken: string;
57139
+ additionalCredentials?: any;
57140
+ }>;
57141
+ platformId: import("zod").ZodString;
57142
+ brandName: import("zod").ZodString;
57143
+ status: import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>;
57144
+ connectedUserName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
57145
+ connectedUserId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
57146
+ actor: import("zod").ZodObject<{
57147
+ id: import("zod").ZodString;
57148
+ name: import("zod").ZodString;
57149
+ email: import("zod").ZodString;
57150
+ address: import("zod").ZodNullable<import("zod").ZodString>;
57151
+ phone: import("zod").ZodNullable<import("zod").ZodString>;
57152
+ }, "strip", import("zod").ZodTypeAny, {
57153
+ id: string;
57154
+ address: string | null;
57155
+ name: string;
57156
+ email: string;
57157
+ phone: string | null;
57158
+ }, {
57159
+ id: string;
57160
+ address: string | null;
57161
+ name: string;
57162
+ email: string;
57163
+ phone: string | null;
57164
+ }>;
57165
+ }, "strip", import("zod").ZodTypeAny, {
57166
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
57167
+ name: string;
57168
+ metadata: {
57169
+ id: string;
57170
+ name: string;
57171
+ accessToken: string;
57172
+ additionalCredentials?: any;
57173
+ };
57174
+ status: boolean;
57175
+ brandName: string;
57176
+ platformId: string;
57177
+ actor: {
57178
+ id: string;
57179
+ address: string | null;
57180
+ name: string;
57181
+ email: string;
57182
+ phone: string | null;
57183
+ };
57184
+ connectedUserName?: string | null | undefined;
57185
+ connectedUserId?: string | null | undefined;
57186
+ }, {
57187
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
57188
+ name: string;
57189
+ metadata: {
57190
+ id: string;
57191
+ name: string;
57192
+ accessToken: string;
57193
+ additionalCredentials?: any;
57194
+ };
57195
+ status: boolean;
57196
+ brandName: string;
57197
+ platformId: string;
57198
+ actor: {
57199
+ id: string;
57200
+ address: string | null;
57201
+ name: string;
57202
+ email: string;
57203
+ phone: string | null;
57204
+ };
57205
+ connectedUserName?: string | null | undefined;
57206
+ connectedUserId?: string | null | undefined;
57207
+ }>;
57208
+ }, "strip", import("zod").ZodTypeAny, {
57209
+ data: {
57210
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
57211
+ name: string;
57212
+ metadata: {
57213
+ id: string;
57214
+ name: string;
57215
+ accessToken: string;
57216
+ additionalCredentials?: any;
57217
+ };
57218
+ status: boolean;
57219
+ brandName: string;
57220
+ platformId: string;
57221
+ actor: {
57222
+ id: string;
57223
+ address: string | null;
57224
+ name: string;
57225
+ email: string;
57226
+ phone: string | null;
57227
+ };
57228
+ connectedUserName?: string | null | undefined;
57229
+ connectedUserId?: string | null | undefined;
57230
+ };
57231
+ requestId: string;
57232
+ }, {
57233
+ data: {
57234
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
57235
+ name: string;
57236
+ metadata: {
57237
+ id: string;
57238
+ name: string;
57239
+ accessToken: string;
57240
+ additionalCredentials?: any;
57241
+ };
57242
+ status: boolean;
57243
+ brandName: string;
57244
+ platformId: string;
57245
+ actor: {
57246
+ id: string;
57247
+ address: string | null;
57248
+ name: string;
57249
+ email: string;
57250
+ phone: string | null;
57251
+ };
57252
+ connectedUserName?: string | null | undefined;
57253
+ connectedUserId?: string | null | undefined;
57254
+ };
57255
+ requestId: string;
57256
+ }>;
57257
+ 500: import("zod").ZodObject<{
57258
+ message: import("zod").ZodString;
57259
+ error: import("zod").ZodAny;
57260
+ }, "strip", import("zod").ZodTypeAny, {
57261
+ message: string;
57262
+ error?: any;
57263
+ }, {
57264
+ message: string;
57265
+ error?: any;
57266
+ }>;
57267
+ 400: import("zod").ZodObject<{
57268
+ message: import("zod").ZodString;
57269
+ error: import("zod").ZodAny;
57270
+ }, "strip", import("zod").ZodTypeAny, {
57271
+ message: string;
57272
+ error?: any;
57273
+ }, {
57274
+ message: string;
57275
+ error?: any;
57276
+ }>;
57277
+ };
57278
+ path: "/disconnect";
57279
+ };
56911
57280
  getFacebookPages: {
56912
57281
  method: "GET";
56913
57282
  query: import("zod").ZodObject<{
@@ -64612,7 +64981,7 @@ export declare const chatContract: {
64612
64981
  sendMessage: {
64613
64982
  body: import("zod").ZodObject<{
64614
64983
  roomId: import("zod").ZodString;
64615
- messageType: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
64984
+ messageType: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
64616
64985
  message: import("zod").ZodOptional<import("zod").ZodString>;
64617
64986
  messageAttachments: import("zod").ZodOptional<import("zod").ZodObject<{
64618
64987
  bucketName: import("zod").ZodString;
@@ -64620,12 +64989,12 @@ export declare const chatContract: {
64620
64989
  fileName: import("zod").ZodString;
64621
64990
  fileSize: import("zod").ZodNumber;
64622
64991
  url: import("zod").ZodString;
64623
- fileType: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
64992
+ fileType: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
64624
64993
  thumbnailUrl: import("zod").ZodOptional<import("zod").ZodString>;
64625
64994
  }, "strip", import("zod").ZodTypeAny, {
64626
64995
  url: string;
64627
64996
  fileName: string;
64628
- fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
64997
+ fileType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
64629
64998
  fileKey: string;
64630
64999
  bucketName: string;
64631
65000
  fileSize: number;
@@ -64633,7 +65002,7 @@ export declare const chatContract: {
64633
65002
  }, {
64634
65003
  url: string;
64635
65004
  fileName: string;
64636
- fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
65005
+ fileType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
64637
65006
  fileKey: string;
64638
65007
  bucketName: string;
64639
65008
  fileSize: number;
@@ -64841,13 +65210,13 @@ export declare const chatContract: {
64841
65210
  packageId: import("zod").ZodOptional<import("zod").ZodNumber>;
64842
65211
  stickerId: import("zod").ZodOptional<import("zod").ZodNumber>;
64843
65212
  }, "strip", import("zod").ZodTypeAny, {
64844
- messageType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
65213
+ messageType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
64845
65214
  roomId: string;
64846
65215
  message?: string | undefined;
64847
65216
  messageAttachments?: {
64848
65217
  url: string;
64849
65218
  fileName: string;
64850
- fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
65219
+ fileType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
64851
65220
  fileKey: string;
64852
65221
  bucketName: string;
64853
65222
  fileSize: number;
@@ -64899,13 +65268,13 @@ export declare const chatContract: {
64899
65268
  packageId?: number | undefined;
64900
65269
  stickerId?: number | undefined;
64901
65270
  }, {
64902
- messageType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
65271
+ messageType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
64903
65272
  roomId: string;
64904
65273
  message?: string | undefined;
64905
65274
  messageAttachments?: {
64906
65275
  url: string;
64907
65276
  fileName: string;
64908
- fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
65277
+ fileType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
64909
65278
  fileKey: string;
64910
65279
  bucketName: string;
64911
65280
  fileSize: number;
@@ -64969,7 +65338,7 @@ export declare const chatContract: {
64969
65338
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
64970
65339
  message: import("zod").ZodString;
64971
65340
  direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
64972
- type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
65341
+ type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
64973
65342
  readAt: import("zod").ZodDate;
64974
65343
  metadata: import("zod").ZodAny;
64975
65344
  platformId: import("zod").ZodString;
@@ -68143,7 +68512,7 @@ export declare const chatContract: {
68143
68512
  } | undefined;
68144
68513
  }>;
68145
68514
  }, "strip", import("zod").ZodTypeAny, {
68146
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
68515
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
68147
68516
  message: string;
68148
68517
  id: string;
68149
68518
  url: string;
@@ -68615,7 +68984,7 @@ export declare const chatContract: {
68615
68984
  metadata?: any;
68616
68985
  template?: any;
68617
68986
  }, {
68618
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
68987
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
68619
68988
  message: string;
68620
68989
  id: string;
68621
68990
  url: string;
@@ -69089,7 +69458,7 @@ export declare const chatContract: {
69089
69458
  }>;
69090
69459
  }, "strip", import("zod").ZodTypeAny, {
69091
69460
  data: {
69092
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
69461
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
69093
69462
  message: string;
69094
69463
  id: string;
69095
69464
  url: string;
@@ -69564,7 +69933,7 @@ export declare const chatContract: {
69564
69933
  requestId: string;
69565
69934
  }, {
69566
69935
  data: {
69567
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
69936
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
69568
69937
  message: string;
69569
69938
  id: string;
69570
69939
  url: string;
@@ -70076,7 +70445,7 @@ export declare const chatContract: {
70076
70445
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
70077
70446
  message: import("zod").ZodString;
70078
70447
  direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
70079
- type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
70448
+ type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
70080
70449
  readAt: import("zod").ZodDate;
70081
70450
  metadata: import("zod").ZodAny;
70082
70451
  platformId: import("zod").ZodString;
@@ -73250,7 +73619,7 @@ export declare const chatContract: {
73250
73619
  } | undefined;
73251
73620
  }>;
73252
73621
  }, "strip", import("zod").ZodTypeAny, {
73253
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
73622
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
73254
73623
  message: string;
73255
73624
  id: string;
73256
73625
  url: string;
@@ -73722,7 +74091,7 @@ export declare const chatContract: {
73722
74091
  metadata?: any;
73723
74092
  template?: any;
73724
74093
  }, {
73725
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
74094
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
73726
74095
  message: string;
73727
74096
  id: string;
73728
74097
  url: string;
@@ -74196,7 +74565,7 @@ export declare const chatContract: {
74196
74565
  }>;
74197
74566
  }, "strip", import("zod").ZodTypeAny, {
74198
74567
  message: {
74199
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
74568
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
74200
74569
  message: string;
74201
74570
  id: string;
74202
74571
  url: string;
@@ -74670,7 +75039,7 @@ export declare const chatContract: {
74670
75039
  };
74671
75040
  }, {
74672
75041
  message: {
74673
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
75042
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
74674
75043
  message: string;
74675
75044
  id: string;
74676
75045
  url: string;
@@ -75178,24 +75547,24 @@ export declare const chatContract: {
75178
75547
  responses: {
75179
75548
  200: import("zod").ZodObject<{
75180
75549
  requestId: import("zod").ZodString;
75181
- data: import("zod").ZodObject<{
75182
- id: import("zod").ZodArray<import("zod").ZodString, "many">;
75550
+ data: import("zod").ZodArray<import("zod").ZodObject<{
75551
+ id: import("zod").ZodString;
75183
75552
  }, "strip", import("zod").ZodTypeAny, {
75184
- id: string[];
75553
+ id: string;
75185
75554
  }, {
75186
- id: string[];
75187
- }>;
75555
+ id: string;
75556
+ }>, "many">;
75188
75557
  total: import("zod").ZodNumber;
75189
75558
  }, "strip", import("zod").ZodTypeAny, {
75190
75559
  data: {
75191
- id: string[];
75192
- };
75560
+ id: string;
75561
+ }[];
75193
75562
  total: number;
75194
75563
  requestId: string;
75195
75564
  }, {
75196
75565
  data: {
75197
- id: string[];
75198
- };
75566
+ id: string;
75567
+ }[];
75199
75568
  total: number;
75200
75569
  requestId: string;
75201
75570
  }>;
@@ -75251,7 +75620,7 @@ export declare const chatContract: {
75251
75620
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
75252
75621
  message: import("zod").ZodString;
75253
75622
  direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
75254
- type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
75623
+ type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
75255
75624
  readAt: import("zod").ZodDate;
75256
75625
  metadata: import("zod").ZodAny;
75257
75626
  platformId: import("zod").ZodString;
@@ -78425,7 +78794,7 @@ export declare const chatContract: {
78425
78794
  } | undefined;
78426
78795
  }>;
78427
78796
  }, "strip", import("zod").ZodTypeAny, {
78428
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
78797
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
78429
78798
  message: string;
78430
78799
  id: string;
78431
78800
  url: string;
@@ -78897,7 +79266,7 @@ export declare const chatContract: {
78897
79266
  metadata?: any;
78898
79267
  template?: any;
78899
79268
  }, {
78900
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
79269
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
78901
79270
  message: string;
78902
79271
  id: string;
78903
79272
  url: string;
@@ -79371,7 +79740,7 @@ export declare const chatContract: {
79371
79740
  }>, "many">;
79372
79741
  }, "strip", import("zod").ZodTypeAny, {
79373
79742
  data: {
79374
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
79743
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
79375
79744
  message: string;
79376
79745
  id: string;
79377
79746
  url: string;
@@ -79849,7 +80218,7 @@ export declare const chatContract: {
79849
80218
  requestId: string;
79850
80219
  }, {
79851
80220
  data: {
79852
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
80221
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
79853
80222
  message: string;
79854
80223
  id: string;
79855
80224
  url: string;