@getlatedev/node 0.2.1439 → 0.2.1440
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.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -1
- package/src/generated/types.gen.ts +4 -0
package/dist/index.d.mts
CHANGED
|
@@ -41313,6 +41313,10 @@ type TransferVoiceCallResponse = ({
|
|
|
41313
41313
|
type TransferVoiceCallError = (ErrorResponse | unknown);
|
|
41314
41314
|
type GetVoiceCallEstimateData = {
|
|
41315
41315
|
query: {
|
|
41316
|
+
/**
|
|
41317
|
+
* Destination the call bridges to: `tel:+E164`, `sip:...` or `wss://...`. Defaults to the dialing number's configured forward. A `tel:` destination adds a second carrier leg to the quote. Encode the `+` as `%2B`.
|
|
41318
|
+
*/
|
|
41319
|
+
forwardTo?: string;
|
|
41316
41320
|
/**
|
|
41317
41321
|
* The number the call would dial from, E.164. When it is verified on a Branded Calling identity and `to` is a US number, the estimate includes the per-call Branded Calling surcharge.
|
|
41318
41322
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -41313,6 +41313,10 @@ type TransferVoiceCallResponse = ({
|
|
|
41313
41313
|
type TransferVoiceCallError = (ErrorResponse | unknown);
|
|
41314
41314
|
type GetVoiceCallEstimateData = {
|
|
41315
41315
|
query: {
|
|
41316
|
+
/**
|
|
41317
|
+
* Destination the call bridges to: `tel:+E164`, `sip:...` or `wss://...`. Defaults to the dialing number's configured forward. A `tel:` destination adds a second carrier leg to the quote. Encode the `+` as `%2B`.
|
|
41318
|
+
*/
|
|
41319
|
+
forwardTo?: string;
|
|
41316
41320
|
/**
|
|
41317
41321
|
* The number the call would dial from, E.164. When it is verified on a Branded Calling identity and `to` is a US number, the estimate includes the per-call Branded Calling surcharge.
|
|
41318
41322
|
*/
|
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.1440",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
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.1440",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -8100,7 +8100,7 @@ export const transferVoiceCall = <ThrowOnError extends boolean = false>(options:
|
|
|
8100
8100
|
* Estimate call cost
|
|
8101
8101
|
* Pre-call cost estimate for a PSTN call: the carrier leg plus optional recording and transcription add-ons.
|
|
8102
8102
|
*
|
|
8103
|
-
* It uses the same billing formula as the post-call invoice, so the quote and the final charge can't disagree. The per-
|
|
8103
|
+
* It uses the same billing formula as the post-call invoice, so the quote and the final charge can't disagree. The carrier figure follows the carrier's per-destination rate card: a call dialed from a number in the destination country uses the local mobile rate, and a `tel:` forward destination is quoted as a second carrier leg billed from the same number. The real cost comes from the settled carrier record after the call.
|
|
8104
8104
|
*
|
|
8105
8105
|
* Parity endpoint of `GET /v1/whatsapp/calls/estimate`, minus the Meta line. PSTN calls have no separate Meta bill, so `totalCostUSD` equals `billableCostUSD`.
|
|
8106
8106
|
*
|
|
@@ -41250,6 +41250,10 @@ export type TransferVoiceCallError = (ErrorResponse | unknown);
|
|
|
41250
41250
|
|
|
41251
41251
|
export type GetVoiceCallEstimateData = {
|
|
41252
41252
|
query: {
|
|
41253
|
+
/**
|
|
41254
|
+
* Destination the call bridges to: `tel:+E164`, `sip:...` or `wss://...`. Defaults to the dialing number's configured forward. A `tel:` destination adds a second carrier leg to the quote. Encode the `+` as `%2B`.
|
|
41255
|
+
*/
|
|
41256
|
+
forwardTo?: string;
|
|
41253
41257
|
/**
|
|
41254
41258
|
* The number the call would dial from, E.164. When it is verified on a Branded Calling identity and `to` is a US number, the estimate includes the per-call Branded Calling surcharge.
|
|
41255
41259
|
*/
|