@zernio/node 0.2.1838 → 0.2.1840

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
@@ -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 footer, 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.
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 footer; `text` is the body only.
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.
@@ -68477,6 +68501,10 @@ type UpdateAdCampaignStatusData = {
68477
68501
  body: {
68478
68502
  status: 'active' | 'paused';
68479
68503
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
68504
+ /**
68505
+ * A Zernio Meta Ads or Facebook connection id (also accepted in the query). Changes the status of a campaign created in Ads Manager that Zernio has not synced, by numeric Meta id. Ignored when Zernio has the campaign. It echoes the requested status; `stage: true` answers 400.
68506
+ */
68507
+ accountId?: string;
68480
68508
  /**
68481
68509
  * 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
68510
  */
@@ -70293,6 +70321,10 @@ type UpdateAdSetStatusData = {
70293
70321
  body: {
70294
70322
  status: 'active' | 'paused';
70295
70323
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
70324
+ /**
70325
+ * A Zernio Meta Ads or Facebook connection id (also accepted in the query). Changes the status of an ad set created in Ads Manager that Zernio has not synced, by numeric Meta id. Ignored when Zernio has the ad set. It echoes the requested status; `stage: true` answers 400.
70326
+ */
70327
+ accountId?: string;
70296
70328
  /**
70297
70329
  * 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
70330
  */
@@ -70999,6 +71031,10 @@ type DeleteAdError = (ErrorResponse);
70999
71031
  type UpdateAdStatusData = {
71000
71032
  body: {
71001
71033
  status: 'active' | 'paused';
71034
+ /**
71035
+ * A Zernio Meta Ads or Facebook connection id (also accepted in the query). Changes the status of an ad created in Ads Manager that Zernio has not synced, by numeric Meta id. Ignored when Zernio has the ad. It echoes the requested status; `stage: true` answers 400.
71036
+ */
71037
+ accountId?: string;
71002
71038
  /**
71003
71039
  * 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
71040
  */
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 footer, 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.
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 footer; `text` is the body only.
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.
@@ -68477,6 +68501,10 @@ type UpdateAdCampaignStatusData = {
68477
68501
  body: {
68478
68502
  status: 'active' | 'paused';
68479
68503
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
68504
+ /**
68505
+ * A Zernio Meta Ads or Facebook connection id (also accepted in the query). Changes the status of a campaign created in Ads Manager that Zernio has not synced, by numeric Meta id. Ignored when Zernio has the campaign. It echoes the requested status; `stage: true` answers 400.
68506
+ */
68507
+ accountId?: string;
68480
68508
  /**
68481
68509
  * 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
68510
  */
@@ -70293,6 +70321,10 @@ type UpdateAdSetStatusData = {
70293
70321
  body: {
70294
70322
  status: 'active' | 'paused';
70295
70323
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
70324
+ /**
70325
+ * A Zernio Meta Ads or Facebook connection id (also accepted in the query). Changes the status of an ad set created in Ads Manager that Zernio has not synced, by numeric Meta id. Ignored when Zernio has the ad set. It echoes the requested status; `stage: true` answers 400.
70326
+ */
70327
+ accountId?: string;
70296
70328
  /**
70297
70329
  * 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
70330
  */
@@ -70999,6 +71031,10 @@ type DeleteAdError = (ErrorResponse);
70999
71031
  type UpdateAdStatusData = {
71000
71032
  body: {
71001
71033
  status: 'active' | 'paused';
71034
+ /**
71035
+ * A Zernio Meta Ads or Facebook connection id (also accepted in the query). Changes the status of an ad created in Ads Manager that Zernio has not synced, by numeric Meta id. Ignored when Zernio has the ad. It echoes the requested status; `stage: true` answers 400.
71036
+ */
71037
+ accountId?: string;
71002
71038
  /**
71003
71039
  * 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
71040
  */
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.1838",
39
+ version: "0.2.1840",
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.1838",
8
+ version: "0.2.1840",
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": "@zernio/node",
3
- "version": "0.2.1838",
3
+ "version": "0.2.1840",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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 footer, 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.
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 footer; `text` is the body only.
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.
@@ -69868,6 +69892,10 @@ export type UpdateAdCampaignStatusData = {
69868
69892
  body: {
69869
69893
  status: 'active' | 'paused';
69870
69894
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
69895
+ /**
69896
+ * A Zernio Meta Ads or Facebook connection id (also accepted in the query). Changes the status of a campaign created in Ads Manager that Zernio has not synced, by numeric Meta id. Ignored when Zernio has the campaign. It echoes the requested status; `stage: true` answers 400.
69897
+ */
69898
+ accountId?: string;
69871
69899
  /**
69872
69900
  * 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
69901
  */
@@ -71750,6 +71778,10 @@ export type UpdateAdSetStatusData = {
71750
71778
  body: {
71751
71779
  status: 'active' | 'paused';
71752
71780
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
71781
+ /**
71782
+ * A Zernio Meta Ads or Facebook connection id (also accepted in the query). Changes the status of an ad set created in Ads Manager that Zernio has not synced, by numeric Meta id. Ignored when Zernio has the ad set. It echoes the requested status; `stage: true` answers 400.
71783
+ */
71784
+ accountId?: string;
71753
71785
  /**
71754
71786
  * 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
71787
  */
@@ -72477,6 +72509,10 @@ export type DeleteAdError = (ErrorResponse);
72477
72509
  export type UpdateAdStatusData = {
72478
72510
  body: {
72479
72511
  status: 'active' | 'paused';
72512
+ /**
72513
+ * A Zernio Meta Ads or Facebook connection id (also accepted in the query). Changes the status of an ad created in Ads Manager that Zernio has not synced, by numeric Meta id. Ignored when Zernio has the ad. It echoes the requested status; `stage: true` answers 400.
72514
+ */
72515
+ accountId?: string;
72480
72516
  /**
72481
72517
  * 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
72518
  */