@kl1/contracts 1.1.41-uat → 1.1.43-uat
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.
- package/dist/index.js +2963 -2771
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2961 -2772
- package/dist/index.mjs.map +1 -1
- package/dist/src/channel/index.d.ts +1692 -73
- package/dist/src/channel/index.d.ts.map +1 -1
- package/dist/src/channel/schema.d.ts +36 -0
- package/dist/src/channel/schema.d.ts.map +1 -1
- package/dist/src/channel/validation.d.ts +7 -0
- package/dist/src/channel/validation.d.ts.map +1 -1
- package/dist/src/chat/index.d.ts +767 -59
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +136 -20
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +153 -61
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +3972 -1072
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +75 -0
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/cx-log/schema.d.ts +61 -0
- package/dist/src/cx-log/schema.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/instagram/index.d.ts +145 -53
- package/dist/src/instagram/index.d.ts.map +1 -1
- package/dist/src/line/index.d.ts +150 -58
- package/dist/src/line/index.d.ts.map +1 -1
- package/dist/src/line/validation.d.ts +5 -5
- package/dist/src/messenger/index.d.ts +180 -54
- package/dist/src/messenger/index.d.ts.map +1 -1
- package/dist/src/messenger/validation.d.ts +43 -0
- package/dist/src/messenger/validation.d.ts.map +1 -1
- package/dist/src/viber/index.d.ts +286 -53
- package/dist/src/viber/index.d.ts.map +1 -1
- package/dist/src/webchat/index.d.ts +192 -53
- package/dist/src/webchat/index.d.ts.map +1 -1
- package/dist/src/workflow-rule/index.d.ts +132 -0
- package/dist/src/workflow-rule/index.d.ts.map +1 -1
- package/package.json +4 -10
@@ -1,13 +1,15 @@
|
|
1
1
|
import z from 'zod';
|
2
2
|
import { ChannelSchema } from '../chat/validation';
|
3
|
-
import { GetFacebookPagesQuerySchema, GetFacebookPagesSchema, ReconnectMessengerSchema } from './validation';
|
3
|
+
import { GetFacebookPagesQuerySchema, GetFacebookPagesSchema, ReconnectMessengerSchema, SetBotPersistentMenuSchema } from './validation';
|
4
4
|
export type GetFacebookPagesResponse = z.infer<typeof GetFacebookPagesSchema>;
|
5
5
|
export type GetFacebookPagesQuery = z.infer<typeof GetFacebookPagesQuerySchema>;
|
6
6
|
export type ReconnectChannelRequest = z.infer<typeof ChannelSchema>;
|
7
7
|
export type ReconnectMessengerRequest = z.infer<typeof ReconnectMessengerSchema>;
|
8
|
+
export type SetBotPersistentMenuRequest = z.infer<typeof SetBotPersistentMenuSchema>;
|
8
9
|
export declare const messengerContract: {
|
9
10
|
sendMessage: {
|
10
11
|
body: z.ZodObject<{
|
12
|
+
isBot: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
11
13
|
room: z.ZodObject<{
|
12
14
|
id: z.ZodString;
|
13
15
|
lastMessage: z.ZodOptional<z.ZodString>;
|
@@ -362,7 +364,7 @@ export declare const messengerContract: {
|
|
362
364
|
message: z.ZodObject<{
|
363
365
|
message: z.ZodOptional<z.ZodString>;
|
364
366
|
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
365
|
-
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
|
367
|
+
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
|
366
368
|
readAt: z.ZodOptional<z.ZodDate>;
|
367
369
|
metadata: z.ZodOptional<z.ZodAny>;
|
368
370
|
platformId: z.ZodOptional<z.ZodString>;
|
@@ -378,18 +380,21 @@ export declare const messengerContract: {
|
|
378
380
|
fileName: z.ZodString;
|
379
381
|
fileSize: z.ZodNumber;
|
380
382
|
fileKey: z.ZodString;
|
383
|
+
originalUrl: z.ZodOptional<z.ZodString>;
|
381
384
|
}, "strip", z.ZodTypeAny, {
|
382
385
|
fileName: string;
|
383
386
|
fileKey: string;
|
384
387
|
bucketName: string;
|
385
388
|
fileSize: number;
|
389
|
+
originalUrl?: string | undefined;
|
386
390
|
}, {
|
387
391
|
fileName: string;
|
388
392
|
fileKey: string;
|
389
393
|
bucketName: string;
|
390
394
|
fileSize: number;
|
395
|
+
originalUrl?: string | undefined;
|
391
396
|
}>>;
|
392
|
-
sender: z.ZodObject<{
|
397
|
+
sender: z.ZodOptional<z.ZodObject<{
|
393
398
|
id: z.ZodString;
|
394
399
|
name: z.ZodString;
|
395
400
|
email: z.ZodString;
|
@@ -407,17 +412,10 @@ export declare const messengerContract: {
|
|
407
412
|
name: string;
|
408
413
|
email: string;
|
409
414
|
phone: string | null;
|
410
|
-
}
|
415
|
+
}>>;
|
411
416
|
}, "strip", z.ZodTypeAny, {
|
412
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
417
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
413
418
|
direction: "incoming" | "outgoing" | "system";
|
414
|
-
sender: {
|
415
|
-
id: string;
|
416
|
-
address: string | null;
|
417
|
-
name: string;
|
418
|
-
email: string;
|
419
|
-
phone: string | null;
|
420
|
-
};
|
421
419
|
message?: string | undefined;
|
422
420
|
readAt?: Date | undefined;
|
423
421
|
metadata?: any;
|
@@ -434,17 +432,18 @@ export declare const messengerContract: {
|
|
434
432
|
fileKey: string;
|
435
433
|
bucketName: string;
|
436
434
|
fileSize: number;
|
435
|
+
originalUrl?: string | undefined;
|
437
436
|
} | undefined;
|
438
|
-
|
439
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
440
|
-
direction: "incoming" | "outgoing" | "system";
|
441
|
-
sender: {
|
437
|
+
sender?: {
|
442
438
|
id: string;
|
443
439
|
address: string | null;
|
444
440
|
name: string;
|
445
441
|
email: string;
|
446
442
|
phone: string | null;
|
447
|
-
};
|
443
|
+
} | undefined;
|
444
|
+
}, {
|
445
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
446
|
+
direction: "incoming" | "outgoing" | "system";
|
448
447
|
message?: string | undefined;
|
449
448
|
readAt?: Date | undefined;
|
450
449
|
metadata?: any;
|
@@ -461,19 +460,20 @@ export declare const messengerContract: {
|
|
461
460
|
fileKey: string;
|
462
461
|
bucketName: string;
|
463
462
|
fileSize: number;
|
463
|
+
originalUrl?: string | undefined;
|
464
464
|
} | undefined;
|
465
|
-
|
466
|
-
}, "strip", z.ZodTypeAny, {
|
467
|
-
message: {
|
468
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
469
|
-
direction: "incoming" | "outgoing" | "system";
|
470
|
-
sender: {
|
465
|
+
sender?: {
|
471
466
|
id: string;
|
472
467
|
address: string | null;
|
473
468
|
name: string;
|
474
469
|
email: string;
|
475
470
|
phone: string | null;
|
476
|
-
};
|
471
|
+
} | undefined;
|
472
|
+
}>;
|
473
|
+
}, "strip", z.ZodTypeAny, {
|
474
|
+
message: {
|
475
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
476
|
+
direction: "incoming" | "outgoing" | "system";
|
477
477
|
message?: string | undefined;
|
478
478
|
readAt?: Date | undefined;
|
479
479
|
metadata?: any;
|
@@ -490,6 +490,14 @@ export declare const messengerContract: {
|
|
490
490
|
fileKey: string;
|
491
491
|
bucketName: string;
|
492
492
|
fileSize: number;
|
493
|
+
originalUrl?: string | undefined;
|
494
|
+
} | undefined;
|
495
|
+
sender?: {
|
496
|
+
id: string;
|
497
|
+
address: string | null;
|
498
|
+
name: string;
|
499
|
+
email: string;
|
500
|
+
phone: string | null;
|
493
501
|
} | undefined;
|
494
502
|
};
|
495
503
|
room: {
|
@@ -559,17 +567,11 @@ export declare const messengerContract: {
|
|
559
567
|
metadata?: any;
|
560
568
|
messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
|
561
569
|
};
|
570
|
+
isBot: boolean | null;
|
562
571
|
}, {
|
563
572
|
message: {
|
564
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
573
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
565
574
|
direction: "incoming" | "outgoing" | "system";
|
566
|
-
sender: {
|
567
|
-
id: string;
|
568
|
-
address: string | null;
|
569
|
-
name: string;
|
570
|
-
email: string;
|
571
|
-
phone: string | null;
|
572
|
-
};
|
573
575
|
message?: string | undefined;
|
574
576
|
readAt?: Date | undefined;
|
575
577
|
metadata?: any;
|
@@ -586,6 +588,14 @@ export declare const messengerContract: {
|
|
586
588
|
fileKey: string;
|
587
589
|
bucketName: string;
|
588
590
|
fileSize: number;
|
591
|
+
originalUrl?: string | undefined;
|
592
|
+
} | undefined;
|
593
|
+
sender?: {
|
594
|
+
id: string;
|
595
|
+
address: string | null;
|
596
|
+
name: string;
|
597
|
+
email: string;
|
598
|
+
phone: string | null;
|
589
599
|
} | undefined;
|
590
600
|
};
|
591
601
|
room: {
|
@@ -655,6 +665,7 @@ export declare const messengerContract: {
|
|
655
665
|
metadata?: any;
|
656
666
|
messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
|
657
667
|
};
|
668
|
+
isBot?: boolean | null | undefined;
|
658
669
|
}>;
|
659
670
|
method: "POST";
|
660
671
|
responses: {
|
@@ -667,7 +678,7 @@ export declare const messengerContract: {
|
|
667
678
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
668
679
|
message: z.ZodString;
|
669
680
|
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
670
|
-
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
|
681
|
+
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
|
671
682
|
readAt: z.ZodDate;
|
672
683
|
metadata: z.ZodAny;
|
673
684
|
platformId: z.ZodString;
|
@@ -692,6 +703,7 @@ export declare const messengerContract: {
|
|
692
703
|
firstResponseAt: z.ZodDate;
|
693
704
|
firstResponseTime: z.ZodNumber;
|
694
705
|
isLatest: z.ZodBoolean;
|
706
|
+
isBotRoom: z.ZodBoolean;
|
695
707
|
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
696
708
|
platformContact: z.ZodObject<{
|
697
709
|
id: z.ZodString;
|
@@ -2067,6 +2079,25 @@ export declare const messengerContract: {
|
|
2067
2079
|
isReloginRequired: z.ZodBoolean;
|
2068
2080
|
connectedUserName: z.ZodString;
|
2069
2081
|
connectedUserId: z.ZodString;
|
2082
|
+
botpressBot: z.ZodNullable<z.ZodObject<{
|
2083
|
+
id: z.ZodString;
|
2084
|
+
name: z.ZodString;
|
2085
|
+
botId: z.ZodString;
|
2086
|
+
integrationId: z.ZodString;
|
2087
|
+
accessToken: z.ZodString;
|
2088
|
+
}, "strip", z.ZodTypeAny, {
|
2089
|
+
id: string;
|
2090
|
+
name: string;
|
2091
|
+
accessToken: string;
|
2092
|
+
botId: string;
|
2093
|
+
integrationId: string;
|
2094
|
+
}, {
|
2095
|
+
id: string;
|
2096
|
+
name: string;
|
2097
|
+
accessToken: string;
|
2098
|
+
botId: string;
|
2099
|
+
integrationId: string;
|
2100
|
+
}>>;
|
2070
2101
|
actor: z.ZodObject<{
|
2071
2102
|
id: z.ZodString;
|
2072
2103
|
createdAt: z.ZodDate;
|
@@ -2335,6 +2366,13 @@ export declare const messengerContract: {
|
|
2335
2366
|
isReloginRequired: boolean;
|
2336
2367
|
connectedUserName: string;
|
2337
2368
|
connectedUserId: string;
|
2369
|
+
botpressBot: {
|
2370
|
+
id: string;
|
2371
|
+
name: string;
|
2372
|
+
accessToken: string;
|
2373
|
+
botId: string;
|
2374
|
+
integrationId: string;
|
2375
|
+
} | null;
|
2338
2376
|
}, {
|
2339
2377
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
|
2340
2378
|
id: string;
|
@@ -2399,6 +2437,13 @@ export declare const messengerContract: {
|
|
2399
2437
|
isReloginRequired: boolean;
|
2400
2438
|
connectedUserName: string;
|
2401
2439
|
connectedUserId: string;
|
2440
|
+
botpressBot: {
|
2441
|
+
id: string;
|
2442
|
+
name: string;
|
2443
|
+
accessToken: string;
|
2444
|
+
botId: string;
|
2445
|
+
integrationId: string;
|
2446
|
+
} | null;
|
2402
2447
|
}>;
|
2403
2448
|
cxlog: z.ZodObject<{
|
2404
2449
|
id: z.ZodString;
|
@@ -2910,6 +2955,13 @@ export declare const messengerContract: {
|
|
2910
2955
|
isReloginRequired: boolean;
|
2911
2956
|
connectedUserName: string;
|
2912
2957
|
connectedUserId: string;
|
2958
|
+
botpressBot: {
|
2959
|
+
id: string;
|
2960
|
+
name: string;
|
2961
|
+
accessToken: string;
|
2962
|
+
botId: string;
|
2963
|
+
integrationId: string;
|
2964
|
+
} | null;
|
2913
2965
|
};
|
2914
2966
|
direction: "incoming" | "outgoing" | "system";
|
2915
2967
|
status: number;
|
@@ -3124,6 +3176,7 @@ export declare const messengerContract: {
|
|
3124
3176
|
};
|
3125
3177
|
closedAt: Date;
|
3126
3178
|
lastMessageAt: Date | null;
|
3179
|
+
isBotRoom: boolean;
|
3127
3180
|
cxlog: {
|
3128
3181
|
id: string;
|
3129
3182
|
channel: string | null;
|
@@ -3268,6 +3321,13 @@ export declare const messengerContract: {
|
|
3268
3321
|
isReloginRequired: boolean;
|
3269
3322
|
connectedUserName: string;
|
3270
3323
|
connectedUserId: string;
|
3324
|
+
botpressBot: {
|
3325
|
+
id: string;
|
3326
|
+
name: string;
|
3327
|
+
accessToken: string;
|
3328
|
+
botId: string;
|
3329
|
+
integrationId: string;
|
3330
|
+
} | null;
|
3271
3331
|
};
|
3272
3332
|
direction: "incoming" | "outgoing" | "system";
|
3273
3333
|
status: number;
|
@@ -3482,6 +3542,7 @@ export declare const messengerContract: {
|
|
3482
3542
|
};
|
3483
3543
|
closedAt: Date;
|
3484
3544
|
lastMessageAt: Date | null;
|
3545
|
+
isBotRoom: boolean;
|
3485
3546
|
cxlog: {
|
3486
3547
|
id: string;
|
3487
3548
|
channel: string | null;
|
@@ -3602,7 +3663,7 @@ export declare const messengerContract: {
|
|
3602
3663
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
3603
3664
|
message: z.ZodString;
|
3604
3665
|
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
3605
|
-
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
|
3666
|
+
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
|
3606
3667
|
readAt: z.ZodDate;
|
3607
3668
|
metadata: z.ZodAny;
|
3608
3669
|
platformId: z.ZodString;
|
@@ -4260,7 +4321,7 @@ export declare const messengerContract: {
|
|
4260
4321
|
};
|
4261
4322
|
}>;
|
4262
4323
|
}, "strip", z.ZodTypeAny, {
|
4263
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
4324
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
4264
4325
|
message: string;
|
4265
4326
|
id: string;
|
4266
4327
|
url: string;
|
@@ -4312,7 +4373,6 @@ export declare const messengerContract: {
|
|
4312
4373
|
telephonySignature: string | null;
|
4313
4374
|
};
|
4314
4375
|
};
|
4315
|
-
platformId: string;
|
4316
4376
|
upload: {
|
4317
4377
|
id: string;
|
4318
4378
|
status: string | null;
|
@@ -4369,6 +4429,7 @@ export declare const messengerContract: {
|
|
4369
4429
|
telephonySignature: string | null;
|
4370
4430
|
};
|
4371
4431
|
};
|
4432
|
+
platformId: string;
|
4372
4433
|
readAt: Date;
|
4373
4434
|
platformMessageId: string;
|
4374
4435
|
replyPlatformMessageId: string;
|
@@ -4422,7 +4483,7 @@ export declare const messengerContract: {
|
|
4422
4483
|
metadata?: any;
|
4423
4484
|
template?: any;
|
4424
4485
|
}, {
|
4425
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
4486
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
4426
4487
|
message: string;
|
4427
4488
|
id: string;
|
4428
4489
|
url: string;
|
@@ -4474,7 +4535,6 @@ export declare const messengerContract: {
|
|
4474
4535
|
telephonySignature: string | null;
|
4475
4536
|
};
|
4476
4537
|
};
|
4477
|
-
platformId: string;
|
4478
4538
|
upload: {
|
4479
4539
|
id: string;
|
4480
4540
|
status: string | null;
|
@@ -4531,6 +4591,7 @@ export declare const messengerContract: {
|
|
4531
4591
|
telephonySignature: string | null;
|
4532
4592
|
};
|
4533
4593
|
};
|
4594
|
+
platformId: string;
|
4534
4595
|
readAt: Date;
|
4535
4596
|
platformMessageId: string;
|
4536
4597
|
replyPlatformMessageId: string;
|
@@ -5222,7 +5283,7 @@ export declare const messengerContract: {
|
|
5222
5283
|
isActive: boolean;
|
5223
5284
|
}>;
|
5224
5285
|
}, "strip", z.ZodTypeAny, {
|
5225
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
5286
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
5226
5287
|
message: string;
|
5227
5288
|
id: string;
|
5228
5289
|
url: string;
|
@@ -5274,7 +5335,6 @@ export declare const messengerContract: {
|
|
5274
5335
|
telephonySignature: string | null;
|
5275
5336
|
};
|
5276
5337
|
};
|
5277
|
-
platformId: string;
|
5278
5338
|
upload: {
|
5279
5339
|
id: string;
|
5280
5340
|
status: string | null;
|
@@ -5331,6 +5391,7 @@ export declare const messengerContract: {
|
|
5331
5391
|
telephonySignature: string | null;
|
5332
5392
|
};
|
5333
5393
|
};
|
5394
|
+
platformId: string;
|
5334
5395
|
room: {
|
5335
5396
|
id: string;
|
5336
5397
|
channel: {
|
@@ -5397,6 +5458,13 @@ export declare const messengerContract: {
|
|
5397
5458
|
isReloginRequired: boolean;
|
5398
5459
|
connectedUserName: string;
|
5399
5460
|
connectedUserId: string;
|
5461
|
+
botpressBot: {
|
5462
|
+
id: string;
|
5463
|
+
name: string;
|
5464
|
+
accessToken: string;
|
5465
|
+
botId: string;
|
5466
|
+
integrationId: string;
|
5467
|
+
} | null;
|
5400
5468
|
};
|
5401
5469
|
direction: "incoming" | "outgoing" | "system";
|
5402
5470
|
status: number;
|
@@ -5611,6 +5679,7 @@ export declare const messengerContract: {
|
|
5611
5679
|
};
|
5612
5680
|
closedAt: Date;
|
5613
5681
|
lastMessageAt: Date | null;
|
5682
|
+
isBotRoom: boolean;
|
5614
5683
|
cxlog: {
|
5615
5684
|
id: string;
|
5616
5685
|
channel: string | null;
|
@@ -5706,7 +5775,7 @@ export declare const messengerContract: {
|
|
5706
5775
|
previewUrl: string;
|
5707
5776
|
imageSetId: string;
|
5708
5777
|
repliedMessage: {
|
5709
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
5778
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
5710
5779
|
message: string;
|
5711
5780
|
id: string;
|
5712
5781
|
url: string;
|
@@ -5758,7 +5827,6 @@ export declare const messengerContract: {
|
|
5758
5827
|
telephonySignature: string | null;
|
5759
5828
|
};
|
5760
5829
|
};
|
5761
|
-
platformId: string;
|
5762
5830
|
upload: {
|
5763
5831
|
id: string;
|
5764
5832
|
status: string | null;
|
@@ -5815,6 +5883,7 @@ export declare const messengerContract: {
|
|
5815
5883
|
telephonySignature: string | null;
|
5816
5884
|
};
|
5817
5885
|
};
|
5886
|
+
platformId: string;
|
5818
5887
|
readAt: Date;
|
5819
5888
|
platformMessageId: string;
|
5820
5889
|
replyPlatformMessageId: string;
|
@@ -5915,7 +5984,7 @@ export declare const messengerContract: {
|
|
5915
5984
|
metadata?: any;
|
5916
5985
|
template?: any;
|
5917
5986
|
}, {
|
5918
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
5987
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
5919
5988
|
message: string;
|
5920
5989
|
id: string;
|
5921
5990
|
url: string;
|
@@ -5967,7 +6036,6 @@ export declare const messengerContract: {
|
|
5967
6036
|
telephonySignature: string | null;
|
5968
6037
|
};
|
5969
6038
|
};
|
5970
|
-
platformId: string;
|
5971
6039
|
upload: {
|
5972
6040
|
id: string;
|
5973
6041
|
status: string | null;
|
@@ -6024,6 +6092,7 @@ export declare const messengerContract: {
|
|
6024
6092
|
telephonySignature: string | null;
|
6025
6093
|
};
|
6026
6094
|
};
|
6095
|
+
platformId: string;
|
6027
6096
|
room: {
|
6028
6097
|
id: string;
|
6029
6098
|
channel: {
|
@@ -6090,6 +6159,13 @@ export declare const messengerContract: {
|
|
6090
6159
|
isReloginRequired: boolean;
|
6091
6160
|
connectedUserName: string;
|
6092
6161
|
connectedUserId: string;
|
6162
|
+
botpressBot: {
|
6163
|
+
id: string;
|
6164
|
+
name: string;
|
6165
|
+
accessToken: string;
|
6166
|
+
botId: string;
|
6167
|
+
integrationId: string;
|
6168
|
+
} | null;
|
6093
6169
|
};
|
6094
6170
|
direction: "incoming" | "outgoing" | "system";
|
6095
6171
|
status: number;
|
@@ -6304,6 +6380,7 @@ export declare const messengerContract: {
|
|
6304
6380
|
};
|
6305
6381
|
closedAt: Date;
|
6306
6382
|
lastMessageAt: Date | null;
|
6383
|
+
isBotRoom: boolean;
|
6307
6384
|
cxlog: {
|
6308
6385
|
id: string;
|
6309
6386
|
channel: string | null;
|
@@ -6399,7 +6476,7 @@ export declare const messengerContract: {
|
|
6399
6476
|
previewUrl: string;
|
6400
6477
|
imageSetId: string;
|
6401
6478
|
repliedMessage: {
|
6402
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
6479
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
6403
6480
|
message: string;
|
6404
6481
|
id: string;
|
6405
6482
|
url: string;
|
@@ -6451,7 +6528,6 @@ export declare const messengerContract: {
|
|
6451
6528
|
telephonySignature: string | null;
|
6452
6529
|
};
|
6453
6530
|
};
|
6454
|
-
platformId: string;
|
6455
6531
|
upload: {
|
6456
6532
|
id: string;
|
6457
6533
|
status: string | null;
|
@@ -6508,6 +6584,7 @@ export declare const messengerContract: {
|
|
6508
6584
|
telephonySignature: string | null;
|
6509
6585
|
};
|
6510
6586
|
};
|
6587
|
+
platformId: string;
|
6511
6588
|
readAt: Date;
|
6512
6589
|
platformMessageId: string;
|
6513
6590
|
replyPlatformMessageId: string;
|
@@ -6610,7 +6687,7 @@ export declare const messengerContract: {
|
|
6610
6687
|
}>;
|
6611
6688
|
}, "strip", z.ZodTypeAny, {
|
6612
6689
|
data: {
|
6613
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
6690
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
6614
6691
|
message: string;
|
6615
6692
|
id: string;
|
6616
6693
|
url: string;
|
@@ -6662,7 +6739,6 @@ export declare const messengerContract: {
|
|
6662
6739
|
telephonySignature: string | null;
|
6663
6740
|
};
|
6664
6741
|
};
|
6665
|
-
platformId: string;
|
6666
6742
|
upload: {
|
6667
6743
|
id: string;
|
6668
6744
|
status: string | null;
|
@@ -6719,6 +6795,7 @@ export declare const messengerContract: {
|
|
6719
6795
|
telephonySignature: string | null;
|
6720
6796
|
};
|
6721
6797
|
};
|
6798
|
+
platformId: string;
|
6722
6799
|
room: {
|
6723
6800
|
id: string;
|
6724
6801
|
channel: {
|
@@ -6785,6 +6862,13 @@ export declare const messengerContract: {
|
|
6785
6862
|
isReloginRequired: boolean;
|
6786
6863
|
connectedUserName: string;
|
6787
6864
|
connectedUserId: string;
|
6865
|
+
botpressBot: {
|
6866
|
+
id: string;
|
6867
|
+
name: string;
|
6868
|
+
accessToken: string;
|
6869
|
+
botId: string;
|
6870
|
+
integrationId: string;
|
6871
|
+
} | null;
|
6788
6872
|
};
|
6789
6873
|
direction: "incoming" | "outgoing" | "system";
|
6790
6874
|
status: number;
|
@@ -6999,6 +7083,7 @@ export declare const messengerContract: {
|
|
6999
7083
|
};
|
7000
7084
|
closedAt: Date;
|
7001
7085
|
lastMessageAt: Date | null;
|
7086
|
+
isBotRoom: boolean;
|
7002
7087
|
cxlog: {
|
7003
7088
|
id: string;
|
7004
7089
|
channel: string | null;
|
@@ -7094,7 +7179,7 @@ export declare const messengerContract: {
|
|
7094
7179
|
previewUrl: string;
|
7095
7180
|
imageSetId: string;
|
7096
7181
|
repliedMessage: {
|
7097
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
7182
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
7098
7183
|
message: string;
|
7099
7184
|
id: string;
|
7100
7185
|
url: string;
|
@@ -7146,7 +7231,6 @@ export declare const messengerContract: {
|
|
7146
7231
|
telephonySignature: string | null;
|
7147
7232
|
};
|
7148
7233
|
};
|
7149
|
-
platformId: string;
|
7150
7234
|
upload: {
|
7151
7235
|
id: string;
|
7152
7236
|
status: string | null;
|
@@ -7203,6 +7287,7 @@ export declare const messengerContract: {
|
|
7203
7287
|
telephonySignature: string | null;
|
7204
7288
|
};
|
7205
7289
|
};
|
7290
|
+
platformId: string;
|
7206
7291
|
readAt: Date;
|
7207
7292
|
platformMessageId: string;
|
7208
7293
|
replyPlatformMessageId: string;
|
@@ -7306,7 +7391,7 @@ export declare const messengerContract: {
|
|
7306
7391
|
requestId: string;
|
7307
7392
|
}, {
|
7308
7393
|
data: {
|
7309
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
7394
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
7310
7395
|
message: string;
|
7311
7396
|
id: string;
|
7312
7397
|
url: string;
|
@@ -7358,7 +7443,6 @@ export declare const messengerContract: {
|
|
7358
7443
|
telephonySignature: string | null;
|
7359
7444
|
};
|
7360
7445
|
};
|
7361
|
-
platformId: string;
|
7362
7446
|
upload: {
|
7363
7447
|
id: string;
|
7364
7448
|
status: string | null;
|
@@ -7415,6 +7499,7 @@ export declare const messengerContract: {
|
|
7415
7499
|
telephonySignature: string | null;
|
7416
7500
|
};
|
7417
7501
|
};
|
7502
|
+
platformId: string;
|
7418
7503
|
room: {
|
7419
7504
|
id: string;
|
7420
7505
|
channel: {
|
@@ -7481,6 +7566,13 @@ export declare const messengerContract: {
|
|
7481
7566
|
isReloginRequired: boolean;
|
7482
7567
|
connectedUserName: string;
|
7483
7568
|
connectedUserId: string;
|
7569
|
+
botpressBot: {
|
7570
|
+
id: string;
|
7571
|
+
name: string;
|
7572
|
+
accessToken: string;
|
7573
|
+
botId: string;
|
7574
|
+
integrationId: string;
|
7575
|
+
} | null;
|
7484
7576
|
};
|
7485
7577
|
direction: "incoming" | "outgoing" | "system";
|
7486
7578
|
status: number;
|
@@ -7695,6 +7787,7 @@ export declare const messengerContract: {
|
|
7695
7787
|
};
|
7696
7788
|
closedAt: Date;
|
7697
7789
|
lastMessageAt: Date | null;
|
7790
|
+
isBotRoom: boolean;
|
7698
7791
|
cxlog: {
|
7699
7792
|
id: string;
|
7700
7793
|
channel: string | null;
|
@@ -7790,7 +7883,7 @@ export declare const messengerContract: {
|
|
7790
7883
|
previewUrl: string;
|
7791
7884
|
imageSetId: string;
|
7792
7885
|
repliedMessage: {
|
7793
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
7886
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
7794
7887
|
message: string;
|
7795
7888
|
id: string;
|
7796
7889
|
url: string;
|
@@ -7842,7 +7935,6 @@ export declare const messengerContract: {
|
|
7842
7935
|
telephonySignature: string | null;
|
7843
7936
|
};
|
7844
7937
|
};
|
7845
|
-
platformId: string;
|
7846
7938
|
upload: {
|
7847
7939
|
id: string;
|
7848
7940
|
status: string | null;
|
@@ -7899,6 +7991,7 @@ export declare const messengerContract: {
|
|
7899
7991
|
telephonySignature: string | null;
|
7900
7992
|
};
|
7901
7993
|
};
|
7994
|
+
platformId: string;
|
7902
7995
|
readAt: Date;
|
7903
7996
|
platformMessageId: string;
|
7904
7997
|
replyPlatformMessageId: string;
|
@@ -9335,5 +9428,38 @@ export declare const messengerContract: {
|
|
9335
9428
|
};
|
9336
9429
|
path: "/pages";
|
9337
9430
|
};
|
9431
|
+
setBotPersistentMenu: {
|
9432
|
+
body: z.ZodObject<{
|
9433
|
+
psid: z.ZodString;
|
9434
|
+
pageAccessToken: z.ZodString;
|
9435
|
+
}, "strip", z.ZodTypeAny, {
|
9436
|
+
psid: string;
|
9437
|
+
pageAccessToken: string;
|
9438
|
+
}, {
|
9439
|
+
psid: string;
|
9440
|
+
pageAccessToken: string;
|
9441
|
+
}>;
|
9442
|
+
method: "POST";
|
9443
|
+
responses: {
|
9444
|
+
200: z.ZodObject<{
|
9445
|
+
requestId: z.ZodString;
|
9446
|
+
}, "strip", z.ZodTypeAny, {
|
9447
|
+
requestId: string;
|
9448
|
+
}, {
|
9449
|
+
requestId: string;
|
9450
|
+
}>;
|
9451
|
+
500: z.ZodObject<{
|
9452
|
+
message: z.ZodString;
|
9453
|
+
error: z.ZodAny;
|
9454
|
+
}, "strip", z.ZodTypeAny, {
|
9455
|
+
message: string;
|
9456
|
+
error?: any;
|
9457
|
+
}, {
|
9458
|
+
message: string;
|
9459
|
+
error?: any;
|
9460
|
+
}>;
|
9461
|
+
};
|
9462
|
+
path: "/set-bot-persistent-menu";
|
9463
|
+
};
|
9338
9464
|
};
|
9339
9465
|
//# sourceMappingURL=index.d.ts.map
|