@getlatedev/node 0.2.310 → 0.2.312
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/README.md +70 -0
- package/dist/index.d.mts +2498 -463
- package/dist/index.d.ts +2498 -463
- package/dist/index.js +412 -9
- package/dist/index.mjs +412 -9
- package/package.json +1 -1
- package/src/client.ts +135 -3
- package/src/generated/sdk.gen.ts +1057 -29
- package/src/generated/types.gen.ts +2612 -488
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.312",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -551,12 +551,30 @@ var getXApiPricing = (options) => {
|
|
|
551
551
|
url: "/v1/billing/x-pricing"
|
|
552
552
|
});
|
|
553
553
|
};
|
|
554
|
+
var getUsage = (options) => {
|
|
555
|
+
return (options?.client ?? client).get({
|
|
556
|
+
...options,
|
|
557
|
+
url: "/v1/usage"
|
|
558
|
+
});
|
|
559
|
+
};
|
|
554
560
|
var getUsageStats = (options) => {
|
|
555
561
|
return (options?.client ?? client).get({
|
|
556
562
|
...options,
|
|
557
563
|
url: "/v1/usage-stats"
|
|
558
564
|
});
|
|
559
565
|
};
|
|
566
|
+
var getCallsUsage = (options) => {
|
|
567
|
+
return (options?.client ?? client).get({
|
|
568
|
+
...options,
|
|
569
|
+
url: "/v1/usage/calls"
|
|
570
|
+
});
|
|
571
|
+
};
|
|
572
|
+
var getSmsUsage = (options) => {
|
|
573
|
+
return (options?.client ?? client).get({
|
|
574
|
+
...options,
|
|
575
|
+
url: "/v1/usage/sms"
|
|
576
|
+
});
|
|
577
|
+
};
|
|
560
578
|
var listPosts = (options) => {
|
|
561
579
|
return (options?.client ?? client).get({
|
|
562
580
|
...options,
|
|
@@ -1593,19 +1611,19 @@ var getWhatsAppCallingConfig = (options) => {
|
|
|
1593
1611
|
url: "/v1/whatsapp/calling"
|
|
1594
1612
|
});
|
|
1595
1613
|
};
|
|
1596
|
-
var
|
|
1614
|
+
var enableWhatsAppCallingLegacy = (options) => {
|
|
1597
1615
|
return (options?.client ?? client).post({
|
|
1598
1616
|
...options,
|
|
1599
1617
|
url: "/v1/whatsapp/phone-numbers/{id}/calling"
|
|
1600
1618
|
});
|
|
1601
1619
|
};
|
|
1602
|
-
var
|
|
1620
|
+
var updateWhatsAppCallingLegacy = (options) => {
|
|
1603
1621
|
return (options?.client ?? client).patch({
|
|
1604
1622
|
...options,
|
|
1605
1623
|
url: "/v1/whatsapp/phone-numbers/{id}/calling"
|
|
1606
1624
|
});
|
|
1607
1625
|
};
|
|
1608
|
-
var
|
|
1626
|
+
var disableWhatsAppCallingLegacy = (options) => {
|
|
1609
1627
|
return (options?.client ?? client).delete({
|
|
1610
1628
|
...options,
|
|
1611
1629
|
url: "/v1/whatsapp/phone-numbers/{id}/calling"
|
|
@@ -1635,12 +1653,144 @@ var getWhatsAppCall = (options) => {
|
|
|
1635
1653
|
url: "/v1/whatsapp/calls/{callId}"
|
|
1636
1654
|
});
|
|
1637
1655
|
};
|
|
1656
|
+
var getWhatsAppCallRecording = (options) => {
|
|
1657
|
+
return (options?.client ?? client).get({
|
|
1658
|
+
...options,
|
|
1659
|
+
url: "/v1/whatsapp/calls/{callId}/recording"
|
|
1660
|
+
});
|
|
1661
|
+
};
|
|
1638
1662
|
var getWhatsAppCallEstimate = (options) => {
|
|
1639
1663
|
return (options?.client ?? client).get({
|
|
1640
1664
|
...options,
|
|
1641
1665
|
url: "/v1/whatsapp/calls/estimate"
|
|
1642
1666
|
});
|
|
1643
1667
|
};
|
|
1668
|
+
var listCalls = (options) => {
|
|
1669
|
+
return (options?.client ?? client).get({
|
|
1670
|
+
...options,
|
|
1671
|
+
url: "/v1/calls"
|
|
1672
|
+
});
|
|
1673
|
+
};
|
|
1674
|
+
var getCall = (options) => {
|
|
1675
|
+
return (options?.client ?? client).get({
|
|
1676
|
+
...options,
|
|
1677
|
+
url: "/v1/calls/{id}"
|
|
1678
|
+
});
|
|
1679
|
+
};
|
|
1680
|
+
var getCallRecording = (options) => {
|
|
1681
|
+
return (options?.client ?? client).get({
|
|
1682
|
+
...options,
|
|
1683
|
+
url: "/v1/calls/{id}/recording"
|
|
1684
|
+
});
|
|
1685
|
+
};
|
|
1686
|
+
var createVoiceCall = (options) => {
|
|
1687
|
+
return (options?.client ?? client).post({
|
|
1688
|
+
...options,
|
|
1689
|
+
url: "/v1/voice/calls"
|
|
1690
|
+
});
|
|
1691
|
+
};
|
|
1692
|
+
var listVoiceCalls = (options) => {
|
|
1693
|
+
return (options?.client ?? client).get({
|
|
1694
|
+
...options,
|
|
1695
|
+
url: "/v1/voice/calls"
|
|
1696
|
+
});
|
|
1697
|
+
};
|
|
1698
|
+
var getVoiceCall = (options) => {
|
|
1699
|
+
return (options?.client ?? client).get({
|
|
1700
|
+
...options,
|
|
1701
|
+
url: "/v1/voice/calls/{id}"
|
|
1702
|
+
});
|
|
1703
|
+
};
|
|
1704
|
+
var endVoiceCall = (options) => {
|
|
1705
|
+
return (options?.client ?? client).post({
|
|
1706
|
+
...options,
|
|
1707
|
+
url: "/v1/voice/calls/{id}/end"
|
|
1708
|
+
});
|
|
1709
|
+
};
|
|
1710
|
+
var getVoiceCallRecording = (options) => {
|
|
1711
|
+
return (options?.client ?? client).get({
|
|
1712
|
+
...options,
|
|
1713
|
+
url: "/v1/voice/calls/{id}/recording"
|
|
1714
|
+
});
|
|
1715
|
+
};
|
|
1716
|
+
var transferVoiceCall = (options) => {
|
|
1717
|
+
return (options?.client ?? client).post({
|
|
1718
|
+
...options,
|
|
1719
|
+
url: "/v1/voice/calls/{id}/transfer"
|
|
1720
|
+
});
|
|
1721
|
+
};
|
|
1722
|
+
var getVoiceCallEstimate = (options) => {
|
|
1723
|
+
return (options?.client ?? client).get({
|
|
1724
|
+
...options,
|
|
1725
|
+
url: "/v1/voice/calls/estimate"
|
|
1726
|
+
});
|
|
1727
|
+
};
|
|
1728
|
+
var createVoiceWebSession = (options) => {
|
|
1729
|
+
return (options?.client ?? client).post({
|
|
1730
|
+
...options,
|
|
1731
|
+
url: "/v1/voice/calls/web"
|
|
1732
|
+
});
|
|
1733
|
+
};
|
|
1734
|
+
var dialVoiceWebCall = (options) => {
|
|
1735
|
+
return (options?.client ?? client).post({
|
|
1736
|
+
...options,
|
|
1737
|
+
url: "/v1/voice/calls/web/dial"
|
|
1738
|
+
});
|
|
1739
|
+
};
|
|
1740
|
+
var sendSms = (options) => {
|
|
1741
|
+
return (options?.client ?? client).post({
|
|
1742
|
+
...options,
|
|
1743
|
+
url: "/v1/sms/messages"
|
|
1744
|
+
});
|
|
1745
|
+
};
|
|
1746
|
+
var lookupSmsNumber = (options) => {
|
|
1747
|
+
return (options?.client ?? client).get({
|
|
1748
|
+
...options,
|
|
1749
|
+
url: "/v1/sms/lookup"
|
|
1750
|
+
});
|
|
1751
|
+
};
|
|
1752
|
+
var listSmsOptOuts = (options) => {
|
|
1753
|
+
return (options?.client ?? client).get({
|
|
1754
|
+
...options,
|
|
1755
|
+
url: "/v1/sms/opt-outs"
|
|
1756
|
+
});
|
|
1757
|
+
};
|
|
1758
|
+
var startSmsRegistration = (options) => {
|
|
1759
|
+
return (options?.client ?? client).post({
|
|
1760
|
+
...options,
|
|
1761
|
+
url: "/v1/sms/registrations"
|
|
1762
|
+
});
|
|
1763
|
+
};
|
|
1764
|
+
var listSmsRegistrations = (options) => {
|
|
1765
|
+
return (options?.client ?? client).get({
|
|
1766
|
+
...options,
|
|
1767
|
+
url: "/v1/sms/registrations"
|
|
1768
|
+
});
|
|
1769
|
+
};
|
|
1770
|
+
var getSmsRegistration = (options) => {
|
|
1771
|
+
return (options?.client ?? client).get({
|
|
1772
|
+
...options,
|
|
1773
|
+
url: "/v1/sms/registrations/{id}"
|
|
1774
|
+
});
|
|
1775
|
+
};
|
|
1776
|
+
var verifySmsRegistrationOtp = (options) => {
|
|
1777
|
+
return (options?.client ?? client).post({
|
|
1778
|
+
...options,
|
|
1779
|
+
url: "/v1/sms/registrations/{id}/verify-otp"
|
|
1780
|
+
});
|
|
1781
|
+
};
|
|
1782
|
+
var appealSmsRegistration = (options) => {
|
|
1783
|
+
return (options?.client ?? client).post({
|
|
1784
|
+
...options,
|
|
1785
|
+
url: "/v1/sms/registrations/{id}/appeal"
|
|
1786
|
+
});
|
|
1787
|
+
};
|
|
1788
|
+
var shareSmsRegistration = (options) => {
|
|
1789
|
+
return (options?.client ?? client).post({
|
|
1790
|
+
...options,
|
|
1791
|
+
url: "/v1/sms/registrations/share"
|
|
1792
|
+
});
|
|
1793
|
+
};
|
|
1644
1794
|
var getWhatsAppLibraryTemplate = (options) => {
|
|
1645
1795
|
return (options?.client ?? client).get({
|
|
1646
1796
|
...options,
|
|
@@ -1748,6 +1898,48 @@ var createWhatsAppDataset = (options) => {
|
|
|
1748
1898
|
url: "/v1/whatsapp/dataset"
|
|
1749
1899
|
});
|
|
1750
1900
|
};
|
|
1901
|
+
var listPhoneNumbers = (options) => {
|
|
1902
|
+
return (options?.client ?? client).get({
|
|
1903
|
+
...options,
|
|
1904
|
+
url: "/v1/phone-numbers"
|
|
1905
|
+
});
|
|
1906
|
+
};
|
|
1907
|
+
var getPhoneNumber = (options) => {
|
|
1908
|
+
return (options?.client ?? client).get({
|
|
1909
|
+
...options,
|
|
1910
|
+
url: "/v1/phone-numbers/{id}"
|
|
1911
|
+
});
|
|
1912
|
+
};
|
|
1913
|
+
var releasePhoneNumber = (options) => {
|
|
1914
|
+
return (options?.client ?? client).delete({
|
|
1915
|
+
...options,
|
|
1916
|
+
url: "/v1/phone-numbers/{id}"
|
|
1917
|
+
});
|
|
1918
|
+
};
|
|
1919
|
+
var purchasePhoneNumber = (options) => {
|
|
1920
|
+
return (options?.client ?? client).post({
|
|
1921
|
+
...options,
|
|
1922
|
+
url: "/v1/phone-numbers/purchase"
|
|
1923
|
+
});
|
|
1924
|
+
};
|
|
1925
|
+
var listPhoneNumberCountries = (options) => {
|
|
1926
|
+
return (options?.client ?? client).get({
|
|
1927
|
+
...options,
|
|
1928
|
+
url: "/v1/phone-numbers/countries"
|
|
1929
|
+
});
|
|
1930
|
+
};
|
|
1931
|
+
var searchAvailablePhoneNumbers = (options) => {
|
|
1932
|
+
return (options?.client ?? client).get({
|
|
1933
|
+
...options,
|
|
1934
|
+
url: "/v1/phone-numbers/available"
|
|
1935
|
+
});
|
|
1936
|
+
};
|
|
1937
|
+
var checkPhoneNumberAvailability = (options) => {
|
|
1938
|
+
return (options?.client ?? client).get({
|
|
1939
|
+
...options,
|
|
1940
|
+
url: "/v1/phone-numbers/availability"
|
|
1941
|
+
});
|
|
1942
|
+
};
|
|
1751
1943
|
var getWhatsAppPhoneNumbers = (options) => {
|
|
1752
1944
|
return (options?.client ?? client).get({
|
|
1753
1945
|
...options,
|
|
@@ -1778,6 +1970,89 @@ var checkWhatsAppNumberAvailability = (options) => {
|
|
|
1778
1970
|
url: "/v1/whatsapp/phone-numbers/availability"
|
|
1779
1971
|
});
|
|
1780
1972
|
};
|
|
1973
|
+
var getPhoneNumberKycForm = (options) => {
|
|
1974
|
+
return (options?.client ?? client).get({
|
|
1975
|
+
...options,
|
|
1976
|
+
url: "/v1/phone-numbers/kyc"
|
|
1977
|
+
});
|
|
1978
|
+
};
|
|
1979
|
+
var submitPhoneNumberKyc = (options) => {
|
|
1980
|
+
return (options?.client ?? client).post({
|
|
1981
|
+
...options,
|
|
1982
|
+
url: "/v1/phone-numbers/kyc"
|
|
1983
|
+
});
|
|
1984
|
+
};
|
|
1985
|
+
var uploadPhoneNumberKycDocument = (options) => {
|
|
1986
|
+
return (options?.client ?? client).post({
|
|
1987
|
+
...options,
|
|
1988
|
+
url: "/v1/phone-numbers/kyc/upload-document"
|
|
1989
|
+
});
|
|
1990
|
+
};
|
|
1991
|
+
var validatePhoneNumberKycAddress = (options) => {
|
|
1992
|
+
return (options?.client ?? client).post({
|
|
1993
|
+
...options,
|
|
1994
|
+
url: "/v1/phone-numbers/kyc/validate-address"
|
|
1995
|
+
});
|
|
1996
|
+
};
|
|
1997
|
+
var createPhoneNumberKycLink = (options) => {
|
|
1998
|
+
return (options?.client ?? client).post({
|
|
1999
|
+
...options,
|
|
2000
|
+
url: "/v1/phone-numbers/kyc/share"
|
|
2001
|
+
});
|
|
2002
|
+
};
|
|
2003
|
+
var createPhoneNumberPortIn = (options) => {
|
|
2004
|
+
return (options?.client ?? client).post({
|
|
2005
|
+
...options,
|
|
2006
|
+
url: "/v1/phone-numbers/port-in"
|
|
2007
|
+
});
|
|
2008
|
+
};
|
|
2009
|
+
var listPhoneNumberPortIns = (options) => {
|
|
2010
|
+
return (options?.client ?? client).get({
|
|
2011
|
+
...options,
|
|
2012
|
+
url: "/v1/phone-numbers/port-in"
|
|
2013
|
+
});
|
|
2014
|
+
};
|
|
2015
|
+
var checkPhoneNumberPortability = (options) => {
|
|
2016
|
+
return (options?.client ?? client).post({
|
|
2017
|
+
...options,
|
|
2018
|
+
url: "/v1/phone-numbers/port-in/check"
|
|
2019
|
+
});
|
|
2020
|
+
};
|
|
2021
|
+
var uploadPhoneNumberPortInDocument = (options) => {
|
|
2022
|
+
return (options?.client ?? client).post({
|
|
2023
|
+
...options,
|
|
2024
|
+
...W,
|
|
2025
|
+
headers: {
|
|
2026
|
+
"Content-Type": null,
|
|
2027
|
+
...options?.headers
|
|
2028
|
+
},
|
|
2029
|
+
url: "/v1/phone-numbers/port-in/documents"
|
|
2030
|
+
});
|
|
2031
|
+
};
|
|
2032
|
+
var cancelPhoneNumberPortIn = (options) => {
|
|
2033
|
+
return (options?.client ?? client).delete({
|
|
2034
|
+
...options,
|
|
2035
|
+
url: "/v1/phone-numbers/port-in/{id}"
|
|
2036
|
+
});
|
|
2037
|
+
};
|
|
2038
|
+
var reviewPhoneNumberKycPacket = (options) => {
|
|
2039
|
+
return (options?.client ?? client).post({
|
|
2040
|
+
...options,
|
|
2041
|
+
url: "/v1/phone-numbers/kyc/review-packet"
|
|
2042
|
+
});
|
|
2043
|
+
};
|
|
2044
|
+
var getPhoneNumberRemediation = (options) => {
|
|
2045
|
+
return (options?.client ?? client).get({
|
|
2046
|
+
...options,
|
|
2047
|
+
url: "/v1/phone-numbers/{id}/remediate"
|
|
2048
|
+
});
|
|
2049
|
+
};
|
|
2050
|
+
var remediatePhoneNumber = (options) => {
|
|
2051
|
+
return (options?.client ?? client).post({
|
|
2052
|
+
...options,
|
|
2053
|
+
url: "/v1/phone-numbers/{id}/remediate"
|
|
2054
|
+
});
|
|
2055
|
+
};
|
|
1781
2056
|
var getWhatsAppNumberKycForm = (options) => {
|
|
1782
2057
|
return (options?.client ?? client).get({
|
|
1783
2058
|
...options,
|
|
@@ -1820,6 +2095,60 @@ var remediateWhatsAppNumber = (options) => {
|
|
|
1820
2095
|
url: "/v1/whatsapp/phone-numbers/{id}/remediate"
|
|
1821
2096
|
});
|
|
1822
2097
|
};
|
|
2098
|
+
var enableVoiceOnNumber = (options) => {
|
|
2099
|
+
return (options?.client ?? client).post({
|
|
2100
|
+
...options,
|
|
2101
|
+
url: "/v1/phone-numbers/{id}/voice"
|
|
2102
|
+
});
|
|
2103
|
+
};
|
|
2104
|
+
var disableVoiceOnNumber = (options) => {
|
|
2105
|
+
return (options?.client ?? client).delete({
|
|
2106
|
+
...options,
|
|
2107
|
+
url: "/v1/phone-numbers/{id}/voice"
|
|
2108
|
+
});
|
|
2109
|
+
};
|
|
2110
|
+
var enableSmsOnNumber = (options) => {
|
|
2111
|
+
return (options?.client ?? client).post({
|
|
2112
|
+
...options,
|
|
2113
|
+
url: "/v1/phone-numbers/{id}/sms"
|
|
2114
|
+
});
|
|
2115
|
+
};
|
|
2116
|
+
var disableSmsOnNumber = (options) => {
|
|
2117
|
+
return (options?.client ?? client).delete({
|
|
2118
|
+
...options,
|
|
2119
|
+
url: "/v1/phone-numbers/{id}/sms"
|
|
2120
|
+
});
|
|
2121
|
+
};
|
|
2122
|
+
var reuseSmsRegistrationForNumber = (options) => {
|
|
2123
|
+
return (options?.client ?? client).post({
|
|
2124
|
+
...options,
|
|
2125
|
+
url: "/v1/phone-numbers/{id}/sms/reuse-registration"
|
|
2126
|
+
});
|
|
2127
|
+
};
|
|
2128
|
+
var getWhatsAppCalling = (options) => {
|
|
2129
|
+
return (options?.client ?? client).get({
|
|
2130
|
+
...options,
|
|
2131
|
+
url: "/v1/phone-numbers/{id}/whatsapp/calling"
|
|
2132
|
+
});
|
|
2133
|
+
};
|
|
2134
|
+
var enableWhatsAppCalling = (options) => {
|
|
2135
|
+
return (options?.client ?? client).post({
|
|
2136
|
+
...options,
|
|
2137
|
+
url: "/v1/phone-numbers/{id}/whatsapp/calling"
|
|
2138
|
+
});
|
|
2139
|
+
};
|
|
2140
|
+
var updateWhatsAppCalling = (options) => {
|
|
2141
|
+
return (options?.client ?? client).patch({
|
|
2142
|
+
...options,
|
|
2143
|
+
url: "/v1/phone-numbers/{id}/whatsapp/calling"
|
|
2144
|
+
});
|
|
2145
|
+
};
|
|
2146
|
+
var disableWhatsAppCalling = (options) => {
|
|
2147
|
+
return (options?.client ?? client).delete({
|
|
2148
|
+
...options,
|
|
2149
|
+
url: "/v1/phone-numbers/{id}/whatsapp/calling"
|
|
2150
|
+
});
|
|
2151
|
+
};
|
|
1823
2152
|
var getWhatsAppPhoneNumber = (options) => {
|
|
1824
2153
|
return (options?.client ?? client).get({
|
|
1825
2154
|
...options,
|
|
@@ -2868,7 +3197,10 @@ var Zernio = class {
|
|
|
2868
3197
|
*/
|
|
2869
3198
|
this.usage = {
|
|
2870
3199
|
getXApiPricing,
|
|
2871
|
-
|
|
3200
|
+
getUsage,
|
|
3201
|
+
getUsageStats,
|
|
3202
|
+
getCallsUsage,
|
|
3203
|
+
getSmsUsage
|
|
2872
3204
|
};
|
|
2873
3205
|
/**
|
|
2874
3206
|
* Posts API - Create, schedule, and manage social media posts
|
|
@@ -3213,14 +3545,60 @@ var Zernio = class {
|
|
|
3213
3545
|
*/
|
|
3214
3546
|
this.whatsappcalling = {
|
|
3215
3547
|
getWhatsAppCallingConfig,
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3548
|
+
enableWhatsAppCallingLegacy,
|
|
3549
|
+
updateWhatsAppCallingLegacy,
|
|
3550
|
+
disableWhatsAppCallingLegacy,
|
|
3219
3551
|
getWhatsAppCallPermissions,
|
|
3220
3552
|
initiateWhatsAppCall,
|
|
3221
3553
|
listWhatsAppCalls,
|
|
3222
3554
|
getWhatsAppCall,
|
|
3223
|
-
|
|
3555
|
+
getWhatsAppCallRecording,
|
|
3556
|
+
getWhatsAppCallEstimate,
|
|
3557
|
+
getWhatsAppCalling,
|
|
3558
|
+
enableWhatsAppCalling,
|
|
3559
|
+
updateWhatsAppCalling,
|
|
3560
|
+
disableWhatsAppCalling
|
|
3561
|
+
};
|
|
3562
|
+
/**
|
|
3563
|
+
* calls API
|
|
3564
|
+
*/
|
|
3565
|
+
this.calls = {
|
|
3566
|
+
listCalls,
|
|
3567
|
+
getCall,
|
|
3568
|
+
getCallRecording
|
|
3569
|
+
};
|
|
3570
|
+
/**
|
|
3571
|
+
* voice API
|
|
3572
|
+
*/
|
|
3573
|
+
this.voice = {
|
|
3574
|
+
createVoiceCall,
|
|
3575
|
+
listVoiceCalls,
|
|
3576
|
+
getVoiceCall,
|
|
3577
|
+
endVoiceCall,
|
|
3578
|
+
getVoiceCallRecording,
|
|
3579
|
+
transferVoiceCall,
|
|
3580
|
+
getVoiceCallEstimate,
|
|
3581
|
+
createVoiceWebSession,
|
|
3582
|
+
dialVoiceWebCall,
|
|
3583
|
+
enableVoiceOnNumber,
|
|
3584
|
+
disableVoiceOnNumber
|
|
3585
|
+
};
|
|
3586
|
+
/**
|
|
3587
|
+
* sms API
|
|
3588
|
+
*/
|
|
3589
|
+
this.sms = {
|
|
3590
|
+
sendSms,
|
|
3591
|
+
lookupSmsNumber,
|
|
3592
|
+
listSmsOptOuts,
|
|
3593
|
+
startSmsRegistration,
|
|
3594
|
+
listSmsRegistrations,
|
|
3595
|
+
getSmsRegistration,
|
|
3596
|
+
verifySmsRegistrationOtp,
|
|
3597
|
+
appealSmsRegistration,
|
|
3598
|
+
shareSmsRegistration,
|
|
3599
|
+
enableSmsOnNumber,
|
|
3600
|
+
disableSmsOnNumber,
|
|
3601
|
+
reuseSmsRegistrationForNumber
|
|
3224
3602
|
};
|
|
3225
3603
|
/**
|
|
3226
3604
|
* whatsapptemplates API
|
|
@@ -3248,6 +3626,31 @@ var Zernio = class {
|
|
|
3248
3626
|
getWhatsAppPhoneNumber,
|
|
3249
3627
|
releaseWhatsAppPhoneNumber
|
|
3250
3628
|
};
|
|
3629
|
+
/**
|
|
3630
|
+
* phonenumbers API
|
|
3631
|
+
*/
|
|
3632
|
+
this.phonenumbers = {
|
|
3633
|
+
listPhoneNumbers,
|
|
3634
|
+
getPhoneNumber,
|
|
3635
|
+
releasePhoneNumber,
|
|
3636
|
+
purchasePhoneNumber,
|
|
3637
|
+
listPhoneNumberCountries,
|
|
3638
|
+
searchAvailablePhoneNumbers,
|
|
3639
|
+
checkPhoneNumberAvailability,
|
|
3640
|
+
getPhoneNumberKycForm,
|
|
3641
|
+
submitPhoneNumberKyc,
|
|
3642
|
+
uploadPhoneNumberKycDocument,
|
|
3643
|
+
validatePhoneNumberKycAddress,
|
|
3644
|
+
createPhoneNumberKycLink,
|
|
3645
|
+
createPhoneNumberPortIn,
|
|
3646
|
+
listPhoneNumberPortIns,
|
|
3647
|
+
checkPhoneNumberPortability,
|
|
3648
|
+
uploadPhoneNumberPortInDocument,
|
|
3649
|
+
cancelPhoneNumberPortIn,
|
|
3650
|
+
reviewPhoneNumberKycPacket,
|
|
3651
|
+
getPhoneNumberRemediation,
|
|
3652
|
+
remediatePhoneNumber
|
|
3653
|
+
};
|
|
3251
3654
|
/**
|
|
3252
3655
|
* whatsappsandbox API
|
|
3253
3656
|
*/
|