@getlatedev/node 0.2.252 → 0.2.254
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 +40 -3
- package/dist/index.d.ts +40 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +40 -3
package/dist/index.d.mts
CHANGED
|
@@ -1110,6 +1110,10 @@ type AdCampaign = {
|
|
|
1110
1110
|
platformAdAccountName?: (string) | null;
|
|
1111
1111
|
accountId?: string;
|
|
1112
1112
|
profileId?: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* Google-only. Raw campaign.advertising_channel_type. See AdTreeCampaign.advertisingChannelType.
|
|
1115
|
+
*/
|
|
1116
|
+
advertisingChannelType?: (string) | null;
|
|
1113
1117
|
/**
|
|
1114
1118
|
* Raw Meta campaign objective (e.g. OUTCOME_SALES, OUTCOME_LEADS, OUTCOME_TRAFFIC)
|
|
1115
1119
|
*/
|
|
@@ -1326,6 +1330,10 @@ type AdTreeCampaign = {
|
|
|
1326
1330
|
platformAdAccountName?: (string) | null;
|
|
1327
1331
|
accountId?: string;
|
|
1328
1332
|
profileId?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* Google-only. Raw campaign.advertising_channel_type (SEARCH, PERFORMANCE_MAX, VIDEO, DEMAND_GEN, DISPLAY, SHOPPING, ...). Serving surface, distinct from platformObjective (advertiser intent). Null/absent for non-Google platforms.
|
|
1335
|
+
*/
|
|
1336
|
+
advertisingChannelType?: (string) | null;
|
|
1329
1337
|
/**
|
|
1330
1338
|
* Raw Meta campaign objective (e.g. OUTCOME_SALES, OUTCOME_LEADS, OUTCOME_TRAFFIC)
|
|
1331
1339
|
*/
|
|
@@ -12884,8 +12892,14 @@ type SendInboxMessageData = {
|
|
|
12884
12892
|
* Use `buttons` / `quickReplies` for simple button replies
|
|
12885
12893
|
* (WhatsApp's `interactive.type: "button"`) — the abstraction caps at
|
|
12886
12894
|
* 3 buttons and handles the auto-conversion for you. Use this field
|
|
12887
|
-
* only for `list`, `cta_url`, `flow`,
|
|
12888
|
-
* messages.
|
|
12895
|
+
* only for `list`, `cta_url`, `flow`, `location_request_message`, or
|
|
12896
|
+
* `voice_call` messages.
|
|
12897
|
+
*
|
|
12898
|
+
* For `voice_call`, the message renders WhatsApp's native call
|
|
12899
|
+
* button; tapping it starts a voice call to your business number.
|
|
12900
|
+
* Requires WhatsApp Business Calling to be enabled on the sending
|
|
12901
|
+
* number. The optional `parameters.payload` string is echoed back on
|
|
12902
|
+
* the `calls` webhook (as `cta_payload`) for attribution.
|
|
12889
12903
|
*
|
|
12890
12904
|
* For `location_request_message`, `action` may be omitted (we default
|
|
12891
12905
|
* it to `{ "name": "send_location" }`). WhatsApp renders a localized
|
|
@@ -12900,7 +12914,7 @@ type SendInboxMessageData = {
|
|
|
12900
12914
|
/**
|
|
12901
12915
|
* Which interactive layout to render.
|
|
12902
12916
|
*/
|
|
12903
|
-
type: 'list' | 'cta_url' | 'flow' | 'location_request_message';
|
|
12917
|
+
type: 'list' | 'cta_url' | 'flow' | 'location_request_message' | 'voice_call';
|
|
12904
12918
|
/**
|
|
12905
12919
|
* Optional header shown above the body.
|
|
12906
12920
|
*/
|
|
@@ -12972,6 +12986,25 @@ type SendInboxMessageData = {
|
|
|
12972
12986
|
*/
|
|
12973
12987
|
url: string;
|
|
12974
12988
|
};
|
|
12989
|
+
} | {
|
|
12990
|
+
name: 'voice_call';
|
|
12991
|
+
/**
|
|
12992
|
+
* All optional.
|
|
12993
|
+
*/
|
|
12994
|
+
parameters?: {
|
|
12995
|
+
/**
|
|
12996
|
+
* Button label. Defaults to "Call Now".
|
|
12997
|
+
*/
|
|
12998
|
+
display_text?: string;
|
|
12999
|
+
/**
|
|
13000
|
+
* How long the button stays tappable. Defaults to 10080 (7 days).
|
|
13001
|
+
*/
|
|
13002
|
+
ttl_minutes?: number;
|
|
13003
|
+
/**
|
|
13004
|
+
* Arbitrary string echoed back as `cta_payload` on the `calls` webhook (connect/terminate) for attribution.
|
|
13005
|
+
*/
|
|
13006
|
+
payload?: string;
|
|
13007
|
+
};
|
|
12975
13008
|
} | {
|
|
12976
13009
|
name: 'flow';
|
|
12977
13010
|
parameters: {
|
|
@@ -14411,6 +14444,10 @@ type GetWhatsAppCallingConfigResponse = ({
|
|
|
14411
14444
|
phoneNumberDocId?: string;
|
|
14412
14445
|
phoneNumber?: string;
|
|
14413
14446
|
callingEnabled?: boolean;
|
|
14447
|
+
/**
|
|
14448
|
+
* 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.
|
|
14449
|
+
*/
|
|
14450
|
+
callDeepLink?: (string) | null;
|
|
14414
14451
|
/**
|
|
14415
14452
|
* tel:+E164 / sip:... / wss://... destination
|
|
14416
14453
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1110,6 +1110,10 @@ type AdCampaign = {
|
|
|
1110
1110
|
platformAdAccountName?: (string) | null;
|
|
1111
1111
|
accountId?: string;
|
|
1112
1112
|
profileId?: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* Google-only. Raw campaign.advertising_channel_type. See AdTreeCampaign.advertisingChannelType.
|
|
1115
|
+
*/
|
|
1116
|
+
advertisingChannelType?: (string) | null;
|
|
1113
1117
|
/**
|
|
1114
1118
|
* Raw Meta campaign objective (e.g. OUTCOME_SALES, OUTCOME_LEADS, OUTCOME_TRAFFIC)
|
|
1115
1119
|
*/
|
|
@@ -1326,6 +1330,10 @@ type AdTreeCampaign = {
|
|
|
1326
1330
|
platformAdAccountName?: (string) | null;
|
|
1327
1331
|
accountId?: string;
|
|
1328
1332
|
profileId?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* Google-only. Raw campaign.advertising_channel_type (SEARCH, PERFORMANCE_MAX, VIDEO, DEMAND_GEN, DISPLAY, SHOPPING, ...). Serving surface, distinct from platformObjective (advertiser intent). Null/absent for non-Google platforms.
|
|
1335
|
+
*/
|
|
1336
|
+
advertisingChannelType?: (string) | null;
|
|
1329
1337
|
/**
|
|
1330
1338
|
* Raw Meta campaign objective (e.g. OUTCOME_SALES, OUTCOME_LEADS, OUTCOME_TRAFFIC)
|
|
1331
1339
|
*/
|
|
@@ -12884,8 +12892,14 @@ type SendInboxMessageData = {
|
|
|
12884
12892
|
* Use `buttons` / `quickReplies` for simple button replies
|
|
12885
12893
|
* (WhatsApp's `interactive.type: "button"`) — the abstraction caps at
|
|
12886
12894
|
* 3 buttons and handles the auto-conversion for you. Use this field
|
|
12887
|
-
* only for `list`, `cta_url`, `flow`,
|
|
12888
|
-
* messages.
|
|
12895
|
+
* only for `list`, `cta_url`, `flow`, `location_request_message`, or
|
|
12896
|
+
* `voice_call` messages.
|
|
12897
|
+
*
|
|
12898
|
+
* For `voice_call`, the message renders WhatsApp's native call
|
|
12899
|
+
* button; tapping it starts a voice call to your business number.
|
|
12900
|
+
* Requires WhatsApp Business Calling to be enabled on the sending
|
|
12901
|
+
* number. The optional `parameters.payload` string is echoed back on
|
|
12902
|
+
* the `calls` webhook (as `cta_payload`) for attribution.
|
|
12889
12903
|
*
|
|
12890
12904
|
* For `location_request_message`, `action` may be omitted (we default
|
|
12891
12905
|
* it to `{ "name": "send_location" }`). WhatsApp renders a localized
|
|
@@ -12900,7 +12914,7 @@ type SendInboxMessageData = {
|
|
|
12900
12914
|
/**
|
|
12901
12915
|
* Which interactive layout to render.
|
|
12902
12916
|
*/
|
|
12903
|
-
type: 'list' | 'cta_url' | 'flow' | 'location_request_message';
|
|
12917
|
+
type: 'list' | 'cta_url' | 'flow' | 'location_request_message' | 'voice_call';
|
|
12904
12918
|
/**
|
|
12905
12919
|
* Optional header shown above the body.
|
|
12906
12920
|
*/
|
|
@@ -12972,6 +12986,25 @@ type SendInboxMessageData = {
|
|
|
12972
12986
|
*/
|
|
12973
12987
|
url: string;
|
|
12974
12988
|
};
|
|
12989
|
+
} | {
|
|
12990
|
+
name: 'voice_call';
|
|
12991
|
+
/**
|
|
12992
|
+
* All optional.
|
|
12993
|
+
*/
|
|
12994
|
+
parameters?: {
|
|
12995
|
+
/**
|
|
12996
|
+
* Button label. Defaults to "Call Now".
|
|
12997
|
+
*/
|
|
12998
|
+
display_text?: string;
|
|
12999
|
+
/**
|
|
13000
|
+
* How long the button stays tappable. Defaults to 10080 (7 days).
|
|
13001
|
+
*/
|
|
13002
|
+
ttl_minutes?: number;
|
|
13003
|
+
/**
|
|
13004
|
+
* Arbitrary string echoed back as `cta_payload` on the `calls` webhook (connect/terminate) for attribution.
|
|
13005
|
+
*/
|
|
13006
|
+
payload?: string;
|
|
13007
|
+
};
|
|
12975
13008
|
} | {
|
|
12976
13009
|
name: 'flow';
|
|
12977
13010
|
parameters: {
|
|
@@ -14411,6 +14444,10 @@ type GetWhatsAppCallingConfigResponse = ({
|
|
|
14411
14444
|
phoneNumberDocId?: string;
|
|
14412
14445
|
phoneNumber?: string;
|
|
14413
14446
|
callingEnabled?: boolean;
|
|
14447
|
+
/**
|
|
14448
|
+
* 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.
|
|
14449
|
+
*/
|
|
14450
|
+
callDeepLink?: (string) | null;
|
|
14414
14451
|
/**
|
|
14415
14452
|
* tel:+E164 / sip:... / wss://... destination
|
|
14416
14453
|
*/
|
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.254",
|
|
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.254",
|
|
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
|
@@ -357,6 +357,10 @@ export type AdCampaign = {
|
|
|
357
357
|
platformAdAccountName?: (string) | null;
|
|
358
358
|
accountId?: string;
|
|
359
359
|
profileId?: string;
|
|
360
|
+
/**
|
|
361
|
+
* Google-only. Raw campaign.advertising_channel_type. See AdTreeCampaign.advertisingChannelType.
|
|
362
|
+
*/
|
|
363
|
+
advertisingChannelType?: (string) | null;
|
|
360
364
|
/**
|
|
361
365
|
* Raw Meta campaign objective (e.g. OUTCOME_SALES, OUTCOME_LEADS, OUTCOME_TRAFFIC)
|
|
362
366
|
*/
|
|
@@ -579,6 +583,10 @@ export type AdTreeCampaign = {
|
|
|
579
583
|
platformAdAccountName?: (string) | null;
|
|
580
584
|
accountId?: string;
|
|
581
585
|
profileId?: string;
|
|
586
|
+
/**
|
|
587
|
+
* Google-only. Raw campaign.advertising_channel_type (SEARCH, PERFORMANCE_MAX, VIDEO, DEMAND_GEN, DISPLAY, SHOPPING, ...). Serving surface, distinct from platformObjective (advertiser intent). Null/absent for non-Google platforms.
|
|
588
|
+
*/
|
|
589
|
+
advertisingChannelType?: (string) | null;
|
|
582
590
|
/**
|
|
583
591
|
* Raw Meta campaign objective (e.g. OUTCOME_SALES, OUTCOME_LEADS, OUTCOME_TRAFFIC)
|
|
584
592
|
*/
|
|
@@ -12862,8 +12870,14 @@ export type SendInboxMessageData = {
|
|
|
12862
12870
|
* Use `buttons` / `quickReplies` for simple button replies
|
|
12863
12871
|
* (WhatsApp's `interactive.type: "button"`) — the abstraction caps at
|
|
12864
12872
|
* 3 buttons and handles the auto-conversion for you. Use this field
|
|
12865
|
-
* only for `list`, `cta_url`, `flow`,
|
|
12866
|
-
* messages.
|
|
12873
|
+
* only for `list`, `cta_url`, `flow`, `location_request_message`, or
|
|
12874
|
+
* `voice_call` messages.
|
|
12875
|
+
*
|
|
12876
|
+
* For `voice_call`, the message renders WhatsApp's native call
|
|
12877
|
+
* button; tapping it starts a voice call to your business number.
|
|
12878
|
+
* Requires WhatsApp Business Calling to be enabled on the sending
|
|
12879
|
+
* number. The optional `parameters.payload` string is echoed back on
|
|
12880
|
+
* the `calls` webhook (as `cta_payload`) for attribution.
|
|
12867
12881
|
*
|
|
12868
12882
|
* For `location_request_message`, `action` may be omitted (we default
|
|
12869
12883
|
* it to `{ "name": "send_location" }`). WhatsApp renders a localized
|
|
@@ -12878,7 +12892,7 @@ export type SendInboxMessageData = {
|
|
|
12878
12892
|
/**
|
|
12879
12893
|
* Which interactive layout to render.
|
|
12880
12894
|
*/
|
|
12881
|
-
type: 'list' | 'cta_url' | 'flow' | 'location_request_message';
|
|
12895
|
+
type: 'list' | 'cta_url' | 'flow' | 'location_request_message' | 'voice_call';
|
|
12882
12896
|
/**
|
|
12883
12897
|
* Optional header shown above the body.
|
|
12884
12898
|
*/
|
|
@@ -12950,6 +12964,25 @@ export type SendInboxMessageData = {
|
|
|
12950
12964
|
*/
|
|
12951
12965
|
url: string;
|
|
12952
12966
|
};
|
|
12967
|
+
} | {
|
|
12968
|
+
name: 'voice_call';
|
|
12969
|
+
/**
|
|
12970
|
+
* All optional.
|
|
12971
|
+
*/
|
|
12972
|
+
parameters?: {
|
|
12973
|
+
/**
|
|
12974
|
+
* Button label. Defaults to "Call Now".
|
|
12975
|
+
*/
|
|
12976
|
+
display_text?: string;
|
|
12977
|
+
/**
|
|
12978
|
+
* How long the button stays tappable. Defaults to 10080 (7 days).
|
|
12979
|
+
*/
|
|
12980
|
+
ttl_minutes?: number;
|
|
12981
|
+
/**
|
|
12982
|
+
* Arbitrary string echoed back as `cta_payload` on the `calls` webhook (connect/terminate) for attribution.
|
|
12983
|
+
*/
|
|
12984
|
+
payload?: string;
|
|
12985
|
+
};
|
|
12953
12986
|
} | {
|
|
12954
12987
|
name: 'flow';
|
|
12955
12988
|
parameters: {
|
|
@@ -14510,6 +14543,10 @@ export type GetWhatsAppCallingConfigResponse = ({
|
|
|
14510
14543
|
phoneNumberDocId?: string;
|
|
14511
14544
|
phoneNumber?: string;
|
|
14512
14545
|
callingEnabled?: boolean;
|
|
14546
|
+
/**
|
|
14547
|
+
* 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.
|
|
14548
|
+
*/
|
|
14549
|
+
callDeepLink?: (string) | null;
|
|
14513
14550
|
/**
|
|
14514
14551
|
* tel:+E164 / sip:... / wss://... destination
|
|
14515
14552
|
*/
|