@getlatedev/node 0.2.1751 → 0.2.1753

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
@@ -61574,6 +61574,10 @@ type DeleteSipTrunkData = {
61574
61574
  };
61575
61575
  type DeleteSipTrunkResponse = ({
61576
61576
  deleted?: boolean;
61577
+ /**
61578
+ * Numbers (E.164) that were attached to the trunk and are now detached.
61579
+ */
61580
+ detachedNumbers?: Array<(string)>;
61577
61581
  });
61578
61582
  type DeleteSipTrunkError = (ErrorResponse | unknown);
61579
61583
  type RotateSipTrunkCredentialsData = {
package/dist/index.d.ts CHANGED
@@ -61574,6 +61574,10 @@ type DeleteSipTrunkData = {
61574
61574
  };
61575
61575
  type DeleteSipTrunkResponse = ({
61576
61576
  deleted?: boolean;
61577
+ /**
61578
+ * Numbers (E.164) that were attached to the trunk and are now detached.
61579
+ */
61580
+ detachedNumbers?: Array<(string)>;
61577
61581
  });
61578
61582
  type DeleteSipTrunkError = (ErrorResponse | unknown);
61579
61583
  type RotateSipTrunkCredentialsData = {
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.1751",
39
+ version: "0.2.1753",
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.1751",
8
+ version: "0.2.1753",
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.1751",
3
+ "version": "0.2.1753",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -12859,8 +12859,9 @@ export const getSipTrunk = <ThrowOnError extends boolean = false>(options: Optio
12859
12859
 
12860
12860
  /**
12861
12861
  * Delete a SIP trunk
12862
- * Tears down the trunk and its carrier-side objects. Refused while any
12863
- * number is still attached: detach them first.
12862
+ * Detaches every number still attached to the trunk (their inbound calls
12863
+ * go back to Zernio calling), then tears down the trunk and its
12864
+ * carrier-side objects. Its credentials stop working immediately.
12864
12865
  *
12865
12866
  */
12866
12867
  export const deleteSipTrunk = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteSipTrunkData, ThrowOnError>) => {
@@ -20974,14 +20975,16 @@ export const addUsersToAdAudience = <ThrowOnError extends boolean = false>(optio
20974
20975
 
20975
20976
  /**
20976
20977
  * Remove users from audience
20977
- * Removes people from a Meta, Reddit or LinkedIn customer list audience. Same body as
20978
+ * Removes people from a customer list audience on Meta, Google Ads, TikTok, LinkedIn, Pinterest, X or Reddit. Same body as
20978
20979
  * `POST /v1/ads/audiences/{audienceId}/users`: plaintext keys are normalized and SHA-256 hashed
20979
20980
  * exactly like an upload and hashed keys are sent as is, so a row removes the person it added.
20980
20981
  *
20981
- * - Meta, Reddit and LinkedIn customer_list audiences only. Every other platform returns 422 with code `feature_not_available`, and every other audience type returns 422.
20982
+ * - customer_list audiences only. Every other audience type returns 422, and a network without audiences returns 422 with code `feature_not_available`.
20982
20983
  * - Max 10,000 users per request. The platform applies the removal asynchronously, so the audience size does not drop immediately.
20984
+ * - TikTok, LinkedIn, Pinterest and X match on email only: a row without an email counts in `invalid`, and a request with no email at all returns 400. Google matches on email, phone and name with address, like the upload.
20985
+ * - TikTok refuses a removal that would leave the audience under 1,000 people.
20983
20986
  * - LinkedIn removes them from the list Zernio keeps and uploads what is left about a minute later.
20984
- * - On Reddit `invalidEntrySamples` is always empty.
20987
+ * - `invalidEntrySamples` is filled on Meta only.
20985
20988
  *
20986
20989
  */
20987
20990
  export const removeUsersFromAdAudience = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<RemoveUsersFromAdAudienceData, ThrowOnError>) => {
@@ -62385,6 +62385,10 @@ export type DeleteSipTrunkData = {
62385
62385
 
62386
62386
  export type DeleteSipTrunkResponse = ({
62387
62387
  deleted?: boolean;
62388
+ /**
62389
+ * Numbers (E.164) that were attached to the trunk and are now detached.
62390
+ */
62391
+ detachedNumbers?: Array<(string)>;
62388
62392
  });
62389
62393
 
62390
62394
  export type DeleteSipTrunkError = (ErrorResponse | unknown);