@kl1/contracts 1.4.55 → 1.4.56

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.
@@ -19976,9 +19976,858 @@ export declare const KlinkChatContract: {
19976
19976
  };
19977
19977
  path: "/message";
19978
19978
  };
19979
+ disconnect: {
19980
+ body: z.ZodObject<{
19981
+ id: z.ZodString;
19982
+ }, "strip", z.ZodTypeAny, {
19983
+ id: string;
19984
+ }, {
19985
+ id: string;
19986
+ }>;
19987
+ summary: "Disconnect klink chat channel";
19988
+ method: "POST";
19989
+ responses: {
19990
+ 200: z.ZodObject<{
19991
+ requestId: z.ZodString;
19992
+ data: z.ZodObject<{
19993
+ id: z.ZodString;
19994
+ name: z.ZodString;
19995
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage", "klink_chat"]>;
19996
+ metadata: z.ZodObject<{
19997
+ id: z.ZodString;
19998
+ name: z.ZodString;
19999
+ accessToken: z.ZodOptional<z.ZodString>;
20000
+ channelSecret: z.ZodOptional<z.ZodString>;
20001
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
20002
+ senderId: z.ZodOptional<z.ZodString>;
20003
+ whatsapp: z.ZodOptional<z.ZodObject<{
20004
+ wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20005
+ wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20006
+ phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20007
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20008
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20009
+ channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20010
+ waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20011
+ qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20012
+ status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
20013
+ apiKey: z.ZodOptional<z.ZodString>;
20014
+ tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
20015
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
20016
+ }, "strip", z.ZodTypeAny, {
20017
+ wabaBusinessId?: string | null | undefined;
20018
+ wabaExternalId?: string | null | undefined;
20019
+ phoneNumberId?: string | null | undefined;
20020
+ email?: string | null | undefined;
20021
+ clientId?: string | null | undefined;
20022
+ channelId?: string | null | undefined;
20023
+ waapiInstanceId?: string | null | undefined;
20024
+ qr?: string | null | undefined;
20025
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20026
+ apiKey?: string | undefined;
20027
+ tier?: "basic" | "regular" | "premium" | undefined;
20028
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20029
+ }, {
20030
+ wabaBusinessId?: string | null | undefined;
20031
+ wabaExternalId?: string | null | undefined;
20032
+ phoneNumberId?: string | null | undefined;
20033
+ email?: string | null | undefined;
20034
+ clientId?: string | null | undefined;
20035
+ channelId?: string | null | undefined;
20036
+ waapiInstanceId?: string | null | undefined;
20037
+ qr?: string | null | undefined;
20038
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20039
+ apiKey?: string | undefined;
20040
+ tier?: "basic" | "regular" | "premium" | undefined;
20041
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20042
+ }>>;
20043
+ vonageCredentials: z.ZodOptional<z.ZodObject<{
20044
+ mobileNumber: z.ZodString;
20045
+ apiKey: z.ZodString;
20046
+ apiSecret: z.ZodString;
20047
+ }, "strip", z.ZodTypeAny, {
20048
+ apiKey: string;
20049
+ mobileNumber: string;
20050
+ apiSecret: string;
20051
+ }, {
20052
+ apiKey: string;
20053
+ mobileNumber: string;
20054
+ apiSecret: string;
20055
+ }>>;
20056
+ line: z.ZodOptional<z.ZodObject<{
20057
+ channelId: z.ZodString;
20058
+ channelSecret: z.ZodString;
20059
+ }, "strip", z.ZodTypeAny, {
20060
+ channelId: string;
20061
+ channelSecret: string;
20062
+ }, {
20063
+ channelId: string;
20064
+ channelSecret: string;
20065
+ }>>;
20066
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20067
+ messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
20068
+ facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
20069
+ isCSATEnabled: z.ZodOptional<z.ZodBoolean>;
20070
+ }, "strip", z.ZodTypeAny, {
20071
+ name: string;
20072
+ id: string;
20073
+ accessToken?: string | undefined;
20074
+ channelSecret?: string | undefined;
20075
+ additionalCredentials?: any;
20076
+ senderId?: string | undefined;
20077
+ whatsapp?: {
20078
+ wabaBusinessId?: string | null | undefined;
20079
+ wabaExternalId?: string | null | undefined;
20080
+ phoneNumberId?: string | null | undefined;
20081
+ email?: string | null | undefined;
20082
+ clientId?: string | null | undefined;
20083
+ channelId?: string | null | undefined;
20084
+ waapiInstanceId?: string | null | undefined;
20085
+ qr?: string | null | undefined;
20086
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20087
+ apiKey?: string | undefined;
20088
+ tier?: "basic" | "regular" | "premium" | undefined;
20089
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20090
+ } | undefined;
20091
+ vonageCredentials?: {
20092
+ apiKey: string;
20093
+ mobileNumber: string;
20094
+ apiSecret: string;
20095
+ } | undefined;
20096
+ line?: {
20097
+ channelId: string;
20098
+ channelSecret: string;
20099
+ } | undefined;
20100
+ lineRichMenuId?: string | null | undefined;
20101
+ messengerIntegrationType?: "own" | "business" | undefined;
20102
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
20103
+ isCSATEnabled?: boolean | undefined;
20104
+ }, {
20105
+ name: string;
20106
+ id: string;
20107
+ accessToken?: string | undefined;
20108
+ channelSecret?: string | undefined;
20109
+ additionalCredentials?: any;
20110
+ senderId?: string | undefined;
20111
+ whatsapp?: {
20112
+ wabaBusinessId?: string | null | undefined;
20113
+ wabaExternalId?: string | null | undefined;
20114
+ phoneNumberId?: string | null | undefined;
20115
+ email?: string | null | undefined;
20116
+ clientId?: string | null | undefined;
20117
+ channelId?: string | null | undefined;
20118
+ waapiInstanceId?: string | null | undefined;
20119
+ qr?: string | null | undefined;
20120
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20121
+ apiKey?: string | undefined;
20122
+ tier?: "basic" | "regular" | "premium" | undefined;
20123
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20124
+ } | undefined;
20125
+ vonageCredentials?: {
20126
+ apiKey: string;
20127
+ mobileNumber: string;
20128
+ apiSecret: string;
20129
+ } | undefined;
20130
+ line?: {
20131
+ channelId: string;
20132
+ channelSecret: string;
20133
+ } | undefined;
20134
+ lineRichMenuId?: string | null | undefined;
20135
+ messengerIntegrationType?: "own" | "business" | undefined;
20136
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
20137
+ isCSATEnabled?: boolean | undefined;
20138
+ }>;
20139
+ platformId: z.ZodString;
20140
+ brandName: z.ZodString;
20141
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
20142
+ connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20143
+ connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20144
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20145
+ actor: z.ZodOptional<z.ZodObject<{
20146
+ id: z.ZodString;
20147
+ name: z.ZodString;
20148
+ email: z.ZodString;
20149
+ address: z.ZodNullable<z.ZodString>;
20150
+ phone: z.ZodNullable<z.ZodString>;
20151
+ }, "strip", z.ZodTypeAny, {
20152
+ name: string;
20153
+ id: string;
20154
+ address: string | null;
20155
+ email: string;
20156
+ phone: string | null;
20157
+ }, {
20158
+ name: string;
20159
+ id: string;
20160
+ address: string | null;
20161
+ email: string;
20162
+ phone: string | null;
20163
+ }>>;
20164
+ }, "strip", z.ZodTypeAny, {
20165
+ name: string;
20166
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | "klink_chat";
20167
+ id: string;
20168
+ metadata: {
20169
+ name: string;
20170
+ id: string;
20171
+ accessToken?: string | undefined;
20172
+ channelSecret?: string | undefined;
20173
+ additionalCredentials?: any;
20174
+ senderId?: string | undefined;
20175
+ whatsapp?: {
20176
+ wabaBusinessId?: string | null | undefined;
20177
+ wabaExternalId?: string | null | undefined;
20178
+ phoneNumberId?: string | null | undefined;
20179
+ email?: string | null | undefined;
20180
+ clientId?: string | null | undefined;
20181
+ channelId?: string | null | undefined;
20182
+ waapiInstanceId?: string | null | undefined;
20183
+ qr?: string | null | undefined;
20184
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20185
+ apiKey?: string | undefined;
20186
+ tier?: "basic" | "regular" | "premium" | undefined;
20187
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20188
+ } | undefined;
20189
+ vonageCredentials?: {
20190
+ apiKey: string;
20191
+ mobileNumber: string;
20192
+ apiSecret: string;
20193
+ } | undefined;
20194
+ line?: {
20195
+ channelId: string;
20196
+ channelSecret: string;
20197
+ } | undefined;
20198
+ lineRichMenuId?: string | null | undefined;
20199
+ messengerIntegrationType?: "own" | "business" | undefined;
20200
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
20201
+ isCSATEnabled?: boolean | undefined;
20202
+ };
20203
+ status: boolean;
20204
+ brandName: string;
20205
+ platformId: string;
20206
+ connectedUserName?: string | null | undefined;
20207
+ connectedUserId?: string | null | undefined;
20208
+ lineRichMenuId?: string | null | undefined;
20209
+ actor?: {
20210
+ name: string;
20211
+ id: string;
20212
+ address: string | null;
20213
+ email: string;
20214
+ phone: string | null;
20215
+ } | undefined;
20216
+ }, {
20217
+ name: string;
20218
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | "klink_chat";
20219
+ id: string;
20220
+ metadata: {
20221
+ name: string;
20222
+ id: string;
20223
+ accessToken?: string | undefined;
20224
+ channelSecret?: string | undefined;
20225
+ additionalCredentials?: any;
20226
+ senderId?: string | undefined;
20227
+ whatsapp?: {
20228
+ wabaBusinessId?: string | null | undefined;
20229
+ wabaExternalId?: string | null | undefined;
20230
+ phoneNumberId?: string | null | undefined;
20231
+ email?: string | null | undefined;
20232
+ clientId?: string | null | undefined;
20233
+ channelId?: string | null | undefined;
20234
+ waapiInstanceId?: string | null | undefined;
20235
+ qr?: string | null | undefined;
20236
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20237
+ apiKey?: string | undefined;
20238
+ tier?: "basic" | "regular" | "premium" | undefined;
20239
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20240
+ } | undefined;
20241
+ vonageCredentials?: {
20242
+ apiKey: string;
20243
+ mobileNumber: string;
20244
+ apiSecret: string;
20245
+ } | undefined;
20246
+ line?: {
20247
+ channelId: string;
20248
+ channelSecret: string;
20249
+ } | undefined;
20250
+ lineRichMenuId?: string | null | undefined;
20251
+ messengerIntegrationType?: "own" | "business" | undefined;
20252
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
20253
+ isCSATEnabled?: boolean | undefined;
20254
+ };
20255
+ status: boolean;
20256
+ brandName: string;
20257
+ platformId: string;
20258
+ connectedUserName?: string | null | undefined;
20259
+ connectedUserId?: string | null | undefined;
20260
+ lineRichMenuId?: string | null | undefined;
20261
+ actor?: {
20262
+ name: string;
20263
+ id: string;
20264
+ address: string | null;
20265
+ email: string;
20266
+ phone: string | null;
20267
+ } | undefined;
20268
+ }>;
20269
+ }, "strip", z.ZodTypeAny, {
20270
+ data: {
20271
+ name: string;
20272
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | "klink_chat";
20273
+ id: string;
20274
+ metadata: {
20275
+ name: string;
20276
+ id: string;
20277
+ accessToken?: string | undefined;
20278
+ channelSecret?: string | undefined;
20279
+ additionalCredentials?: any;
20280
+ senderId?: string | undefined;
20281
+ whatsapp?: {
20282
+ wabaBusinessId?: string | null | undefined;
20283
+ wabaExternalId?: string | null | undefined;
20284
+ phoneNumberId?: string | null | undefined;
20285
+ email?: string | null | undefined;
20286
+ clientId?: string | null | undefined;
20287
+ channelId?: string | null | undefined;
20288
+ waapiInstanceId?: string | null | undefined;
20289
+ qr?: string | null | undefined;
20290
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20291
+ apiKey?: string | undefined;
20292
+ tier?: "basic" | "regular" | "premium" | undefined;
20293
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20294
+ } | undefined;
20295
+ vonageCredentials?: {
20296
+ apiKey: string;
20297
+ mobileNumber: string;
20298
+ apiSecret: string;
20299
+ } | undefined;
20300
+ line?: {
20301
+ channelId: string;
20302
+ channelSecret: string;
20303
+ } | undefined;
20304
+ lineRichMenuId?: string | null | undefined;
20305
+ messengerIntegrationType?: "own" | "business" | undefined;
20306
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
20307
+ isCSATEnabled?: boolean | undefined;
20308
+ };
20309
+ status: boolean;
20310
+ brandName: string;
20311
+ platformId: string;
20312
+ connectedUserName?: string | null | undefined;
20313
+ connectedUserId?: string | null | undefined;
20314
+ lineRichMenuId?: string | null | undefined;
20315
+ actor?: {
20316
+ name: string;
20317
+ id: string;
20318
+ address: string | null;
20319
+ email: string;
20320
+ phone: string | null;
20321
+ } | undefined;
20322
+ };
20323
+ requestId: string;
20324
+ }, {
20325
+ data: {
20326
+ name: string;
20327
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | "klink_chat";
20328
+ id: string;
20329
+ metadata: {
20330
+ name: string;
20331
+ id: string;
20332
+ accessToken?: string | undefined;
20333
+ channelSecret?: string | undefined;
20334
+ additionalCredentials?: any;
20335
+ senderId?: string | undefined;
20336
+ whatsapp?: {
20337
+ wabaBusinessId?: string | null | undefined;
20338
+ wabaExternalId?: string | null | undefined;
20339
+ phoneNumberId?: string | null | undefined;
20340
+ email?: string | null | undefined;
20341
+ clientId?: string | null | undefined;
20342
+ channelId?: string | null | undefined;
20343
+ waapiInstanceId?: string | null | undefined;
20344
+ qr?: string | null | undefined;
20345
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20346
+ apiKey?: string | undefined;
20347
+ tier?: "basic" | "regular" | "premium" | undefined;
20348
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20349
+ } | undefined;
20350
+ vonageCredentials?: {
20351
+ apiKey: string;
20352
+ mobileNumber: string;
20353
+ apiSecret: string;
20354
+ } | undefined;
20355
+ line?: {
20356
+ channelId: string;
20357
+ channelSecret: string;
20358
+ } | undefined;
20359
+ lineRichMenuId?: string | null | undefined;
20360
+ messengerIntegrationType?: "own" | "business" | undefined;
20361
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
20362
+ isCSATEnabled?: boolean | undefined;
20363
+ };
20364
+ status: boolean;
20365
+ brandName: string;
20366
+ platformId: string;
20367
+ connectedUserName?: string | null | undefined;
20368
+ connectedUserId?: string | null | undefined;
20369
+ lineRichMenuId?: string | null | undefined;
20370
+ actor?: {
20371
+ name: string;
20372
+ id: string;
20373
+ address: string | null;
20374
+ email: string;
20375
+ phone: string | null;
20376
+ } | undefined;
20377
+ };
20378
+ requestId: string;
20379
+ }>;
20380
+ 500: z.ZodObject<{
20381
+ message: z.ZodString;
20382
+ error: z.ZodAny;
20383
+ }, "strip", z.ZodTypeAny, {
20384
+ message: string;
20385
+ error?: any;
20386
+ }, {
20387
+ message: string;
20388
+ error?: any;
20389
+ }>;
20390
+ 400: z.ZodObject<{
20391
+ message: z.ZodString;
20392
+ error: z.ZodAny;
20393
+ }, "strip", z.ZodTypeAny, {
20394
+ message: string;
20395
+ error?: any;
20396
+ }, {
20397
+ message: string;
20398
+ error?: any;
20399
+ }>;
20400
+ };
20401
+ path: "/disconnect";
20402
+ };
20403
+ reconnect: {
20404
+ body: null;
20405
+ summary: "Reconnect klink chat channel";
20406
+ method: "POST";
20407
+ pathParams: z.ZodObject<{
20408
+ channelId: z.ZodString;
20409
+ }, "strip", z.ZodTypeAny, {
20410
+ channelId: string;
20411
+ }, {
20412
+ channelId: string;
20413
+ }>;
20414
+ responses: {
20415
+ 200: z.ZodObject<{
20416
+ requestId: z.ZodString;
20417
+ data: z.ZodObject<{
20418
+ id: z.ZodString;
20419
+ name: z.ZodString;
20420
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage", "klink_chat"]>;
20421
+ metadata: z.ZodObject<{
20422
+ id: z.ZodString;
20423
+ name: z.ZodString;
20424
+ accessToken: z.ZodOptional<z.ZodString>;
20425
+ channelSecret: z.ZodOptional<z.ZodString>;
20426
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
20427
+ senderId: z.ZodOptional<z.ZodString>;
20428
+ whatsapp: z.ZodOptional<z.ZodObject<{
20429
+ wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20430
+ wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20431
+ phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20432
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20433
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20434
+ channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20435
+ waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20436
+ qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20437
+ status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
20438
+ apiKey: z.ZodOptional<z.ZodString>;
20439
+ tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
20440
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
20441
+ }, "strip", z.ZodTypeAny, {
20442
+ wabaBusinessId?: string | null | undefined;
20443
+ wabaExternalId?: string | null | undefined;
20444
+ phoneNumberId?: string | null | undefined;
20445
+ email?: string | null | undefined;
20446
+ clientId?: string | null | undefined;
20447
+ channelId?: string | null | undefined;
20448
+ waapiInstanceId?: string | null | undefined;
20449
+ qr?: string | null | undefined;
20450
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20451
+ apiKey?: string | undefined;
20452
+ tier?: "basic" | "regular" | "premium" | undefined;
20453
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20454
+ }, {
20455
+ wabaBusinessId?: string | null | undefined;
20456
+ wabaExternalId?: string | null | undefined;
20457
+ phoneNumberId?: string | null | undefined;
20458
+ email?: string | null | undefined;
20459
+ clientId?: string | null | undefined;
20460
+ channelId?: string | null | undefined;
20461
+ waapiInstanceId?: string | null | undefined;
20462
+ qr?: string | null | undefined;
20463
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20464
+ apiKey?: string | undefined;
20465
+ tier?: "basic" | "regular" | "premium" | undefined;
20466
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20467
+ }>>;
20468
+ vonageCredentials: z.ZodOptional<z.ZodObject<{
20469
+ mobileNumber: z.ZodString;
20470
+ apiKey: z.ZodString;
20471
+ apiSecret: z.ZodString;
20472
+ }, "strip", z.ZodTypeAny, {
20473
+ apiKey: string;
20474
+ mobileNumber: string;
20475
+ apiSecret: string;
20476
+ }, {
20477
+ apiKey: string;
20478
+ mobileNumber: string;
20479
+ apiSecret: string;
20480
+ }>>;
20481
+ line: z.ZodOptional<z.ZodObject<{
20482
+ channelId: z.ZodString;
20483
+ channelSecret: z.ZodString;
20484
+ }, "strip", z.ZodTypeAny, {
20485
+ channelId: string;
20486
+ channelSecret: string;
20487
+ }, {
20488
+ channelId: string;
20489
+ channelSecret: string;
20490
+ }>>;
20491
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20492
+ messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
20493
+ facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
20494
+ isCSATEnabled: z.ZodOptional<z.ZodBoolean>;
20495
+ }, "strip", z.ZodTypeAny, {
20496
+ name: string;
20497
+ id: string;
20498
+ accessToken?: string | undefined;
20499
+ channelSecret?: string | undefined;
20500
+ additionalCredentials?: any;
20501
+ senderId?: string | undefined;
20502
+ whatsapp?: {
20503
+ wabaBusinessId?: string | null | undefined;
20504
+ wabaExternalId?: string | null | undefined;
20505
+ phoneNumberId?: string | null | undefined;
20506
+ email?: string | null | undefined;
20507
+ clientId?: string | null | undefined;
20508
+ channelId?: string | null | undefined;
20509
+ waapiInstanceId?: string | null | undefined;
20510
+ qr?: string | null | undefined;
20511
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20512
+ apiKey?: string | undefined;
20513
+ tier?: "basic" | "regular" | "premium" | undefined;
20514
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20515
+ } | undefined;
20516
+ vonageCredentials?: {
20517
+ apiKey: string;
20518
+ mobileNumber: string;
20519
+ apiSecret: string;
20520
+ } | undefined;
20521
+ line?: {
20522
+ channelId: string;
20523
+ channelSecret: string;
20524
+ } | undefined;
20525
+ lineRichMenuId?: string | null | undefined;
20526
+ messengerIntegrationType?: "own" | "business" | undefined;
20527
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
20528
+ isCSATEnabled?: boolean | undefined;
20529
+ }, {
20530
+ name: string;
20531
+ id: string;
20532
+ accessToken?: string | undefined;
20533
+ channelSecret?: string | undefined;
20534
+ additionalCredentials?: any;
20535
+ senderId?: string | undefined;
20536
+ whatsapp?: {
20537
+ wabaBusinessId?: string | null | undefined;
20538
+ wabaExternalId?: string | null | undefined;
20539
+ phoneNumberId?: string | null | undefined;
20540
+ email?: string | null | undefined;
20541
+ clientId?: string | null | undefined;
20542
+ channelId?: string | null | undefined;
20543
+ waapiInstanceId?: string | null | undefined;
20544
+ qr?: string | null | undefined;
20545
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20546
+ apiKey?: string | undefined;
20547
+ tier?: "basic" | "regular" | "premium" | undefined;
20548
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20549
+ } | undefined;
20550
+ vonageCredentials?: {
20551
+ apiKey: string;
20552
+ mobileNumber: string;
20553
+ apiSecret: string;
20554
+ } | undefined;
20555
+ line?: {
20556
+ channelId: string;
20557
+ channelSecret: string;
20558
+ } | undefined;
20559
+ lineRichMenuId?: string | null | undefined;
20560
+ messengerIntegrationType?: "own" | "business" | undefined;
20561
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
20562
+ isCSATEnabled?: boolean | undefined;
20563
+ }>;
20564
+ platformId: z.ZodString;
20565
+ brandName: z.ZodString;
20566
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
20567
+ connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20568
+ connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20569
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20570
+ actor: z.ZodOptional<z.ZodObject<{
20571
+ id: z.ZodString;
20572
+ name: z.ZodString;
20573
+ email: z.ZodString;
20574
+ address: z.ZodNullable<z.ZodString>;
20575
+ phone: z.ZodNullable<z.ZodString>;
20576
+ }, "strip", z.ZodTypeAny, {
20577
+ name: string;
20578
+ id: string;
20579
+ address: string | null;
20580
+ email: string;
20581
+ phone: string | null;
20582
+ }, {
20583
+ name: string;
20584
+ id: string;
20585
+ address: string | null;
20586
+ email: string;
20587
+ phone: string | null;
20588
+ }>>;
20589
+ }, "strip", z.ZodTypeAny, {
20590
+ name: string;
20591
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | "klink_chat";
20592
+ id: string;
20593
+ metadata: {
20594
+ name: string;
20595
+ id: string;
20596
+ accessToken?: string | undefined;
20597
+ channelSecret?: string | undefined;
20598
+ additionalCredentials?: any;
20599
+ senderId?: string | undefined;
20600
+ whatsapp?: {
20601
+ wabaBusinessId?: string | null | undefined;
20602
+ wabaExternalId?: string | null | undefined;
20603
+ phoneNumberId?: string | null | undefined;
20604
+ email?: string | null | undefined;
20605
+ clientId?: string | null | undefined;
20606
+ channelId?: string | null | undefined;
20607
+ waapiInstanceId?: string | null | undefined;
20608
+ qr?: string | null | undefined;
20609
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20610
+ apiKey?: string | undefined;
20611
+ tier?: "basic" | "regular" | "premium" | undefined;
20612
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20613
+ } | undefined;
20614
+ vonageCredentials?: {
20615
+ apiKey: string;
20616
+ mobileNumber: string;
20617
+ apiSecret: string;
20618
+ } | undefined;
20619
+ line?: {
20620
+ channelId: string;
20621
+ channelSecret: string;
20622
+ } | undefined;
20623
+ lineRichMenuId?: string | null | undefined;
20624
+ messengerIntegrationType?: "own" | "business" | undefined;
20625
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
20626
+ isCSATEnabled?: boolean | undefined;
20627
+ };
20628
+ status: boolean;
20629
+ brandName: string;
20630
+ platformId: string;
20631
+ connectedUserName?: string | null | undefined;
20632
+ connectedUserId?: string | null | undefined;
20633
+ lineRichMenuId?: string | null | undefined;
20634
+ actor?: {
20635
+ name: string;
20636
+ id: string;
20637
+ address: string | null;
20638
+ email: string;
20639
+ phone: string | null;
20640
+ } | undefined;
20641
+ }, {
20642
+ name: string;
20643
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | "klink_chat";
20644
+ id: string;
20645
+ metadata: {
20646
+ name: string;
20647
+ id: string;
20648
+ accessToken?: string | undefined;
20649
+ channelSecret?: string | undefined;
20650
+ additionalCredentials?: any;
20651
+ senderId?: string | undefined;
20652
+ whatsapp?: {
20653
+ wabaBusinessId?: string | null | undefined;
20654
+ wabaExternalId?: string | null | undefined;
20655
+ phoneNumberId?: string | null | undefined;
20656
+ email?: string | null | undefined;
20657
+ clientId?: string | null | undefined;
20658
+ channelId?: string | null | undefined;
20659
+ waapiInstanceId?: string | null | undefined;
20660
+ qr?: string | null | undefined;
20661
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20662
+ apiKey?: string | undefined;
20663
+ tier?: "basic" | "regular" | "premium" | undefined;
20664
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20665
+ } | undefined;
20666
+ vonageCredentials?: {
20667
+ apiKey: string;
20668
+ mobileNumber: string;
20669
+ apiSecret: string;
20670
+ } | undefined;
20671
+ line?: {
20672
+ channelId: string;
20673
+ channelSecret: string;
20674
+ } | undefined;
20675
+ lineRichMenuId?: string | null | undefined;
20676
+ messengerIntegrationType?: "own" | "business" | undefined;
20677
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
20678
+ isCSATEnabled?: boolean | undefined;
20679
+ };
20680
+ status: boolean;
20681
+ brandName: string;
20682
+ platformId: string;
20683
+ connectedUserName?: string | null | undefined;
20684
+ connectedUserId?: string | null | undefined;
20685
+ lineRichMenuId?: string | null | undefined;
20686
+ actor?: {
20687
+ name: string;
20688
+ id: string;
20689
+ address: string | null;
20690
+ email: string;
20691
+ phone: string | null;
20692
+ } | undefined;
20693
+ }>;
20694
+ }, "strip", z.ZodTypeAny, {
20695
+ data: {
20696
+ name: string;
20697
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | "klink_chat";
20698
+ id: string;
20699
+ metadata: {
20700
+ name: string;
20701
+ id: string;
20702
+ accessToken?: string | undefined;
20703
+ channelSecret?: string | undefined;
20704
+ additionalCredentials?: any;
20705
+ senderId?: string | undefined;
20706
+ whatsapp?: {
20707
+ wabaBusinessId?: string | null | undefined;
20708
+ wabaExternalId?: string | null | undefined;
20709
+ phoneNumberId?: string | null | undefined;
20710
+ email?: string | null | undefined;
20711
+ clientId?: string | null | undefined;
20712
+ channelId?: string | null | undefined;
20713
+ waapiInstanceId?: string | null | undefined;
20714
+ qr?: string | null | undefined;
20715
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20716
+ apiKey?: string | undefined;
20717
+ tier?: "basic" | "regular" | "premium" | undefined;
20718
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20719
+ } | undefined;
20720
+ vonageCredentials?: {
20721
+ apiKey: string;
20722
+ mobileNumber: string;
20723
+ apiSecret: string;
20724
+ } | undefined;
20725
+ line?: {
20726
+ channelId: string;
20727
+ channelSecret: string;
20728
+ } | undefined;
20729
+ lineRichMenuId?: string | null | undefined;
20730
+ messengerIntegrationType?: "own" | "business" | undefined;
20731
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
20732
+ isCSATEnabled?: boolean | undefined;
20733
+ };
20734
+ status: boolean;
20735
+ brandName: string;
20736
+ platformId: string;
20737
+ connectedUserName?: string | null | undefined;
20738
+ connectedUserId?: string | null | undefined;
20739
+ lineRichMenuId?: string | null | undefined;
20740
+ actor?: {
20741
+ name: string;
20742
+ id: string;
20743
+ address: string | null;
20744
+ email: string;
20745
+ phone: string | null;
20746
+ } | undefined;
20747
+ };
20748
+ requestId: string;
20749
+ }, {
20750
+ data: {
20751
+ name: string;
20752
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | "klink_chat";
20753
+ id: string;
20754
+ metadata: {
20755
+ name: string;
20756
+ id: string;
20757
+ accessToken?: string | undefined;
20758
+ channelSecret?: string | undefined;
20759
+ additionalCredentials?: any;
20760
+ senderId?: string | undefined;
20761
+ whatsapp?: {
20762
+ wabaBusinessId?: string | null | undefined;
20763
+ wabaExternalId?: string | null | undefined;
20764
+ phoneNumberId?: string | null | undefined;
20765
+ email?: string | null | undefined;
20766
+ clientId?: string | null | undefined;
20767
+ channelId?: string | null | undefined;
20768
+ waapiInstanceId?: string | null | undefined;
20769
+ qr?: string | null | undefined;
20770
+ status?: "active" | "pending" | "waapi-qr" | undefined;
20771
+ apiKey?: string | undefined;
20772
+ tier?: "basic" | "regular" | "premium" | undefined;
20773
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
20774
+ } | undefined;
20775
+ vonageCredentials?: {
20776
+ apiKey: string;
20777
+ mobileNumber: string;
20778
+ apiSecret: string;
20779
+ } | undefined;
20780
+ line?: {
20781
+ channelId: string;
20782
+ channelSecret: string;
20783
+ } | undefined;
20784
+ lineRichMenuId?: string | null | undefined;
20785
+ messengerIntegrationType?: "own" | "business" | undefined;
20786
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
20787
+ isCSATEnabled?: boolean | undefined;
20788
+ };
20789
+ status: boolean;
20790
+ brandName: string;
20791
+ platformId: string;
20792
+ connectedUserName?: string | null | undefined;
20793
+ connectedUserId?: string | null | undefined;
20794
+ lineRichMenuId?: string | null | undefined;
20795
+ actor?: {
20796
+ name: string;
20797
+ id: string;
20798
+ address: string | null;
20799
+ email: string;
20800
+ phone: string | null;
20801
+ } | undefined;
20802
+ };
20803
+ requestId: string;
20804
+ }>;
20805
+ 500: z.ZodObject<{
20806
+ message: z.ZodString;
20807
+ error: z.ZodAny;
20808
+ }, "strip", z.ZodTypeAny, {
20809
+ message: string;
20810
+ error?: any;
20811
+ }, {
20812
+ message: string;
20813
+ error?: any;
20814
+ }>;
20815
+ 400: z.ZodObject<{
20816
+ message: z.ZodString;
20817
+ error: z.ZodAny;
20818
+ }, "strip", z.ZodTypeAny, {
20819
+ message: string;
20820
+ error?: any;
20821
+ }, {
20822
+ message: string;
20823
+ error?: any;
20824
+ }>;
20825
+ };
20826
+ path: "/reconnect/:channelId";
20827
+ };
19979
20828
  delete: {
19980
20829
  body: null;
19981
- summary: "Delete telegram channel";
20830
+ summary: "Delete klink chat channel";
19982
20831
  method: "DELETE";
19983
20832
  pathParams: z.ZodObject<{
19984
20833
  channelId: z.ZodString;