@getlatedev/node 0.1.43 → 0.1.45

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 CHANGED
@@ -1117,6 +1117,204 @@ var deleteInboxReviewReply = (options) => {
1117
1117
  url: "/v1/inbox/reviews/{reviewId}/reply"
1118
1118
  });
1119
1119
  };
1120
+ var sendWhatsAppBulk = (options) => {
1121
+ return (options?.client ?? client).post({
1122
+ ...options,
1123
+ url: "/v1/whatsapp/bulk"
1124
+ });
1125
+ };
1126
+ var getWhatsAppContacts = (options) => {
1127
+ return (options?.client ?? client).get({
1128
+ ...options,
1129
+ url: "/v1/whatsapp/contacts"
1130
+ });
1131
+ };
1132
+ var createWhatsAppContact = (options) => {
1133
+ return (options?.client ?? client).post({
1134
+ ...options,
1135
+ url: "/v1/whatsapp/contacts"
1136
+ });
1137
+ };
1138
+ var getWhatsAppContact = (options) => {
1139
+ return (options?.client ?? client).get({
1140
+ ...options,
1141
+ url: "/v1/whatsapp/contacts/{contactId}"
1142
+ });
1143
+ };
1144
+ var updateWhatsAppContact = (options) => {
1145
+ return (options?.client ?? client).put({
1146
+ ...options,
1147
+ url: "/v1/whatsapp/contacts/{contactId}"
1148
+ });
1149
+ };
1150
+ var deleteWhatsAppContact = (options) => {
1151
+ return (options?.client ?? client).delete({
1152
+ ...options,
1153
+ url: "/v1/whatsapp/contacts/{contactId}"
1154
+ });
1155
+ };
1156
+ var importWhatsAppContacts = (options) => {
1157
+ return (options?.client ?? client).post({
1158
+ ...options,
1159
+ url: "/v1/whatsapp/contacts/import"
1160
+ });
1161
+ };
1162
+ var bulkUpdateWhatsAppContacts = (options) => {
1163
+ return (options?.client ?? client).post({
1164
+ ...options,
1165
+ url: "/v1/whatsapp/contacts/bulk"
1166
+ });
1167
+ };
1168
+ var bulkDeleteWhatsAppContacts = (options) => {
1169
+ return (options?.client ?? client).delete({
1170
+ ...options,
1171
+ url: "/v1/whatsapp/contacts/bulk"
1172
+ });
1173
+ };
1174
+ var getWhatsAppGroups = (options) => {
1175
+ return (options?.client ?? client).get({
1176
+ ...options,
1177
+ url: "/v1/whatsapp/groups"
1178
+ });
1179
+ };
1180
+ var renameWhatsAppGroup = (options) => {
1181
+ return (options?.client ?? client).post({
1182
+ ...options,
1183
+ url: "/v1/whatsapp/groups"
1184
+ });
1185
+ };
1186
+ var deleteWhatsAppGroup = (options) => {
1187
+ return (options?.client ?? client).delete({
1188
+ ...options,
1189
+ url: "/v1/whatsapp/groups"
1190
+ });
1191
+ };
1192
+ var getWhatsAppTemplates = (options) => {
1193
+ return (options?.client ?? client).get({
1194
+ ...options,
1195
+ url: "/v1/whatsapp/templates"
1196
+ });
1197
+ };
1198
+ var createWhatsAppTemplate = (options) => {
1199
+ return (options?.client ?? client).post({
1200
+ ...options,
1201
+ url: "/v1/whatsapp/templates"
1202
+ });
1203
+ };
1204
+ var getWhatsAppTemplate = (options) => {
1205
+ return (options?.client ?? client).get({
1206
+ ...options,
1207
+ url: "/v1/whatsapp/templates/{templateName}"
1208
+ });
1209
+ };
1210
+ var updateWhatsAppTemplate = (options) => {
1211
+ return (options?.client ?? client).patch({
1212
+ ...options,
1213
+ url: "/v1/whatsapp/templates/{templateName}"
1214
+ });
1215
+ };
1216
+ var deleteWhatsAppTemplate = (options) => {
1217
+ return (options?.client ?? client).delete({
1218
+ ...options,
1219
+ url: "/v1/whatsapp/templates/{templateName}"
1220
+ });
1221
+ };
1222
+ var getWhatsAppBroadcasts = (options) => {
1223
+ return (options?.client ?? client).get({
1224
+ ...options,
1225
+ url: "/v1/whatsapp/broadcasts"
1226
+ });
1227
+ };
1228
+ var createWhatsAppBroadcast = (options) => {
1229
+ return (options?.client ?? client).post({
1230
+ ...options,
1231
+ url: "/v1/whatsapp/broadcasts"
1232
+ });
1233
+ };
1234
+ var getWhatsAppBroadcast = (options) => {
1235
+ return (options?.client ?? client).get({
1236
+ ...options,
1237
+ url: "/v1/whatsapp/broadcasts/{broadcastId}"
1238
+ });
1239
+ };
1240
+ var deleteWhatsAppBroadcast = (options) => {
1241
+ return (options?.client ?? client).delete({
1242
+ ...options,
1243
+ url: "/v1/whatsapp/broadcasts/{broadcastId}"
1244
+ });
1245
+ };
1246
+ var sendWhatsAppBroadcast = (options) => {
1247
+ return (options?.client ?? client).post({
1248
+ ...options,
1249
+ url: "/v1/whatsapp/broadcasts/{broadcastId}/send"
1250
+ });
1251
+ };
1252
+ var scheduleWhatsAppBroadcast = (options) => {
1253
+ return (options?.client ?? client).post({
1254
+ ...options,
1255
+ url: "/v1/whatsapp/broadcasts/{broadcastId}/schedule"
1256
+ });
1257
+ };
1258
+ var cancelWhatsAppBroadcastSchedule = (options) => {
1259
+ return (options?.client ?? client).delete({
1260
+ ...options,
1261
+ url: "/v1/whatsapp/broadcasts/{broadcastId}/schedule"
1262
+ });
1263
+ };
1264
+ var getWhatsAppBroadcastRecipients = (options) => {
1265
+ return (options?.client ?? client).get({
1266
+ ...options,
1267
+ url: "/v1/whatsapp/broadcasts/{broadcastId}/recipients"
1268
+ });
1269
+ };
1270
+ var addWhatsAppBroadcastRecipients = (options) => {
1271
+ return (options?.client ?? client).patch({
1272
+ ...options,
1273
+ url: "/v1/whatsapp/broadcasts/{broadcastId}/recipients"
1274
+ });
1275
+ };
1276
+ var removeWhatsAppBroadcastRecipients = (options) => {
1277
+ return (options?.client ?? client).delete({
1278
+ ...options,
1279
+ url: "/v1/whatsapp/broadcasts/{broadcastId}/recipients"
1280
+ });
1281
+ };
1282
+ var getWhatsAppBusinessProfile = (options) => {
1283
+ return (options?.client ?? client).get({
1284
+ ...options,
1285
+ url: "/v1/whatsapp/business-profile"
1286
+ });
1287
+ };
1288
+ var updateWhatsAppBusinessProfile = (options) => {
1289
+ return (options?.client ?? client).post({
1290
+ ...options,
1291
+ url: "/v1/whatsapp/business-profile"
1292
+ });
1293
+ };
1294
+ var getWhatsAppPhoneNumbers = (options) => {
1295
+ return (options?.client ?? client).get({
1296
+ ...options,
1297
+ url: "/v1/whatsapp/phone-numbers"
1298
+ });
1299
+ };
1300
+ var purchaseWhatsAppPhoneNumber = (options) => {
1301
+ return (options?.client ?? client).post({
1302
+ ...options,
1303
+ url: "/v1/whatsapp/phone-numbers/purchase"
1304
+ });
1305
+ };
1306
+ var getWhatsAppPhoneNumber = (options) => {
1307
+ return (options?.client ?? client).get({
1308
+ ...options,
1309
+ url: "/v1/whatsapp/phone-numbers/{phoneNumberId}"
1310
+ });
1311
+ };
1312
+ var releaseWhatsAppPhoneNumber = (options) => {
1313
+ return (options?.client ?? client).delete({
1314
+ ...options,
1315
+ url: "/v1/whatsapp/phone-numbers/{phoneNumberId}"
1316
+ });
1317
+ };
1120
1318
 
