@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.
@@ -125,12 +125,30 @@ export declare const messengerContract: {
125
125
  accessToken: string;
126
126
  additionalCredentials?: any;
127
127
  }>;
128
- brandName: z.ZodString;
129
128
  platformId: z.ZodString;
129
+ brandName: z.ZodString;
130
130
  status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
131
- isReloginRequired: z.ZodBoolean;
132
131
  connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
133
132
  connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
133
+ actor: z.ZodObject<{
134
+ id: z.ZodString;
135
+ name: z.ZodString;
136
+ email: z.ZodString;
137
+ address: z.ZodNullable<z.ZodString>;
138
+ phone: z.ZodNullable<z.ZodString>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ id: string;
141
+ address: string | null;
142
+ name: string;
143
+ email: string;
144
+ phone: string | null;
145
+ }, {
146
+ id: string;
147
+ address: string | null;
148
+ name: string;
149
+ email: string;
150
+ phone: string | null;
151
+ }>;
134
152
  }, "strip", z.ZodTypeAny, {
135
153
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
136
154
  name: string;
@@ -143,7 +161,13 @@ export declare const messengerContract: {
143
161
  status: boolean;
144
162
  brandName: string;
145
163
  platformId: string;
146
- isReloginRequired: boolean;
164
+ actor: {
165
+ id: string;
166
+ address: string | null;
167
+ name: string;
168
+ email: string;
169
+ phone: string | null;
170
+ };
147
171
  connectedUserName?: string | null | undefined;
148
172
  connectedUserId?: string | null | undefined;
149
173
  }, {
@@ -158,7 +182,13 @@ export declare const messengerContract: {
158
182
  status: boolean;
159
183
  brandName: string;
160
184
  platformId: string;
161
- isReloginRequired: boolean;
185
+ actor: {
186
+ id: string;
187
+ address: string | null;
188
+ name: string;
189
+ email: string;
190
+ phone: string | null;
191
+ };
162
192
  connectedUserName?: string | null | undefined;
163
193
  connectedUserId?: string | null | undefined;
164
194
  }>;
@@ -176,7 +206,13 @@ export declare const messengerContract: {
176
206
  status: boolean;
177
207
  brandName: string;
178
208
  platformId: string;
179
- isReloginRequired: boolean;
209
+ actor: {
210
+ id: string;
211
+ address: string | null;
212
+ name: string;
213
+ email: string;
214
+ phone: string | null;
215
+ };
180
216
  connectedUserName?: string | null | undefined;
181
217
  connectedUserId?: string | null | undefined;
182
218
  };
@@ -223,7 +259,13 @@ export declare const messengerContract: {
223
259
  status: boolean;
224
260
  brandName: string;
225
261
  platformId: string;
226
- isReloginRequired: boolean;
262
+ actor: {
263
+ id: string;
264
+ address: string | null;
265
+ name: string;
266
+ email: string;
267
+ phone: string | null;
268
+ };
227
269
  connectedUserName?: string | null | undefined;
228
270
  connectedUserId?: string | null | undefined;
229
271
  };
@@ -260,7 +302,7 @@ export declare const messengerContract: {
260
302
  message: z.ZodObject<{
261
303
  message: z.ZodOptional<z.ZodString>;
262
304
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
263
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
305
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
264
306
  readAt: z.ZodOptional<z.ZodDate>;
265
307
  metadata: z.ZodOptional<z.ZodAny>;
266
308
  platformId: z.ZodOptional<z.ZodString>;
@@ -316,7 +358,7 @@ export declare const messengerContract: {
316
358
  phone: string | null;
317
359
  }>;
318
360
  }, "strip", z.ZodTypeAny, {
319
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
361
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
320
362
  direction: "incoming" | "outgoing" | "system";
321
363
  sender: {
322
364
  address: string | null;
@@ -346,7 +388,7 @@ export declare const messengerContract: {
346
388
  fileSize: number;
347
389
  } | undefined;
348
390
  }, {
349
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
391
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
350
392
  direction: "incoming" | "outgoing" | "system";
351
393
  sender: {
352
394
  address: string | null;
@@ -378,7 +420,7 @@ export declare const messengerContract: {
378
420
  }>;
379
421
  }, "strip", z.ZodTypeAny, {
380
422
  message: {
381
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
423
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
382
424
  direction: "incoming" | "outgoing" | "system";
383
425
  sender: {
384
426
  address: string | null;
@@ -422,7 +464,13 @@ export declare const messengerContract: {
422
464
  status: boolean;
423
465
  brandName: string;
424
466
  platformId: string;
425
- isReloginRequired: boolean;
467
+ actor: {
468
+ id: string;
469
+ address: string | null;
470
+ name: string;
471
+ email: string;
472
+ phone: string | null;
473
+ };
426
474
  connectedUserName?: string | null | undefined;
427
475
  connectedUserId?: string | null | undefined;
428
476
  };
@@ -458,7 +506,7 @@ export declare const messengerContract: {
458
506
  };
459
507
  }, {
460
508
  message: {
461
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
509
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
462
510
  direction: "incoming" | "outgoing" | "system";
463
511
  sender: {
464
512
  address: string | null;
@@ -502,7 +550,13 @@ export declare const messengerContract: {
502
550
  status: boolean;
503
551
  brandName: string;
504
552
  platformId: string;
505
- isReloginRequired: boolean;
553
+ actor: {
554
+ id: string;
555
+ address: string | null;
556
+ name: string;
557
+ email: string;
558
+ phone: string | null;
559
+ };
506
560
  connectedUserName?: string | null | undefined;
507
561
  connectedUserId?: string | null | undefined;
508
562
  };
@@ -548,7 +602,7 @@ export declare const messengerContract: {
548
602
  deletedAt: z.ZodNullable<z.ZodDate>;
549
603
  message: z.ZodString;
550
604
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
551
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
605
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
552
606
  readAt: z.ZodDate;
553
607
  metadata: z.ZodAny;
554
608
  platformId: z.ZodString;
@@ -3722,7 +3776,7 @@ export declare const messengerContract: {
3722
3776
  } | undefined;
3723
3777
  }>;
3724
3778
  }, "strip", z.ZodTypeAny, {
3725
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
3779
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
3726
3780
  message: string;
3727
3781
  id: string;
3728
3782
  url: string;
@@ -4194,7 +4248,7 @@ export declare const messengerContract: {
4194
4248
  metadata?: any;
4195
4249
  template?: any;
4196
4250
  }, {
4197
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
4251
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
4198
4252
  message: string;
4199
4253
  id: string;
4200
4254
  url: string;
@@ -4668,7 +4722,7 @@ export declare const messengerContract: {
4668
4722
  }>;
4669
4723
  }, "strip", z.ZodTypeAny, {
4670
4724
  data: {
4671
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
4725
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
4672
4726
  message: string;
4673
4727
  id: string;
4674
4728
  url: string;
@@ -5143,7 +5197,7 @@ export declare const messengerContract: {
5143
5197
  requestId: string;
5144
5198
  }, {
5145
5199
  data: {
5146
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
5200
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
5147
5201
  message: string;
5148
5202
  id: string;
5149
5203
  url: string;
@@ -5632,9 +5686,9 @@ export declare const messengerContract: {
5632
5686
  };
5633
5687
  connectToService: {
5634
5688
  body: z.ZodObject<{
5635
- name: z.ZodString;
5636
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
5637
- metadata: z.ZodObject<{
5689
+ name: z.ZodOptional<z.ZodString>;
5690
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
5691
+ metadata: z.ZodOptional<z.ZodObject<{
5638
5692
  id: z.ZodString;
5639
5693
  name: z.ZodString;
5640
5694
  accessToken: z.ZodString;
@@ -5649,43 +5703,73 @@ export declare const messengerContract: {
5649
5703
  name: string;
5650
5704
  accessToken: string;
5651
5705
  additionalCredentials?: any;
5652
- }>;
5653
- brandName: z.ZodString;
5654
- platformId: z.ZodString;
5655
- status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
5656
- isReloginRequired: z.ZodBoolean;
5657
- connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5658
- connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5706
+ }>>;
5707
+ platformId: z.ZodOptional<z.ZodString>;
5708
+ brandName: z.ZodOptional<z.ZodString>;
5709
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
5710
+ connectedUserName: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5711
+ connectedUserId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5712
+ actor: z.ZodOptional<z.ZodObject<{
5713
+ id: z.ZodString;
5714
+ name: z.ZodString;
5715
+ email: z.ZodString;
5716
+ address: z.ZodNullable<z.ZodString>;
5717
+ phone: z.ZodNullable<z.ZodString>;
5718
+ }, "strip", z.ZodTypeAny, {
5719
+ id: string;
5720
+ address: string | null;
5721
+ name: string;
5722
+ email: string;
5723
+ phone: string | null;
5724
+ }, {
5725
+ id: string;
5726
+ address: string | null;
5727
+ name: string;
5728
+ email: string;
5729
+ phone: string | null;
5730
+ }>>;
5659
5731
  }, "strip", z.ZodTypeAny, {
5660
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5661
- name: string;
5662
- metadata: {
5732
+ name?: string | undefined;
5733
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5734
+ metadata?: {
5663
5735
  id: string;
5664
5736
  name: string;
5665
5737
  accessToken: string;
5666
5738
  additionalCredentials?: any;
5667
- };
5668
- status: boolean;
5669
- brandName: string;
5670
- platformId: string;
5671
- isReloginRequired: boolean;
5739
+ } | undefined;
5740
+ platformId?: string | undefined;
5741
+ brandName?: string | undefined;
5742
+ status?: boolean | undefined;
5672
5743
  connectedUserName?: string | null | undefined;
5673
5744
  connectedUserId?: string | null | undefined;
5745
+ actor?: {
5746
+ id: string;
5747
+ address: string | null;
5748
+ name: string;
5749
+ email: string;
5750
+ phone: string | null;
5751
+ } | undefined;
5674
5752
  }, {
5675
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5676
- name: string;
5677
- metadata: {
5753
+ name?: string | undefined;
5754
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5755
+ metadata?: {
5678
5756
  id: string;
5679
5757
  name: string;
5680
5758
  accessToken: string;
5681
5759
  additionalCredentials?: any;
5682
- };
5683
- status: boolean;
5684
- brandName: string;
5685
- platformId: string;
5686
- isReloginRequired: boolean;
5760
+ } | undefined;
5761
+ platformId?: string | undefined;
5762
+ brandName?: string | undefined;
5763
+ status?: boolean | undefined;
5687
5764
  connectedUserName?: string | null | undefined;
5688
5765
  connectedUserId?: string | null | undefined;
5766
+ actor?: {
5767
+ id: string;
5768
+ address: string | null;
5769
+ name: string;
5770
+ email: string;
5771
+ phone: string | null;
5772
+ } | undefined;
5689
5773
  }>;
5690
5774
  method: "POST";
5691
5775
  responses: {
@@ -5710,12 +5794,30 @@ export declare const messengerContract: {
5710
5794
  accessToken: string;
5711
5795
  additionalCredentials?: any;
5712
5796
  }>;
5713
- brandName: z.ZodString;
5714
5797
  platformId: z.ZodString;
5798
+ brandName: z.ZodString;
5715
5799
  status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
5716
- isReloginRequired: z.ZodBoolean;
5717
5800
  connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5718
5801
  connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5802
+ actor: z.ZodObject<{
5803
+ id: z.ZodString;
5804
+ name: z.ZodString;
5805
+ email: z.ZodString;
5806
+ address: z.ZodNullable<z.ZodString>;
5807
+ phone: z.ZodNullable<z.ZodString>;
5808
+ }, "strip", z.ZodTypeAny, {
5809
+ id: string;
5810
+ address: string | null;
5811
+ name: string;
5812
+ email: string;
5813
+ phone: string | null;
5814
+ }, {
5815
+ id: string;
5816
+ address: string | null;
5817
+ name: string;
5818
+ email: string;
5819
+ phone: string | null;
5820
+ }>;
5719
5821
  }, "strip", z.ZodTypeAny, {
5720
5822
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5721
5823
  name: string;
@@ -5728,7 +5830,13 @@ export declare const messengerContract: {
5728
5830
  status: boolean;
5729
5831
  brandName: string;
5730
5832
  platformId: string;
5731
- isReloginRequired: boolean;
5833
+ actor: {
5834
+ id: string;
5835
+ address: string | null;
5836
+ name: string;
5837
+ email: string;
5838
+ phone: string | null;
5839
+ };
5732
5840
  connectedUserName?: string | null | undefined;
5733
5841
  connectedUserId?: string | null | undefined;
5734
5842
  }, {
@@ -5743,7 +5851,13 @@ export declare const messengerContract: {
5743
5851
  status: boolean;
5744
5852
  brandName: string;
5745
5853
  platformId: string;
5746
- isReloginRequired: boolean;
5854
+ actor: {
5855
+ id: string;
5856
+ address: string | null;
5857
+ name: string;
5858
+ email: string;
5859
+ phone: string | null;
5860
+ };
5747
5861
  connectedUserName?: string | null | undefined;
5748
5862
  connectedUserId?: string | null | undefined;
5749
5863
  }>;
@@ -5760,7 +5874,13 @@ export declare const messengerContract: {
5760
5874
  status: boolean;
5761
5875
  brandName: string;
5762
5876
  platformId: string;
5763
- isReloginRequired: boolean;
5877
+ actor: {
5878
+ id: string;
5879
+ address: string | null;
5880
+ name: string;
5881
+ email: string;
5882
+ phone: string | null;
5883
+ };
5764
5884
  connectedUserName?: string | null | undefined;
5765
5885
  connectedUserId?: string | null | undefined;
5766
5886
  };
@@ -5778,7 +5898,13 @@ export declare const messengerContract: {
5778
5898
  status: boolean;
5779
5899
  brandName: string;
5780
5900
  platformId: string;
5781
- isReloginRequired: boolean;
5901
+ actor: {
5902
+ id: string;
5903
+ address: string | null;
5904
+ name: string;
5905
+ email: string;
5906
+ phone: string | null;
5907
+ };
5782
5908
  connectedUserName?: string | null | undefined;
5783
5909
  connectedUserId?: string | null | undefined;
5784
5910
  };
@@ -5807,6 +5933,255 @@ export declare const messengerContract: {
5807
5933
  };
5808
5934
  path: "/connect";
5809
5935
  };
5936
+ disconnectToService: {
5937
+ body: z.ZodObject<{
5938
+ name: z.ZodOptional<z.ZodString>;
5939
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
5940
+ metadata: z.ZodOptional<z.ZodObject<{
5941
+ id: z.ZodString;
5942
+ name: z.ZodString;
5943
+ accessToken: z.ZodString;
5944
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
5945
+ }, "strip", z.ZodTypeAny, {
5946
+ id: string;
5947
+ name: string;
5948
+ accessToken: string;
5949
+ additionalCredentials?: any;
5950
+ }, {
5951
+ id: string;
5952
+ name: string;
5953
+ accessToken: string;
5954
+ additionalCredentials?: any;
5955
+ }>>;
5956
+ platformId: z.ZodOptional<z.ZodString>;
5957
+ brandName: z.ZodOptional<z.ZodString>;
5958
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
5959
+ connectedUserName: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5960
+ connectedUserId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5961
+ actor: z.ZodOptional<z.ZodObject<{
5962
+ id: z.ZodString;
5963
+ name: z.ZodString;
5964
+ email: z.ZodString;
5965
+ address: z.ZodNullable<z.ZodString>;
5966
+ phone: z.ZodNullable<z.ZodString>;
5967
+ }, "strip", z.ZodTypeAny, {
5968
+ id: string;
5969
+ address: string | null;
5970
+ name: string;
5971
+ email: string;
5972
+ phone: string | null;
5973
+ }, {
5974
+ id: string;
5975
+ address: string | null;
5976
+ name: string;
5977
+ email: string;
5978
+ phone: string | null;
5979
+ }>>;
5980
+ }, "strip", z.ZodTypeAny, {
5981
+ name?: string | undefined;
5982
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5983
+ metadata?: {
5984
+ id: string;
5985
+ name: string;
5986
+ accessToken: string;
5987
+ additionalCredentials?: any;
5988
+ } | undefined;
5989
+ platformId?: string | undefined;
5990
+ brandName?: string | undefined;
5991
+ status?: boolean | undefined;
5992
+ connectedUserName?: string | null | undefined;
5993
+ connectedUserId?: string | null | undefined;
5994
+ actor?: {
5995
+ id: string;
5996
+ address: string | null;
5997
+ name: string;
5998
+ email: string;
5999
+ phone: string | null;
6000
+ } | undefined;
6001
+ }, {
6002
+ name?: string | undefined;
6003
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
6004
+ metadata?: {
6005
+ id: string;
6006
+ name: string;
6007
+ accessToken: string;
6008
+ additionalCredentials?: any;
6009
+ } | undefined;
6010
+ platformId?: string | undefined;
6011
+ brandName?: string | undefined;
6012
+ status?: boolean | undefined;
6013
+ connectedUserName?: string | null | undefined;
6014
+ connectedUserId?: string | null | undefined;
6015
+ actor?: {
6016
+ id: string;
6017
+ address: string | null;
6018
+ name: string;
6019
+ email: string;
6020
+ phone: string | null;
6021
+ } | undefined;
6022
+ }>;
6023
+ method: "POST";
6024
+ responses: {
6025
+ 200: z.ZodObject<{
6026
+ requestId: z.ZodString;
6027
+ data: z.ZodObject<{
6028
+ name: z.ZodString;
6029
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
6030
+ metadata: z.ZodObject<{
6031
+ id: z.ZodString;
6032
+ name: z.ZodString;
6033
+ accessToken: z.ZodString;
6034
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
6035
+ }, "strip", z.ZodTypeAny, {
6036
+ id: string;
6037
+ name: string;
6038
+ accessToken: string;
6039
+ additionalCredentials?: any;
6040
+ }, {
6041
+ id: string;
6042
+ name: string;
6043
+ accessToken: string;
6044
+ additionalCredentials?: any;
6045
+ }>;
6046
+ platformId: z.ZodString;
6047
+ brandName: z.ZodString;
6048
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
6049
+ connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6050
+ connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6051
+ actor: z.ZodObject<{
6052
+ id: z.ZodString;
6053
+ name: z.ZodString;
6054
+ email: z.ZodString;
6055
+ address: z.ZodNullable<z.ZodString>;
6056
+ phone: z.ZodNullable<z.ZodString>;
6057
+ }, "strip", z.ZodTypeAny, {
6058
+ id: string;
6059
+ address: string | null;
6060
+ name: string;
6061
+ email: string;
6062
+ phone: string | null;
6063
+ }, {
6064
+ id: string;
6065
+ address: string | null;
6066
+ name: string;
6067
+ email: string;
6068
+ phone: string | null;
6069
+ }>;
6070
+ }, "strip", z.ZodTypeAny, {
6071
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6072
+ name: string;
6073
+ metadata: {
6074
+ id: string;
6075
+ name: string;
6076
+ accessToken: string;
6077
+ additionalCredentials?: any;
6078
+ };
6079
+ status: boolean;
6080
+ brandName: string;
6081
+ platformId: string;
6082
+ actor: {
6083
+ id: string;
6084
+ address: string | null;
6085
+ name: string;
6086
+ email: string;
6087
+ phone: string | null;
6088
+ };
6089
+ connectedUserName?: string | null | undefined;
6090
+ connectedUserId?: string | null | undefined;
6091
+ }, {
6092
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6093
+ name: string;
6094
+ metadata: {
6095
+ id: string;
6096
+ name: string;
6097
+ accessToken: string;
6098
+ additionalCredentials?: any;
6099
+ };
6100
+ status: boolean;
6101
+ brandName: string;
6102
+ platformId: string;
6103
+ actor: {
6104
+ id: string;
6105
+ address: string | null;
6106
+ name: string;
6107
+ email: string;
6108
+ phone: string | null;
6109
+ };
6110
+ connectedUserName?: string | null | undefined;
6111
+ connectedUserId?: string | null | undefined;
6112
+ }>;
6113
+ }, "strip", z.ZodTypeAny, {
6114
+ data: {
6115
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6116
+ name: string;
6117
+ metadata: {
6118
+ id: string;
6119
+ name: string;
6120
+ accessToken: string;
6121
+ additionalCredentials?: any;
6122
+ };
6123
+ status: boolean;
6124
+ brandName: string;
6125
+ platformId: string;
6126
+ actor: {
6127
+ id: string;
6128
+ address: string | null;
6129
+ name: string;
6130
+ email: string;
6131
+ phone: string | null;
6132
+ };
6133
+ connectedUserName?: string | null | undefined;
6134
+ connectedUserId?: string | null | undefined;
6135
+ };
6136
+ requestId: string;
6137
+ }, {
6138
+ data: {
6139
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6140
+ name: string;
6141
+ metadata: {
6142
+ id: string;
6143
+ name: string;
6144
+ accessToken: string;
6145
+ additionalCredentials?: any;
6146
+ };
6147
+ status: boolean;
6148
+ brandName: string;
6149
+ platformId: string;
6150
+ actor: {
6151
+ id: string;
6152
+ address: string | null;
6153
+ name: string;
6154
+ email: string;
6155
+ phone: string | null;
6156
+ };
6157
+ connectedUserName?: string | null | undefined;
6158
+ connectedUserId?: string | null | undefined;
6159
+ };
6160
+ requestId: string;
6161
+ }>;
6162
+ 500: z.ZodObject<{
6163
+ message: z.ZodString;
6164
+ error: z.ZodAny;
6165
+ }, "strip", z.ZodTypeAny, {
6166
+ message: string;
6167
+ error?: any;
6168
+ }, {
6169
+ message: string;
6170
+ error?: any;
6171
+ }>;
6172
+ 400: z.ZodObject<{
6173
+ message: z.ZodString;
6174
+ error: z.ZodAny;
6175
+ }, "strip", z.ZodTypeAny, {
6176
+ message: string;
6177
+ error?: any;
6178
+ }, {
6179
+ message: string;
6180
+ error?: any;
6181
+ }>;
6182
+ };
6183
+ path: "/disconnect";
6184
+ };
5810
6185
  getFacebookPages: {
5811
6186
  method: "GET";
5812
6187
  query: z.ZodObject<{