@getlatedev/node 0.2.464 → 0.2.466

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
@@ -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;
@@ -22836,9 +22878,10 @@ type BulkCreateContactsResponse = ({
22836
22878
  success?: boolean;
22837
22879
  created?: number;
22838
22880
  skipped?: number;
22839
- errors?: Array<{
22840
- [key: string]: unknown;
22841
- }>;
22881
+ /**
22882
+ * Per-contact failures, e.g. an identifier that is not a valid phone number
22883
+ */
22884
+ errors?: Array<(string)>;
22842
22885
  total?: number;
22843
22886
  });
22844
22887
  type BulkCreateContactsError = (unknown | {
package/dist/index.d.ts CHANGED
@@ -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;
@@ -22836,9 +22878,10 @@ type BulkCreateContactsResponse = ({
22836
22878
  success?: boolean;
22837
22879
  created?: number;
22838
22880
  skipped?: number;
22839
- errors?: Array<{
22840
- [key: string]: unknown;
22841
- }>;
22881
+ /**
22882
+ * Per-contact failures, e.g. an identifier that is not a valid phone number
22883
+ */
22884
+ errors?: Array<(string)>;
22842
22885
  total?: number;
22843
22886
  });
22844
22887
  type BulkCreateContactsError = (unknown | {
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.464",
39
+ version: "0.2.466",
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.464",
8
+ version: "0.2.466",
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": "@getlatedev/node",
3
- "version": "0.2.464",
3
+ "version": "0.2.466",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -6012,7 +6012,7 @@ export const getContactChannels = <ThrowOnError extends boolean = false>(options
6012
6012
 
6013
6013
  /**
6014
6014
  * Bulk create contacts
6015
- * Import up to 1000 contacts at a time. Skips duplicates.
6015
+ * Import up to 1000 contacts at a time. Skips duplicates. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
6016
6016
  */
6017
6017
  export const bulkCreateContacts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => {
6018
6018
  return (options?.client ?? client).post<BulkCreateContactsResponse, BulkCreateContactsError, ThrowOnError>({
@@ -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;
@@ -23064,9 +23106,10 @@ export type BulkCreateContactsResponse = ({
23064
23106
  success?: boolean;
23065
23107
  created?: number;
23066
23108
  skipped?: number;
23067
- errors?: Array<{
23068
- [key: string]: unknown;
23069
- }>;
23109
+ /**
23110
+ * Per-contact failures, e.g. an identifier that is not a valid phone number
23111
+ */
23112
+ errors?: Array<(string)>;
23070
23113
  total?: number;
23071
23114
  });
23072
23115