@getlatedev/node 0.2.252 → 0.2.253

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 CHANGED
@@ -12884,8 +12884,14 @@ type SendInboxMessageData = {
12884
12884
  * Use `buttons` / `quickReplies` for simple button replies
12885
12885
  * (WhatsApp's `interactive.type: "button"`) — the abstraction caps at
12886
12886
  * 3 buttons and handles the auto-conversion for you. Use this field
12887
- * only for `list`, `cta_url`, `flow`, or `location_request_message`
12888
- * messages.
12887
+ * only for `list`, `cta_url`, `flow`, `location_request_message`, or
12888
+ * `voice_call` messages.
12889
+ *
12890
+ * For `voice_call`, the message renders WhatsApp's native call
12891
+ * button; tapping it starts a voice call to your business number.
12892
+ * Requires WhatsApp Business Calling to be enabled on the sending
12893
+ * number. The optional `parameters.payload` string is echoed back on
12894
+ * the `calls` webhook (as `cta_payload`) for attribution.
12889
12895
  *
12890
12896
  * For `location_request_message`, `action` may be omitted (we default
12891
12897
  * it to `{ "name": "send_location" }`). WhatsApp renders a localized
@@ -12900,7 +12906,7 @@ type SendInboxMessageData = {
12900
12906
  /**
12901
12907
  * Which interactive layout to render.
12902
12908
  */
12903
- type: 'list' | 'cta_url' | 'flow' | 'location_request_message';
12909
+ type: 'list' | 'cta_url' | 'flow' | 'location_request_message' | 'voice_call';
12904
12910
  /**
12905
12911
  * Optional header shown above the body.
12906
12912
  */
@@ -12972,6 +12978,25 @@ type SendInboxMessageData = {
12972
12978
  */
12973
12979
  url: string;
12974
12980
  };
12981
+ } | {
12982
+ name: 'voice_call';
12983
+ /**
12984
+ * All optional.
12985
+ */
12986
+ parameters?: {
12987
+ /**
12988
+ * Button label. Defaults to "Call Now".
12989
+ */
12990
+ display_text?: string;
12991
+ /**
12992
+ * How long the button stays tappable. Defaults to 10080 (7 days).
12993
+ */
12994
+ ttl_minutes?: number;
12995
+ /**
12996
+ * Arbitrary string echoed back as `cta_payload` on the `calls` webhook (connect/terminate) for attribution.
12997
+ */
12998
+ payload?: string;
12999
+ };
12975
13000
  } | {
12976
13001
  name: 'flow';
12977
13002
  parameters: {
@@ -14411,6 +14436,10 @@ type GetWhatsAppCallingConfigResponse = ({
14411
14436
  phoneNumberDocId?: string;
14412
14437
  phoneNumber?: string;
14413
14438
  callingEnabled?: boolean;
14439
+ /**
14440
+ * Public calling deep link (https://wa.me/call/<number>). Tapping it on a phone starts a WhatsApp voice call to this number. Embed it on websites, emails, or QR codes. Null while calling is disabled; not supported by WhatsApp desktop clients.
14441
+ */
14442
+ callDeepLink?: (string) | null;
14414
14443
  /**
14415
14444
  * tel:+E164 / sip:... / wss://... destination
14416
14445
  */
package/dist/index.d.ts CHANGED
@@ -12884,8 +12884,14 @@ type SendInboxMessageData = {
12884
12884
  * Use `buttons` / `quickReplies` for simple button replies
12885
12885
  * (WhatsApp's `interactive.type: "button"`) — the abstraction caps at
12886
12886
  * 3 buttons and handles the auto-conversion for you. Use this field
12887
- * only for `list`, `cta_url`, `flow`, or `location_request_message`
12888
- * messages.
12887
+ * only for `list`, `cta_url`, `flow`, `location_request_message`, or
12888
+ * `voice_call` messages.
12889
+ *
12890
+ * For `voice_call`, the message renders WhatsApp's native call
12891
+ * button; tapping it starts a voice call to your business number.
12892
+ * Requires WhatsApp Business Calling to be enabled on the sending
12893
+ * number. The optional `parameters.payload` string is echoed back on
12894
+ * the `calls` webhook (as `cta_payload`) for attribution.
12889
12895
  *
12890
12896
  * For `location_request_message`, `action` may be omitted (we default
12891
12897
  * it to `{ "name": "send_location" }`). WhatsApp renders a localized
@@ -12900,7 +12906,7 @@ type SendInboxMessageData = {
12900
12906
  /**
12901
12907
  * Which interactive layout to render.
12902
12908
  */
12903
- type: 'list' | 'cta_url' | 'flow' | 'location_request_message';
12909
+ type: 'list' | 'cta_url' | 'flow' | 'location_request_message' | 'voice_call';
12904
12910
  /**
12905
12911
  * Optional header shown above the body.
12906
12912
  */
@@ -12972,6 +12978,25 @@ type SendInboxMessageData = {
12972
12978
  */
12973
12979
  url: string;
12974
12980
  };
12981
+ } | {
12982
+ name: 'voice_call';
12983
+ /**
12984
+ * All optional.
12985
+ */
12986
+ parameters?: {
12987
+ /**
12988
+ * Button label. Defaults to "Call Now".
12989
+ */
12990
+ display_text?: string;
12991
+ /**
12992
+ * How long the button stays tappable. Defaults to 10080 (7 days).
12993
+ */
12994
+ ttl_minutes?: number;
12995
+ /**
12996
+ * Arbitrary string echoed back as `cta_payload` on the `calls` webhook (connect/terminate) for attribution.
12997
+ */
12998
+ payload?: string;
12999
+ };
12975
13000
  } | {
12976
13001
  name: 'flow';
12977
13002
  parameters: {
@@ -14411,6 +14436,10 @@ type GetWhatsAppCallingConfigResponse = ({
14411
14436
  phoneNumberDocId?: string;
14412
14437
  phoneNumber?: string;
14413
14438
  callingEnabled?: boolean;
14439
+ /**
14440
+ * Public calling deep link (https://wa.me/call/<number>). Tapping it on a phone starts a WhatsApp voice call to this number. Embed it on websites, emails, or QR codes. Null while calling is disabled; not supported by WhatsApp desktop clients.
14441
+ */
14442
+ callDeepLink?: (string) | null;
14414
14443
  /**
14415
14444
  * tel:+E164 / sip:... / wss://... destination
14416
14445
  */
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.252",
39
+ version: "0.2.253",
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.252",
8
+ version: "0.2.253",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.252",
3
+ "version": "0.2.253",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -12862,8 +12862,14 @@ export type SendInboxMessageData = {
12862
12862
  * Use `buttons` / `quickReplies` for simple button replies
12863
12863
  * (WhatsApp's `interactive.type: "button"`) — the abstraction caps at
12864
12864
  * 3 buttons and handles the auto-conversion for you. Use this field
12865
- * only for `list`, `cta_url`, `flow`, or `location_request_message`
12866
- * messages.
12865
+ * only for `list`, `cta_url`, `flow`, `location_request_message`, or
12866
+ * `voice_call` messages.
12867
+ *
12868
+ * For `voice_call`, the message renders WhatsApp's native call
12869
+ * button; tapping it starts a voice call to your business number.
12870
+ * Requires WhatsApp Business Calling to be enabled on the sending
12871
+ * number. The optional `parameters.payload` string is echoed back on
12872
+ * the `calls` webhook (as `cta_payload`) for attribution.
12867
12873
  *
12868
12874
  * For `location_request_message`, `action` may be omitted (we default
12869
12875
  * it to `{ "name": "send_location" }`). WhatsApp renders a localized
@@ -12878,7 +12884,7 @@ export type SendInboxMessageData = {
12878
12884
  /**
12879
12885
  * Which interactive layout to render.
12880
12886
  */
12881
- type: 'list' | 'cta_url' | 'flow' | 'location_request_message';
12887
+ type: 'list' | 'cta_url' | 'flow' | 'location_request_message' | 'voice_call';
12882
12888
  /**
12883
12889
  * Optional header shown above the body.
12884
12890
  */
@@ -12950,6 +12956,25 @@ export type SendInboxMessageData = {
12950
12956
  */
12951
12957
  url: string;
12952
12958
  };
12959
+ } | {
12960
+ name: 'voice_call';
12961
+ /**
12962
+ * All optional.
12963
+ */
12964
+ parameters?: {
12965
+ /**
12966
+ * Button label. Defaults to "Call Now".
12967
+ */
12968
+ display_text?: string;
12969
+ /**
12970
+ * How long the button stays tappable. Defaults to 10080 (7 days).
12971
+ */
12972
+ ttl_minutes?: number;
12973
+ /**
12974
+ * Arbitrary string echoed back as `cta_payload` on the `calls` webhook (connect/terminate) for attribution.
12975
+ */
12976
+ payload?: string;
12977
+ };
12953
12978
  } | {
12954
12979
  name: 'flow';
12955
12980
  parameters: {
@@ -14510,6 +14535,10 @@ export type GetWhatsAppCallingConfigResponse = ({
14510
14535
  phoneNumberDocId?: string;
14511
14536
  phoneNumber?: string;
14512
14537
  callingEnabled?: boolean;
14538
+ /**
14539
+ * Public calling deep link (https://wa.me/call/<number>). Tapping it on a phone starts a WhatsApp voice call to this number. Embed it on websites, emails, or QR codes. Null while calling is disabled; not supported by WhatsApp desktop clients.
14540
+ */
14541
+ callDeepLink?: (string) | null;
14513
14542
  /**
14514
14543
  * tel:+E164 / sip:... / wss://... destination
14515
14544
  */