@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/src/client.ts
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
addUsersToAdAudience,
|
|
12
12
|
addWhatsAppGroupParticipants,
|
|
13
13
|
adjustConversions,
|
|
14
|
+
appealSmsRegistration,
|
|
14
15
|
approveWhatsAppGroupJoinRequests,
|
|
15
16
|
archiveLeadForm,
|
|
16
17
|
batchGetGoogleBusinessReviews,
|
|
@@ -21,6 +22,9 @@ import {
|
|
|
21
22
|
bulkUpdateAdCampaignStatus,
|
|
22
23
|
bulkUploadPosts,
|
|
23
24
|
cancelBroadcast,
|
|
25
|
+
cancelPhoneNumberPortIn,
|
|
26
|
+
checkPhoneNumberAvailability,
|
|
27
|
+
checkPhoneNumberPortability,
|
|
24
28
|
checkWhatsAppNumberAvailability,
|
|
25
29
|
clearContactFieldValue,
|
|
26
30
|
completeGoogleBusinessVerification,
|
|
@@ -45,6 +49,8 @@ import {
|
|
|
45
49
|
createInboxConversation,
|
|
46
50
|
createInviteToken,
|
|
47
51
|
createLeadForm,
|
|
52
|
+
createPhoneNumberKycLink,
|
|
53
|
+
createPhoneNumberPortIn,
|
|
48
54
|
createPost,
|
|
49
55
|
createProfile,
|
|
50
56
|
createQueueSlot,
|
|
@@ -52,6 +58,8 @@ import {
|
|
|
52
58
|
createStandaloneAd,
|
|
53
59
|
createTestLead,
|
|
54
60
|
createTrackingTag,
|
|
61
|
+
createVoiceCall,
|
|
62
|
+
createVoiceWebSession,
|
|
55
63
|
createWebhookSettings,
|
|
56
64
|
createWhatsAppDataset,
|
|
57
65
|
createWhatsAppFlow,
|
|
@@ -94,12 +102,20 @@ import {
|
|
|
94
102
|
deleteWhatsappBusinessUsername,
|
|
95
103
|
deleteWorkflow,
|
|
96
104
|
deprecateWhatsAppFlow,
|
|
105
|
+
dialVoiceWebCall,
|
|
106
|
+
disableSmsOnNumber,
|
|
107
|
+
disableVoiceOnNumber,
|
|
97
108
|
disableWhatsAppCalling,
|
|
109
|
+
disableWhatsAppCallingLegacy,
|
|
98
110
|
duplicateAdCampaign,
|
|
99
111
|
duplicateWorkflow,
|
|
100
112
|
editInboxMessage,
|
|
101
113
|
editPost,
|
|
114
|
+
enableSmsOnNumber,
|
|
115
|
+
enableVoiceOnNumber,
|
|
102
116
|
enableWhatsAppCalling,
|
|
117
|
+
enableWhatsAppCallingLegacy,
|
|
118
|
+
endVoiceCall,
|
|
103
119
|
enrollContacts,
|
|
104
120
|
estimateAdReach,
|
|
105
121
|
fetchGoogleBusinessVerificationOptions,
|
|
@@ -116,6 +132,9 @@ import {
|
|
|
116
132
|
getAnalytics,
|
|
117
133
|
getBestTimeToPost,
|
|
118
134
|
getBroadcast,
|
|
135
|
+
getCall,
|
|
136
|
+
getCallRecording,
|
|
137
|
+
getCallsUsage,
|
|
119
138
|
getCampaignAnalytics,
|
|
120
139
|
getCommentAutomation,
|
|
121
140
|
getConnectUrl,
|
|
@@ -167,6 +186,9 @@ import {
|
|
|
167
186
|
getMessengerMenu,
|
|
168
187
|
getNextQueueSlot,
|
|
169
188
|
getPendingOAuthData,
|
|
189
|
+
getPhoneNumber,
|
|
190
|
+
getPhoneNumberKycForm,
|
|
191
|
+
getPhoneNumberRemediation,
|
|
170
192
|
getPinterestBoards,
|
|
171
193
|
getPost,
|
|
172
194
|
getPostTimeline,
|
|
@@ -176,14 +198,20 @@ import {
|
|
|
176
198
|
getRedditFlairs,
|
|
177
199
|
getRedditSubreddits,
|
|
178
200
|
getSequence,
|
|
201
|
+
getSmsRegistration,
|
|
202
|
+
getSmsUsage,
|
|
179
203
|
getTelegramCommands,
|
|
180
204
|
getTelegramConnectStatus,
|
|
181
205
|
getTikTokAccountInsights,
|
|
182
206
|
getTikTokCreatorInfo,
|
|
183
207
|
getTrackingTag,
|
|
184
208
|
getTrackingTagStats,
|
|
209
|
+
getUsage,
|
|
185
210
|
getUsageStats,
|
|
186
211
|
getUser,
|
|
212
|
+
getVoiceCall,
|
|
213
|
+
getVoiceCallEstimate,
|
|
214
|
+
getVoiceCallRecording,
|
|
187
215
|
getWebhookLogs,
|
|
188
216
|
getWebhookSettings,
|
|
189
217
|
getWhatsAppBlockStatus,
|
|
@@ -192,6 +220,8 @@ import {
|
|
|
192
220
|
getWhatsAppCall,
|
|
193
221
|
getWhatsAppCallEstimate,
|
|
194
222
|
getWhatsAppCallPermissions,
|
|
223
|
+
getWhatsAppCallRecording,
|
|
224
|
+
getWhatsAppCalling,
|
|
195
225
|
getWhatsAppCallingConfig,
|
|
196
226
|
getWhatsAppDataset,
|
|
197
227
|
getWhatsAppDisplayName,
|
|
@@ -234,6 +264,7 @@ import {
|
|
|
234
264
|
listApiKeys,
|
|
235
265
|
listBroadcastRecipients,
|
|
236
266
|
listBroadcasts,
|
|
267
|
+
listCalls,
|
|
237
268
|
listCommentAutomationLogs,
|
|
238
269
|
listCommentAutomations,
|
|
239
270
|
listContacts,
|
|
@@ -259,16 +290,22 @@ import {
|
|
|
259
290
|
listLeads,
|
|
260
291
|
listLinkedInOrganizations,
|
|
261
292
|
listLogs,
|
|
293
|
+
listPhoneNumberCountries,
|
|
294
|
+
listPhoneNumberPortIns,
|
|
295
|
+
listPhoneNumbers,
|
|
262
296
|
listPinterestBoardsForSelection,
|
|
263
297
|
listPosts,
|
|
264
298
|
listProfiles,
|
|
265
299
|
listQueueSlots,
|
|
266
300
|
listSequenceEnrollments,
|
|
267
301
|
listSequences,
|
|
302
|
+
listSmsOptOuts,
|
|
303
|
+
listSmsRegistrations,
|
|
268
304
|
listSnapchatProfiles,
|
|
269
305
|
listTrackingTagSharedAccounts,
|
|
270
306
|
listTrackingTags,
|
|
271
307
|
listUsers,
|
|
308
|
+
listVoiceCalls,
|
|
272
309
|
listWhatsAppCalls,
|
|
273
310
|
listWhatsAppConversions,
|
|
274
311
|
listWhatsAppFlowResponses,
|
|
@@ -283,6 +320,7 @@ import {
|
|
|
283
320
|
listWorkflowExecutions,
|
|
284
321
|
listWorkflowVersions,
|
|
285
322
|
listWorkflows,
|
|
323
|
+
lookupSmsNumber,
|
|
286
324
|
markConversationRead,
|
|
287
325
|
moveAccountToProfile,
|
|
288
326
|
pauseSequence,
|
|
@@ -290,9 +328,12 @@ import {
|
|
|
290
328
|
pinDiscordMessage,
|
|
291
329
|
previewQueue,
|
|
292
330
|
publishWhatsAppFlow,
|
|
331
|
+
purchasePhoneNumber,
|
|
293
332
|
purchaseWhatsAppPhoneNumber,
|
|
294
333
|
rejectWhatsAppGroupJoinRequests,
|
|
334
|
+
releasePhoneNumber,
|
|
295
335
|
releaseWhatsAppPhoneNumber,
|
|
336
|
+
remediatePhoneNumber,
|
|
296
337
|
remediateWhatsAppNumber,
|
|
297
338
|
removeBookmark,
|
|
298
339
|
removeConversionAssociations,
|
|
@@ -306,9 +347,12 @@ import {
|
|
|
306
347
|
restoreWorkflowVersion,
|
|
307
348
|
retryPost,
|
|
308
349
|
retweetPost,
|
|
350
|
+
reuseSmsRegistrationForNumber,
|
|
351
|
+
reviewPhoneNumberKycPacket,
|
|
309
352
|
scheduleBroadcast,
|
|
310
353
|
searchAdInterests,
|
|
311
354
|
searchAdTargeting,
|
|
355
|
+
searchAvailablePhoneNumbers,
|
|
312
356
|
searchAvailableWhatsAppNumbers,
|
|
313
357
|
searchReddit,
|
|
314
358
|
selectFacebookPage,
|
|
@@ -321,6 +365,7 @@ import {
|
|
|
321
365
|
sendDiscordDirectMessage,
|
|
322
366
|
sendInboxMessage,
|
|
323
367
|
sendPrivateReplyToComment,
|
|
368
|
+
sendSms,
|
|
324
369
|
sendTypingIndicator,
|
|
325
370
|
sendWhatsAppConversion,
|
|
326
371
|
sendWhatsAppFlowMessage,
|
|
@@ -329,10 +374,14 @@ import {
|
|
|
329
374
|
setMessengerMenu,
|
|
330
375
|
setTelegramCommands,
|
|
331
376
|
setWhatsappBusinessUsername,
|
|
377
|
+
shareSmsRegistration,
|
|
332
378
|
startGoogleBusinessVerification,
|
|
379
|
+
startSmsRegistration,
|
|
380
|
+
submitPhoneNumberKyc,
|
|
333
381
|
submitWhatsAppNumberKyc,
|
|
334
382
|
syncExternalPosts,
|
|
335
383
|
testWebhook,
|
|
384
|
+
transferVoiceCall,
|
|
336
385
|
triggerWorkflow,
|
|
337
386
|
unblockWhatsAppUsers,
|
|
338
387
|
undoRetweet,
|
|
@@ -377,6 +426,7 @@ import {
|
|
|
377
426
|
updateWebhookSettings,
|
|
378
427
|
updateWhatsAppBusinessProfile,
|
|
379
428
|
updateWhatsAppCalling,
|
|
429
|
+
updateWhatsAppCallingLegacy,
|
|
380
430
|
updateWhatsAppDisplayName,
|
|
381
431
|
updateWhatsAppFlow,
|
|
382
432
|
updateWhatsAppGroupChat,
|
|
@@ -384,14 +434,18 @@ import {
|
|
|
384
434
|
updateWorkflow,
|
|
385
435
|
updateYoutubeDefaultPlaylist,
|
|
386
436
|
uploadMediaDirect,
|
|
437
|
+
uploadPhoneNumberKycDocument,
|
|
438
|
+
uploadPhoneNumberPortInDocument,
|
|
387
439
|
uploadWhatsAppFlowJson,
|
|
388
440
|
uploadWhatsAppNumberKycDocument,
|
|
389
441
|
uploadWhatsAppProfilePhoto,
|
|
390
442
|
validateMedia,
|
|
443
|
+
validatePhoneNumberKycAddress,
|
|
391
444
|
validatePost,
|
|
392
445
|
validatePostLength,
|
|
393
446
|
validateSubreddit,
|
|
394
447
|
validateWhatsAppNumberKycAddress,
|
|
448
|
+
verifySmsRegistrationOtp,
|
|
395
449
|
} from './generated/sdk.gen';
|
|
396
450
|
|
|
397
451
|
import { ZernioApiError, parseApiError } from './errors';
|
|
@@ -537,7 +591,10 @@ export class Zernio {
|
|
|
537
591
|
*/
|
|
538
592
|
usage = {
|
|
539
593
|
getXApiPricing: getXApiPricing,
|
|
594
|
+
getUsage: getUsage,
|
|
540
595
|
getUsageStats: getUsageStats,
|
|
596
|
+
getCallsUsage: getCallsUsage,
|
|
597
|
+
getSmsUsage: getSmsUsage,
|
|
541
598
|
};
|
|
542
599
|
|
|
543
600
|
/**
|
|
@@ -909,14 +966,63 @@ export class Zernio {
|
|
|
909
966
|
*/
|
|
910
967
|
whatsappcalling = {
|
|
911
968
|
getWhatsAppCallingConfig: getWhatsAppCallingConfig,
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
969
|
+
enableWhatsAppCallingLegacy: enableWhatsAppCallingLegacy,
|
|
970
|
+
updateWhatsAppCallingLegacy: updateWhatsAppCallingLegacy,
|
|
971
|
+
disableWhatsAppCallingLegacy: disableWhatsAppCallingLegacy,
|
|
915
972
|
getWhatsAppCallPermissions: getWhatsAppCallPermissions,
|
|
916
973
|
initiateWhatsAppCall: initiateWhatsAppCall,
|
|
917
974
|
listWhatsAppCalls: listWhatsAppCalls,
|
|
918
975
|
getWhatsAppCall: getWhatsAppCall,
|
|
976
|
+
getWhatsAppCallRecording: getWhatsAppCallRecording,
|
|
919
977
|
getWhatsAppCallEstimate: getWhatsAppCallEstimate,
|
|
978
|
+
getWhatsAppCalling: getWhatsAppCalling,
|
|
979
|
+
enableWhatsAppCalling: enableWhatsAppCalling,
|
|
980
|
+
updateWhatsAppCalling: updateWhatsAppCalling,
|
|
981
|
+
disableWhatsAppCalling: disableWhatsAppCalling,
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* calls API
|
|
986
|
+
*/
|
|
987
|
+
calls = {
|
|
988
|
+
listCalls: listCalls,
|
|
989
|
+
getCall: getCall,
|
|
990
|
+
getCallRecording: getCallRecording,
|
|
991
|
+
};
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* voice API
|
|
995
|
+
*/
|
|
996
|
+
voice = {
|
|
997
|
+
createVoiceCall: createVoiceCall,
|
|
998
|
+
listVoiceCalls: listVoiceCalls,
|
|
999
|
+
getVoiceCall: getVoiceCall,
|
|
1000
|
+
endVoiceCall: endVoiceCall,
|
|
1001
|
+
getVoiceCallRecording: getVoiceCallRecording,
|
|
1002
|
+
transferVoiceCall: transferVoiceCall,
|
|
1003
|
+
getVoiceCallEstimate: getVoiceCallEstimate,
|
|
1004
|
+
createVoiceWebSession: createVoiceWebSession,
|
|
1005
|
+
dialVoiceWebCall: dialVoiceWebCall,
|
|
1006
|
+
enableVoiceOnNumber: enableVoiceOnNumber,
|
|
1007
|
+
disableVoiceOnNumber: disableVoiceOnNumber,
|
|
1008
|
+
};
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* sms API
|
|
1012
|
+
*/
|
|
1013
|
+
sms = {
|
|
1014
|
+
sendSms: sendSms,
|
|
1015
|
+
lookupSmsNumber: lookupSmsNumber,
|
|
1016
|
+
listSmsOptOuts: listSmsOptOuts,
|
|
1017
|
+
startSmsRegistration: startSmsRegistration,
|
|
1018
|
+
listSmsRegistrations: listSmsRegistrations,
|
|
1019
|
+
getSmsRegistration: getSmsRegistration,
|
|
1020
|
+
verifySmsRegistrationOtp: verifySmsRegistrationOtp,
|
|
1021
|
+
appealSmsRegistration: appealSmsRegistration,
|
|
1022
|
+
shareSmsRegistration: shareSmsRegistration,
|
|
1023
|
+
enableSmsOnNumber: enableSmsOnNumber,
|
|
1024
|
+
disableSmsOnNumber: disableSmsOnNumber,
|
|
1025
|
+
reuseSmsRegistrationForNumber: reuseSmsRegistrationForNumber,
|
|
920
1026
|
};
|
|
921
1027
|
|
|
922
1028
|
/**
|
|
@@ -947,6 +1053,32 @@ export class Zernio {
|
|
|
947
1053
|
releaseWhatsAppPhoneNumber: releaseWhatsAppPhoneNumber,
|
|
948
1054
|
};
|
|
949
1055
|
|
|
1056
|
+
/**
|
|
1057
|
+
* phonenumbers API
|
|
1058
|
+
*/
|
|
1059
|
+
phonenumbers = {
|
|
1060
|
+
listPhoneNumbers: listPhoneNumbers,
|
|
1061
|
+
getPhoneNumber: getPhoneNumber,
|
|
1062
|
+
releasePhoneNumber: releasePhoneNumber,
|
|
1063
|
+
purchasePhoneNumber: purchasePhoneNumber,
|
|
1064
|
+
listPhoneNumberCountries: listPhoneNumberCountries,
|
|
1065
|
+
searchAvailablePhoneNumbers: searchAvailablePhoneNumbers,
|
|
1066
|
+
checkPhoneNumberAvailability: checkPhoneNumberAvailability,
|
|
1067
|
+
getPhoneNumberKycForm: getPhoneNumberKycForm,
|
|
1068
|
+
submitPhoneNumberKyc: submitPhoneNumberKyc,
|
|
1069
|
+
uploadPhoneNumberKycDocument: uploadPhoneNumberKycDocument,
|
|
1070
|
+
validatePhoneNumberKycAddress: validatePhoneNumberKycAddress,
|
|
1071
|
+
createPhoneNumberKycLink: createPhoneNumberKycLink,
|
|
1072
|
+
createPhoneNumberPortIn: createPhoneNumberPortIn,
|
|
1073
|
+
listPhoneNumberPortIns: listPhoneNumberPortIns,
|
|
1074
|
+
checkPhoneNumberPortability: checkPhoneNumberPortability,
|
|
1075
|
+
uploadPhoneNumberPortInDocument: uploadPhoneNumberPortInDocument,
|
|
1076
|
+
cancelPhoneNumberPortIn: cancelPhoneNumberPortIn,
|
|
1077
|
+
reviewPhoneNumberKycPacket: reviewPhoneNumberKycPacket,
|
|
1078
|
+
getPhoneNumberRemediation: getPhoneNumberRemediation,
|
|
1079
|
+
remediatePhoneNumber: remediatePhoneNumber,
|
|
1080
|
+
};
|
|
1081
|
+
|
|
950
1082
|
/**
|
|
951
1083
|
* whatsappsandbox API
|
|
952
1084
|
*/
|