@kl1/contracts 1.2.12-uat → 1.2.13-uat
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/channel/index.d.ts +663 -1
- package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
- package/dist/api-contracts/src/channel/validation.d.ts +10 -0
- package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/index.d.ts +111 -111
- package/dist/api-contracts/src/chat/schema.d.ts +25 -25
- package/dist/api-contracts/src/chat/validation.d.ts +16 -16
- package/dist/api-contracts/src/contract.d.ts +22097 -449
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/index.d.ts +16 -16
- package/dist/api-contracts/src/instagram/index.d.ts +16 -16
- package/dist/api-contracts/src/line/index.d.ts +16 -16
- package/dist/api-contracts/src/messenger/index.d.ts +16 -16
- package/dist/api-contracts/src/telegram/index.d.ts +20328 -0
- package/dist/api-contracts/src/telegram/index.d.ts.map +1 -0
- package/dist/api-contracts/src/telegram/schema.d.ts +2 -0
- package/dist/api-contracts/src/telegram/schema.d.ts.map +1 -0
- package/dist/api-contracts/src/telegram/validation.d.ts +45 -0
- package/dist/api-contracts/src/telegram/validation.d.ts.map +1 -0
- package/dist/api-contracts/src/viber/index.d.ts +16 -16
- package/dist/api-contracts/src/webchat/index.d.ts +16 -16
- package/dist/api-contracts/src/workflow-rule/index.d.ts +10 -10
- package/dist/index.js +1120 -1003
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1119 -1003
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -1,10 +1,11 @@
|
|
1
1
|
import z from 'zod';
|
2
2
|
import { ChannelSchema } from './schema';
|
3
|
-
import { ConnectChannelSchema, ConnectViberChannelSchema, GetChannelSchema, ConnectSMSSchema } from './validation';
|
3
|
+
import { ConnectChannelSchema, ConnectViberChannelSchema, GetChannelSchema, ConnectSMSSchema, ConnectTelegramChannelSchema } from './validation';
|
4
4
|
import { ConnectWebChatChannelSchema } from '../webchat/schema';
|
5
5
|
export type ConnectChannelRequest = z.TypeOf<typeof ConnectChannelSchema>;
|
6
6
|
export type Channel = z.infer<typeof ChannelSchema>;
|
7
7
|
export type ConnectViberChannelRequest = z.infer<typeof ConnectViberChannelSchema>;
|
8
|
+
export type ConnectTelegramChannelRequest = z.infer<typeof ConnectTelegramChannelSchema>;
|
8
9
|
export type GetChannelRequest = z.infer<typeof GetChannelSchema>;
|
9
10
|
export type ConnectWebChatChannelRequest = z.infer<typeof ConnectWebChatChannelSchema>;
|
10
11
|
export type ConnectSMSChannelRequest = z.infer<typeof ConnectSMSSchema>;
|
@@ -6164,6 +6165,667 @@ export declare const channelContract: {
|
|
6164
6165
|
}>>>;
|
6165
6166
|
};
|
6166
6167
|
};
|
6168
|
+
telegram: {
|
6169
|
+
connect: {
|
6170
|
+
body: z.ZodObject<{
|
6171
|
+
name: z.ZodString;
|
6172
|
+
accessToken: z.ZodString;
|
6173
|
+
}, "strip", z.ZodTypeAny, {
|
6174
|
+
name: string;
|
6175
|
+
accessToken: string;
|
6176
|
+
}, {
|
6177
|
+
name: string;
|
6178
|
+
accessToken: string;
|
6179
|
+
}>;
|
6180
|
+
summary: "Connect telegram channel";
|
6181
|
+
method: "POST";
|
6182
|
+
responses: {
|
6183
|
+
200: z.ZodObject<{
|
6184
|
+
requestId: z.ZodString;
|
6185
|
+
channel: z.ZodObject<{
|
6186
|
+
id: z.ZodString;
|
6187
|
+
createdAt: z.ZodDate;
|
6188
|
+
updatedAt: z.ZodDate;
|
6189
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
6190
|
+
name: z.ZodString;
|
6191
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
|
6192
|
+
metadata: z.ZodObject<{
|
6193
|
+
id: z.ZodString;
|
6194
|
+
name: z.ZodString;
|
6195
|
+
accessToken: z.ZodOptional<z.ZodString>;
|
6196
|
+
channelSecret: z.ZodOptional<z.ZodString>;
|
6197
|
+
additionalCredentials: z.ZodOptional<z.ZodAny>;
|
6198
|
+
senderId: z.ZodOptional<z.ZodString>;
|
6199
|
+
vonageCredentials: z.ZodOptional<z.ZodObject<{
|
6200
|
+
mobileNumber: z.ZodString;
|
6201
|
+
apiKey: z.ZodString;
|
6202
|
+
apiSecret: z.ZodString;
|
6203
|
+
}, "strip", z.ZodTypeAny, {
|
6204
|
+
mobileNumber: string;
|
6205
|
+
apiKey: string;
|
6206
|
+
apiSecret: string;
|
6207
|
+
}, {
|
6208
|
+
mobileNumber: string;
|
6209
|
+
apiKey: string;
|
6210
|
+
apiSecret: string;
|
6211
|
+
}>>;
|
6212
|
+
lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
6213
|
+
}, "strip", z.ZodTypeAny, {
|
6214
|
+
id: string;
|
6215
|
+
name: string;
|
6216
|
+
accessToken?: string | undefined;
|
6217
|
+
channelSecret?: string | undefined;
|
6218
|
+
additionalCredentials?: any;
|
6219
|
+
senderId?: string | undefined;
|
6220
|
+
vonageCredentials?: {
|
6221
|
+
mobileNumber: string;
|
6222
|
+
apiKey: string;
|
6223
|
+
apiSecret: string;
|
6224
|
+
} | undefined;
|
6225
|
+
lineRichMenuId?: string | null | undefined;
|
6226
|
+
}, {
|
6227
|
+
id: string;
|
6228
|
+
name: string;
|
6229
|
+
accessToken?: string | undefined;
|
6230
|
+
channelSecret?: string | undefined;
|
6231
|
+
additionalCredentials?: any;
|
6232
|
+
senderId?: string | undefined;
|
6233
|
+
vonageCredentials?: {
|
6234
|
+
mobileNumber: string;
|
6235
|
+
apiKey: string;
|
6236
|
+
apiSecret: string;
|
6237
|
+
} | undefined;
|
6238
|
+
lineRichMenuId?: string | null | undefined;
|
6239
|
+
}>;
|
6240
|
+
brandName: z.ZodString;
|
6241
|
+
platformId: z.ZodString;
|
6242
|
+
status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
|
6243
|
+
isReloginRequired: z.ZodBoolean;
|
6244
|
+
connectedUserName: z.ZodString;
|
6245
|
+
connectedUserId: z.ZodString;
|
6246
|
+
botpressBot: z.ZodNullable<z.ZodObject<{
|
6247
|
+
id: z.ZodString;
|
6248
|
+
name: z.ZodString;
|
6249
|
+
botId: z.ZodString;
|
6250
|
+
integrationId: z.ZodString;
|
6251
|
+
accessToken: z.ZodString;
|
6252
|
+
}, "strip", z.ZodTypeAny, {
|
6253
|
+
id: string;
|
6254
|
+
name: string;
|
6255
|
+
accessToken: string;
|
6256
|
+
botId: string;
|
6257
|
+
integrationId: string;
|
6258
|
+
}, {
|
6259
|
+
id: string;
|
6260
|
+
name: string;
|
6261
|
+
accessToken: string;
|
6262
|
+
botId: string;
|
6263
|
+
integrationId: string;
|
6264
|
+
}>>;
|
6265
|
+
actor: z.ZodObject<{
|
6266
|
+
id: z.ZodString;
|
6267
|
+
createdAt: z.ZodDate;
|
6268
|
+
updatedAt: z.ZodDate;
|
6269
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
6270
|
+
name: z.ZodString;
|
6271
|
+
email: z.ZodString;
|
6272
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
6273
|
+
password: z.ZodString;
|
6274
|
+
address: z.ZodNullable<z.ZodString>;
|
6275
|
+
phone: z.ZodNullable<z.ZodString>;
|
6276
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
6277
|
+
roles: z.ZodArray<z.ZodObject<{
|
6278
|
+
id: z.ZodString;
|
6279
|
+
createdAt: z.ZodDate;
|
6280
|
+
updatedAt: z.ZodDate;
|
6281
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
6282
|
+
systemName: z.ZodString;
|
6283
|
+
displayName: z.ZodString;
|
6284
|
+
description: z.ZodNullable<z.ZodString>;
|
6285
|
+
permissions: z.ZodArray<z.ZodObject<{
|
6286
|
+
id: z.ZodString;
|
6287
|
+
createdAt: z.ZodDate;
|
6288
|
+
updatedAt: z.ZodDate;
|
6289
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
6290
|
+
systemName: z.ZodString;
|
6291
|
+
displayName: z.ZodString;
|
6292
|
+
description: z.ZodNullable<z.ZodString>;
|
6293
|
+
}, "strip", z.ZodTypeAny, {
|
6294
|
+
id: string;
|
6295
|
+
description: string | null;
|
6296
|
+
createdAt: Date;
|
6297
|
+
updatedAt: Date;
|
6298
|
+
deletedAt: Date | null;
|
6299
|
+
systemName: string;
|
6300
|
+
displayName: string;
|
6301
|
+
}, {
|
6302
|
+
id: string;
|
6303
|
+
description: string | null;
|
6304
|
+
createdAt: Date;
|
6305
|
+
updatedAt: Date;
|
6306
|
+
deletedAt: Date | null;
|
6307
|
+
systemName: string;
|
6308
|
+
displayName: string;
|
6309
|
+
}>, "many">;
|
6310
|
+
}, "strip", z.ZodTypeAny, {
|
6311
|
+
id: string;
|
6312
|
+
description: string | null;
|
6313
|
+
createdAt: Date;
|
6314
|
+
updatedAt: Date;
|
6315
|
+
deletedAt: Date | null;
|
6316
|
+
systemName: string;
|
6317
|
+
displayName: string;
|
6318
|
+
permissions: {
|
6319
|
+
id: string;
|
6320
|
+
description: string | null;
|
6321
|
+
createdAt: Date;
|
6322
|
+
updatedAt: Date;
|
6323
|
+
deletedAt: Date | null;
|
6324
|
+
systemName: string;
|
6325
|
+
displayName: string;
|
6326
|
+
}[];
|
6327
|
+
}, {
|
6328
|
+
id: string;
|
6329
|
+
description: string | null;
|
6330
|
+
createdAt: Date;
|
6331
|
+
updatedAt: Date;
|
6332
|
+
deletedAt: Date | null;
|
6333
|
+
systemName: string;
|
6334
|
+
displayName: string;
|
6335
|
+
permissions: {
|
6336
|
+
id: string;
|
6337
|
+
description: string | null;
|
6338
|
+
createdAt: Date;
|
6339
|
+
updatedAt: Date;
|
6340
|
+
deletedAt: Date | null;
|
6341
|
+
systemName: string;
|
6342
|
+
displayName: string;
|
6343
|
+
}[];
|
6344
|
+
}>, "many">;
|
6345
|
+
extension: z.ZodObject<{
|
6346
|
+
id: z.ZodString;
|
6347
|
+
createdAt: z.ZodDate;
|
6348
|
+
updatedAt: z.ZodDate;
|
6349
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
6350
|
+
userId: z.ZodNullable<z.ZodString>;
|
6351
|
+
sipServerUrl: z.ZodString;
|
6352
|
+
sipUserName: z.ZodString;
|
6353
|
+
webphoneLoginUser: z.ZodString;
|
6354
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
6355
|
+
extensionName: z.ZodString;
|
6356
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
6357
|
+
}, "strip", z.ZodTypeAny, {
|
6358
|
+
id: string;
|
6359
|
+
createdAt: Date;
|
6360
|
+
updatedAt: Date;
|
6361
|
+
deletedAt: Date | null;
|
6362
|
+
userId: string | null;
|
6363
|
+
sipServerUrl: string;
|
6364
|
+
sipUserName: string;
|
6365
|
+
webphoneLoginUser: string;
|
6366
|
+
extensionId: string | null;
|
6367
|
+
extensionName: string;
|
6368
|
+
telephonySignature: string | null;
|
6369
|
+
}, {
|
6370
|
+
id: string;
|
6371
|
+
createdAt: Date;
|
6372
|
+
updatedAt: Date;
|
6373
|
+
deletedAt: Date | null;
|
6374
|
+
userId: string | null;
|
6375
|
+
sipServerUrl: string;
|
6376
|
+
sipUserName: string;
|
6377
|
+
webphoneLoginUser: string;
|
6378
|
+
extensionId: string | null;
|
6379
|
+
extensionName: string;
|
6380
|
+
telephonySignature: string | null;
|
6381
|
+
}>;
|
6382
|
+
}, "strip", z.ZodTypeAny, {
|
6383
|
+
id: string;
|
6384
|
+
address: string | null;
|
6385
|
+
name: string;
|
6386
|
+
email: string;
|
6387
|
+
createdAt: Date;
|
6388
|
+
updatedAt: Date;
|
6389
|
+
deletedAt: Date | null;
|
6390
|
+
emailVerifiedAt: Date | null;
|
6391
|
+
password: string;
|
6392
|
+
phone: string | null;
|
6393
|
+
notificationCount: number | null;
|
6394
|
+
roles: {
|
6395
|
+
id: string;
|
6396
|
+
description: string | null;
|
6397
|
+
createdAt: Date;
|
6398
|
+
updatedAt: Date;
|
6399
|
+
deletedAt: Date | null;
|
6400
|
+
systemName: string;
|
6401
|
+
displayName: string;
|
6402
|
+
permissions: {
|
6403
|
+
id: string;
|
6404
|
+
description: string | null;
|
6405
|
+
createdAt: Date;
|
6406
|
+
updatedAt: Date;
|
6407
|
+
deletedAt: Date | null;
|
6408
|
+
systemName: string;
|
6409
|
+
displayName: string;
|
6410
|
+
}[];
|
6411
|
+
}[];
|
6412
|
+
extension: {
|
6413
|
+
id: string;
|
6414
|
+
createdAt: Date;
|
6415
|
+
updatedAt: Date;
|
6416
|
+
deletedAt: Date | null;
|
6417
|
+
userId: string | null;
|
6418
|
+
sipServerUrl: string;
|
6419
|
+
sipUserName: string;
|
6420
|
+
webphoneLoginUser: string;
|
6421
|
+
extensionId: string | null;
|
6422
|
+
extensionName: string;
|
6423
|
+
telephonySignature: string | null;
|
6424
|
+
};
|
6425
|
+
}, {
|
6426
|
+
id: string;
|
6427
|
+
address: string | null;
|
6428
|
+
name: string;
|
6429
|
+
email: string;
|
6430
|
+
createdAt: Date;
|
6431
|
+
updatedAt: Date;
|
6432
|
+
deletedAt: Date | null;
|
6433
|
+
emailVerifiedAt: Date | null;
|
6434
|
+
password: string;
|
6435
|
+
phone: string | null;
|
6436
|
+
notificationCount: number | null;
|
6437
|
+
roles: {
|
6438
|
+
id: string;
|
6439
|
+
description: string | null;
|
6440
|
+
createdAt: Date;
|
6441
|
+
updatedAt: Date;
|
6442
|
+
deletedAt: Date | null;
|
6443
|
+
systemName: string;
|
6444
|
+
displayName: string;
|
6445
|
+
permissions: {
|
6446
|
+
id: string;
|
6447
|
+
description: string | null;
|
6448
|
+
createdAt: Date;
|
6449
|
+
updatedAt: Date;
|
6450
|
+
deletedAt: Date | null;
|
6451
|
+
systemName: string;
|
6452
|
+
displayName: string;
|
6453
|
+
}[];
|
6454
|
+
}[];
|
6455
|
+
extension: {
|
6456
|
+
id: string;
|
6457
|
+
createdAt: Date;
|
6458
|
+
updatedAt: Date;
|
6459
|
+
deletedAt: Date | null;
|
6460
|
+
userId: string | null;
|
6461
|
+
sipServerUrl: string;
|
6462
|
+
sipUserName: string;
|
6463
|
+
webphoneLoginUser: string;
|
6464
|
+
extensionId: string | null;
|
6465
|
+
extensionName: string;
|
6466
|
+
telephonySignature: string | null;
|
6467
|
+
};
|
6468
|
+
}>;
|
6469
|
+
}, "strip", z.ZodTypeAny, {
|
6470
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
|
6471
|
+
id: string;
|
6472
|
+
name: string;
|
6473
|
+
metadata: {
|
6474
|
+
id: string;
|
6475
|
+
name: string;
|
6476
|
+
accessToken?: string | undefined;
|
6477
|
+
channelSecret?: string | undefined;
|
6478
|
+
additionalCredentials?: any;
|
6479
|
+
senderId?: string | undefined;
|
6480
|
+
vonageCredentials?: {
|
6481
|
+
mobileNumber: string;
|
6482
|
+
apiKey: string;
|
6483
|
+
apiSecret: string;
|
6484
|
+
} | undefined;
|
6485
|
+
lineRichMenuId?: string | null | undefined;
|
6486
|
+
};
|
6487
|
+
status: boolean;
|
6488
|
+
createdAt: Date;
|
6489
|
+
updatedAt: Date;
|
6490
|
+
deletedAt: Date | null;
|
6491
|
+
actor: {
|
6492
|
+
id: string;
|
6493
|
+
address: string | null;
|
6494
|
+
name: string;
|
6495
|
+
email: string;
|
6496
|
+
createdAt: Date;
|
6497
|
+
updatedAt: Date;
|
6498
|
+
deletedAt: Date | null;
|
6499
|
+
emailVerifiedAt: Date | null;
|
6500
|
+
password: string;
|
6501
|
+
phone: string | null;
|
6502
|
+
notificationCount: number | null;
|
6503
|
+
roles: {
|
6504
|
+
id: string;
|
6505
|
+
description: string | null;
|
6506
|
+
createdAt: Date;
|
6507
|
+
updatedAt: Date;
|
6508
|
+
deletedAt: Date | null;
|
6509
|
+
systemName: string;
|
6510
|
+
displayName: string;
|
6511
|
+
permissions: {
|
6512
|
+
id: string;
|
6513
|
+
description: string | null;
|
6514
|
+
createdAt: Date;
|
6515
|
+
updatedAt: Date;
|
6516
|
+
deletedAt: Date | null;
|
6517
|
+
systemName: string;
|
6518
|
+
displayName: string;
|
6519
|
+
}[];
|
6520
|
+
}[];
|
6521
|
+
extension: {
|
6522
|
+
id: string;
|
6523
|
+
createdAt: Date;
|
6524
|
+
updatedAt: Date;
|
6525
|
+
deletedAt: Date | null;
|
6526
|
+
userId: string | null;
|
6527
|
+
sipServerUrl: string;
|
6528
|
+
sipUserName: string;
|
6529
|
+
webphoneLoginUser: string;
|
6530
|
+
extensionId: string | null;
|
6531
|
+
extensionName: string;
|
6532
|
+
telephonySignature: string | null;
|
6533
|
+
};
|
6534
|
+
};
|
6535
|
+
brandName: string;
|
6536
|
+
platformId: string;
|
6537
|
+
isReloginRequired: boolean;
|
6538
|
+
connectedUserName: string;
|
6539
|
+
connectedUserId: string;
|
6540
|
+
botpressBot: {
|
6541
|
+
id: string;
|
6542
|
+
name: string;
|
6543
|
+
accessToken: string;
|
6544
|
+
botId: string;
|
6545
|
+
integrationId: string;
|
6546
|
+
} | null;
|
6547
|
+
}, {
|
6548
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
|
6549
|
+
id: string;
|
6550
|
+
name: string;
|
6551
|
+
metadata: {
|
6552
|
+
id: string;
|
6553
|
+
name: string;
|
6554
|
+
accessToken?: string | undefined;
|
6555
|
+
channelSecret?: string | undefined;
|
6556
|
+
additionalCredentials?: any;
|
6557
|
+
senderId?: string | undefined;
|
6558
|
+
vonageCredentials?: {
|
6559
|
+
mobileNumber: string;
|
6560
|
+
apiKey: string;
|
6561
|
+
apiSecret: string;
|
6562
|
+
} | undefined;
|
6563
|
+
lineRichMenuId?: string | null | undefined;
|
6564
|
+
};
|
6565
|
+
status: boolean;
|
6566
|
+
createdAt: Date;
|
6567
|
+
updatedAt: Date;
|
6568
|
+
deletedAt: Date | null;
|
6569
|
+
actor: {
|
6570
|
+
id: string;
|
6571
|
+
address: string | null;
|
6572
|
+
name: string;
|
6573
|
+
email: string;
|
6574
|
+
createdAt: Date;
|
6575
|
+
updatedAt: Date;
|
6576
|
+
deletedAt: Date | null;
|
6577
|
+
emailVerifiedAt: Date | null;
|
6578
|
+
password: string;
|
6579
|
+
phone: string | null;
|
6580
|
+
notificationCount: number | null;
|
6581
|
+
roles: {
|
6582
|
+
id: string;
|
6583
|
+
description: string | null;
|
6584
|
+
createdAt: Date;
|
6585
|
+
updatedAt: Date;
|
6586
|
+
deletedAt: Date | null;
|
6587
|
+
systemName: string;
|
6588
|
+
displayName: string;
|
6589
|
+
permissions: {
|
6590
|
+
id: string;
|
6591
|
+
description: string | null;
|
6592
|
+
createdAt: Date;
|
6593
|
+
updatedAt: Date;
|
6594
|
+
deletedAt: Date | null;
|
6595
|
+
systemName: string;
|
6596
|
+
displayName: string;
|
6597
|
+
}[];
|
6598
|
+
}[];
|
6599
|
+
extension: {
|
6600
|
+
id: string;
|
6601
|
+
createdAt: Date;
|
6602
|
+
updatedAt: Date;
|
6603
|
+
deletedAt: Date | null;
|
6604
|
+
userId: string | null;
|
6605
|
+
sipServerUrl: string;
|
6606
|
+
sipUserName: string;
|
6607
|
+
webphoneLoginUser: string;
|
6608
|
+
extensionId: string | null;
|
6609
|
+
extensionName: string;
|
6610
|
+
telephonySignature: string | null;
|
6611
|
+
};
|
6612
|
+
};
|
6613
|
+
brandName: string;
|
6614
|
+
platformId: string;
|
6615
|
+
isReloginRequired: boolean;
|
6616
|
+
connectedUserName: string;
|
6617
|
+
connectedUserId: string;
|
6618
|
+
botpressBot: {
|
6619
|
+
id: string;
|
6620
|
+
name: string;
|
6621
|
+
accessToken: string;
|
6622
|
+
botId: string;
|
6623
|
+
integrationId: string;
|
6624
|
+
} | null;
|
6625
|
+
}>;
|
6626
|
+
}, "strip", z.ZodTypeAny, {
|
6627
|
+
channel: {
|
6628
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
|
6629
|
+
id: string;
|
6630
|
+
name: string;
|
6631
|
+
metadata: {
|
6632
|
+
id: string;
|
6633
|
+
name: string;
|
6634
|
+
accessToken?: string | undefined;
|
6635
|
+
channelSecret?: string | undefined;
|
6636
|
+
additionalCredentials?: any;
|
6637
|
+
senderId?: string | undefined;
|
6638
|
+
vonageCredentials?: {
|
6639
|
+
mobileNumber: string;
|
6640
|
+
apiKey: string;
|
6641
|
+
apiSecret: string;
|
6642
|
+
} | undefined;
|
6643
|
+
lineRichMenuId?: string | null | undefined;
|
6644
|
+
};
|
6645
|
+
status: boolean;
|
6646
|
+
createdAt: Date;
|
6647
|
+
updatedAt: Date;
|
6648
|
+
deletedAt: Date | null;
|
6649
|
+
actor: {
|
6650
|
+
id: string;
|
6651
|
+
address: string | null;
|
6652
|
+
name: string;
|
6653
|
+
email: string;
|
6654
|
+
createdAt: Date;
|
6655
|
+
updatedAt: Date;
|
6656
|
+
deletedAt: Date | null;
|
6657
|
+
emailVerifiedAt: Date | null;
|
6658
|
+
password: string;
|
6659
|
+
phone: string | null;
|
6660
|
+
notificationCount: number | null;
|
6661
|
+
roles: {
|
6662
|
+
id: string;
|
6663
|
+
description: string | null;
|
6664
|
+
createdAt: Date;
|
6665
|
+
updatedAt: Date;
|
6666
|
+
deletedAt: Date | null;
|
6667
|
+
systemName: string;
|
6668
|
+
displayName: string;
|
6669
|
+
permissions: {
|
6670
|
+
id: string;
|
6671
|
+
description: string | null;
|
6672
|
+
createdAt: Date;
|
6673
|
+
updatedAt: Date;
|
6674
|
+
deletedAt: Date | null;
|
6675
|
+
systemName: string;
|
6676
|
+
displayName: string;
|
6677
|
+
}[];
|
6678
|
+
}[];
|
6679
|
+
extension: {
|
6680
|
+
id: string;
|
6681
|
+
createdAt: Date;
|
6682
|
+
updatedAt: Date;
|
6683
|
+
deletedAt: Date | null;
|
6684
|
+
userId: string | null;
|
6685
|
+
sipServerUrl: string;
|
6686
|
+
sipUserName: string;
|
6687
|
+
webphoneLoginUser: string;
|
6688
|
+
extensionId: string | null;
|
6689
|
+
extensionName: string;
|
6690
|
+
telephonySignature: string | null;
|
6691
|
+
};
|
6692
|
+
};
|
6693
|
+
brandName: string;
|
6694
|
+
platformId: string;
|
6695
|
+
isReloginRequired: boolean;
|
6696
|
+
connectedUserName: string;
|
6697
|
+
connectedUserId: string;
|
6698
|
+
botpressBot: {
|
6699
|
+
id: string;
|
6700
|
+
name: string;
|
6701
|
+
accessToken: string;
|
6702
|
+
botId: string;
|
6703
|
+
integrationId: string;
|
6704
|
+
} | null;
|
6705
|
+
};
|
6706
|
+
requestId: string;
|
6707
|
+
}, {
|
6708
|
+
channel: {
|
6709
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
|
6710
|
+
id: string;
|
6711
|
+
name: string;
|
6712
|
+
metadata: {
|
6713
|
+
id: string;
|
6714
|
+
name: string;
|
6715
|
+
accessToken?: string | undefined;
|
6716
|
+
channelSecret?: string | undefined;
|
6717
|
+
additionalCredentials?: any;
|
6718
|
+
senderId?: string | undefined;
|
6719
|
+
vonageCredentials?: {
|
6720
|
+
mobileNumber: string;
|
6721
|
+
apiKey: string;
|
6722
|
+
apiSecret: string;
|
6723
|
+
} | undefined;
|
6724
|
+
lineRichMenuId?: string | null | undefined;
|
6725
|
+
};
|
6726
|
+
status: boolean;
|
6727
|
+
createdAt: Date;
|
6728
|
+
updatedAt: Date;
|
6729
|
+
deletedAt: Date | null;
|
6730
|
+
actor: {
|
6731
|
+
id: string;
|
6732
|
+
address: string | null;
|
6733
|
+
name: string;
|
6734
|
+
email: string;
|
6735
|
+
createdAt: Date;
|
6736
|
+
updatedAt: Date;
|
6737
|
+
deletedAt: Date | null;
|
6738
|
+
emailVerifiedAt: Date | null;
|
6739
|
+
password: string;
|
6740
|
+
phone: string | null;
|
6741
|
+
notificationCount: number | null;
|
6742
|
+
roles: {
|
6743
|
+
id: string;
|
6744
|
+
description: string | null;
|
6745
|
+
createdAt: Date;
|
6746
|
+
updatedAt: Date;
|
6747
|
+
deletedAt: Date | null;
|
6748
|
+
systemName: string;
|
6749
|
+
displayName: string;
|
6750
|
+
permissions: {
|
6751
|
+
id: string;
|
6752
|
+
description: string | null;
|
6753
|
+
createdAt: Date;
|
6754
|
+
updatedAt: Date;
|
6755
|
+
deletedAt: Date | null;
|
6756
|
+
systemName: string;
|
6757
|
+
displayName: string;
|
6758
|
+
}[];
|
6759
|
+
}[];
|
6760
|
+
extension: {
|
6761
|
+
id: string;
|
6762
|
+
createdAt: Date;
|
6763
|
+
updatedAt: Date;
|
6764
|
+
deletedAt: Date | null;
|
6765
|
+
userId: string | null;
|
6766
|
+
sipServerUrl: string;
|
6767
|
+
sipUserName: string;
|
6768
|
+
webphoneLoginUser: string;
|
6769
|
+
extensionId: string | null;
|
6770
|
+
extensionName: string;
|
6771
|
+
telephonySignature: string | null;
|
6772
|
+
};
|
6773
|
+
};
|
6774
|
+
brandName: string;
|
6775
|
+
platformId: string;
|
6776
|
+
isReloginRequired: boolean;
|
6777
|
+
connectedUserName: string;
|
6778
|
+
connectedUserId: string;
|
6779
|
+
botpressBot: {
|
6780
|
+
id: string;
|
6781
|
+
name: string;
|
6782
|
+
accessToken: string;
|
6783
|
+
botId: string;
|
6784
|
+
integrationId: string;
|
6785
|
+
} | null;
|
6786
|
+
};
|
6787
|
+
requestId: string;
|
6788
|
+
}>;
|
6789
|
+
408: z.ZodObject<{
|
6790
|
+
message: z.ZodString;
|
6791
|
+
error: z.ZodAny;
|
6792
|
+
}, "strip", z.ZodTypeAny, {
|
6793
|
+
message: string;
|
6794
|
+
error?: any;
|
6795
|
+
}, {
|
6796
|
+
message: string;
|
6797
|
+
error?: any;
|
6798
|
+
}>;
|
6799
|
+
400: z.ZodObject<{
|
6800
|
+
message: z.ZodString;
|
6801
|
+
error: z.ZodAny;
|
6802
|
+
}, "strip", z.ZodTypeAny, {
|
6803
|
+
message: string;
|
6804
|
+
error?: any;
|
6805
|
+
}, {
|
6806
|
+
message: string;
|
6807
|
+
error?: any;
|
6808
|
+
}>;
|
6809
|
+
};
|
6810
|
+
path: "channel/telegram/connect";
|
6811
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
6812
|
+
'x-tenant': z.ZodString;
|
6813
|
+
authorization: z.ZodString;
|
6814
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
6815
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
6816
|
+
}, "strip", z.ZodTypeAny, {
|
6817
|
+
'x-tenant': string;
|
6818
|
+
authorization: string;
|
6819
|
+
'x-client-timezone': string;
|
6820
|
+
'x-code'?: string | undefined;
|
6821
|
+
}, {
|
6822
|
+
'x-tenant': string;
|
6823
|
+
authorization: string;
|
6824
|
+
'x-code'?: string | undefined;
|
6825
|
+
'x-client-timezone'?: string | undefined;
|
6826
|
+
}>>>;
|
6827
|
+
};
|
6828
|
+
};
|
6167
6829
|
webchat: {
|
6168
6830
|
connect: {
|
6169
6831
|
body: z.ZodObject<{
|