@getlatedev/node 0.2.1705 → 0.2.1707

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
@@ -36369,6 +36369,14 @@ type GetConnectUrlData = {
36369
36369
  /**
36370
36370
  * WhatsApp with `signup=hosted` only; ignored on other flows. The number (E.164) the user must connect. If they pick a different number in Meta's popup, the hosted page ends with a 409 `NUMBER_MISMATCH` naming the number they picked, and nothing is saved.
36371
36371
  *
36372
+ * The full international number is compared, country code included. A number that differs only in its country code, or shares only its last digits, is a mismatch.
36373
+ *
36374
+ * The only spellings treated as the same number are national re-spellings of one line, such as a Brazilian mobile with or without its ninth digit, or a Mexican mobile with or without the `1` after `+52`.
36375
+ *
36376
+ * The pin is held server-side on the connect token, not in the hosted page URL, so removing it from the URL does not lift it.
36377
+ *
36378
+ * It is also enforced on late completions: when the browser closes before the signup finishes, Zernio only connects the number in the background if it matches.
36379
+ *
36372
36380
  * Use it to reconnect a known number safely. For a number bought from Zernio, the hosted page already expects that number and this value is ignored.
36373
36381
  *
36374
36382
  */
@@ -40847,7 +40855,7 @@ type ConnectWhatsAppEmbeddedSignupData = {
40847
40855
  */
40848
40856
  isCoexistence?: boolean;
40849
40857
  /**
40850
- * Rejects the connect when Meta returns a different number
40858
+ * Rejects the connect when Meta returns a different number (full international number). With a connect token minted with a pinned number, the pinned number applies instead.
40851
40859
  */
40852
40860
  expectedPhoneNumber?: string;
40853
40861
  /**
package/dist/index.d.ts CHANGED
@@ -36369,6 +36369,14 @@ type GetConnectUrlData = {
36369
36369
  /**
36370
36370
  * WhatsApp with `signup=hosted` only; ignored on other flows. The number (E.164) the user must connect. If they pick a different number in Meta's popup, the hosted page ends with a 409 `NUMBER_MISMATCH` naming the number they picked, and nothing is saved.
36371
36371
  *
36372
+ * The full international number is compared, country code included. A number that differs only in its country code, or shares only its last digits, is a mismatch.
36373
+ *
36374
+ * The only spellings treated as the same number are national re-spellings of one line, such as a Brazilian mobile with or without its ninth digit, or a Mexican mobile with or without the `1` after `+52`.
36375
+ *
36376
+ * The pin is held server-side on the connect token, not in the hosted page URL, so removing it from the URL does not lift it.
36377
+ *
36378
+ * It is also enforced on late completions: when the browser closes before the signup finishes, Zernio only connects the number in the background if it matches.
36379
+ *
36372
36380
  * Use it to reconnect a known number safely. For a number bought from Zernio, the hosted page already expects that number and this value is ignored.
36373
36381
  *
36374
36382
  */
@@ -40847,7 +40855,7 @@ type ConnectWhatsAppEmbeddedSignupData = {
40847
40855
  */
40848
40856
  isCoexistence?: boolean;
40849
40857
  /**
40850
- * Rejects the connect when Meta returns a different number
40858
+ * Rejects the connect when Meta returns a different number (full international number). With a connect token minted with a pinned number, the pinned number applies instead.
40851
40859
  */
40852
40860
  expectedPhoneNumber?: string;
40853
40861
  /**
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.1705",
39
+ version: "0.2.1707",
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.1705",
8
+ version: "0.2.1707",
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.1705",
3
+ "version": "0.2.1707",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3308,7 +3308,7 @@ export const selectGoogleAnalyticsProperty = <ThrowOnError extends boolean = fal
3308
3308
  *
3309
3309
  * Reconnecting the same portal and profile updates the stored connection in place and keeps its settings.
3310
3310
  *
3311
- * Requested scopes: `oauth`, `crm.objects.contacts.read`, `crm.objects.contacts.write`.
3311
+ * Requested scopes: `oauth`, `crm.objects.contacts.read`, `crm.objects.contacts.write`. Optional: `crm.objects.deals.read` (deals in ad results), `automation` (the Send WhatsApp template workflow action), `crm.objects.deals.write` and `crm.objects.owners.read` (the CRM API). A portal connected before an optional scope existed reconnects to grant it.
3312
3312
  *
3313
3313
  */
3314
3314
  export const getHubSpotConnectUrl = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetHubSpotConnectUrlData, ThrowOnError>) => {
@@ -35504,6 +35504,14 @@ export type GetConnectUrlData = {
35504
35504
  /**
35505
35505
  * WhatsApp with `signup=hosted` only; ignored on other flows. The number (E.164) the user must connect. If they pick a different number in Meta's popup, the hosted page ends with a 409 `NUMBER_MISMATCH` naming the number they picked, and nothing is saved.
35506
35506
  *
35507
+ * The full international number is compared, country code included. A number that differs only in its country code, or shares only its last digits, is a mismatch.
35508
+ *
35509
+ * The only spellings treated as the same number are national re-spellings of one line, such as a Brazilian mobile with or without its ninth digit, or a Mexican mobile with or without the `1` after `+52`.
35510
+ *
35511
+ * The pin is held server-side on the connect token, not in the hosted page URL, so removing it from the URL does not lift it.
35512
+ *
35513
+ * It is also enforced on late completions: when the browser closes before the signup finishes, Zernio only connects the number in the background if it matches.
35514
+ *
35507
35515
  * Use it to reconnect a known number safely. For a number bought from Zernio, the hosted page already expects that number and this value is ignored.
35508
35516
  *
35509
35517
  */
@@ -40201,7 +40209,7 @@ export type ConnectWhatsAppEmbeddedSignupData = {
40201
40209
  */
40202
40210
  isCoexistence?: boolean;
40203
40211
  /**
40204
- * Rejects the connect when Meta returns a different number
40212
+ * Rejects the connect when Meta returns a different number (full international number). With a connect token minted with a pinned number, the pinned number applies instead.
40205
40213
  */
40206
40214
  expectedPhoneNumber?: string;
40207
40215
  /**