@getlatedev/node 0.2.1657 → 0.2.1659
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 +3 -0
- package/dist/index.d.mts +68 -1
- package/dist/index.d.ts +68 -1
- package/dist/index.js +22 -1
- package/dist/index.mjs +22 -1
- package/package.json +1 -1
- package/src/client.ts +6 -0
- package/src/generated/sdk.gen.ts +58 -5
- package/src/generated/types.gen.ts +73 -0
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1659",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -3293,6 +3293,12 @@ var createVoiceWebSession = (options) => {
|
|
|
3293
3293
|
url: "/v1/voice/calls/web"
|
|
3294
3294
|
});
|
|
3295
3295
|
};
|
|
3296
|
+
var createVoiceWebInboundSession = (options) => {
|
|
3297
|
+
return (options?.client ?? client).post({
|
|
3298
|
+
...options,
|
|
3299
|
+
url: "/v1/voice/calls/web/inbound"
|
|
3300
|
+
});
|
|
3301
|
+
};
|
|
3296
3302
|
var dialVoiceWebCall = (options) => {
|
|
3297
3303
|
return (options?.client ?? client).post({
|
|
3298
3304
|
...options,
|
|
@@ -3520,6 +3526,18 @@ var listSmsOptOuts = (options) => {
|
|
|
3520
3526
|
url: "/v1/sms/opt-outs"
|
|
3521
3527
|
});
|
|
3522
3528
|
};
|
|
3529
|
+
var createSmsOptOut = (options) => {
|
|
3530
|
+
return (options?.client ?? client).post({
|
|
3531
|
+
...options,
|
|
3532
|
+
url: "/v1/sms/opt-outs"
|
|
3533
|
+
});
|
|
3534
|
+
};
|
|
3535
|
+
var deleteSmsOptOut = (options) => {
|
|
3536
|
+
return (options?.client ?? client).delete({
|
|
3537
|
+
...options,
|
|
3538
|
+
url: "/v1/sms/opt-outs"
|
|
3539
|
+
});
|
|
3540
|
+
};
|
|
3523
3541
|
var createSmsSenderId = (options) => {
|
|
3524
3542
|
return (options?.client ?? client).post({
|
|
3525
3543
|
...options,
|
|
@@ -8942,6 +8960,7 @@ var Zernio = class _Zernio {
|
|
|
8942
8960
|
transferVoiceCall: this._bind(transferVoiceCall),
|
|
8943
8961
|
getVoiceCallEstimate: this._bind(getVoiceCallEstimate),
|
|
8944
8962
|
createVoiceWebSession: this._bind(createVoiceWebSession),
|
|
8963
|
+
createVoiceWebInboundSession: this._bind(createVoiceWebInboundSession),
|
|
8945
8964
|
dialVoiceWebCall: this._bind(dialVoiceWebCall),
|
|
8946
8965
|
enableVoiceOnNumber: this._bind(enableVoiceOnNumber),
|
|
8947
8966
|
disableVoiceOnNumber: this._bind(disableVoiceOnNumber),
|
|
@@ -8985,6 +9004,8 @@ var Zernio = class _Zernio {
|
|
|
8985
9004
|
sendSms: this._bind(sendSms),
|
|
8986
9005
|
lookupSmsNumber: this._bind(lookupSmsNumber),
|
|
8987
9006
|
listSmsOptOuts: this._bind(listSmsOptOuts),
|
|
9007
|
+
createSmsOptOut: this._bind(createSmsOptOut),
|
|
9008
|
+
deleteSmsOptOut: this._bind(deleteSmsOptOut),
|
|
8988
9009
|
createSmsSenderId: this._bind(createSmsSenderId),
|
|
8989
9010
|
listSmsSenderIds: this._bind(listSmsSenderIds),
|
|
8990
9011
|
requestSmsSenderIdLimitIncrease: this._bind(requestSmsSenderIdLimitIncrease),
|
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.1659",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -3262,6 +3262,12 @@ var createVoiceWebSession = (options) => {
|
|
|
3262
3262
|
url: "/v1/voice/calls/web"
|
|
3263
3263
|
});
|
|
3264
3264
|
};
|
|
3265
|
+
var createVoiceWebInboundSession = (options) => {
|
|
3266
|
+
return (options?.client ?? client).post({
|
|
3267
|
+
...options,
|
|
3268
|
+
url: "/v1/voice/calls/web/inbound"
|
|
3269
|
+
});
|
|
3270
|
+
};
|
|
3265
3271
|
var dialVoiceWebCall = (options) => {
|
|
3266
3272
|
return (options?.client ?? client).post({
|
|
3267
3273
|
...options,
|
|
@@ -3489,6 +3495,18 @@ var listSmsOptOuts = (options) => {
|
|
|
3489
3495
|
url: "/v1/sms/opt-outs"
|
|
3490
3496
|
});
|
|
3491
3497
|
};
|
|
3498
|
+
var createSmsOptOut = (options) => {
|
|
3499
|
+
return (options?.client ?? client).post({
|
|
3500
|
+
...options,
|
|
3501
|
+
url: "/v1/sms/opt-outs"
|
|
3502
|
+
});
|
|
3503
|
+
};
|
|
3504
|
+
var deleteSmsOptOut = (options) => {
|
|
3505
|
+
return (options?.client ?? client).delete({
|
|
3506
|
+
...options,
|
|
3507
|
+
url: "/v1/sms/opt-outs"
|
|
3508
|
+
});
|
|
3509
|
+
};
|
|
3492
3510
|
var createSmsSenderId = (options) => {
|
|
3493
3511
|
return (options?.client ?? client).post({
|
|
3494
3512
|
...options,
|
|
@@ -8911,6 +8929,7 @@ var Zernio = class _Zernio {
|
|
|
8911
8929
|
transferVoiceCall: this._bind(transferVoiceCall),
|
|
8912
8930
|
getVoiceCallEstimate: this._bind(getVoiceCallEstimate),
|
|
8913
8931
|
createVoiceWebSession: this._bind(createVoiceWebSession),
|
|
8932
|
+
createVoiceWebInboundSession: this._bind(createVoiceWebInboundSession),
|
|
8914
8933
|
dialVoiceWebCall: this._bind(dialVoiceWebCall),
|
|
8915
8934
|
enableVoiceOnNumber: this._bind(enableVoiceOnNumber),
|
|
8916
8935
|
disableVoiceOnNumber: this._bind(disableVoiceOnNumber),
|
|
@@ -8954,6 +8973,8 @@ var Zernio = class _Zernio {
|
|
|
8954
8973
|
sendSms: this._bind(sendSms),
|
|
8955
8974
|
lookupSmsNumber: this._bind(lookupSmsNumber),
|
|
8956
8975
|
listSmsOptOuts: this._bind(listSmsOptOuts),
|
|
8976
|
+
createSmsOptOut: this._bind(createSmsOptOut),
|
|
8977
|
+
deleteSmsOptOut: this._bind(deleteSmsOptOut),
|
|
8957
8978
|
createSmsSenderId: this._bind(createSmsSenderId),
|
|
8958
8979
|
listSmsSenderIds: this._bind(listSmsSenderIds),
|
|
8959
8980
|
requestSmsSenderIdLimitIncrease: this._bind(requestSmsSenderIdLimitIncrease),
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -206,6 +206,7 @@ import {
|
|
|
206
206
|
createSequence,
|
|
207
207
|
createSharedBudget,
|
|
208
208
|
createSipTrunk,
|
|
209
|
+
createSmsOptOut,
|
|
209
210
|
createSmsSenderId,
|
|
210
211
|
createStandaloneAd,
|
|
211
212
|
createTestLead,
|
|
@@ -216,6 +217,7 @@ import {
|
|
|
216
217
|
createValueRuleSet,
|
|
217
218
|
createVerification,
|
|
218
219
|
createVoiceCall,
|
|
220
|
+
createVoiceWebInboundSession,
|
|
219
221
|
createVoiceWebSession,
|
|
220
222
|
createWebhookSettings,
|
|
221
223
|
createWhatsAppDataset,
|
|
@@ -310,6 +312,7 @@ import {
|
|
|
310
312
|
deleteQueueSlot,
|
|
311
313
|
deleteSequence,
|
|
312
314
|
deleteSipTrunk,
|
|
315
|
+
deleteSmsOptOut,
|
|
313
316
|
deleteSmsSenderId,
|
|
314
317
|
deleteTelegramCommands,
|
|
315
318
|
deleteTestLead,
|
|
@@ -2262,6 +2265,7 @@ export class Zernio {
|
|
|
2262
2265
|
transferVoiceCall: this._bind(transferVoiceCall),
|
|
2263
2266
|
getVoiceCallEstimate: this._bind(getVoiceCallEstimate),
|
|
2264
2267
|
createVoiceWebSession: this._bind(createVoiceWebSession),
|
|
2268
|
+
createVoiceWebInboundSession: this._bind(createVoiceWebInboundSession),
|
|
2265
2269
|
dialVoiceWebCall: this._bind(dialVoiceWebCall),
|
|
2266
2270
|
enableVoiceOnNumber: this._bind(enableVoiceOnNumber),
|
|
2267
2271
|
disableVoiceOnNumber: this._bind(disableVoiceOnNumber),
|
|
@@ -2307,6 +2311,8 @@ export class Zernio {
|
|
|
2307
2311
|
sendSms: this._bind(sendSms),
|
|
2308
2312
|
lookupSmsNumber: this._bind(lookupSmsNumber),
|
|
2309
2313
|
listSmsOptOuts: this._bind(listSmsOptOuts),
|
|
2314
|
+
createSmsOptOut: this._bind(createSmsOptOut),
|
|
2315
|
+
deleteSmsOptOut: this._bind(deleteSmsOptOut),
|
|
2310
2316
|
createSmsSenderId: this._bind(createSmsSenderId),
|
|
2311
2317
|
listSmsSenderIds: this._bind(listSmsSenderIds),
|
|
2312
2318
|
requestSmsSenderIdLimitIncrease: this._bind(requestSmsSenderIdLimitIncrease),
|