1121
1319
  // src/errors.ts
1122
1320
  var LateApiError = class _LateApiError extends Error {
@@ -1503,6 +1701,49 @@ var Late = class {
1503
1701
  replyToInboxReview,
1504
1702
  deleteInboxReviewReply
1505
1703
  };
1704
+ /**
1705
+ * whatsapp API
1706
+ */
1707
+ this.whatsapp = {
1708
+ sendWhatsAppBulk,
1709
+ getWhatsAppContacts,
1710
+ createWhatsAppContact,
1711
+ getWhatsAppContact,
1712
+ updateWhatsAppContact,
1713
+ deleteWhatsAppContact,
1714
+ importWhatsAppContacts,
1715
+ bulkUpdateWhatsAppContacts,
1716
+ bulkDeleteWhatsAppContacts,
1717
+ getWhatsAppGroups,
1718
+ renameWhatsAppGroup,
1719
+ deleteWhatsAppGroup,
1720
+ getWhatsAppTemplates,
1721
+ createWhatsAppTemplate,
1722
+ getWhatsAppTemplate,
1723
+ updateWhatsAppTemplate,
1724
+ deleteWhatsAppTemplate,
1725
+ getWhatsAppBroadcasts,
1726
+ createWhatsAppBroadcast,
1727
+ getWhatsAppBroadcast,
1728
+ deleteWhatsAppBroadcast,
1729
+ sendWhatsAppBroadcast,
1730
+ scheduleWhatsAppBroadcast,
1731
+ cancelWhatsAppBroadcastSchedule,
1732
+ getWhatsAppBroadcastRecipients,
1733
+ addWhatsAppBroadcastRecipients,
1734
+ removeWhatsAppBroadcastRecipients,
1735
+ getWhatsAppBusinessProfile,
1736
+ updateWhatsAppBusinessProfile
1737
+ };
1738
+ /**
1739
+ * whatsappphonenumbers API
1740
+ */
1741
+ this.whatsappphonenumbers = {
1742
+ getWhatsAppPhoneNumbers,
1743
+ purchaseWhatsAppPhoneNumber,
1744
+ getWhatsAppPhoneNumber,
1745
+ releaseWhatsAppPhoneNumber
1746
+ };
1506
1747
  const apiKey = options.apiKey ?? process.env["LATE_API_KEY"];
1507
1748
  if (!apiKey) {
1508
1749
  throw new LateApiError(
package/dist/index.mjs CHANGED
@@ -1088,6 +1088,204 @@ var deleteInboxReviewReply = (options) => {
1088
1088
  url: "/v1/inbox/reviews/{reviewId}/reply"
1089
1089
  });
1090
1090
  };
1091
+ var sendWhatsAppBulk = (options) => {
1092
+ return (options?.client ?? client).post({
1093
+ ...options,
1094
+ url: "/v1/whatsapp/bulk"
1095
+ });
1096
+ };
1097
+ var getWhatsAppContacts = (options) => {
1098
+ return (options?.client ?? client).get({
1099
+ ...options,
1100
+ url: "/v1/whatsapp/contacts"
1101
+ });
1102
+ };
1103
+ var createWhatsAppContact = (options) => {
1104
+ return (options?.client ?? client).post({
1105
+ ...options,
1106
+ url: "/v1/whatsapp/contacts"
1107
+ });
1108
+ };
1109
+ var getWhatsAppContact = (options) => {
1110
+ return (options?.client ?? client).get({
1111
+ ...options,
1112
+ url: "/v1/whatsapp/contacts/{contactId}"
1113
+ });
1114
+ };
1115
+ var updateWhatsAppContact = (options) => {
1116
+ return (options?.client ?? client).put({
1117
+ ...options,
1118
+ url: "/v1/whatsapp/contacts/{contactId}"
1119
+ });
1120
+ };
1121
+ var deleteWhatsAppContact = (options) => {
1122
+ return (options?.client ?? client).delete({
1123
+ ...options,
1124
+ url: "/v1/whatsapp/contacts/{contactId}"
1125
+ });
1126
+ };
1127
+ var importWhatsAppContacts = (options) => {
1128
+ return (options?.client ?? client).post({
1129
+ ...options,
1130
+ url: "/v1/whatsapp/contacts/import"
1131
+ });
1132
+ };
1133
+ var bulkUpdateWhatsAppContacts = (options) => {
1134
+ return (options?.client ?? client).post({
1135
+ ...options,
1136
+ url: "/v1/whatsapp/contacts/bulk"
1137
+ });
1138
+ };
1139
+ var bulkDeleteWhatsAppContacts = (options) => {
1140
+ return (options?.client ?? client).delete({
1141
+ ...options,
1142
+ url: "/v1/whatsapp/contacts/bulk"
1143
+ });
1144
+ };
1145
+ var getWhatsAppGroups = (options) => {
1146
+ return (options?.client ?? client).get({
1147
+ ...options,
1148
+ url: "/v1/whatsapp/groups"
1149
+ });
1150
+ };
1151
+ var renameWhatsAppGroup = (options) => {
1152
+ return (options?.client ?? client).post({
1153
+ ...options,
1154
+ url: "/v1/whatsapp/groups"
1155
+ });
1156
+ };
1157
+ var deleteWhatsAppGroup = (options) => {
1158
+ return (options?.client ?? client).delete({
1159
+ ...options,
1160
+ url: "/v1/whatsapp/groups"
1161
+ });
1162
+ };
1163
+ var getWhatsAppTemplates = (options) => {
1164
+ return (options?.client ?? client).get({
1165
+ ...options,
1166
+ url: "/v1/whatsapp/templates"
1167
+ });
1168
+ };
1169
+ var createWhatsAppTemplate = (options) => {
1170
+ return (options?.client ?? client).post({
1171
+ ...options,
1172
+ url: "/v1/whatsapp/templates"
1173
+ });
1174
+ };
1175
+ var getWhatsAppTemplate = (options) => {
1176
+ return (options?.client ?? client).get({
1177
+ ...options,
1178
+ url: "/v1/whatsapp/templates/{templateName}"
1179
+ });
1180
+ };
1181
+ var updateWhatsAppTemplate = (options) => {
1182
+ return (options?.client ?? client).patch({
1183
+ ...options,
1184
+ url: "/v1/whatsapp/templates/{templateName}"
1185
+ });
1186
+ };
1187
+ var deleteWhatsAppTemplate = (options) => {
1188
+ return (options?.client ?? client).delete({
1189
+ ...options,
1190
+ url: "/v1/whatsapp/templates/{templateName}"
1191
+ });
1192
+ };
1193
+ var getWhatsAppBroadcasts = (options) => {
1194
+ return (options?.client ?? client).get({
1195
+ ...options,
1196
+ url: "/v1/whatsapp/broadcasts"
1197
+ });
1198
+ };
1199
+ var createWhatsAppBroadcast = (options) => {
1200
+ return (options?.client ?? client).post({
1201
+ ...options,
1202
+ url: "/v1/whatsapp/broadcasts"
1203
+ });
1204
+ };
1205
+ var getWhatsAppBroadcast = (options) => {
1206
+ return (options?.client ?? client).get({
1207
+ ...options,
1208
+ url: "/v1/whatsapp/broadcasts/{broadcastId}"
1209
+ });
1210
+ };
1211
+ var deleteWhatsAppBroadcast = (options) => {
1212
+ return (options?.client ?? client).delete({
1213
+ ...options,
1214
+ url: "/v1/whatsapp/broadcasts/{broadcastId}"
1215
+ });
1216
+ };
1217
+ var sendWhatsAppBroadcast = (options) => {
1218
+ return (options?.client ?? client).post({
1219
+ ...options,
1220
+ url: "/v1/whatsapp/broadcasts/{broadcastId}/send"
1221
+ });
1222
+ };
1223
+ var scheduleWhatsAppBroadcast = (options) => {
1224
+ return (options?.client ?? client).post({
1225
+ ...options,
1226
+ url: "/v1/whatsapp/broadcasts/{broadcastId}/schedule"
1227
+ });
1228
+ };
1229
+ var cancelWhatsAppBroadcastSchedule = (options) => {
1230
+ return (options?.client ?? client).delete({
1231
+ ...options,
1232
+ url: "/v1/whatsapp/broadcasts/{broadcastId}/schedule"
1233
+ });
1234
+ };
1235
+ var getWhatsAppBroadcastRecipients = (options) => {
1236
+ return (options?.client ?? client).get({
1237
+ ...options,
1238
+ url: "/v1/whatsapp/broadcasts/{broadcastId}/recipients"
1239
+ });
1240
+ };
1241
+ var addWhatsAppBroadcastRecipients = (options) => {
1242
+ return (options?.client ?? client).patch({
1243
+ ...options,
1244
+ url: "/v1/whatsapp/broadcasts/{broadcastId}/recipients"
1245
+ });
1246
+ };
1247
+ var removeWhatsAppBroadcastRecipients = (options) => {
1248
+ return (options?.client ?? client).delete({
1249
+ ...options,
1250
+ url: "/v1/whatsapp/broadcasts/{broadcastId}/recipients"
1251
+ });
1252
+ };
1253
+ var getWhatsAppBusinessProfile = (options) => {
1254
+ return (options?.client ?? client).get({
1255
+ ...options,
1256
+ url: "/v1/whatsapp/business-profile"
1257
+ });
1258
+ };
1259
+ var updateWhatsAppBusinessProfile = (options) => {
1260
+ return (options?.client ?? client).post({
1261
+ ...options,
1262
+ url: "/v1/whatsapp/business-profile"
1263
+ });
1264
+ };
1265
+ var getWhatsAppPhoneNumbers = (options) => {
1266
+ return (options?.client ?? client).get({
1267
+ ...options,
1268
+ url: "/v1/whatsapp/phone-numbers"
1269
+ });
1270
+ };
1271
+ var purchaseWhatsAppPhoneNumber = (options) => {
1272
+ return (options?.client ?? client).post({
1273
+ ...options,
1274
+ url: "/v1/whatsapp/phone-numbers/purchase"
1275
+ });
1276
+ };
1277
+ var getWhatsAppPhoneNumber = (options) => {
1278
+ return (options?.client ?? client).get({
1279
+ ...options,
1280
+ url: "/v1/whatsapp/phone-numbers/{phoneNumberId}"
1281
+ });
1282
+ };
1283
+ var releaseWhatsAppPhoneNumber = (options) => {
1284
+ return (options?.client ?? client).delete({
1285
+ ...options,
1286
+ url: "/v1/whatsapp/phone-numbers/{phoneNumberId}"
1287
+ });
1288
+ };
1091
1289
 
1092
1290
  // src/errors.ts
1093
1291
  var LateApiError = class _LateApiError extends Error {
@@ -1474,6 +1672,49 @@ var Late = class {
1474
1672
  replyToInboxReview,
1475
1673
  deleteInboxReviewReply
1476
1674
  };
1675
+ /**
1676
+ * whatsapp API
1677
+ */
1678
+ this.whatsapp = {
1679
+ sendWhatsAppBulk,
1680
+ getWhatsAppContacts,
1681
+ createWhatsAppContact,
1682
+ getWhatsAppContact,
1683
+ updateWhatsAppContact,
1684
+ deleteWhatsAppContact,
1685
+ importWhatsAppContacts,
1686
+ bulkUpdateWhatsAppContacts,
1687
+ bulkDeleteWhatsAppContacts,
1688
+ getWhatsAppGroups,
1689
+ renameWhatsAppGroup,
1690
+ deleteWhatsAppGroup,
1691
+ getWhatsAppTemplates,
1692
+ createWhatsAppTemplate,
1693
+ getWhatsAppTemplate,
1694
+ updateWhatsAppTemplate,
1695
+ deleteWhatsAppTemplate,
1696
+ getWhatsAppBroadcasts,
1697
+ createWhatsAppBroadcast,
1698
+ getWhatsAppBroadcast,
1699
+ deleteWhatsAppBroadcast,
1700
+ sendWhatsAppBroadcast,
1701
+ scheduleWhatsAppBroadcast,
1702
+ cancelWhatsAppBroadcastSchedule,
1703
+ getWhatsAppBroadcastRecipients,
1704
+ addWhatsAppBroadcastRecipients,
1705
+ removeWhatsAppBroadcastRecipients,
1706
+ getWhatsAppBusinessProfile,
1707
+ updateWhatsAppBusinessProfile
1708
+ };
1709
+ /**
1710
+ * whatsappphonenumbers API
1711
+ */
1712
+ this.whatsappphonenumbers = {
1713
+ getWhatsAppPhoneNumbers,
1714
+ purchaseWhatsAppPhoneNumber,
1715
+ getWhatsAppPhoneNumber,
1716
+ releaseWhatsAppPhoneNumber
1717
+ };
1477
1718
  const apiKey = options.apiKey ?? process.env["LATE_API_KEY"];
1478
1719
  if (!apiKey) {
1479
1720
  throw new LateApiError(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "description": "The official Node.js library for the Late API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/client.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import {
2
2
  client,
3
+ addWhatsAppBroadcastRecipients,
4
+ bulkDeleteWhatsAppContacts,
5
+ bulkUpdateWhatsAppContacts,
3
6
  bulkUploadPosts,
7
+ cancelWhatsAppBroadcastSchedule,
4
8
  checkInstagramHashtags,
5
9
  completeTelegramConnect,
6
10
  connectBlueskyCredentials,
@@ -13,6 +17,9 @@ import {
13
17
  createProfile,
14
18
  createQueueSlot,
15
19
  createWebhookSettings,
20
+ createWhatsAppBroadcast,
21
+ createWhatsAppContact,
22
+ createWhatsAppTemplate,
16
23
  deleteAccount,
17
24
  deleteAccountGroup,
18
25
  deleteApiKey,
@@ -27,6 +34,10 @@ import {
27
34
  deleteQueueSlot,
28
35
  deleteTelegramCommands,
29
36
  deleteWebhookSettings,
37
+ deleteWhatsAppBroadcast,
38
+ deleteWhatsAppContact,
39
+ deleteWhatsAppGroup,
40
+ deleteWhatsAppTemplate,
30
41
  downloadBlueskyMedia,
31
42
  downloadFacebookVideo,
32
43
  downloadInstagramMedia,
@@ -77,10 +88,22 @@ import {
77
88
  getUser,
78
89
  getWebhookLogs,
79
90
  getWebhookSettings,
91
+ getWhatsAppBroadcast,
92
+ getWhatsAppBroadcastRecipients,
93
+ getWhatsAppBroadcasts,
94
+ getWhatsAppBusinessProfile,
95
+ getWhatsAppContact,
96
+ getWhatsAppContacts,
97
+ getWhatsAppGroups,
98
+ getWhatsAppPhoneNumber,
99
+ getWhatsAppPhoneNumbers,
100
+ getWhatsAppTemplate,
101
+ getWhatsAppTemplates,
80
102
  getYouTubeDailyViews,
81
103
  getYouTubeTranscript,
82
104
  handleOAuthCallback,
83
105
  hideInboxComment,
106
+ importWhatsAppContacts,
84
107
  initiateTelegramConnect,
85
108
  likeInboxComment,
86
109
  listAccountGroups,
@@ -103,9 +126,14 @@ import {
103
126
  listSnapchatProfiles,
104
127
  listUsers,
105
128
  previewQueue,
129
+ purchaseWhatsAppPhoneNumber,
130
+ releaseWhatsAppPhoneNumber,
131
+ removeWhatsAppBroadcastRecipients,
132
+ renameWhatsAppGroup,
106
133
  replyToInboxPost,
107
134
  replyToInboxReview,
108
135
  retryPost,
136
+ scheduleWhatsAppBroadcast,
109
137
  searchReddit,
110
138
  selectFacebookPage,
111
139
  selectGoogleBusinessLocation,
@@ -114,6 +142,8 @@ import {
114
142
  selectSnapchatProfile,
115
143
  sendInboxMessage,
116
144
  sendPrivateReplyToComment,
145
+ sendWhatsAppBroadcast,
146
+ sendWhatsAppBulk,
117
147
  setInstagramIceBreakers,
118
148
  setMessengerMenu,
119
149
  setTelegramCommands,
@@ -136,6 +166,9 @@ import {
136
166
  updateQueueSlot,
137
167
  updateRedditSubreddits,
138
168
  updateWebhookSettings,
169
+ updateWhatsAppBusinessProfile,
170
+ updateWhatsAppContact,
171
+ updateWhatsAppTemplate,
139
172
  validateMedia,
140
173
  validatePost,
141
174
  validatePostLength,
@@ -514,6 +547,51 @@ export class Late {
514
547
  deleteInboxReviewReply: deleteInboxReviewReply,
515
548
  };
516
549
 
550
+ /**
551
+ * whatsapp API
552
+ */
553
+ whatsapp = {
554
+ sendWhatsAppBulk: sendWhatsAppBulk,
555
+ getWhatsAppContacts: getWhatsAppContacts,
556
+ createWhatsAppContact: createWhatsAppContact,
557
+ getWhatsAppContact: getWhatsAppContact,
558
+ updateWhatsAppContact: updateWhatsAppContact,
559
+ deleteWhatsAppContact: deleteWhatsAppContact,
560
+ importWhatsAppContacts: importWhatsAppContacts,
561
+ bulkUpdateWhatsAppContacts: bulkUpdateWhatsAppContacts,
562
+ bulkDeleteWhatsAppContacts: bulkDeleteWhatsAppContacts,
563
+ getWhatsAppGroups: getWhatsAppGroups,
564
+ renameWhatsAppGroup: renameWhatsAppGroup,
565
+ deleteWhatsAppGroup: deleteWhatsAppGroup,
566
+ getWhatsAppTemplates: getWhatsAppTemplates,
567
+ createWhatsAppTemplate: createWhatsAppTemplate,
568
+ getWhatsAppTemplate: getWhatsAppTemplate,
569
+ updateWhatsAppTemplate: updateWhatsAppTemplate,
570
+ deleteWhatsAppTemplate: deleteWhatsAppTemplate,
571
+ getWhatsAppBroadcasts: getWhatsAppBroadcasts,
572
+ createWhatsAppBroadcast: createWhatsAppBroadcast,
573
+ getWhatsAppBroadcast: getWhatsAppBroadcast,
574
+ deleteWhatsAppBroadcast: deleteWhatsAppBroadcast,
575
+ sendWhatsAppBroadcast: sendWhatsAppBroadcast,
576
+ scheduleWhatsAppBroadcast: scheduleWhatsAppBroadcast,
577
+ cancelWhatsAppBroadcastSchedule: cancelWhatsAppBroadcastSchedule,
578
+ getWhatsAppBroadcastRecipients: getWhatsAppBroadcastRecipients,
579
+ addWhatsAppBroadcastRecipients: addWhatsAppBroadcastRecipients,
580
+ removeWhatsAppBroadcastRecipients: removeWhatsAppBroadcastRecipients,
581
+ getWhatsAppBusinessProfile: getWhatsAppBusinessProfile,
582
+ updateWhatsAppBusinessProfile: updateWhatsAppBusinessProfile,
583
+ };
584
+
585
+ /**
586
+ * whatsappphonenumbers API
587
+ */
588
+ whatsappphonenumbers = {
589
+ getWhatsAppPhoneNumbers: getWhatsAppPhoneNumbers,
590
+ purchaseWhatsAppPhoneNumber: purchaseWhatsAppPhoneNumber,
591
+ getWhatsAppPhoneNumber: getWhatsAppPhoneNumber,
592
+ releaseWhatsAppPhoneNumber: releaseWhatsAppPhoneNumber,
593
+ };
594
+
517
595
  /**
518
596
  * Create a new Late API client.
519
597
  *