@kl1/contracts 1.0.29 → 1.0.30

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,29 @@ export declare const messengerContract: {
125
125
  accessToken: string;
126
126
  additionalCredentials?: any;
127
127
  }>;
128
- brandName: z.ZodString;
129
128
  platformId: z.ZodString;
130
129
  status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
131
- isReloginRequired: z.ZodBoolean;
132
130
  connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
133
131
  connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
132
+ actor: z.ZodObject<{
133
+ id: z.ZodString;
134
+ name: z.ZodString;
135
+ email: z.ZodString;
136
+ address: z.ZodNullable<z.ZodString>;
137
+ phone: z.ZodNullable<z.ZodString>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ id: string;
140
+ address: string | null;
141
+ name: string;
142
+ email: string;
143
+ phone: string | null;
144
+ }, {
145
+ id: string;
146
+ address: string | null;
147
+ name: string;
148
+ email: string;
149
+ phone: string | null;
150
+ }>;
134
151
  }, "strip", z.ZodTypeAny, {
135
152
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
136
153
  name: string;
@@ -141,9 +158,14 @@ export declare const messengerContract: {
141
158
  additionalCredentials?: any;
142
159
  };
143
160
  status: boolean;
144
- brandName: string;
145
161
  platformId: string;
146
- isReloginRequired: boolean;
162
+ actor: {
163
+ id: string;
164
+ address: string | null;
165
+ name: string;
166
+ email: string;
167
+ phone: string | null;
168
+ };
147
169
  connectedUserName?: string | null | undefined;
148
170
  connectedUserId?: string | null | undefined;
149
171
  }, {
@@ -156,9 +178,14 @@ export declare const messengerContract: {
156
178
  additionalCredentials?: any;
157
179
  };
158
180
  status: boolean;
159
- brandName: string;
160
181
  platformId: string;
161
- isReloginRequired: boolean;
182
+ actor: {
183
+ id: string;
184
+ address: string | null;
185
+ name: string;
186
+ email: string;
187
+ phone: string | null;
188
+ };
162
189
  connectedUserName?: string | null | undefined;
163
190
  connectedUserId?: string | null | undefined;
164
191
  }>;
@@ -174,9 +201,14 @@ export declare const messengerContract: {
174
201
  additionalCredentials?: any;
175
202
  };
176
203
  status: boolean;
177
- brandName: string;
178
204
  platformId: string;
179
- isReloginRequired: boolean;
205
+ actor: {
206
+ id: string;
207
+ address: string | null;
208
+ name: string;
209
+ email: string;
210
+ phone: string | null;
211
+ };
180
212
  connectedUserName?: string | null | undefined;
181
213
  connectedUserId?: string | null | undefined;
182
214
  };
@@ -221,9 +253,14 @@ export declare const messengerContract: {
221
253
  additionalCredentials?: any;
222
254
  };
223
255
  status: boolean;
224
- brandName: string;
225
256
  platformId: string;
226
- isReloginRequired: boolean;
257
+ actor: {
258
+ id: string;
259
+ address: string | null;
260
+ name: string;
261
+ email: string;
262
+ phone: string | null;
263
+ };
227
264
  connectedUserName?: string | null | undefined;
228
265
  connectedUserId?: string | null | undefined;
229
266
  };
