@zernio/node 0.2.465 → 0.2.467

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
@@ -3387,7 +3387,7 @@ type FacebookPlatformData = {
3387
3387
  */
3388
3388
  carouselLink?: string;
3389
3389
  /**
3390
- * Facebook-defined preset ID that renders the post as large text on a colored background (Graph `text_format_preset_id`). Supply the raw numeric ID from Meta; we do not publish a catalog of presets and Facebook may change the available set. Pages only (ignored on personal profiles and groups) and text-only feed posts only: the request is rejected with 400 when mediaItems or carouselCards are present, when contentType is story or reel, when content is empty, or when content exceeds 130 characters. Those are Facebook limits, and above them Facebook silently drops the background and publishes a plain text post instead of returning an error, so we reject up front rather than let the background disappear. A URL detected in the content is NOT attached as a link preview while a preset is set, because a link attachment also makes Facebook drop the background.
3390
+ * Facebook-defined preset ID that renders the post as large text on a colored background (Graph `text_format_preset_id`). Supply the raw numeric ID from Meta; we do not publish a catalog of presets and Facebook may change the available set. Pages only (ignored on personal profiles and groups) and text-only feed posts only: the request is rejected with 400 when mediaItems or carouselCards are present, when contentType is story or reel, or when content is empty. An attachment makes Facebook drop the background silently, so those are rejected up front. Length is NOT rejected: Facebook's composer stops offering a background at around 130 characters, but Meta documents no API limit, so longer content publishes and returns a warning instead. A URL detected in the content is NOT attached as a link preview while a preset is set, because a link attachment also makes Facebook drop the background.
3391
3391
  *
3392
3392
  */
3393
3393
  textFormatPresetId?: string;
@@ -18039,6 +18039,11 @@ type GetWhatsAppCallingConfigResponse = ({
18039
18039
  * True once the number completed caller-ID verification.
18040
18040
  */
18041
18041
  callerIdVerified?: boolean;
18042
+ /**
18043
+ * Hard cap (seconds) on forwarded calls; null = no cap.
18044
+ */
18045
+ maxCallDurationSeconds?: (number) | null;
18046
+ forwardCallerId?: 'business' | 'caller';
18042
18047
  });
18043
18048
  type GetWhatsAppCallingConfigError = ({
18044
18049
  error?: string;
@@ -18057,6 +18062,14 @@ type EnableWhatsAppCallingLegacyData = {
18057
18062
  sipAuthPassword?: string;
18058
18063
  recordingEnabled?: boolean;
18059
18064
  callIconCountries?: Array<(string)>;
18065
+ /**
18066
+ * Hard cap (seconds) on a forwarded call; the carrier hangs up both legs when it fires. Safety valve against dead-air billing when a destination hangs up but the signal is lost.
18067
+ */
18068
+ maxCallDurationSeconds?: number;
18069
+ /**
18070
+ * Caller ID presented to the forward destination. caller = the WhatsApp user's number (sip: destinations only; ignored on tel: forwards). Fixes AI-agent trunks that reject seeing the business number call itself.
18071
+ */
18072
+ forwardCallerId?: 'business' | 'caller';
18060
18073
  };
18061
18074
  path: {
18062
18075
  /**
@@ -18086,6 +18099,14 @@ type UpdateWhatsAppCallingLegacyData = {
18086
18099
  sipAuthPassword?: (string) | null;
18087
18100
  recordingEnabled?: boolean;
18088
18101
  callIconCountries?: Array<(string)> | null;
18102
+ /**
18103
+ * Hard cap (seconds) on forwarded calls; null clears the cap.
18104
+ */
18105
+ maxCallDurationSeconds?: (number) | null;
18106
+ /**
18107
+ * caller = present the WhatsApp user's number to the forward destination (sip: only).
18108
+ */
18109
+ forwardCallerId?: 'business' | 'caller';
18089
18110
  };
18090
18111
  path: {
18091
18112
  id: string;
@@ -21650,6 +21671,11 @@ type GetWhatsAppCallingResponse = ({
21650
21671
  * True once the number completed caller-ID verification, making tel: forwards display the business number itself.
21651
21672
  */
21652
21673
  callerIdVerified?: boolean;
21674
+ /**
21675
+ * Hard cap (seconds) on forwarded calls; null = no cap.
21676
+ */
21677
+ maxCallDurationSeconds?: (number) | null;
21678
+ forwardCallerId?: 'business' | 'caller';
21653
21679
  });
21654
21680
  type GetWhatsAppCallingError = (unknown | {
21655
21681
  error?: string;
@@ -21668,6 +21694,14 @@ type EnableWhatsAppCallingData = {
21668
21694
  sipAuthPassword?: string;
21669
21695
  recordingEnabled?: boolean;
21670
21696
  callIconCountries?: Array<(string)>;
21697
+ /**
21698
+ * Hard cap (seconds) on a forwarded call; the carrier hangs up both legs when it fires. Safety valve against dead-air billing when a destination hangs up but the signal is lost.
21699
+ */
21700
+ maxCallDurationSeconds?: number;
21701
+ /**
21702
+ * Caller ID presented to the forward destination. caller = the WhatsApp user's number (sip: destinations only; ignored on tel: forwards). Fixes AI-agent trunks that reject seeing the business number call itself.
21703
+ */
21704
+ forwardCallerId?: 'business' | 'caller';
21671
21705
  };
21672
21706
  path: {
21673
21707
  /**
@@ -21697,6 +21731,14 @@ type UpdateWhatsAppCallingData = {
21697
21731
  sipAuthPassword?: (string) | null;
21698
21732
  recordingEnabled?: boolean;
21699
21733
  callIconCountries?: Array<(string)> | null;
21734
+ /**
21735
+ * Hard cap (seconds) on forwarded calls; null clears the cap.
21736
+ */
21737
+ maxCallDurationSeconds?: (number) | null;
21738
+ /**
21739
+ * caller = present the WhatsApp user's number to the forward destination (sip: only).
21740
+ */
21741
+ forwardCallerId?: 'business' | 'caller';
21700
21742
  };
21701
21743
  path: {
21702
21744
  id: string;
package/dist/index.d.ts CHANGED
@@ -3387,7 +3387,7 @@ type FacebookPlatformData = {
3387
3387
  */
3388
3388
  carouselLink?: string;
3389
3389
  /**
3390
- * Facebook-defined preset ID that renders the post as large text on a colored background (Graph `text_format_preset_id`). Supply the raw numeric ID from Meta; we do not publish a catalog of presets and Facebook may change the available set. Pages only (ignored on personal profiles and groups) and text-only feed posts only: the request is rejected with 400 when mediaItems or carouselCards are present, when contentType is story or reel, when content is empty, or when content exceeds 130 characters. Those are Facebook limits, and above them Facebook silently drops the background and publishes a plain text post instead of returning an error, so we reject up front rather than let the background disappear. A URL detected in the content is NOT attached as a link preview while a preset is set, because a link attachment also makes Facebook drop the background.
3390
+ * Facebook-defined preset ID that renders the post as large text on a colored background (Graph `text_format_preset_id`). Supply the raw numeric ID from Meta; we do not publish a catalog of presets and Facebook may change the available set. Pages only (ignored on personal profiles and groups) and text-only feed posts only: the request is rejected with 400 when mediaItems or carouselCards are present, when contentType is story or reel, or when content is empty. An attachment makes Facebook drop the background silently, so those are rejected up front. Length is NOT rejected: Facebook's composer stops offering a background at around 130 characters, but Meta documents no API limit, so longer content publishes and returns a warning instead. A URL detected in the content is NOT attached as a link preview while a preset is set, because a link attachment also makes Facebook drop the background.
3391
3391
  *
3392
3392
  */
3393
3393
  textFormatPresetId?: string;
@@ -18039,6 +18039,11 @@ type GetWhatsAppCallingConfigResponse = ({
18039
18039
  * True once the number completed caller-ID verification.
18040
18040
  */
18041
18041
  callerIdVerified?: boolean;
18042
+ /**
18043
+ * Hard cap (seconds) on forwarded calls; null = no cap.
18044
+ */
18045
+ maxCallDurationSeconds?: (number) | null;
18046
+ forwardCallerId?: 'business' | 'caller';
18042
18047
  });
18043
18048
  type GetWhatsAppCallingConfigError = ({
18044
18049
  error?: string;
@@ -18057,6 +18062,14 @@ type EnableWhatsAppCallingLegacyData = {
18057
18062
  sipAuthPassword?: string;
18058
18063
  recordingEnabled?: boolean;
18059
18064
  callIconCountries?: Array<(string)>;
18065
+ /**
18066
+ * Hard cap (seconds) on a forwarded call; the carrier hangs up both legs when it fires. Safety valve against dead-air billing when a destination hangs up but the signal is lost.
18067
+ */
18068
+ maxCallDurationSeconds?: number;
18069
+ /**
18070
+ * Caller ID presented to the forward destination. caller = the WhatsApp user's number (sip: destinations only; ignored on tel: forwards). Fixes AI-agent trunks that reject seeing the business number call itself.
18071
+ */
18072
+ forwardCallerId?: 'business' | 'caller';
18060
18073
  };
18061
18074
  path: {
18062
18075
  /**
@@ -18086,6 +18099,14 @@ type UpdateWhatsAppCallingLegacyData = {
18086
18099
  sipAuthPassword?: (string) | null;
18087
18100
  recordingEnabled?: boolean;
18088
18101
  callIconCountries?: Array<(string)> | null;
18102
+ /**
18103
+ * Hard cap (seconds) on forwarded calls; null clears the cap.
18104
+ */
18105
+ maxCallDurationSeconds?: (number) | null;
18106
+ /**
18107
+ * caller = present the WhatsApp user's number to the forward destination (sip: only).
18108
+ */
18109
+ forwardCallerId?: 'business' | 'caller';
18089
18110
  };
18090
18111
  path: {
18091
18112
  id: string;
@@ -21650,6 +21671,11 @@ type GetWhatsAppCallingResponse = ({
21650
21671
  * True once the number completed caller-ID verification, making tel: forwards display the business number itself.
21651
21672
  */
21652
21673
  callerIdVerified?: boolean;
21674
+ /**
21675
+ * Hard cap (seconds) on forwarded calls; null = no cap.
21676
+ */
21677
+ maxCallDurationSeconds?: (number) | null;
21678
+ forwardCallerId?: 'business' | 'caller';
21653
21679
  });
21654
21680
  type GetWhatsAppCallingError = (unknown | {
21655
21681
  error?: string;
@@ -21668,6 +21694,14 @@ type EnableWhatsAppCallingData = {
21668
21694
  sipAuthPassword?: string;
21669
21695
  recordingEnabled?: boolean;
21670
21696
  callIconCountries?: Array<(string)>;
21697
+ /**
21698
+ * Hard cap (seconds) on a forwarded call; the carrier hangs up both legs when it fires. Safety valve against dead-air billing when a destination hangs up but the signal is lost.
21699
+ */
21700
+ maxCallDurationSeconds?: number;
21701
+ /**
21702
+ * Caller ID presented to the forward destination. caller = the WhatsApp user's number (sip: destinations only; ignored on tel: forwards). Fixes AI-agent trunks that reject seeing the business number call itself.
21703
+ */
21704
+ forwardCallerId?: 'business' | 'caller';
21671
21705
  };
21672
21706
  path: {
21673
21707
  /**
@@ -21697,6 +21731,14 @@ type UpdateWhatsAppCallingData = {
21697
21731
  sipAuthPassword?: (string) | null;
21698
21732
  recordingEnabled?: boolean;
21699
21733
  callIconCountries?: Array<(string)> | null;
21734
+ /**
21735
+ * Hard cap (seconds) on forwarded calls; null clears the cap.
21736
+ */
21737
+ maxCallDurationSeconds?: (number) | null;
21738
+ /**
21739
+ * caller = present the WhatsApp user's number to the forward destination (sip: only).
21740
+ */
21741
+ forwardCallerId?: 'business' | 'caller';
21700
21742
  };
21701
21743
  path: {
21702
21744
  id: string;
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.465",
39
+ version: "0.2.467",
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.465",
8
+ version: "0.2.467",
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.465",
3
+ "version": "0.2.467",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2277,7 +2277,7 @@ export type FacebookPlatformData = {
2277
2277
  */
2278
2278
  carouselLink?: string;
2279
2279
  /**
2280
- * Facebook-defined preset ID that renders the post as large text on a colored background (Graph `text_format_preset_id`). Supply the raw numeric ID from Meta; we do not publish a catalog of presets and Facebook may change the available set. Pages only (ignored on personal profiles and groups) and text-only feed posts only: the request is rejected with 400 when mediaItems or carouselCards are present, when contentType is story or reel, when content is empty, or when content exceeds 130 characters. Those are Facebook limits, and above them Facebook silently drops the background and publishes a plain text post instead of returning an error, so we reject up front rather than let the background disappear. A URL detected in the content is NOT attached as a link preview while a preset is set, because a link attachment also makes Facebook drop the background.
2280
+ * Facebook-defined preset ID that renders the post as large text on a colored background (Graph `text_format_preset_id`). Supply the raw numeric ID from Meta; we do not publish a catalog of presets and Facebook may change the available set. Pages only (ignored on personal profiles and groups) and text-only feed posts only: the request is rejected with 400 when mediaItems or carouselCards are present, when contentType is story or reel, or when content is empty. An attachment makes Facebook drop the background silently, so those are rejected up front. Length is NOT rejected: Facebook's composer stops offering a background at around 130 characters, but Meta documents no API limit, so longer content publishes and returns a warning instead. A URL detected in the content is NOT attached as a link preview while a preset is set, because a link attachment also makes Facebook drop the background.
2281
2281
  *
2282
2282
  */
2283
2283
  textFormatPresetId?: string;
@@ -17850,6 +17850,11 @@ export type GetWhatsAppCallingConfigResponse = ({
17850
17850
  * True once the number completed caller-ID verification.
17851
17851
  */
17852
17852
  callerIdVerified?: boolean;
17853
+ /**
17854
+ * Hard cap (seconds) on forwarded calls; null = no cap.
17855
+ */
17856
+ maxCallDurationSeconds?: (number) | null;
17857
+ forwardCallerId?: 'business' | 'caller';
17853
17858
  });
17854
17859
 
17855
17860
  export type GetWhatsAppCallingConfigError = ({
@@ -17870,6 +17875,14 @@ export type EnableWhatsAppCallingLegacyData = {
17870
17875
  sipAuthPassword?: string;
17871
17876
  recordingEnabled?: boolean;
17872
17877
  callIconCountries?: Array<(string)>;
17878
+ /**
17879
+ * Hard cap (seconds) on a forwarded call; the carrier hangs up both legs when it fires. Safety valve against dead-air billing when a destination hangs up but the signal is lost.
17880
+ */
17881
+ maxCallDurationSeconds?: number;
17882
+ /**
17883
+ * Caller ID presented to the forward destination. caller = the WhatsApp user's number (sip: destinations only; ignored on tel: forwards). Fixes AI-agent trunks that reject seeing the business number call itself.
17884
+ */
17885
+ forwardCallerId?: 'business' | 'caller';
17873
17886
  };
17874
17887
  path: {
17875
17888
  /**
@@ -17902,6 +17915,14 @@ export type UpdateWhatsAppCallingLegacyData = {
17902
17915
  sipAuthPassword?: (string) | null;
17903
17916
  recordingEnabled?: boolean;
17904
17917
  callIconCountries?: Array<(string)> | null;
17918
+ /**
17919
+ * Hard cap (seconds) on forwarded calls; null clears the cap.
17920
+ */
17921
+ maxCallDurationSeconds?: (number) | null;
17922
+ /**
17923
+ * caller = present the WhatsApp user's number to the forward destination (sip: only).
17924
+ */
17925
+ forwardCallerId?: 'business' | 'caller';
17905
17926
  };
17906
17927
  path: {
17907
17928
  id: string;
@@ -21756,6 +21777,11 @@ export type GetWhatsAppCallingResponse = ({
21756
21777
  * True once the number completed caller-ID verification, making tel: forwards display the business number itself.
21757
21778
  */
21758
21779
  callerIdVerified?: boolean;
21780
+ /**
21781
+ * Hard cap (seconds) on forwarded calls; null = no cap.
21782
+ */
21783
+ maxCallDurationSeconds?: (number) | null;
21784
+ forwardCallerId?: 'business' | 'caller';
21759
21785
  });
21760
21786
 
21761
21787
  export type GetWhatsAppCallingError = (unknown | {
@@ -21776,6 +21802,14 @@ export type EnableWhatsAppCallingData = {
21776
21802
  sipAuthPassword?: string;
21777
21803
  recordingEnabled?: boolean;
21778
21804
  callIconCountries?: Array<(string)>;
21805
+ /**
21806
+ * Hard cap (seconds) on a forwarded call; the carrier hangs up both legs when it fires. Safety valve against dead-air billing when a destination hangs up but the signal is lost.
21807
+ */
21808
+ maxCallDurationSeconds?: number;
21809
+ /**
21810
+ * Caller ID presented to the forward destination. caller = the WhatsApp user's number (sip: destinations only; ignored on tel: forwards). Fixes AI-agent trunks that reject seeing the business number call itself.
21811
+ */
21812
+ forwardCallerId?: 'business' | 'caller';
21779
21813
  };
21780
21814
  path: {
21781
21815
  /**
@@ -21808,6 +21842,14 @@ export type UpdateWhatsAppCallingData = {
21808
21842
  sipAuthPassword?: (string) | null;
21809
21843
  recordingEnabled?: boolean;
21810
21844
  callIconCountries?: Array<(string)> | null;
21845
+ /**
21846
+ * Hard cap (seconds) on forwarded calls; null clears the cap.
21847
+ */
21848
+ maxCallDurationSeconds?: (number) | null;
21849
+ /**
21850
+ * caller = present the WhatsApp user's number to the forward destination (sip: only).
21851
+ */
21852
+ forwardCallerId?: 'business' | 'caller';
21811
21853
  };
21812
21854
  path: {
21813
21855
  id: string;