@zernio/node 0.2.1837 → 0.2.1839
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 +32 -8
- package/dist/index.d.ts +32 -8
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +32 -8
package/dist/index.d.mts
CHANGED
|
@@ -31453,7 +31453,7 @@ type WebhookPayloadMessageSent = {
|
|
|
31453
31453
|
conversation: InboxWebhookConversation;
|
|
31454
31454
|
account: InboxWebhookAccount;
|
|
31455
31455
|
/**
|
|
31456
|
-
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, WhatsApp template name, language, header and
|
|
31456
|
+
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, WhatsApp template name, language, header, footer and buttons, Meta's reason a WhatsApp Business app echo has no renderable body, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
|
|
31457
31457
|
*
|
|
31458
31458
|
* The key is present only when the send carried some context: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
|
|
31459
31459
|
*
|
|
@@ -31491,6 +31491,30 @@ type WebhookPayloadMessageSent = {
|
|
|
31491
31491
|
* WhatsApp template sends only. Footer text of the template. Absent when the template has no footer, and on bulk, broadcast and automation sends.
|
|
31492
31492
|
*/
|
|
31493
31493
|
templateFooter?: string;
|
|
31494
|
+
/**
|
|
31495
|
+
* WhatsApp template sends only. The approved buttons as the recipient saw them, with a dynamic URL filled with the value the send gave. Never carries a coupon code, OTP or flow value.
|
|
31496
|
+
*
|
|
31497
|
+
* Absent when the template has no top-level buttons (carousel card buttons are not included), and on bulk, broadcast and automation sends.
|
|
31498
|
+
*
|
|
31499
|
+
*/
|
|
31500
|
+
templateButtons?: Array<{
|
|
31501
|
+
/**
|
|
31502
|
+
* Lowercased button type, such as quick_reply, url, phone_number, copy_code, otp or flow. Meta adds types over time.
|
|
31503
|
+
*/
|
|
31504
|
+
type: string;
|
|
31505
|
+
/**
|
|
31506
|
+
* Button label.
|
|
31507
|
+
*/
|
|
31508
|
+
text?: string;
|
|
31509
|
+
/**
|
|
31510
|
+
* URL buttons only. The button URL, with its variable filled in when the send gave a value.
|
|
31511
|
+
*/
|
|
31512
|
+
url?: string;
|
|
31513
|
+
/**
|
|
31514
|
+
* Phone number buttons only. The number the button dials.
|
|
31515
|
+
*/
|
|
31516
|
+
phoneNumber?: string;
|
|
31517
|
+
}>;
|
|
31494
31518
|
/**
|
|
31495
31519
|
* WhatsApp only. Meta's own reason this message has no renderable body. Present on Coexistence echoes of a message sent from the WhatsApp Business app that Meta could not render (for example an album, code 131051: message type currently not supported). Absent otherwise.
|
|
31496
31520
|
*
|
|
@@ -53959,7 +53983,7 @@ type GetInboxConversationMessagesResponse = ({
|
|
|
53959
53983
|
* - `quotedMessageId`: the `id` of the message this one replies to (delivered as `message.platformMessageId` on webhooks).
|
|
53960
53984
|
* - `waInteractive`: a compact descriptor of WhatsApp interactive content sent (buttons / list / cta_url / flow / location_request).
|
|
53961
53985
|
* - `metaInteractive`: outgoing Instagram/Facebook buttons, quickReplies and template, as sent.
|
|
53962
|
-
* - `templateName` / `templateLanguage` / `templateHeader` / `templateFooter`: on a WhatsApp template send, the template identity plus its rendered header (`{ format, text?, mediaUrl? }`) and
|
|
53986
|
+
* - `templateName` / `templateLanguage` / `templateHeader` / `templateFooter` / `templateButtons`: on a WhatsApp template send, the template identity plus its rendered header (`{ format, text?, mediaUrl? }`), footer and buttons (`[{ type, text?, url?, phoneNumber? }]`); `text` is the body only.
|
|
53963
53987
|
* - `interactiveType` / `interactiveId`: for inbound interactive taps.
|
|
53964
53988
|
* - `source`: where the message reached us from, not who produced it (read `sentVia` for that). `whatsapp_business_app` / `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send.
|
|
53965
53989
|
* - `deliveryChannel`: on an outgoing iMessage, the channel of the latest delivery status (`imessage`, `sms`, `rcs` or `whatsapp`). A message delivered on `imessage` turns `failed` when the provider then reports its `sms` fallback failed.
|
|
@@ -68478,7 +68502,7 @@ type UpdateAdCampaignStatusData = {
|
|
|
68478
68502
|
status: 'active' | 'paused';
|
|
68479
68503
|
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
|
|
68480
68504
|
/**
|
|
68481
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
68505
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
68482
68506
|
*/
|
|
68483
68507
|
stage?: boolean;
|
|
68484
68508
|
};
|
|
@@ -68714,7 +68738,7 @@ type GetAdCampaignDetailsError = (ErrorResponse | unknown);
|
|
|
68714
68738
|
type UpdateAdCampaignData = {
|
|
68715
68739
|
body: {
|
|
68716
68740
|
/**
|
|
68717
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
68741
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
68718
68742
|
*/
|
|
68719
68743
|
stage?: boolean;
|
|
68720
68744
|
/**
|
|
@@ -69895,7 +69919,7 @@ type GetAdSetDetailsError = (unknown | ErrorResponse);
|
|
|
69895
69919
|
type UpdateAdSetData = {
|
|
69896
69920
|
body: {
|
|
69897
69921
|
/**
|
|
69898
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
69922
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
69899
69923
|
*/
|
|
69900
69924
|
stage?: boolean;
|
|
69901
69925
|
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'snapchat';
|
|
@@ -70294,7 +70318,7 @@ type UpdateAdSetStatusData = {
|
|
|
70294
70318
|
status: 'active' | 'paused';
|
|
70295
70319
|
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
|
|
70296
70320
|
/**
|
|
70297
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
70321
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
70298
70322
|
*/
|
|
70299
70323
|
stage?: boolean;
|
|
70300
70324
|
};
|
|
@@ -70690,7 +70714,7 @@ type GetAdError = (ErrorResponse | {
|
|
|
70690
70714
|
type UpdateAdData = {
|
|
70691
70715
|
body: {
|
|
70692
70716
|
/**
|
|
70693
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
70717
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
70694
70718
|
*/
|
|
70695
70719
|
stage?: boolean;
|
|
70696
70720
|
/**
|
|
@@ -71000,7 +71024,7 @@ type UpdateAdStatusData = {
|
|
|
71000
71024
|
body: {
|
|
71001
71025
|
status: 'active' | 'paused';
|
|
71002
71026
|
/**
|
|
71003
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
71027
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
71004
71028
|
*/
|
|
71005
71029
|
stage?: boolean;
|
|
71006
71030
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -31453,7 +31453,7 @@ type WebhookPayloadMessageSent = {
|
|
|
31453
31453
|
conversation: InboxWebhookConversation;
|
|
31454
31454
|
account: InboxWebhookAccount;
|
|
31455
31455
|
/**
|
|
31456
|
-
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, WhatsApp template name, language, header and
|
|
31456
|
+
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, WhatsApp template name, language, header, footer and buttons, Meta's reason a WhatsApp Business app echo has no renderable body, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
|
|
31457
31457
|
*
|
|
31458
31458
|
* The key is present only when the send carried some context: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
|
|
31459
31459
|
*
|
|
@@ -31491,6 +31491,30 @@ type WebhookPayloadMessageSent = {
|
|
|
31491
31491
|
* WhatsApp template sends only. Footer text of the template. Absent when the template has no footer, and on bulk, broadcast and automation sends.
|
|
31492
31492
|
*/
|
|
31493
31493
|
templateFooter?: string;
|
|
31494
|
+
/**
|
|
31495
|
+
* WhatsApp template sends only. The approved buttons as the recipient saw them, with a dynamic URL filled with the value the send gave. Never carries a coupon code, OTP or flow value.
|
|
31496
|
+
*
|
|
31497
|
+
* Absent when the template has no top-level buttons (carousel card buttons are not included), and on bulk, broadcast and automation sends.
|
|
31498
|
+
*
|
|
31499
|
+
*/
|
|
31500
|
+
templateButtons?: Array<{
|
|
31501
|
+
/**
|
|
31502
|
+
* Lowercased button type, such as quick_reply, url, phone_number, copy_code, otp or flow. Meta adds types over time.
|
|
31503
|
+
*/
|
|
31504
|
+
type: string;
|
|
31505
|
+
/**
|
|
31506
|
+
* Button label.
|
|
31507
|
+
*/
|
|
31508
|
+
text?: string;
|
|
31509
|
+
/**
|
|
31510
|
+
* URL buttons only. The button URL, with its variable filled in when the send gave a value.
|
|
31511
|
+
*/
|
|
31512
|
+
url?: string;
|
|
31513
|
+
/**
|
|
31514
|
+
* Phone number buttons only. The number the button dials.
|
|
31515
|
+
*/
|
|
31516
|
+
phoneNumber?: string;
|
|
31517
|
+
}>;
|
|
31494
31518
|
/**
|
|
31495
31519
|
* WhatsApp only. Meta's own reason this message has no renderable body. Present on Coexistence echoes of a message sent from the WhatsApp Business app that Meta could not render (for example an album, code 131051: message type currently not supported). Absent otherwise.
|
|
31496
31520
|
*
|
|
@@ -53959,7 +53983,7 @@ type GetInboxConversationMessagesResponse = ({
|
|
|
53959
53983
|
* - `quotedMessageId`: the `id` of the message this one replies to (delivered as `message.platformMessageId` on webhooks).
|
|
53960
53984
|
* - `waInteractive`: a compact descriptor of WhatsApp interactive content sent (buttons / list / cta_url / flow / location_request).
|
|
53961
53985
|
* - `metaInteractive`: outgoing Instagram/Facebook buttons, quickReplies and template, as sent.
|
|
53962
|
-
* - `templateName` / `templateLanguage` / `templateHeader` / `templateFooter`: on a WhatsApp template send, the template identity plus its rendered header (`{ format, text?, mediaUrl? }`) and
|
|
53986
|
+
* - `templateName` / `templateLanguage` / `templateHeader` / `templateFooter` / `templateButtons`: on a WhatsApp template send, the template identity plus its rendered header (`{ format, text?, mediaUrl? }`), footer and buttons (`[{ type, text?, url?, phoneNumber? }]`); `text` is the body only.
|
|
53963
53987
|
* - `interactiveType` / `interactiveId`: for inbound interactive taps.
|
|
53964
53988
|
* - `source`: where the message reached us from, not who produced it (read `sentVia` for that). `whatsapp_business_app` / `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send.
|
|
53965
53989
|
* - `deliveryChannel`: on an outgoing iMessage, the channel of the latest delivery status (`imessage`, `sms`, `rcs` or `whatsapp`). A message delivered on `imessage` turns `failed` when the provider then reports its `sms` fallback failed.
|
|
@@ -68478,7 +68502,7 @@ type UpdateAdCampaignStatusData = {
|
|
|
68478
68502
|
status: 'active' | 'paused';
|
|
68479
68503
|
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
|
|
68480
68504
|
/**
|
|
68481
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
68505
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
68482
68506
|
*/
|
|
68483
68507
|
stage?: boolean;
|
|
68484
68508
|
};
|
|
@@ -68714,7 +68738,7 @@ type GetAdCampaignDetailsError = (ErrorResponse | unknown);
|
|
|
68714
68738
|
type UpdateAdCampaignData = {
|
|
68715
68739
|
body: {
|
|
68716
68740
|
/**
|
|
68717
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
68741
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
68718
68742
|
*/
|
|
68719
68743
|
stage?: boolean;
|
|
68720
68744
|
/**
|
|
@@ -69895,7 +69919,7 @@ type GetAdSetDetailsError = (unknown | ErrorResponse);
|
|
|
69895
69919
|
type UpdateAdSetData = {
|
|
69896
69920
|
body: {
|
|
69897
69921
|
/**
|
|
69898
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
69922
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
69899
69923
|
*/
|
|
69900
69924
|
stage?: boolean;
|
|
69901
69925
|
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'snapchat';
|
|
@@ -70294,7 +70318,7 @@ type UpdateAdSetStatusData = {
|
|
|
70294
70318
|
status: 'active' | 'paused';
|
|
70295
70319
|
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
|
|
70296
70320
|
/**
|
|
70297
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
70321
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
70298
70322
|
*/
|
|
70299
70323
|
stage?: boolean;
|
|
70300
70324
|
};
|
|
@@ -70690,7 +70714,7 @@ type GetAdError = (ErrorResponse | {
|
|
|
70690
70714
|
type UpdateAdData = {
|
|
70691
70715
|
body: {
|
|
70692
70716
|
/**
|
|
70693
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
70717
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
70694
70718
|
*/
|
|
70695
70719
|
stage?: boolean;
|
|
70696
70720
|
/**
|
|
@@ -71000,7 +71024,7 @@ type UpdateAdStatusData = {
|
|
|
71000
71024
|
body: {
|
|
71001
71025
|
status: 'active' | 'paused';
|
|
71002
71026
|
/**
|
|
71003
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
71027
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
71004
71028
|
*/
|
|
71005
71029
|
stage?: boolean;
|
|
71006
71030
|
};
|
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: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1839",
|
|
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: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1839",
|
|
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
|
@@ -30082,7 +30082,7 @@ export type WebhookPayloadMessageSent = {
|
|
|
30082
30082
|
conversation: InboxWebhookConversation;
|
|
30083
30083
|
account: InboxWebhookAccount;
|
|
30084
30084
|
/**
|
|
30085
|
-
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, WhatsApp template name, language, header and
|
|
30085
|
+
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, WhatsApp template name, language, header, footer and buttons, Meta's reason a WhatsApp Business app echo has no renderable body, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
|
|
30086
30086
|
*
|
|
30087
30087
|
* The key is present only when the send carried some context: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
|
|
30088
30088
|
*
|
|
@@ -30120,6 +30120,30 @@ export type WebhookPayloadMessageSent = {
|
|
|
30120
30120
|
* WhatsApp template sends only. Footer text of the template. Absent when the template has no footer, and on bulk, broadcast and automation sends.
|
|
30121
30121
|
*/
|
|
30122
30122
|
templateFooter?: string;
|
|
30123
|
+
/**
|
|
30124
|
+
* WhatsApp template sends only. The approved buttons as the recipient saw them, with a dynamic URL filled with the value the send gave. Never carries a coupon code, OTP or flow value.
|
|
30125
|
+
*
|
|
30126
|
+
* Absent when the template has no top-level buttons (carousel card buttons are not included), and on bulk, broadcast and automation sends.
|
|
30127
|
+
*
|
|
30128
|
+
*/
|
|
30129
|
+
templateButtons?: Array<{
|
|
30130
|
+
/**
|
|
30131
|
+
* Lowercased button type, such as quick_reply, url, phone_number, copy_code, otp or flow. Meta adds types over time.
|
|
30132
|
+
*/
|
|
30133
|
+
type: string;
|
|
30134
|
+
/**
|
|
30135
|
+
* Button label.
|
|
30136
|
+
*/
|
|
30137
|
+
text?: string;
|
|
30138
|
+
/**
|
|
30139
|
+
* URL buttons only. The button URL, with its variable filled in when the send gave a value.
|
|
30140
|
+
*/
|
|
30141
|
+
url?: string;
|
|
30142
|
+
/**
|
|
30143
|
+
* Phone number buttons only. The number the button dials.
|
|
30144
|
+
*/
|
|
30145
|
+
phoneNumber?: string;
|
|
30146
|
+
}>;
|
|
30123
30147
|
/**
|
|
30124
30148
|
* WhatsApp only. Meta's own reason this message has no renderable body. Present on Coexistence echoes of a message sent from the WhatsApp Business app that Meta could not render (for example an album, code 131051: message type currently not supported). Absent otherwise.
|
|
30125
30149
|
*
|
|
@@ -54080,7 +54104,7 @@ export type GetInboxConversationMessagesResponse = ({
|
|
|
54080
54104
|
* - `quotedMessageId`: the `id` of the message this one replies to (delivered as `message.platformMessageId` on webhooks).
|
|
54081
54105
|
* - `waInteractive`: a compact descriptor of WhatsApp interactive content sent (buttons / list / cta_url / flow / location_request).
|
|
54082
54106
|
* - `metaInteractive`: outgoing Instagram/Facebook buttons, quickReplies and template, as sent.
|
|
54083
|
-
* - `templateName` / `templateLanguage` / `templateHeader` / `templateFooter`: on a WhatsApp template send, the template identity plus its rendered header (`{ format, text?, mediaUrl? }`) and
|
|
54107
|
+
* - `templateName` / `templateLanguage` / `templateHeader` / `templateFooter` / `templateButtons`: on a WhatsApp template send, the template identity plus its rendered header (`{ format, text?, mediaUrl? }`), footer and buttons (`[{ type, text?, url?, phoneNumber? }]`); `text` is the body only.
|
|
54084
54108
|
* - `interactiveType` / `interactiveId`: for inbound interactive taps.
|
|
54085
54109
|
* - `source`: where the message reached us from, not who produced it (read `sentVia` for that). `whatsapp_business_app` / `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send.
|
|
54086
54110
|
* - `deliveryChannel`: on an outgoing iMessage, the channel of the latest delivery status (`imessage`, `sms`, `rcs` or `whatsapp`). A message delivered on `imessage` turns `failed` when the provider then reports its `sms` fallback failed.
|
|
@@ -69869,7 +69893,7 @@ export type UpdateAdCampaignStatusData = {
|
|
|
69869
69893
|
status: 'active' | 'paused';
|
|
69870
69894
|
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
|
|
69871
69895
|
/**
|
|
69872
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
69896
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
69873
69897
|
*/
|
|
69874
69898
|
stage?: boolean;
|
|
69875
69899
|
};
|
|
@@ -70120,7 +70144,7 @@ export type GetAdCampaignDetailsError = (ErrorResponse | unknown);
|
|
|
70120
70144
|
export type UpdateAdCampaignData = {
|
|
70121
70145
|
body: {
|
|
70122
70146
|
/**
|
|
70123
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
70147
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
70124
70148
|
*/
|
|
70125
70149
|
stage?: boolean;
|
|
70126
70150
|
/**
|
|
@@ -71343,7 +71367,7 @@ export type GetAdSetDetailsError = (unknown | ErrorResponse);
|
|
|
71343
71367
|
export type UpdateAdSetData = {
|
|
71344
71368
|
body: {
|
|
71345
71369
|
/**
|
|
71346
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
71370
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
71347
71371
|
*/
|
|
71348
71372
|
stage?: boolean;
|
|
71349
71373
|
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'snapchat';
|
|
@@ -71751,7 +71775,7 @@ export type UpdateAdSetStatusData = {
|
|
|
71751
71775
|
status: 'active' | 'paused';
|
|
71752
71776
|
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
|
|
71753
71777
|
/**
|
|
71754
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
71778
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
71755
71779
|
*/
|
|
71756
71780
|
stage?: boolean;
|
|
71757
71781
|
};
|
|
@@ -72162,7 +72186,7 @@ export type GetAdError = (ErrorResponse | {
|
|
|
72162
72186
|
export type UpdateAdData = {
|
|
72163
72187
|
body: {
|
|
72164
72188
|
/**
|
|
72165
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
72189
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
72166
72190
|
*/
|
|
72167
72191
|
stage?: boolean;
|
|
72168
72192
|
/**
|
|
@@ -72478,7 +72502,7 @@ export type UpdateAdStatusData = {
|
|
|
72478
72502
|
body: {
|
|
72479
72503
|
status: 'active' | 'paused';
|
|
72480
72504
|
/**
|
|
72481
|
-
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and
|
|
72505
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
|
|
72482
72506
|
*/
|
|
72483
72507
|
stage?: boolean;
|
|
72484
72508
|
};
|