@open-wa/schema 5.6.7 → 5.10.0
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/calling-media--BLrFrPc.cjs.map +1 -1
- package/dist/calling-media-BNTYvogE.mjs.map +1 -1
- package/dist/{calling-media-CeGgSzhw.d.cts → calling-media-TZ9L95OH.d.cts} +2 -1
- package/dist/{calling-media-CeGgSzhw.d.cts.map → calling-media-TZ9L95OH.d.cts.map} +1 -1
- package/dist/{calling-media-CeGgSzhw.d.mts → calling-media-TZ9L95OH.d.mts} +2 -1
- package/dist/{calling-media-CeGgSzhw.d.mts.map → calling-media-TZ9L95OH.d.mts.map} +1 -1
- package/dist/calling-media.d.cts +1 -1
- package/dist/calling-media.d.mts +1 -1
- package/dist/generated/index.cjs +1 -1
- package/dist/generated/index.d.cts +141 -581
- package/dist/generated/index.d.cts.map +1 -1
- package/dist/generated/index.d.mts +141 -581
- package/dist/generated/index.d.mts.map +1 -1
- package/dist/generated/index.mjs +1 -1
- package/dist/{index-HeicIada.d.cts → index-BETdayaV.d.cts} +53 -232
- package/dist/index-BETdayaV.d.cts.map +1 -0
- package/dist/{index-C3kjyOe-.d.mts → index-DH0WRSA7.d.mts} +53 -232
- package/dist/index-DH0WRSA7.d.mts.map +1 -0
- package/dist/index.cjs +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/{interactive-DxUwKpzK.d.cts → interactive-BE_M4nur.d.cts} +14 -6
- package/dist/interactive-BE_M4nur.d.cts.map +1 -0
- package/dist/{interactive-DxUwKpzK.d.mts → interactive-BE_M4nur.d.mts} +14 -6
- package/dist/interactive-BE_M4nur.d.mts.map +1 -0
- package/dist/interactive-ClvvgmVP.cjs +630 -0
- package/dist/interactive-ClvvgmVP.cjs.map +1 -0
- package/dist/interactive-Dec4HB2U.mjs +475 -0
- package/dist/interactive-Dec4HB2U.mjs.map +1 -0
- package/dist/interactive.cjs +26 -304
- package/dist/interactive.d.cts +2 -2
- package/dist/interactive.d.mts +2 -2
- package/dist/interactive.mjs +2 -283
- package/dist/methods/index.cjs +1 -1
- package/dist/methods/index.d.cts +1 -1
- package/dist/methods/index.d.mts +1 -1
- package/dist/methods/index.mjs +1 -1
- package/dist/{methods-QZbG0hN2.cjs → methods-9kRJiEdZ.cjs} +14 -78
- package/dist/methods-9kRJiEdZ.cjs.map +1 -0
- package/dist/{methods-CGm5G9VI.mjs → methods-NixIgGkq.mjs} +6 -64
- package/dist/methods-NixIgGkq.mjs.map +1 -0
- package/package.json +3 -3
- package/src/__tests__/booking-time.contract.test.ts +88 -0
- package/src/booking-time.ts +39 -0
- package/src/calling-media.ts +2 -0
- package/src/calling.ts +1 -0
- package/src/common-types.ts +1 -1
- package/src/effect-projection.ts +90 -47
- package/src/generated/asyncapi.json +191 -89
- package/src/generated/openapi.json +1681 -1307
- package/src/interactive.ts +12 -1
- package/src/methods/calls.ts +2 -2
- package/dist/index-C3kjyOe-.d.mts.map +0 -1
- package/dist/index-HeicIada.d.cts.map +0 -1
- package/dist/interactive-DxUwKpzK.d.cts.map +0 -1
- package/dist/interactive-DxUwKpzK.d.mts.map +0 -1
- package/dist/interactive.cjs.map +0 -1
- package/dist/interactive.mjs.map +0 -1
- package/dist/methods-CGm5G9VI.mjs.map +0 -1
- package/dist/methods-QZbG0hN2.cjs.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"asyncapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "OpenWA events",
|
|
5
|
-
"version": "5.
|
|
5
|
+
"version": "5.10.0",
|
|
6
6
|
"description": "Initial public wire contracts for six runtime events. This is not an exhaustive list of internal lifecycle events. SSE and webhook policies differ; MCP provides compact summaries for three events."
|
|
7
7
|
},
|
|
8
8
|
"servers": {
|
|
@@ -682,15 +682,48 @@
|
|
|
682
682
|
"properties": {
|
|
683
683
|
"id": {
|
|
684
684
|
"type": "string",
|
|
685
|
-
"minLength": 1
|
|
685
|
+
"minLength": 1,
|
|
686
|
+
"expected": "a value with a length of at least 1",
|
|
687
|
+
"representation": {
|
|
688
|
+
"id": "effect/schema/isMinLength",
|
|
689
|
+
"payload": {
|
|
690
|
+
"minLength": 1
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
"~structural": true,
|
|
694
|
+
"arbitraryConstraint": {
|
|
695
|
+
"minLength": 1
|
|
696
|
+
}
|
|
686
697
|
},
|
|
687
698
|
"chatId": {
|
|
688
699
|
"type": "string",
|
|
689
|
-
"minLength": 1
|
|
700
|
+
"minLength": 1,
|
|
701
|
+
"expected": "a value with a length of at least 1",
|
|
702
|
+
"representation": {
|
|
703
|
+
"id": "effect/schema/isMinLength",
|
|
704
|
+
"payload": {
|
|
705
|
+
"minLength": 1
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
"~structural": true,
|
|
709
|
+
"arbitraryConstraint": {
|
|
710
|
+
"minLength": 1
|
|
711
|
+
}
|
|
690
712
|
},
|
|
691
713
|
"creatorId": {
|
|
692
714
|
"type": "string",
|
|
693
|
-
"minLength": 1
|
|
715
|
+
"minLength": 1,
|
|
716
|
+
"expected": "a value with a length of at least 1",
|
|
717
|
+
"representation": {
|
|
718
|
+
"id": "effect/schema/isMinLength",
|
|
719
|
+
"payload": {
|
|
720
|
+
"minLength": 1
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
"~structural": true,
|
|
724
|
+
"arbitraryConstraint": {
|
|
725
|
+
"minLength": 1
|
|
726
|
+
}
|
|
694
727
|
},
|
|
695
728
|
"name": {
|
|
696
729
|
"type": "string"
|
|
@@ -698,12 +731,32 @@
|
|
|
698
731
|
"startTime": {
|
|
699
732
|
"type": "integer",
|
|
700
733
|
"minimum": 0,
|
|
701
|
-
"maximum": 2147483647
|
|
734
|
+
"maximum": 2147483647,
|
|
735
|
+
"expected": "a value less than or equal to 2147483647",
|
|
736
|
+
"arbitraryConstraint": {
|
|
737
|
+
"maximum": 2147483647
|
|
738
|
+
},
|
|
739
|
+
"representation": {
|
|
740
|
+
"id": "effect/schema/isLessThanOrEqualTo",
|
|
741
|
+
"payload": {
|
|
742
|
+
"maximum": 2147483647
|
|
743
|
+
}
|
|
744
|
+
}
|
|
702
745
|
},
|
|
703
746
|
"endTime": {
|
|
704
747
|
"type": "integer",
|
|
705
748
|
"minimum": 0,
|
|
706
|
-
"maximum": 2147483647
|
|
749
|
+
"maximum": 2147483647,
|
|
750
|
+
"expected": "a value less than or equal to 2147483647",
|
|
751
|
+
"arbitraryConstraint": {
|
|
752
|
+
"maximum": 2147483647
|
|
753
|
+
},
|
|
754
|
+
"representation": {
|
|
755
|
+
"id": "effect/schema/isLessThanOrEqualTo",
|
|
756
|
+
"payload": {
|
|
757
|
+
"maximum": 2147483647
|
|
758
|
+
}
|
|
759
|
+
}
|
|
707
760
|
},
|
|
708
761
|
"description": {
|
|
709
762
|
"type": "string"
|
|
@@ -735,7 +788,17 @@
|
|
|
735
788
|
}
|
|
736
789
|
]
|
|
737
790
|
}
|
|
738
|
-
]
|
|
791
|
+
],
|
|
792
|
+
"expected": "a value less than or equal to 90",
|
|
793
|
+
"arbitraryConstraint": {
|
|
794
|
+
"maximum": 90
|
|
795
|
+
},
|
|
796
|
+
"representation": {
|
|
797
|
+
"id": "effect/schema/isLessThanOrEqualTo",
|
|
798
|
+
"payload": {
|
|
799
|
+
"maximum": 90
|
|
800
|
+
}
|
|
801
|
+
}
|
|
739
802
|
},
|
|
740
803
|
"longitude": {
|
|
741
804
|
"anyOf": [
|
|
@@ -758,7 +821,17 @@
|
|
|
758
821
|
}
|
|
759
822
|
]
|
|
760
823
|
}
|
|
761
|
-
]
|
|
824
|
+
],
|
|
825
|
+
"expected": "a value less than or equal to 180",
|
|
826
|
+
"arbitraryConstraint": {
|
|
827
|
+
"maximum": 180
|
|
828
|
+
},
|
|
829
|
+
"representation": {
|
|
830
|
+
"id": "effect/schema/isLessThanOrEqualTo",
|
|
831
|
+
"payload": {
|
|
832
|
+
"maximum": 180
|
|
833
|
+
}
|
|
834
|
+
}
|
|
762
835
|
}
|
|
763
836
|
},
|
|
764
837
|
"additionalProperties": false
|
|
@@ -781,7 +854,17 @@
|
|
|
781
854
|
"timestamp": {
|
|
782
855
|
"type": "integer",
|
|
783
856
|
"minimum": 0,
|
|
784
|
-
"maximum": 2147483647
|
|
857
|
+
"maximum": 2147483647,
|
|
858
|
+
"expected": "a value less than or equal to 2147483647",
|
|
859
|
+
"arbitraryConstraint": {
|
|
860
|
+
"maximum": 2147483647
|
|
861
|
+
},
|
|
862
|
+
"representation": {
|
|
863
|
+
"id": "effect/schema/isLessThanOrEqualTo",
|
|
864
|
+
"payload": {
|
|
865
|
+
"maximum": 2147483647
|
|
866
|
+
}
|
|
867
|
+
}
|
|
785
868
|
}
|
|
786
869
|
},
|
|
787
870
|
"required": [
|
|
@@ -908,24 +991,8 @@
|
|
|
908
991
|
"type": "string"
|
|
909
992
|
},
|
|
910
993
|
"id": {
|
|
911
|
-
"
|
|
912
|
-
"
|
|
913
|
-
"server": {
|
|
914
|
-
"type": "string"
|
|
915
|
-
},
|
|
916
|
-
"user": {
|
|
917
|
-
"type": "string"
|
|
918
|
-
},
|
|
919
|
-
"_serialized": {
|
|
920
|
-
"type": "string"
|
|
921
|
-
}
|
|
922
|
-
},
|
|
923
|
-
"required": [
|
|
924
|
-
"server",
|
|
925
|
-
"user",
|
|
926
|
-
"_serialized"
|
|
927
|
-
],
|
|
928
|
-
"additionalProperties": false
|
|
994
|
+
"description": "Serialized contact ID returned by the profile-picture serializer",
|
|
995
|
+
"type": "string"
|
|
929
996
|
},
|
|
930
997
|
"img": {
|
|
931
998
|
"type": "string"
|
|
@@ -1069,24 +1136,8 @@
|
|
|
1069
1136
|
"type": "string"
|
|
1070
1137
|
},
|
|
1071
1138
|
"id": {
|
|
1072
|
-
"
|
|
1073
|
-
"
|
|
1074
|
-
"server": {
|
|
1075
|
-
"type": "string"
|
|
1076
|
-
},
|
|
1077
|
-
"user": {
|
|
1078
|
-
"type": "string"
|
|
1079
|
-
},
|
|
1080
|
-
"_serialized": {
|
|
1081
|
-
"type": "string"
|
|
1082
|
-
}
|
|
1083
|
-
},
|
|
1084
|
-
"required": [
|
|
1085
|
-
"server",
|
|
1086
|
-
"user",
|
|
1087
|
-
"_serialized"
|
|
1088
|
-
],
|
|
1089
|
-
"additionalProperties": false
|
|
1139
|
+
"description": "Serialized contact ID returned by the profile-picture serializer",
|
|
1140
|
+
"type": "string"
|
|
1090
1141
|
},
|
|
1091
1142
|
"img": {
|
|
1092
1143
|
"type": "string"
|
|
@@ -1417,15 +1468,48 @@
|
|
|
1417
1468
|
"properties": {
|
|
1418
1469
|
"id": {
|
|
1419
1470
|
"type": "string",
|
|
1420
|
-
"minLength": 1
|
|
1471
|
+
"minLength": 1,
|
|
1472
|
+
"expected": "a value with a length of at least 1",
|
|
1473
|
+
"representation": {
|
|
1474
|
+
"id": "effect/schema/isMinLength",
|
|
1475
|
+
"payload": {
|
|
1476
|
+
"minLength": 1
|
|
1477
|
+
}
|
|
1478
|
+
},
|
|
1479
|
+
"~structural": true,
|
|
1480
|
+
"arbitraryConstraint": {
|
|
1481
|
+
"minLength": 1
|
|
1482
|
+
}
|
|
1421
1483
|
},
|
|
1422
1484
|
"chatId": {
|
|
1423
1485
|
"type": "string",
|
|
1424
|
-
"minLength": 1
|
|
1486
|
+
"minLength": 1,
|
|
1487
|
+
"expected": "a value with a length of at least 1",
|
|
1488
|
+
"representation": {
|
|
1489
|
+
"id": "effect/schema/isMinLength",
|
|
1490
|
+
"payload": {
|
|
1491
|
+
"minLength": 1
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
"~structural": true,
|
|
1495
|
+
"arbitraryConstraint": {
|
|
1496
|
+
"minLength": 1
|
|
1497
|
+
}
|
|
1425
1498
|
},
|
|
1426
1499
|
"creatorId": {
|
|
1427
1500
|
"type": "string",
|
|
1428
|
-
"minLength": 1
|
|
1501
|
+
"minLength": 1,
|
|
1502
|
+
"expected": "a value with a length of at least 1",
|
|
1503
|
+
"representation": {
|
|
1504
|
+
"id": "effect/schema/isMinLength",
|
|
1505
|
+
"payload": {
|
|
1506
|
+
"minLength": 1
|
|
1507
|
+
}
|
|
1508
|
+
},
|
|
1509
|
+
"~structural": true,
|
|
1510
|
+
"arbitraryConstraint": {
|
|
1511
|
+
"minLength": 1
|
|
1512
|
+
}
|
|
1429
1513
|
},
|
|
1430
1514
|
"name": {
|
|
1431
1515
|
"type": "string"
|
|
@@ -1433,12 +1517,32 @@
|
|
|
1433
1517
|
"startTime": {
|
|
1434
1518
|
"type": "integer",
|
|
1435
1519
|
"minimum": 0,
|
|
1436
|
-
"maximum": 2147483647
|
|
1520
|
+
"maximum": 2147483647,
|
|
1521
|
+
"expected": "a value less than or equal to 2147483647",
|
|
1522
|
+
"arbitraryConstraint": {
|
|
1523
|
+
"maximum": 2147483647
|
|
1524
|
+
},
|
|
1525
|
+
"representation": {
|
|
1526
|
+
"id": "effect/schema/isLessThanOrEqualTo",
|
|
1527
|
+
"payload": {
|
|
1528
|
+
"maximum": 2147483647
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1437
1531
|
},
|
|
1438
1532
|
"endTime": {
|
|
1439
1533
|
"type": "integer",
|
|
1440
1534
|
"minimum": 0,
|
|
1441
|
-
"maximum": 2147483647
|
|
1535
|
+
"maximum": 2147483647,
|
|
1536
|
+
"expected": "a value less than or equal to 2147483647",
|
|
1537
|
+
"arbitraryConstraint": {
|
|
1538
|
+
"maximum": 2147483647
|
|
1539
|
+
},
|
|
1540
|
+
"representation": {
|
|
1541
|
+
"id": "effect/schema/isLessThanOrEqualTo",
|
|
1542
|
+
"payload": {
|
|
1543
|
+
"maximum": 2147483647
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1442
1546
|
},
|
|
1443
1547
|
"description": {
|
|
1444
1548
|
"type": "string"
|
|
@@ -1470,7 +1574,17 @@
|
|
|
1470
1574
|
}
|
|
1471
1575
|
]
|
|
1472
1576
|
}
|
|
1473
|
-
]
|
|
1577
|
+
],
|
|
1578
|
+
"expected": "a value less than or equal to 90",
|
|
1579
|
+
"arbitraryConstraint": {
|
|
1580
|
+
"maximum": 90
|
|
1581
|
+
},
|
|
1582
|
+
"representation": {
|
|
1583
|
+
"id": "effect/schema/isLessThanOrEqualTo",
|
|
1584
|
+
"payload": {
|
|
1585
|
+
"maximum": 90
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1474
1588
|
},
|
|
1475
1589
|
"longitude": {
|
|
1476
1590
|
"anyOf": [
|
|
@@ -1493,7 +1607,17 @@
|
|
|
1493
1607
|
}
|
|
1494
1608
|
]
|
|
1495
1609
|
}
|
|
1496
|
-
]
|
|
1610
|
+
],
|
|
1611
|
+
"expected": "a value less than or equal to 180",
|
|
1612
|
+
"arbitraryConstraint": {
|
|
1613
|
+
"maximum": 180
|
|
1614
|
+
},
|
|
1615
|
+
"representation": {
|
|
1616
|
+
"id": "effect/schema/isLessThanOrEqualTo",
|
|
1617
|
+
"payload": {
|
|
1618
|
+
"maximum": 180
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1497
1621
|
}
|
|
1498
1622
|
},
|
|
1499
1623
|
"additionalProperties": false
|
|
@@ -1516,7 +1640,17 @@
|
|
|
1516
1640
|
"timestamp": {
|
|
1517
1641
|
"type": "integer",
|
|
1518
1642
|
"minimum": 0,
|
|
1519
|
-
"maximum": 2147483647
|
|
1643
|
+
"maximum": 2147483647,
|
|
1644
|
+
"expected": "a value less than or equal to 2147483647",
|
|
1645
|
+
"arbitraryConstraint": {
|
|
1646
|
+
"maximum": 2147483647
|
|
1647
|
+
},
|
|
1648
|
+
"representation": {
|
|
1649
|
+
"id": "effect/schema/isLessThanOrEqualTo",
|
|
1650
|
+
"payload": {
|
|
1651
|
+
"maximum": 2147483647
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1520
1654
|
}
|
|
1521
1655
|
},
|
|
1522
1656
|
"required": [
|
|
@@ -1643,24 +1777,8 @@
|
|
|
1643
1777
|
"type": "string"
|
|
1644
1778
|
},
|
|
1645
1779
|
"id": {
|
|
1646
|
-
"
|
|
1647
|
-
"
|
|
1648
|
-
"server": {
|
|
1649
|
-
"type": "string"
|
|
1650
|
-
},
|
|
1651
|
-
"user": {
|
|
1652
|
-
"type": "string"
|
|
1653
|
-
},
|
|
1654
|
-
"_serialized": {
|
|
1655
|
-
"type": "string"
|
|
1656
|
-
}
|
|
1657
|
-
},
|
|
1658
|
-
"required": [
|
|
1659
|
-
"server",
|
|
1660
|
-
"user",
|
|
1661
|
-
"_serialized"
|
|
1662
|
-
],
|
|
1663
|
-
"additionalProperties": false
|
|
1780
|
+
"description": "Serialized contact ID returned by the profile-picture serializer",
|
|
1781
|
+
"type": "string"
|
|
1664
1782
|
},
|
|
1665
1783
|
"img": {
|
|
1666
1784
|
"type": "string"
|
|
@@ -1804,24 +1922,8 @@
|
|
|
1804
1922
|
"type": "string"
|
|
1805
1923
|
},
|
|
1806
1924
|
"id": {
|
|
1807
|
-
"
|
|
1808
|
-
"
|
|
1809
|
-
"server": {
|
|
1810
|
-
"type": "string"
|
|
1811
|
-
},
|
|
1812
|
-
"user": {
|
|
1813
|
-
"type": "string"
|
|
1814
|
-
},
|
|
1815
|
-
"_serialized": {
|
|
1816
|
-
"type": "string"
|
|
1817
|
-
}
|
|
1818
|
-
},
|
|
1819
|
-
"required": [
|
|
1820
|
-
"server",
|
|
1821
|
-
"user",
|
|
1822
|
-
"_serialized"
|
|
1823
|
-
],
|
|
1824
|
-
"additionalProperties": false
|
|
1925
|
+
"description": "Serialized contact ID returned by the profile-picture serializer",
|
|
1926
|
+
"type": "string"
|
|
1825
1927
|
},
|
|
1826
1928
|
"img": {
|
|
1827
1929
|
"type": "string"
|