@@ -260,7 +297,7 @@ export declare const messengerContract: {
260
297
  message: z.ZodObject<{
261
298
  message: z.ZodOptional<z.ZodString>;
262
299
  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"]>;
300
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
264
301
  readAt: z.ZodOptional<z.ZodDate>;
265
302
  metadata: z.ZodOptional<z.ZodAny>;
266
303
  platformId: z.ZodOptional<z.ZodString>;
@@ -316,7 +353,7 @@ export declare const messengerContract: {
316
353
  phone: string | null;
317
354
  }>;
318
355
  }, "strip", z.ZodTypeAny, {
319
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
356
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
320
357
  direction: "incoming" | "outgoing" | "system";
321
358
  sender: {
322
359
  address: string | null;
@@ -346,7 +383,7 @@ export declare const messengerContract: {
346
383
  fileSize: number;
347
384
  } | undefined;
348
385
  }, {
349
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
386
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
350
387
  direction: "incoming" | "outgoing" | "system";
351
388
  sender: {
352
389
  address: string | null;
@@ -378,7 +415,7 @@ export declare const messengerContract: {
378
415
  }>;
379
416
  }, "strip", z.ZodTypeAny, {
380
417
  message: {
381
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
418
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
382
419
  direction: "incoming" | "outgoing" | "system";
383
420
  sender: {
384
421
  address: string | null;
@@ -420,9 +457,14 @@ export declare const messengerContract: {
420
457
  additionalCredentials?: any;
421
458
  };
422
459
  status: boolean;
423
- brandName: string;
424
460
  platformId: string;
425
- isReloginRequired: boolean;
461
+ actor: {
462
+ id: string;
463
+ address: string | null;
464
+ name: string;
465
+ email: string;
466
+ phone: string | null;
467
+ };
426
468
  connectedUserName?: string | null | undefined;
427
469
  connectedUserId?: string | null | undefined;
428
470
  };
@@ -458,7 +500,7 @@ export declare const messengerContract: {
458
500
  };
459
501
  }, {
460
502
  message: {
461
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
503
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
462
504
  direction: "incoming" | "outgoing" | "system";
463
505
  sender: {
464
506
  address: string | null;
@@ -500,9 +542,14 @@ export declare const messengerContract: {
500
542
  additionalCredentials?: any;
501
543
  };
502
544
  status: boolean;
503
- brandName: string;
504
545
  platformId: string;
505
- isReloginRequired: boolean;
546
+ actor: {
547
+ id: string;
548
+ address: string | null;
549
+ name: string;
550
+ email: string;
551
+ phone: string | null;
552
+ };
506
553
  connectedUserName?: string | null | undefined;
507
554
  connectedUserId?: string | null | undefined;
508
555
  };
@@ -548,7 +595,7 @@ export declare const messengerContract: {
548
595
  deletedAt: z.ZodNullable<z.ZodDate>;
549
596
  message: z.ZodString;
550
597
  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"]>;
598
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
552
599
  readAt: z.ZodDate;
553
600
  metadata: z.ZodAny;
554
601
  platformId: z.ZodString;
@@ -3722,7 +3769,7 @@ export declare const messengerContract: {
3722
3769
  } | undefined;
3723
3770
  }>;
3724
3771
  }, "strip", z.ZodTypeAny, {
3725
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
3772
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
3726
3773
  message: string;
3727
3774
  id: string;
3728
3775
  url: string;
@@ -4194,7 +4241,7 @@ export declare const messengerContract: {
4194
4241
  metadata?: any;
4195
4242
  template?: any;
4196
4243
  }, {
4197
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
4244
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
4198
4245
  message: string;
4199
4246
  id: string;
4200
4247
  url: string;
@@ -4668,7 +4715,7 @@ export declare const messengerContract: {
4668
4715
  }>;
4669
4716
  }, "strip", z.ZodTypeAny, {
4670
4717
  data: {
4671
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
4718
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
4672
4719
  message: string;
4673
4720
  id: string;
4674
4721
  url: string;
@@ -5143,7 +5190,7 @@ export declare const messengerContract: {
5143
5190
  requestId: string;
5144
5191
  }, {
5145
5192
  data: {
5146
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
5193
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
5147
5194
  message: string;
5148
5195
  id: string;
5149
5196
  url: string;
@@ -5632,9 +5679,9 @@ export declare const messengerContract: {
5632
5679
  };
5633
5680
  connectToService: {
5634
5681
  body: z.ZodObject<{
5635
- name: z.ZodString;
5636
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
5637
- metadata: z.ZodObject<{
5682
+ name: z.ZodOptional<z.ZodString>;
5683
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
5684
+ metadata: z.ZodOptional<z.ZodObject<{
5638
5685
  id: z.ZodString;
5639
5686
  name: z.ZodString;
5640
5687
  accessToken: z.ZodString;
@@ -5649,43 +5696,70 @@ export declare const messengerContract: {
5649
5696
  name: string;
5650
5697
  accessToken: string;
5651
5698
  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>>;
5699
+ }>>;
5700
+ platformId: z.ZodOptional<z.ZodString>;
5701
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
5702
+ connectedUserName: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5703
+ connectedUserId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5704
+ actor: z.ZodOptional<z.ZodObject<{
5705
+ id: z.ZodString;
5706
+ name: z.ZodString;
5707
+ email: z.ZodString;
5708
+ address: z.ZodNullable<z.ZodString>;
5709
+ phone: z.ZodNullable<z.ZodString>;
5710
+ }, "strip", z.ZodTypeAny, {
5711
+ id: string;
5712
+ address: string | null;
5713
+ name: string;
5714
+ email: string;
5715
+ phone: string | null;
5716
+ }, {
5717
+ id: string;
5718
+ address: string | null;
5719
+ name: string;
5720
+ email: string;
5721
+ phone: string | null;
5722
+ }>>;
5659
5723
  }, "strip", z.ZodTypeAny, {
5660
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5661
- name: string;
5662
- metadata: {
5724
+ name?: string | undefined;
5725
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5726
+ metadata?: {
5663
5727
  id: string;
5664
5728
  name: string;
5665
5729
  accessToken: string;
5666
5730
  additionalCredentials?: any;
5667
- };
5668
- status: boolean;
5669
- brandName: string;
5670
- platformId: string;
5671
- isReloginRequired: boolean;
5731
+ } | undefined;
5732
+ platformId?: string | undefined;
5733
+ status?: boolean | undefined;
5672
5734
  connectedUserName?: string | null | undefined;
5673
5735
  connectedUserId?: string | null | undefined;
5736
+ actor?: {
5737
+ id: string;
5738
+ address: string | null;
5739
+ name: string;
5740
+ email: string;
5741
+ phone: string | null;
5742
+ } | undefined;
5674
5743
  }, {
5675
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5676
- name: string;
5677
- metadata: {
5744
+ name?: string | undefined;
5745
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5746
+ metadata?: {
5678
5747
  id: string;
5679
5748
  name: string;
5680
5749
  accessToken: string;
5681
5750
  additionalCredentials?: any;
5682
- };
5683
- status: boolean;
5684
- brandName: string;
5685
- platformId: string;
5686
- isReloginRequired: boolean;
5751
+ } | undefined;
5752
+ platformId?: string | undefined;
5753
+ status?: boolean | undefined;
5687
5754
  connectedUserName?: string | null | undefined;
5688
5755
  connectedUserId?: string | null | undefined;
5756
+ actor?: {
5757
+ id: string;
5758
+ address: string | null;
5759
+ name: string;
5760
+ email: string;
5761
+ phone: string | null;
5762
+ } | undefined;
5689
5763
  }>;
5690
5764
  method: "POST";
5691
5765
  responses: {
@@ -5710,12 +5784,29 @@ export declare const messengerContract: {
5710
5784
  accessToken: string;
5711
5785
  additionalCredentials?: any;
5712
5786
  }>;
5713
- brandName: z.ZodString;
5714
5787
  platformId: z.ZodString;
5715
5788
  status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
5716
- isReloginRequired: z.ZodBoolean;
5717
5789
  connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5718
5790
  connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5791
+ actor: z.ZodObject<{
5792
+ id: z.ZodString;
5793
+ name: z.ZodString;
5794
+ email: z.ZodString;
5795
+ address: z.ZodNullable<z.ZodString>;
5796
+ phone: z.ZodNullable<z.ZodString>;
5797
+ }, "strip", z.ZodTypeAny, {
5798
+ id: string;
5799
+ address: string | null;
5800
+ name: string;
5801
+ email: string;
5802
+ phone: string | null;
5803
+ }, {
5804
+ id: string;
5805
+ address: string | null;
5806
+ name: string;
5807
+ email: string;
5808
+ phone: string | null;
5809
+ }>;
5719
5810
  }, "strip", z.ZodTypeAny, {
5720
5811
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5721
5812
  name: string;
@@ -5726,9 +5817,14 @@ export declare const messengerContract: {
5726
5817
  additionalCredentials?: any;
5727
5818
  };
5728
5819
  status: boolean;
5729
- brandName: string;
5730
5820
  platformId: string;
5731
- isReloginRequired: boolean;
5821
+ actor: {
5822
+ id: string;
5823
+ address: string | null;
5824
+ name: string;
5825
+ email: string;
5826
+ phone: string | null;
5827
+ };
5732
5828
  connectedUserName?: string | null | undefined;
5733
5829
  connectedUserId?: string | null | undefined;
5734
5830
  }, {
@@ -5741,9 +5837,14 @@ export declare const messengerContract: {
5741
5837
  additionalCredentials?: any;
5742
5838
  };
5743
5839
  status: boolean;
5744
- brandName: string;
5745
5840
  platformId: string;
5746
- isReloginRequired: boolean;
5841
+ actor: {
5842
+ id: string;
5843
+ address: string | null;
5844
+ name: string;
5845
+ email: string;
5846
+ phone: string | null;
5847
+ };
5747
5848
  connectedUserName?: string | null | undefined;
5748
5849
  connectedUserId?: string | null | undefined;
5749
5850
  }>;
@@ -5758,9 +5859,14 @@ export declare const messengerContract: {
5758
5859
  additionalCredentials?: any;
5759
5860
  };
5760
5861
  status: boolean;
5761
- brandName: string;
5762
5862
  platformId: string;
5763
- isReloginRequired: boolean;
5863
+ actor: {
5864
+ id: string;
5865
+ address: string | null;
5866
+ name: string;
5867
+ email: string;
5868
+ phone: string | null;
5869
+ };
5764
5870
  connectedUserName?: string | null | undefined;
5765
5871
  connectedUserId?: string | null | undefined;
5766
5872
  };
@@ -5776,9 +5882,14 @@ export declare const messengerContract: {
5776
5882
  additionalCredentials?: any;
5777
5883
  };
5778
5884
  status: boolean;
5779
- brandName: string;
5780
5885
  platformId: string;
5781
- isReloginRequired: boolean;
5886
+ actor: {
5887
+ id: string;
5888
+ address: string | null;
5889
+ name: string;
5890
+ email: string;
5891
+ phone: string | null;
5892
+ };
5782
5893
  connectedUserName?: string | null | undefined;
5783
5894
  connectedUserId?: string | null | undefined;
5784
5895
  };
@@ -5807,6 +5918,247 @@ export declare const messengerContract: {
5807
5918
  };
5808
5919
  path: "/connect";
5809
5920
  };
5921
+ disconnectToService: {
5922
+ body: z.ZodObject<{
5923
+ name: z.ZodOptional<z.ZodString>;
5924
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
5925
+ metadata: z.ZodOptional<z.ZodObject<{
5926
+ id: z.ZodString;
5927
+ name: z.ZodString;
5928
+ accessToken: z.ZodString;
5929
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
5930
+ }, "strip", z.ZodTypeAny, {
5931
+ id: string;
5932
+ name: string;
5933
+ accessToken: string;
5934
+ additionalCredentials?: any;
5935
+ }, {
5936
+ id: string;
5937
+ name: string;
5938
+ accessToken: string;
5939
+ additionalCredentials?: any;
5940
+ }>>;
5941
+ platformId: z.ZodOptional<z.ZodString>;
5942
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
5943
+ connectedUserName: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5944
+ connectedUserId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5945
+ actor: z.ZodOptional<z.ZodObject<{
5946
+ id: z.ZodString;
5947
+ name: z.ZodString;
5948
+ email: z.ZodString;
5949
+ address: z.ZodNullable<z.ZodString>;
5950
+ phone: z.ZodNullable<z.ZodString>;
5951
+ }, "strip", z.ZodTypeAny, {
5952
+ id: string;
5953
+ address: string | null;
5954
+ name: string;
5955
+ email: string;
5956
+ phone: string | null;
5957
+ }, {
5958
+ id: string;
5959
+ address: string | null;
5960
+ name: string;
5961
+ email: string;
5962
+ phone: string | null;
5963
+ }>>;
5964
+ }, "strip", z.ZodTypeAny, {
5965
+ name?: string | undefined;
5966
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5967
+ metadata?: {
5968
+ id: string;
5969
+ name: string;
5970
+ accessToken: string;
5971
+ additionalCredentials?: any;
5972
+ } | undefined;
5973
+ platformId?: string | undefined;
5974
+ status?: boolean | undefined;
5975
+ connectedUserName?: string | null | undefined;
5976
+ connectedUserId?: string | null | undefined;
5977
+ actor?: {
5978
+ id: string;
5979
+ address: string | null;
5980
+ name: string;
5981
+ email: string;
5982
+ phone: string | null;
5983
+ } | undefined;
5984
+ }, {
5985
+ name?: string | undefined;
5986
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5987
+ metadata?: {
5988
+ id: string;
5989
+ name: string;
5990
+ accessToken: string;
5991
+ additionalCredentials?: any;
5992
+ } | undefined;
5993
+ platformId?: string | undefined;
5994
+ status?: boolean | undefined;
5995
+ connectedUserName?: string | null | undefined;
5996
+ connectedUserId?: string | null | undefined;
5997
+ actor?: {
5998
+ id: string;
5999
+ address: string | null;
6000
+ name: string;
6001
+ email: string;
6002
+ phone: string | null;
6003
+ } | undefined;
6004
+ }>;
6005
+ method: "POST";
6006
+ responses: {
6007
+ 200: z.ZodObject<{
6008
+ requestId: z.ZodString;
6009
+ data: z.ZodObject<{
6010
+ name: z.ZodString;
6011
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
6012
+ metadata: z.ZodObject<{
6013
+ id: z.ZodString;
6014
+ name: z.ZodString;
6015
+ accessToken: z.ZodString;
6016
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
6017
+ }, "strip", z.ZodTypeAny, {
6018
+ id: string;
6019
+ name: string;
6020
+ accessToken: string;
6021
+ additionalCredentials?: any;
6022
+ }, {
6023
+ id: string;
6024
+ name: string;
6025
+ accessToken: string;
6026
+ additionalCredentials?: any;
6027
+ }>;
6028
+ platformId: z.ZodString;
6029
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
6030
+ connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6031
+ connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6032
+ actor: z.ZodObject<{
6033
+ id: z.ZodString;
6034
+ name: z.ZodString;
6035
+ email: z.ZodString;
6036
+ address: z.ZodNullable<z.ZodString>;
6037
+ phone: z.ZodNullable<z.ZodString>;
6038
+ }, "strip", z.ZodTypeAny, {
6039
+ id: string;
6040
+ address: string | null;
6041
+ name: string;
6042
+ email: string;
6043
+ phone: string | null;
6044
+ }, {
6045
+ id: string;
6046
+ address: string | null;
6047
+ name: string;
6048
+ email: string;
6049
+ phone: string | null;
6050
+ }>;
6051
+ }, "strip", z.ZodTypeAny, {
6052
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6053
+ name: string;
6054
+ metadata: {
6055
+ id: string;
6056
+ name: string;
6057
+ accessToken: string;
6058
+ additionalCredentials?: any;
6059
+ };
6060
+ status: boolean;
6061
+ platformId: string;
6062
+ actor: {
6063
+ id: string;
6064
+ address: string | null;
6065
+ name: string;
6066
+ email: string;
6067
+ phone: string | null;
6068
+ };
6069
+ connectedUserName?: string | null | undefined;
6070
+ connectedUserId?: string | null | undefined;
6071
+ }, {
6072
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6073
+ name: string;
6074
+ metadata: {
6075
+ id: string;
6076
+ name: string;
6077
+ accessToken: string;
6078
+ additionalCredentials?: any;
6079
+ };
6080
+ status: boolean;
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
+ }, "strip", z.ZodTypeAny, {
6093
+ data: {
6094
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6095
+ name: string;
6096
+ metadata: {
6097
+ id: string;
6098
+ name: string;
6099
+ accessToken: string;
6100
+ additionalCredentials?: any;
6101
+ };
6102
+ status: boolean;
6103
+ platformId: string;
6104
+ actor: {
6105
+ id: string;
6106
+ address: string | null;
6107
+ name: string;
6108
+ email: string;
6109
+ phone: string | null;
6110
+ };
6111
+ connectedUserName?: string | null | undefined;
6112
+ connectedUserId?: string | null | undefined;
6113
+ };
6114
+ requestId: string;
6115
+ }, {
6116
+ data: {
6117
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6118
+ name: string;
6119
+ metadata: {
6120
+ id: string;
6121
+ name: string;
6122
+ accessToken: string;
6123
+ additionalCredentials?: any;
6124
+ };
6125
+ status: boolean;
6126
+ platformId: string;
6127
+ actor: {
6128
+ id: string;
6129
+ address: string | null;
6130
+ name: string;
6131
+ email: string;
6132
+ phone: string | null;
6133
+ };
6134
+ connectedUserName?: string | null | undefined;
6135
+ connectedUserId?: string | null | undefined;
6136
+ };
6137
+ requestId: string;
6138
+ }>;
6139
+ 500: z.ZodObject<{
6140
+ message: z.ZodString;
6141
+ error: z.ZodAny;
6142
+ }, "strip", z.ZodTypeAny, {
6143
+ message: string;
6144
+ error?: any;
6145
+ }, {
6146
+ message: string;
6147
+ error?: any;
6148
+ }>;
6149
+ 400: z.ZodObject<{
6150
+ message: z.ZodString;
6151
+ error: z.ZodAny;
6152
+ }, "strip", z.ZodTypeAny, {
6153
+ message: string;
6154
+ error?: any;
6155
+ }, {
6156
+ message: string;
6157
+ error?: any;
6158
+ }>;
6159
+ };
6160
+ path: "/disconnect";
6161
+ };
5810
6162
  getFacebookPages: {
5811
6163
  method: "GET";
5812
6164
  query: z.ZodObject<{