@getlatedev/node 0.2.248 → 0.2.249
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 +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +6 -0
- package/src/generated/types.gen.ts +8 -0
package/dist/index.d.mts
CHANGED
|
@@ -14403,6 +14403,14 @@ type InitiateWhatsAppCallData = {
|
|
|
14403
14403
|
* Consumer wa_id (E.164
|
|
14404
14404
|
*/
|
|
14405
14405
|
to: string;
|
|
14406
|
+
/**
|
|
14407
|
+
* Omit to place a call. Set to send the consent prompt instead.
|
|
14408
|
+
*/
|
|
14409
|
+
action?: 'send_call_permission_request';
|
|
14410
|
+
/**
|
|
14411
|
+
* Body text shown with the consent prompt (send_call_permission_request only).
|
|
14412
|
+
*/
|
|
14413
|
+
bodyText?: string;
|
|
14406
14414
|
/**
|
|
14407
14415
|
* Per-call destination override. Same accepted shape as the
|
|
14408
14416
|
* number's stored forwardTo (tel:+E164, sip:..., wss://...).
|
package/dist/index.d.ts
CHANGED
|
@@ -14403,6 +14403,14 @@ type InitiateWhatsAppCallData = {
|
|
|
14403
14403
|
* Consumer wa_id (E.164
|
|
14404
14404
|
*/
|
|
14405
14405
|
to: string;
|
|
14406
|
+
/**
|
|
14407
|
+
* Omit to place a call. Set to send the consent prompt instead.
|
|
14408
|
+
*/
|
|
14409
|
+
action?: 'send_call_permission_request';
|
|
14410
|
+
/**
|
|
14411
|
+
* Body text shown with the consent prompt (send_call_permission_request only).
|
|
14412
|
+
*/
|
|
14413
|
+
bodyText?: string;
|
|
14406
14414
|
/**
|
|
14407
14415
|
* Per-call destination override. Same accepted shape as the
|
|
14408
14416
|
* number's stored forwardTo (tel:+E164, sip:..., wss://...).
|
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.249",
|
|
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.249",
|
|
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
|
@@ -3057,6 +3057,12 @@ export const getWhatsAppCallPermissions = <ThrowOnError extends boolean = false>
|
|
|
3057
3057
|
* captured at calling-enablement time). No client-side SDP is
|
|
3058
3058
|
* required; pass only `accountId` and `to`.
|
|
3059
3059
|
*
|
|
3060
|
+
* To send the consumer the call-consent prompt instead of placing a
|
|
3061
|
+
* call, pass `action: "send_call_permission_request"` (+ optional
|
|
3062
|
+
* `bodyText`). The consumer must tap Allow in WhatsApp before
|
|
3063
|
+
* `start_call` is permitted; Meta limits the prompt to 1 per consumer
|
|
3064
|
+
* per 24h (2 per 7 days) and requires an open 24h service window.
|
|
3065
|
+
*
|
|
3060
3066
|
*/
|
|
3061
3067
|
export const initiateWhatsAppCall = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<InitiateWhatsAppCallData, ThrowOnError>) => {
|
|
3062
3068
|
return (options?.client ?? client).post<InitiateWhatsAppCallResponse, InitiateWhatsAppCallError, ThrowOnError>({
|
|
@@ -14514,6 +14514,14 @@ export type InitiateWhatsAppCallData = {
|
|
|
14514
14514
|
* Consumer wa_id (E.164
|
|
14515
14515
|
*/
|
|
14516
14516
|
to: string;
|
|
14517
|
+
/**
|
|
14518
|
+
* Omit to place a call. Set to send the consent prompt instead.
|
|
14519
|
+
*/
|
|
14520
|
+
action?: 'send_call_permission_request';
|
|
14521
|
+
/**
|
|
14522
|
+
* Body text shown with the consent prompt (send_call_permission_request only).
|
|
14523
|
+
*/
|
|
14524
|
+
bodyText?: string;
|
|
14517
14525
|
/**
|
|
14518
14526
|
* Per-call destination override. Same accepted shape as the
|
|
14519
14527
|
* number's stored forwardTo (tel:+E164, sip:..., wss://...).
|