@getlatedev/node 0.2.1658 → 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 +1 -0
- package/dist/index.d.mts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
- package/src/client.ts +2 -0
- package/src/generated/sdk.gen.ts +17 -1
- package/src/generated/types.gen.ts +20 -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,
|
|
@@ -8954,6 +8960,7 @@ var Zernio = class _Zernio {
|
|
|
8954
8960
|
transferVoiceCall: this._bind(transferVoiceCall),
|
|
8955
8961
|
getVoiceCallEstimate: this._bind(getVoiceCallEstimate),
|
|
8956
8962
|
createVoiceWebSession: this._bind(createVoiceWebSession),
|
|
8963
|
+
createVoiceWebInboundSession: this._bind(createVoiceWebInboundSession),
|
|
8957
8964
|
dialVoiceWebCall: this._bind(dialVoiceWebCall),
|
|
8958
8965
|
enableVoiceOnNumber: this._bind(enableVoiceOnNumber),
|
|
8959
8966
|
disableVoiceOnNumber: this._bind(disableVoiceOnNumber),
|
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,
|
|
@@ -8923,6 +8929,7 @@ var Zernio = class _Zernio {
|
|
|
8923
8929
|
transferVoiceCall: this._bind(transferVoiceCall),
|
|
8924
8930
|
getVoiceCallEstimate: this._bind(getVoiceCallEstimate),
|
|
8925
8931
|
createVoiceWebSession: this._bind(createVoiceWebSession),
|
|
8932
|
+
createVoiceWebInboundSession: this._bind(createVoiceWebInboundSession),
|
|
8926
8933
|
dialVoiceWebCall: this._bind(dialVoiceWebCall),
|
|
8927
8934
|
enableVoiceOnNumber: this._bind(enableVoiceOnNumber),
|
|
8928
8935
|
disableVoiceOnNumber: this._bind(disableVoiceOnNumber),
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -217,6 +217,7 @@ import {
|
|
|
217
217
|
createValueRuleSet,
|
|
218
218
|
createVerification,
|
|
219
219
|
createVoiceCall,
|
|
220
|
+
createVoiceWebInboundSession,
|
|
220
221
|
createVoiceWebSession,
|
|
221
222
|
createWebhookSettings,
|
|
222
223
|
createWhatsAppDataset,
|
|
@@ -2264,6 +2265,7 @@ export class Zernio {
|
|
|
2264
2265
|
transferVoiceCall: this._bind(transferVoiceCall),
|
|
2265
2266
|
getVoiceCallEstimate: this._bind(getVoiceCallEstimate),
|
|
2266
2267
|
createVoiceWebSession: this._bind(createVoiceWebSession),
|
|
2268
|
+
createVoiceWebInboundSession: this._bind(createVoiceWebInboundSession),
|
|
2267
2269
|
dialVoiceWebCall: this._bind(dialVoiceWebCall),
|
|
2268
2270
|
enableVoiceOnNumber: this._bind(enableVoiceOnNumber),
|
|
2269
2271
|
disableVoiceOnNumber: this._bind(disableVoiceOnNumber),
|