@kl1/contracts 1.1.54-uat → 1.1.56-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 +3437 -3445
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3429 -3435
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +70436 -53844
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +60 -60
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +30096 -136651
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/facebook-feed/index.d.ts +60 -60
- package/dist/src/facebook-feed/validation.d.ts +6 -6
- package/dist/src/instagram/index.d.ts +30 -30
- package/dist/src/line/index.d.ts +30 -30
- package/dist/src/mail/mail-contract.d.ts +3513 -3513
- package/dist/src/mail/message-contract.d.ts +552 -552
- package/dist/src/mail/room-contract.d.ts +2615 -2615
- package/dist/src/mail/schemas/message-validation.schema.d.ts +2 -2
- package/dist/src/mail/schemas/message.schema.d.ts +70 -70
- package/dist/src/mail/schemas/room-validation.schema.d.ts +862 -862
- package/dist/src/mail/schemas/room.schema.d.ts +638 -638
- package/dist/src/messenger/index.d.ts +30 -30
- package/dist/src/viber/index.d.ts +30 -30
- package/dist/src/webchat/index.d.ts +30 -30
- package/package.json +1 -1
- package/dist/src/contract2.d.ts +0 -2
- package/dist/src/contract2.d.ts.map +0 -1
- package/dist/src/presence-status/index.d.ts +0 -556
- package/dist/src/presence-status/index.d.ts.map +0 -1
- package/dist/src/presence-status/schema.d.ts +0 -31
- package/dist/src/presence-status/schema.d.ts.map +0 -1
- package/dist/src/presence-status/validation.d.ts +0 -28
- package/dist/src/presence-status/validation.d.ts.map +0 -1
@@ -407,7 +407,7 @@ export declare const messengerContract: {
|
|
407
407
|
fileSize: number;
|
408
408
|
originalUrl?: string | undefined;
|
409
409
|
}>>;
|
410
|
-
sender: z.
|
410
|
+
sender: z.ZodObject<{
|
411
411
|
id: z.ZodString;
|
412
412
|
name: z.ZodString;
|
413
413
|
email: z.ZodString;
|
@@ -425,12 +425,19 @@ export declare const messengerContract: {
|
|
425
425
|
name: string;
|
426
426
|
email: string;
|
427
427
|
phone: string | null;
|
428
|
-
}
|
428
|
+
}>;
|
429
429
|
parentMessageId: z.ZodOptional<z.ZodString>;
|
430
430
|
feedPostId: z.ZodOptional<z.ZodString>;
|
431
431
|
}, "strip", z.ZodTypeAny, {
|
432
432
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
433
433
|
direction: "incoming" | "outgoing" | "system";
|
434
|
+
sender: {
|
435
|
+
id: string;
|
436
|
+
address: string | null;
|
437
|
+
name: string;
|
438
|
+
email: string;
|
439
|
+
phone: string | null;
|
440
|
+
};
|
434
441
|
id?: string | undefined;
|
435
442
|
message?: string | undefined;
|
436
443
|
readAt?: string | Date | null | undefined;
|
@@ -450,18 +457,18 @@ export declare const messengerContract: {
|
|
450
457
|
fileSize: number;
|
451
458
|
originalUrl?: string | undefined;
|
452
459
|
} | undefined;
|
453
|
-
sender?: {
|
454
|
-
id: string;
|
455
|
-
address: string | null;
|
456
|
-
name: string;
|
457
|
-
email: string;
|
458
|
-
phone: string | null;
|
459
|
-
} | undefined;
|
460
460
|
parentMessageId?: string | undefined;
|
461
461
|
feedPostId?: string | undefined;
|
462
462
|
}, {
|
463
463
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
464
464
|
direction: "incoming" | "outgoing" | "system";
|
465
|
+
sender: {
|
466
|
+
id: string;
|
467
|
+
address: string | null;
|
468
|
+
name: string;
|
469
|
+
email: string;
|
470
|
+
phone: string | null;
|
471
|
+
};
|
465
472
|
id?: string | undefined;
|
466
473
|
message?: string | undefined;
|
467
474
|
readAt?: string | Date | null | undefined;
|
@@ -481,13 +488,6 @@ export declare const messengerContract: {
|
|
481
488
|
fileSize: number;
|
482
489
|
originalUrl?: string | undefined;
|
483
490
|
} | undefined;
|
484
|
-
sender?: {
|
485
|
-
id: string;
|
486
|
-
address: string | null;
|
487
|
-
name: string;
|
488
|
-
email: string;
|
489
|
-
phone: string | null;
|
490
|
-
} | undefined;
|
491
491
|
parentMessageId?: string | undefined;
|
492
492
|
feedPostId?: string | undefined;
|
493
493
|
}>;
|
@@ -495,6 +495,13 @@ export declare const messengerContract: {
|
|
495
495
|
message: {
|
496
496
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
497
497
|
direction: "incoming" | "outgoing" | "system";
|
498
|
+
sender: {
|
499
|
+
id: string;
|
500
|
+
address: string | null;
|
501
|
+
name: string;
|
502
|
+
email: string;
|
503
|
+
phone: string | null;
|
504
|
+
};
|
498
505
|
id?: string | undefined;
|
499
506
|
message?: string | undefined;
|
500
507
|
readAt?: string | Date | null | undefined;
|
@@ -514,13 +521,6 @@ export declare const messengerContract: {
|
|
514
521
|
fileSize: number;
|
515
522
|
originalUrl?: string | undefined;
|
516
523
|
} | undefined;
|
517
|
-
sender?: {
|
518
|
-
id: string;
|
519
|
-
address: string | null;
|
520
|
-
name: string;
|
521
|
-
email: string;
|
522
|
-
phone: string | null;
|
523
|
-
} | undefined;
|
524
524
|
parentMessageId?: string | undefined;
|
525
525
|
feedPostId?: string | undefined;
|
526
526
|
};
|
@@ -598,6 +598,13 @@ export declare const messengerContract: {
|
|
598
598
|
message: {
|
599
599
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
600
600
|
direction: "incoming" | "outgoing" | "system";
|
601
|
+
sender: {
|
602
|
+
id: string;
|
603
|
+
address: string | null;
|
604
|
+
name: string;
|
605
|
+
email: string;
|
606
|
+
phone: string | null;
|
607
|
+
};
|
601
608
|
id?: string | undefined;
|
602
609
|
message?: string | undefined;
|
603
610
|
readAt?: string | Date | null | undefined;
|
@@ -617,13 +624,6 @@ export declare const messengerContract: {
|
|
617
624
|
fileSize: number;
|
618
625
|
originalUrl?: string | undefined;
|
619
626
|
} | undefined;
|
620
|
-
sender?: {
|
621
|
-
id: string;
|
622
|
-
address: string | null;
|
623
|
-
name: string;
|
624
|
-
email: string;
|
625
|
-
phone: string | null;
|
626
|
-
} | undefined;
|
627
627
|
parentMessageId?: string | undefined;
|
628
628
|
feedPostId?: string | undefined;
|
629
629
|
};
|
@@ -1608,7 +1608,7 @@ export declare const viberContract: {
|
|
1608
1608
|
fileSize: number;
|
1609
1609
|
originalUrl?: string | undefined;
|
1610
1610
|
}>>;
|
1611
|
-
sender: z.
|
1611
|
+
sender: z.ZodObject<{
|
1612
1612
|
id: z.ZodString;
|
1613
1613
|
name: z.ZodString;
|
1614
1614
|
email: z.ZodString;
|
@@ -1626,12 +1626,19 @@ export declare const viberContract: {
|
|
1626
1626
|
name: string;
|
1627
1627
|
email: string;
|
1628
1628
|
phone: string | null;
|
1629
|
-
}
|
1629
|
+
}>;
|
1630
1630
|
parentMessageId: z.ZodOptional<z.ZodString>;
|
1631
1631
|
feedPostId: z.ZodOptional<z.ZodString>;
|
1632
1632
|
}, "strip", z.ZodTypeAny, {
|
1633
1633
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
1634
1634
|
direction: "incoming" | "outgoing" | "system";
|
1635
|
+
sender: {
|
1636
|
+
id: string;
|
1637
|
+
address: string | null;
|
1638
|
+
name: string;
|
1639
|
+
email: string;
|
1640
|
+
phone: string | null;
|
1641
|
+
};
|
1635
1642
|
id?: string | undefined;
|
1636
1643
|
message?: string | undefined;
|
1637
1644
|
readAt?: string | Date | null | undefined;
|
@@ -1651,18 +1658,18 @@ export declare const viberContract: {
|
|
1651
1658
|
fileSize: number;
|
1652
1659
|
originalUrl?: string | undefined;
|
1653
1660
|
} | undefined;
|
1654
|
-
sender?: {
|
1655
|
-
id: string;
|
1656
|
-
address: string | null;
|
1657
|
-
name: string;
|
1658
|
-
email: string;
|
1659
|
-
phone: string | null;
|
1660
|
-
} | undefined;
|
1661
1661
|
parentMessageId?: string | undefined;
|
1662
1662
|
feedPostId?: string | undefined;
|
1663
1663
|
}, {
|
1664
1664
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
1665
1665
|
direction: "incoming" | "outgoing" | "system";
|
1666
|
+
sender: {
|
1667
|
+
id: string;
|
1668
|
+
address: string | null;
|
1669
|
+
name: string;
|
1670
|
+
email: string;
|
1671
|
+
phone: string | null;
|
1672
|
+
};
|
1666
1673
|
id?: string | undefined;
|
1667
1674
|
message?: string | undefined;
|
1668
1675
|
readAt?: string | Date | null | undefined;
|
@@ -1682,13 +1689,6 @@ export declare const viberContract: {
|
|
1682
1689
|
fileSize: number;
|
1683
1690
|
originalUrl?: string | undefined;
|
1684
1691
|
} | undefined;
|
1685
|
-
sender?: {
|
1686
|
-
id: string;
|
1687
|
-
address: string | null;
|
1688
|
-
name: string;
|
1689
|
-
email: string;
|
1690
|
-
phone: string | null;
|
1691
|
-
} | undefined;
|
1692
1692
|
parentMessageId?: string | undefined;
|
1693
1693
|
feedPostId?: string | undefined;
|
1694
1694
|
}>;
|
@@ -1696,6 +1696,13 @@ export declare const viberContract: {
|
|
1696
1696
|
message: {
|
1697
1697
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
1698
1698
|
direction: "incoming" | "outgoing" | "system";
|
1699
|
+
sender: {
|
1700
|
+
id: string;
|
1701
|
+
address: string | null;
|
1702
|
+
name: string;
|
1703
|
+
email: string;
|
1704
|
+
phone: string | null;
|
1705
|
+
};
|
1699
1706
|
id?: string | undefined;
|
1700
1707
|
message?: string | undefined;
|
1701
1708
|
readAt?: string | Date | null | undefined;
|
@@ -1715,13 +1722,6 @@ export declare const viberContract: {
|
|
1715
1722
|
fileSize: number;
|
1716
1723
|
originalUrl?: string | undefined;
|
1717
1724
|
} | undefined;
|
1718
|
-
sender?: {
|
1719
|
-
id: string;
|
1720
|
-
address: string | null;
|
1721
|
-
name: string;
|
1722
|
-
email: string;
|
1723
|
-
phone: string | null;
|
1724
|
-
} | undefined;
|
1725
1725
|
parentMessageId?: string | undefined;
|
1726
1726
|
feedPostId?: string | undefined;
|
1727
1727
|
};
|
@@ -1799,6 +1799,13 @@ export declare const viberContract: {
|
|
1799
1799
|
message: {
|
1800
1800
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
1801
1801
|
direction: "incoming" | "outgoing" | "system";
|
1802
|
+
sender: {
|
1803
|
+
id: string;
|
1804
|
+
address: string | null;
|
1805
|
+
name: string;
|
1806
|
+
email: string;
|
1807
|
+
phone: string | null;
|
1808
|
+
};
|
1802
1809
|
id?: string | undefined;
|
1803
1810
|
message?: string | undefined;
|
1804
1811
|
readAt?: string | Date | null | undefined;
|
@@ -1818,13 +1825,6 @@ export declare const viberContract: {
|
|
1818
1825
|
fileSize: number;
|
1819
1826
|
originalUrl?: string | undefined;
|
1820
1827
|
} | undefined;
|
1821
|
-
sender?: {
|
1822
|
-
id: string;
|
1823
|
-
address: string | null;
|
1824
|
-
name: string;
|
1825
|
-
email: string;
|
1826
|
-
phone: string | null;
|
1827
|
-
} | undefined;
|
1828
1828
|
parentMessageId?: string | undefined;
|
1829
1829
|
feedPostId?: string | undefined;
|
1830
1830
|
};
|
@@ -400,7 +400,7 @@ export declare const platformWebchatContract: {
|
|
400
400
|
fileSize: number;
|
401
401
|
originalUrl?: string | undefined;
|
402
402
|
}>>;
|
403
|
-
sender: z.
|
403
|
+
sender: z.ZodObject<{
|
404
404
|
id: z.ZodString;
|
405
405
|
name: z.ZodString;
|
406
406
|
email: z.ZodString;
|
@@ -418,12 +418,19 @@ export declare const platformWebchatContract: {
|
|
418
418
|
name: string;
|
419
419
|
email: string;
|
420
420
|
phone: string | null;
|
421
|
-
}
|
421
|
+
}>;
|
422
422
|
parentMessageId: z.ZodOptional<z.ZodString>;
|
423
423
|
feedPostId: z.ZodOptional<z.ZodString>;
|
424
424
|
}, "strip", z.ZodTypeAny, {
|
425
425
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
426
426
|
direction: "incoming" | "outgoing" | "system";
|
427
|
+
sender: {
|
428
|
+
id: string;
|
429
|
+
address: string | null;
|
430
|
+
name: string;
|
431
|
+
email: string;
|
432
|
+
phone: string | null;
|
433
|
+
};
|
427
434
|
id?: string | undefined;
|
428
435
|
message?: string | undefined;
|
429
436
|
readAt?: string | Date | null | undefined;
|
@@ -443,18 +450,18 @@ export declare const platformWebchatContract: {
|
|
443
450
|
fileSize: number;
|
444
451
|
originalUrl?: string | undefined;
|
445
452
|
} | undefined;
|
446
|
-
sender?: {
|
447
|
-
id: string;
|
448
|
-
address: string | null;
|
449
|
-
name: string;
|
450
|
-
email: string;
|
451
|
-
phone: string | null;
|
452
|
-
} | undefined;
|
453
453
|
parentMessageId?: string | undefined;
|
454
454
|
feedPostId?: string | undefined;
|
455
455
|
}, {
|
456
456
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
457
457
|
direction: "incoming" | "outgoing" | "system";
|
458
|
+
sender: {
|
459
|
+
id: string;
|
460
|
+
address: string | null;
|
461
|
+
name: string;
|
462
|
+
email: string;
|
463
|
+
phone: string | null;
|
464
|
+
};
|
458
465
|
id?: string | undefined;
|
459
466
|
message?: string | undefined;
|
460
467
|
readAt?: string | Date | null | undefined;
|
@@ -474,13 +481,6 @@ export declare const platformWebchatContract: {
|
|
474
481
|
fileSize: number;
|
475
482
|
originalUrl?: string | undefined;
|
476
483
|
} | undefined;
|
477
|
-
sender?: {
|
478
|
-
id: string;
|
479
|
-
address: string | null;
|
480
|
-
name: string;
|
481
|
-
email: string;
|
482
|
-
phone: string | null;
|
483
|
-
} | undefined;
|
484
484
|
parentMessageId?: string | undefined;
|
485
485
|
feedPostId?: string | undefined;
|
486
486
|
}>;
|
@@ -488,6 +488,13 @@ export declare const platformWebchatContract: {
|
|
488
488
|
message: {
|
489
489
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
490
490
|
direction: "incoming" | "outgoing" | "system";
|
491
|
+
sender: {
|
492
|
+
id: string;
|
493
|
+
address: string | null;
|
494
|
+
name: string;
|
495
|
+
email: string;
|
496
|
+
phone: string | null;
|
497
|
+
};
|
491
498
|
id?: string | undefined;
|
492
499
|
message?: string | undefined;
|
493
500
|
readAt?: string | Date | null | undefined;
|
@@ -507,13 +514,6 @@ export declare const platformWebchatContract: {
|
|
507
514
|
fileSize: number;
|
508
515
|
originalUrl?: string | undefined;
|
509
516
|
} | undefined;
|
510
|
-
sender?: {
|
511
|
-
id: string;
|
512
|
-
address: string | null;
|
513
|
-
name: string;
|
514
|
-
email: string;
|
515
|
-
phone: string | null;
|
516
|
-
} | undefined;
|
517
517
|
parentMessageId?: string | undefined;
|
518
518
|
feedPostId?: string | undefined;
|
519
519
|
};
|
@@ -591,6 +591,13 @@ export declare const platformWebchatContract: {
|
|
591
591
|
message: {
|
592
592
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
593
593
|
direction: "incoming" | "outgoing" | "system";
|
594
|
+
sender: {
|
595
|
+
id: string;
|
596
|
+
address: string | null;
|
597
|
+
name: string;
|
598
|
+
email: string;
|
599
|
+
phone: string | null;
|
600
|
+
};
|
594
601
|
id?: string | undefined;
|
595
602
|
message?: string | undefined;
|
596
603
|
readAt?: string | Date | null | undefined;
|
@@ -610,13 +617,6 @@ export declare const platformWebchatContract: {
|
|
610
617
|
fileSize: number;
|
611
618
|
originalUrl?: string | undefined;
|
612
619
|
} | undefined;
|
613
|
-
sender?: {
|
614
|
-
id: string;
|
615
|
-
address: string | null;
|
616
|
-
name: string;
|
617
|
-
email: string;
|
618
|
-
phone: string | null;
|
619
|
-
} | undefined;
|
620
620
|
parentMessageId?: string | undefined;
|
621
621
|
feedPostId?: string | undefined;
|
622
622
|
};
|
package/package.json
CHANGED
package/dist/src/contract2.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"contract2.d.ts","sourceRoot":"","sources":["../../src/contract2.ts"],"names":[],"mappings":""}
|