@zernio/node 0.2.436 → 0.2.438

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
@@ -16212,7 +16212,7 @@ type SendTypingIndicatorData = {
16212
16212
  type SendTypingIndicatorResponse = ({
16213
16213
  success?: boolean;
16214
16214
  });
16215
- type SendTypingIndicatorError = ({
16215
+ type SendTypingIndicatorError = (ErrorResponse | {
16216
16216
  error?: string;
16217
16217
  } | unknown);
16218
16218
  type MarkConversationReadData = {
package/dist/index.d.ts CHANGED
@@ -16212,7 +16212,7 @@ type SendTypingIndicatorData = {
16212
16212
  type SendTypingIndicatorResponse = ({
16213
16213
  success?: boolean;
16214
16214
  });
16215
- type SendTypingIndicatorError = ({
16215
+ type SendTypingIndicatorError = (ErrorResponse | {
16216
16216
  error?: string;
16217
16217
  } | unknown);
16218
16218
  type MarkConversationReadData = {
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.436",
39
+ version: "0.2.438",
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.436",
8
+ version: "0.2.438",
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.436",
3
+ "version": "0.2.438",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2968,11 +2968,12 @@ export const deleteInboxMessage = <ThrowOnError extends boolean = false>(options
2968
2968
  * Send typing indicator
2969
2969
  * Show a typing indicator in a conversation. Platform support:
2970
2970
  * - Facebook Messenger: Shows "Page is typing..." for 20 seconds
2971
+ * - Instagram: Shows "typing..." to the recipient (works for both Instagram Login and Facebook Login accounts). The recipient must be signed in to Instagram to see it.
2971
2972
  * - Telegram: Shows "Bot is typing..." for 5 seconds
2972
2973
  * - WhatsApp: Shows "typing..." for up to 25 seconds. Requires a recent inbound message in the conversation (Meta references the inbound message id) and also marks that message as read as a side-effect.
2973
2974
  * - All others: Returns 200 but no-op (platform doesn't support it)
2974
2975
  *
2975
- * Typing indicators are best-effort. The endpoint always returns 200 even if the platform call fails.
2976
+ * Typing indicators are best-effort. The endpoint always returns 200 even if the platform call fails; `success` reports whether a typing indicator was actually sent to the platform (`false` on unsupported platforms or when the platform call failed).
2976
2977
  *
2977
2978
  */
2978
2979
  export const sendTypingIndicator = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SendTypingIndicatorData, ThrowOnError>) => {
@@ -7070,8 +7071,9 @@ export const getAdsActivityLog = <ThrowOnError extends boolean = false>(options:
7070
7071
  * POST /v1/ads/rf-predictions/{predictionId}/reserve and pass the RESERVED id to
7071
7072
  * POST /v1/ads/create with `buyingType: "RESERVED"`.
7072
7073
  *
7073
- * Reservation campaigns reject automatic placements, so omitted `placements` default to
7074
- * Facebook feed (+ Instagram stream when a linked IG professional account resolves);
7074
+ * Reservation campaigns reject automatic placements. Top-level `placements` wins; when it is
7075
+ * omitted, `targeting.placements` is used; when neither is set, placements default to
7076
+ * Facebook feed (+ Instagram stream when a linked IG professional account resolves).
7075
7077
  * Instagram placements require that IG account.
7076
7078
  */
7077
7079
  export const createRfPrediction = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateRfPredictionData, ThrowOnError>) => {
@@ -15897,7 +15897,7 @@ export type SendTypingIndicatorResponse = ({
15897
15897
  success?: boolean;
15898
15898
  });
15899
15899
 
15900
- export type SendTypingIndicatorError = ({
15900
+ export type SendTypingIndicatorError = (ErrorResponse | {
15901
15901
  error?: string;
15902
15902
  } | unknown);
15903
15903