@getlatedev/node 0.2.1690 → 0.2.1692

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
@@ -21339,6 +21339,19 @@ type TrackingSite = {
21339
21339
  target?: string;
21340
21340
  };
21341
21341
  } | null;
21342
+ /**
21343
+ * The path your server forwards to the collector, so the tag runs from the site's own domain. Null when it has none.
21344
+ */
21345
+ proxy?: {
21346
+ /**
21347
+ * Such as `/zt`: the snippet loads `https://<first domain>/zt/z.js`.
21348
+ */
21349
+ path?: string;
21350
+ /**
21351
+ * Signs the visitor's IP and country your proxy forwards. Only on reading or updating one site.
21352
+ */
21353
+ secret?: (string) | null;
21354
+ } | null;
21342
21355
  consentMode?: TrackingSiteConsentMode;
21343
21356
  /**
21344
21357
  * One per setup step: `script` for the install, then one per ad account the site sends to, keyed by its platform and ids.
@@ -40220,16 +40233,24 @@ type ListWhatsAppPhoneNumbersData = {
40220
40233
  * Alternative auth for API users' end customers (used when the bearer token is scoped to a different user)
40221
40234
  */
40222
40235
  'X-Connect-Token'?: string;
40236
+ /**
40237
+ * The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
40238
+ */
40239
+ 'X-Temp-Token'?: string;
40223
40240
  };
40224
40241
  query: {
40242
+ /**
40243
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
40244
+ */
40245
+ connectFlow?: string;
40225
40246
  /**
40226
40247
  * The Zernio profile ID from the headless redirect
40227
40248
  */
40228
40249
  profileId: string;
40229
40250
  /**
40230
- * The temporary access token from the headless redirect
40251
+ * The temporary access token from the headless redirect. Required unless sent in the X-Temp-Token header.
40231
40252
  */
40232
- tempToken: string;
40253
+ tempToken?: string;
40233
40254
  };
40234
40255
  };
40235
40256
  type ListWhatsAppPhoneNumbersResponse = ({
@@ -40284,9 +40305,13 @@ type CompleteWhatsAppPhoneSelectionData = {
40284
40305
  */
40285
40306
  wabaId: string;
40286
40307
  /**
40287
- * The temporary access token from the headless redirect
40308
+ * The temporary access token from the headless redirect. Required unless sent in the X-Temp-Token header.
40288
40309
  */
40289
- tempToken: string;
40310
+ tempToken?: string;
40311
+ /**
40312
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
40313
+ */
40314
+ connectFlow?: string;
40290
40315
  /**
40291
40316
  * Optional user profile data (passthrough)
40292
40317
  */
@@ -40303,6 +40328,10 @@ type CompleteWhatsAppPhoneSelectionData = {
40303
40328
  * Alternative auth for API users' end customers
40304
40329
  */
40305
40330
  'X-Connect-Token'?: string;
40331
+ /**
40332
+ * The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
40333
+ */
40334
+ 'X-Temp-Token'?: string;
40306
40335
  };
40307
40336
  };
40308
40337
  type CompleteWhatsAppPhoneSelectionResponse = ({
@@ -72598,6 +72627,10 @@ type UpdateTrackingSiteData = {
72598
72627
  * A subdomain of one of the site's domains, never the domain itself. `null` removes it.
72599
72628
  */
72600
72629
  customHostname?: (string) | null;
72630
+ /**
72631
+ * The path your server forwards to the collector, such as `/zt`. `null` removes it.
72632
+ */
72633
+ proxyPath?: (string) | null;
72601
72634
  };
72602
72635
  path: {
72603
72636
  siteId: string;
package/dist/index.d.ts CHANGED
@@ -21339,6 +21339,19 @@ type TrackingSite = {
21339
21339
  target?: string;
21340
21340
  };
21341
21341
  } | null;
21342
+ /**
21343
+ * The path your server forwards to the collector, so the tag runs from the site's own domain. Null when it has none.
21344
+ */
21345
+ proxy?: {
21346
+ /**
21347
+ * Such as `/zt`: the snippet loads `https://<first domain>/zt/z.js`.
21348
+ */
21349
+ path?: string;
21350
+ /**
21351
+ * Signs the visitor's IP and country your proxy forwards. Only on reading or updating one site.
21352
+ */
21353
+ secret?: (string) | null;
21354
+ } | null;
21342
21355
  consentMode?: TrackingSiteConsentMode;
21343
21356
  /**
21344
21357
  * One per setup step: `script` for the install, then one per ad account the site sends to, keyed by its platform and ids.
@@ -40220,16 +40233,24 @@ type ListWhatsAppPhoneNumbersData = {
40220
40233
  * Alternative auth for API users' end customers (used when the bearer token is scoped to a different user)
40221
40234
  */
40222
40235
  'X-Connect-Token'?: string;
40236
+ /**
40237
+ * The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
40238
+ */
40239
+ 'X-Temp-Token'?: string;
40223
40240
  };
40224
40241
  query: {
40242
+ /**
40243
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
40244
+ */
40245
+ connectFlow?: string;
40225
40246
  /**
40226
40247
  * The Zernio profile ID from the headless redirect
40227
40248
  */
40228
40249
  profileId: string;
40229
40250
  /**
40230
- * The temporary access token from the headless redirect
40251
+ * The temporary access token from the headless redirect. Required unless sent in the X-Temp-Token header.
40231
40252
  */
40232
- tempToken: string;
40253
+ tempToken?: string;
40233
40254
  };
40234
40255
  };
40235
40256
  type ListWhatsAppPhoneNumbersResponse = ({
@@ -40284,9 +40305,13 @@ type CompleteWhatsAppPhoneSelectionData = {
40284
40305
  */
40285
40306
  wabaId: string;
40286
40307
  /**
40287
- * The temporary access token from the headless redirect
40308
+ * The temporary access token from the headless redirect. Required unless sent in the X-Temp-Token header.
40288
40309
  */
40289
- tempToken: string;
40310
+ tempToken?: string;
40311
+ /**
40312
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
40313
+ */
40314
+ connectFlow?: string;
40290
40315
  /**
40291
40316
  * Optional user profile data (passthrough)
40292
40317
  */
@@ -40303,6 +40328,10 @@ type CompleteWhatsAppPhoneSelectionData = {
40303
40328
  * Alternative auth for API users' end customers
40304
40329
  */
40305
40330
  'X-Connect-Token'?: string;
40331
+ /**
40332
+ * The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
40333
+ */
40334
+ 'X-Temp-Token'?: string;
40306
40335
  };
40307
40336
  };
40308
40337
  type CompleteWhatsAppPhoneSelectionResponse = ({
@@ -72598,6 +72627,10 @@ type UpdateTrackingSiteData = {
72598
72627
  * A subdomain of one of the site's domains, never the domain itself. `null` removes it.
72599
72628
  */
72600
72629
  customHostname?: (string) | null;
72630
+ /**
72631
+ * The path your server forwards to the collector, such as `/zt`. `null` removes it.
72632
+ */
72633
+ proxyPath?: (string) | null;
72601
72634
  };
72602
72635
  path: {
72603
72636
  siteId: 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: "@getlatedev/node",
39
- version: "0.2.1690",
39
+ version: "0.2.1692",
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.1690",
8
+ version: "0.2.1692",
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.1690",
3
+ "version": "0.2.1692",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20115,10 +20115,12 @@ export const getTrackingSite = <ThrowOnError extends boolean = false>(options: O
20115
20115
 
20116
20116
  /**
20117
20117
  * Update a tracking site
20118
- * Changes the site's name, domains, consent mode or custom subdomain. Send at least one field.
20118
+ * Changes the site's name, domains, consent mode, custom subdomain or own-domain path. Send at least one field.
20119
20119
  *
20120
20120
  * `customHostname` sets a subdomain of the site, such as `t.brand.com`; create the CNAME in `customHostname.dnsRecord`. The snippet switches to it once its status is `active`. `null` removes it.
20121
20121
  *
20122
+ * `proxyPath` serves the tag from a path of the site itself, such as `brand.com/zt`, through a proxy on your server. The response's `proxy.secret` signs what the proxy forwards. `null` removes it.
20123
+ *
20122
20124
  */
20123
20125
  export const updateTrackingSite = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateTrackingSiteData, ThrowOnError>) => {
20124
20126
  return (options?.client ?? client).patch<UpdateTrackingSiteResponse, UpdateTrackingSiteError, ThrowOnError>({
@@ -19686,6 +19686,19 @@ export type TrackingSite = {
19686
19686
  target?: string;
19687
19687
  };
19688
19688
  } | null;
19689
+ /**
19690
+ * The path your server forwards to the collector, so the tag runs from the site's own domain. Null when it has none.
19691
+ */
19692
+ proxy?: {
19693
+ /**
19694
+ * Such as `/zt`: the snippet loads `https://<first domain>/zt/z.js`.
19695
+ */
19696
+ path?: string;
19697
+ /**
19698
+ * Signs the visitor's IP and country your proxy forwards. Only on reading or updating one site.
19699
+ */
19700
+ secret?: (string) | null;
19701
+ } | null;
19689
19702
  consentMode?: TrackingSiteConsentMode;
19690
19703
  /**
19691
19704
  * One per setup step: `script` for the install, then one per ad account the site sends to, keyed by its platform and ids.
@@ -39560,16 +39573,24 @@ export type ListWhatsAppPhoneNumbersData = {
39560
39573
  * Alternative auth for API users' end customers (used when the bearer token is scoped to a different user)
39561
39574
  */
39562
39575
  'X-Connect-Token'?: string;
39576
+ /**
39577
+ * The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
39578
+ */
39579
+ 'X-Temp-Token'?: string;
39563
39580
  };
39564
39581
  query: {
39582
+ /**
39583
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
39584
+ */
39585
+ connectFlow?: string;
39565
39586
  /**
39566
39587
  * The Zernio profile ID from the headless redirect
39567
39588
  */
39568
39589
  profileId: string;
39569
39590
  /**
39570
- * The temporary access token from the headless redirect
39591
+ * The temporary access token from the headless redirect. Required unless sent in the X-Temp-Token header.
39571
39592
  */
39572
- tempToken: string;
39593
+ tempToken?: string;
39573
39594
  };
39574
39595
  };
39575
39596
 
@@ -39627,9 +39648,13 @@ export type CompleteWhatsAppPhoneSelectionData = {
39627
39648
  */
39628
39649
  wabaId: string;
39629
39650
  /**
39630
- * The temporary access token from the headless redirect
39651
+ * The temporary access token from the headless redirect. Required unless sent in the X-Temp-Token header.
39631
39652
  */
39632
- tempToken: string;
39653
+ tempToken?: string;
39654
+ /**
39655
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
39656
+ */
39657
+ connectFlow?: string;
39633
39658
  /**
39634
39659
  * Optional user profile data (passthrough)
39635
39660
  */
@@ -39646,6 +39671,10 @@ export type CompleteWhatsAppPhoneSelectionData = {
39646
39671
  * Alternative auth for API users' end customers
39647
39672
  */
39648
39673
  'X-Connect-Token'?: string;
39674
+ /**
39675
+ * The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
39676
+ */
39677
+ 'X-Temp-Token'?: string;
39649
39678
  };
39650
39679
  };
39651
39680
 
@@ -74368,6 +74397,10 @@ export type UpdateTrackingSiteData = {
74368
74397
  * A subdomain of one of the site's domains, never the domain itself. `null` removes it.
74369
74398
  */
74370
74399
  customHostname?: (string) | null;
74400
+ /**
74401
+ * The path your server forwards to the collector, such as `/zt`. `null` removes it.
74402
+ */
74403
+ proxyPath?: (string) | null;
74371
74404
  };
74372
74405
  path: {
74373
74406
  siteId: string;