@getlatedev/node 0.2.1317 → 0.2.1319

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
@@ -5431,7 +5431,11 @@ type CommentAutomationAudience = {
5431
5431
  * * `skip` - stay silent.
5432
5432
  * * `verify` - send `followGate.message` with a confirm button. Tapping it is a
5433
5433
  * message, which grants consent, so the re-check on the tap resolves and the
5434
- * real DM (or `followGate.notFollowingMessage`) follows automatically.
5434
+ * real DM (or `followGate.notFollowingMessage`) follows automatically. The tap
5435
+ * re-checks the follow relationship live, with no cached answer. A known
5436
+ * non-follower gets `followGate.notFollowingMessage`, never the DM. If Instagram
5437
+ * still will not reveal the relationship on the tap, or the lookup fails, the DM
5438
+ * is delivered (fails open).
5435
5439
  *
5436
5440
  */
5437
5441
  whenUnknown?: 'send' | 'skip' | 'verify';
@@ -5451,7 +5455,11 @@ type followerStatus = 'any' | 'follower' | 'non_follower';
5451
5455
  * * `skip` - stay silent.
5452
5456
  * * `verify` - send `followGate.message` with a confirm button. Tapping it is a
5453
5457
  * message, which grants consent, so the re-check on the tap resolves and the
5454
- * real DM (or `followGate.notFollowingMessage`) follows automatically.
5458
+ * real DM (or `followGate.notFollowingMessage`) follows automatically. The tap
5459
+ * re-checks the follow relationship live, with no cached answer. A known
5460
+ * non-follower gets `followGate.notFollowingMessage`, never the DM. If Instagram
5461
+ * still will not reveal the relationship on the tap, or the lookup fails, the DM
5462
+ * is delivered (fails open).
5455
5463
  *
5456
5464
  */
5457
5465
  type whenUnknown = 'send' | 'skip' | 'verify';
@@ -5482,6 +5490,10 @@ type CommentAutomationFollowGate = {
5482
5490
  * Confirm button label. Defaults to "I'm following" (whenUnknown=verify) or "Unlock" (tapToUnlock).
5483
5491
  */
5484
5492
  buttonLabel?: string;
5493
+ /**
5494
+ * Optional. When set, the follow gate DM and the not-following message with the confirm button also carry a URL button with this label that opens the connected Instagram account's profile. Omit for the confirm button only. Instagram only.
5495
+ */
5496
+ profileButtonLabel?: string;
5485
5497
  /**
5486
5498
  * Sent to a commenter we know does not follow (followerStatus=follower), and after a confirm tap that does not unlock the DM. When following is what would unlock it, the message carries the confirm button so they can re-check once they follow; above 640 characters it goes out as plain text without the button. Omit to stay silent on a keyword comment; a confirm tap always gets an answer (a default message is used).
5487
5499
  */
@@ -23882,7 +23894,7 @@ type GetConnectUrlData = {
23882
23894
  */
23883
23895
  welcome?: boolean;
23884
23896
  /**
23885
- * Welcome screen only (`welcome=true`): a URL-encoded JSON object that restyles and rewords the screen. All keys are optional. Copy: `heading` (up to 120 characters), `trustLine`, `consentLine` and `statusLine` (up to 200 each, `statusLine` being the line above the button), `buttonLabel` (up to 30, the label of the link the button becomes if the redirect stalls); each may contain the placeholders `{brand}` and `{platform}`. Style: `primaryColor` (the button), `accentColor` (the header gradient, built as a scale of that colour, and the icons), `pageColor`, `cardColor` and `textColor` as `#RRGGBB`, `cornerRadius` as an integer from 0 to 24 (pixels), `font` as `sans`, `serif` or `mono`. A `primaryColor` here wins over the `primaryColor` parameter. Unknown keys, invalid JSON or an invalid value are a 400 `INVALID_FIELD_VALUE`. Rejected when the welcome screen is not shown. Example: `{"heading":"Link your {platform} to {brand}","cardColor":"#FFF7ED","cornerRadius":12}`.
23897
+ * Welcome screen only (`welcome=true`): a URL-encoded JSON object that restyles and rewords the screen. All keys are optional. Copy: `heading` (up to 120 characters), `trustLine`, `consentLine` and `statusLine` (up to 200 each, `statusLine` being the line above the button), `buttonLabel` (up to 30, the label of the link the button becomes if the redirect stalls), and for the closing page shown when there is no `redirect_url`, `successHeading` and `errorHeading` (up to 120) and `successBody` and `errorBody` (up to 200); each may contain the placeholders `{brand}` and `{platform}`. Style: `primaryColor` (the button), `accentColor` (the header gradient, built as a scale of that colour, and the icons), `pageColor`, `cardColor` and `textColor` as `#RRGGBB`, `cornerRadius` as an integer from 0 to 24 (pixels), `font` as `sans`, `serif` or `mono`, `bannerStyle` as `halftone` (default), `solid` (a flat tint of `accentColor`) or `plain` (no banner fill). Icons: `trustLineIcon` (default `shield`) and `consentLineIcon` (default `link`), each one of `shield`, `lock`, `link`, `check`, `user`, `sparkles` or `none`. Visibility: `hide`, an array of any of `heading`, `trustLine`, `consentLine`, `statusLine`, `successBody` and `errorBody`, removes those lines from the screens. Links: `termsUrl` and `privacyUrl` (https, up to 2048 characters) add small Terms and Privacy links at the bottom of every hosted screen. A `primaryColor` here wins over the `primaryColor` parameter. Unknown keys, invalid JSON or an invalid value are a 400 `INVALID_FIELD_VALUE`. Rejected when the welcome screen is not shown. Example: `{"heading":"Link your {platform} to {brand}","cardColor":"#FFF7ED","cornerRadius":12}`.
23886
23898
  */
23887
23899
  welcomeTheme?: string;
23888
23900
  };
package/dist/index.d.ts CHANGED
@@ -5431,7 +5431,11 @@ type CommentAutomationAudience = {
5431
5431
  * * `skip` - stay silent.
5432
5432
  * * `verify` - send `followGate.message` with a confirm button. Tapping it is a
5433
5433
  * message, which grants consent, so the re-check on the tap resolves and the
5434
- * real DM (or `followGate.notFollowingMessage`) follows automatically.
5434
+ * real DM (or `followGate.notFollowingMessage`) follows automatically. The tap
5435
+ * re-checks the follow relationship live, with no cached answer. A known
5436
+ * non-follower gets `followGate.notFollowingMessage`, never the DM. If Instagram
5437
+ * still will not reveal the relationship on the tap, or the lookup fails, the DM
5438
+ * is delivered (fails open).
5435
5439
  *
5436
5440
  */
5437
5441
  whenUnknown?: 'send' | 'skip' | 'verify';
@@ -5451,7 +5455,11 @@ type followerStatus = 'any' | 'follower' | 'non_follower';
5451
5455
  * * `skip` - stay silent.
5452
5456
  * * `verify` - send `followGate.message` with a confirm button. Tapping it is a
5453
5457
  * message, which grants consent, so the re-check on the tap resolves and the
5454
- * real DM (or `followGate.notFollowingMessage`) follows automatically.
5458
+ * real DM (or `followGate.notFollowingMessage`) follows automatically. The tap
5459
+ * re-checks the follow relationship live, with no cached answer. A known
5460
+ * non-follower gets `followGate.notFollowingMessage`, never the DM. If Instagram
5461
+ * still will not reveal the relationship on the tap, or the lookup fails, the DM
5462
+ * is delivered (fails open).
5455
5463
  *
5456
5464
  */
5457
5465
  type whenUnknown = 'send' | 'skip' | 'verify';
@@ -5482,6 +5490,10 @@ type CommentAutomationFollowGate = {
5482
5490
  * Confirm button label. Defaults to "I'm following" (whenUnknown=verify) or "Unlock" (tapToUnlock).
5483
5491
  */
5484
5492
  buttonLabel?: string;
5493
+ /**
5494
+ * Optional. When set, the follow gate DM and the not-following message with the confirm button also carry a URL button with this label that opens the connected Instagram account's profile. Omit for the confirm button only. Instagram only.
5495
+ */
5496
+ profileButtonLabel?: string;
5485
5497
  /**
5486
5498
  * Sent to a commenter we know does not follow (followerStatus=follower), and after a confirm tap that does not unlock the DM. When following is what would unlock it, the message carries the confirm button so they can re-check once they follow; above 640 characters it goes out as plain text without the button. Omit to stay silent on a keyword comment; a confirm tap always gets an answer (a default message is used).
5487
5499
  */
@@ -23882,7 +23894,7 @@ type GetConnectUrlData = {
23882
23894
  */
23883
23895
  welcome?: boolean;
23884
23896
  /**
23885
- * Welcome screen only (`welcome=true`): a URL-encoded JSON object that restyles and rewords the screen. All keys are optional. Copy: `heading` (up to 120 characters), `trustLine`, `consentLine` and `statusLine` (up to 200 each, `statusLine` being the line above the button), `buttonLabel` (up to 30, the label of the link the button becomes if the redirect stalls); each may contain the placeholders `{brand}` and `{platform}`. Style: `primaryColor` (the button), `accentColor` (the header gradient, built as a scale of that colour, and the icons), `pageColor`, `cardColor` and `textColor` as `#RRGGBB`, `cornerRadius` as an integer from 0 to 24 (pixels), `font` as `sans`, `serif` or `mono`. A `primaryColor` here wins over the `primaryColor` parameter. Unknown keys, invalid JSON or an invalid value are a 400 `INVALID_FIELD_VALUE`. Rejected when the welcome screen is not shown. Example: `{"heading":"Link your {platform} to {brand}","cardColor":"#FFF7ED","cornerRadius":12}`.
23897
+ * Welcome screen only (`welcome=true`): a URL-encoded JSON object that restyles and rewords the screen. All keys are optional. Copy: `heading` (up to 120 characters), `trustLine`, `consentLine` and `statusLine` (up to 200 each, `statusLine` being the line above the button), `buttonLabel` (up to 30, the label of the link the button becomes if the redirect stalls), and for the closing page shown when there is no `redirect_url`, `successHeading` and `errorHeading` (up to 120) and `successBody` and `errorBody` (up to 200); each may contain the placeholders `{brand}` and `{platform}`. Style: `primaryColor` (the button), `accentColor` (the header gradient, built as a scale of that colour, and the icons), `pageColor`, `cardColor` and `textColor` as `#RRGGBB`, `cornerRadius` as an integer from 0 to 24 (pixels), `font` as `sans`, `serif` or `mono`, `bannerStyle` as `halftone` (default), `solid` (a flat tint of `accentColor`) or `plain` (no banner fill). Icons: `trustLineIcon` (default `shield`) and `consentLineIcon` (default `link`), each one of `shield`, `lock`, `link`, `check`, `user`, `sparkles` or `none`. Visibility: `hide`, an array of any of `heading`, `trustLine`, `consentLine`, `statusLine`, `successBody` and `errorBody`, removes those lines from the screens. Links: `termsUrl` and `privacyUrl` (https, up to 2048 characters) add small Terms and Privacy links at the bottom of every hosted screen. A `primaryColor` here wins over the `primaryColor` parameter. Unknown keys, invalid JSON or an invalid value are a 400 `INVALID_FIELD_VALUE`. Rejected when the welcome screen is not shown. Example: `{"heading":"Link your {platform} to {brand}","cardColor":"#FFF7ED","cornerRadius":12}`.
23886
23898
  */
23887
23899
  welcomeTheme?: string;
23888
23900
  };
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.1317",
39
+ version: "0.2.1319",
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.1317",
8
+ version: "0.2.1319",
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.1317",
3
+ "version": "0.2.1319",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3496,7 +3496,11 @@ export type CommentAutomationAudience = {
3496
3496
  * * `skip` - stay silent.
3497
3497
  * * `verify` - send `followGate.message` with a confirm button. Tapping it is a
3498
3498
  * message, which grants consent, so the re-check on the tap resolves and the
3499
- * real DM (or `followGate.notFollowingMessage`) follows automatically.
3499
+ * real DM (or `followGate.notFollowingMessage`) follows automatically. The tap
3500
+ * re-checks the follow relationship live, with no cached answer. A known
3501
+ * non-follower gets `followGate.notFollowingMessage`, never the DM. If Instagram
3502
+ * still will not reveal the relationship on the tap, or the lookup fails, the DM
3503
+ * is delivered (fails open).
3500
3504
  *
3501
3505
  */
3502
3506
  whenUnknown?: 'send' | 'skip' | 'verify';
@@ -3518,7 +3522,11 @@ export type followerStatus = 'any' | 'follower' | 'non_follower';
3518
3522
  * * `skip` - stay silent.
3519
3523
  * * `verify` - send `followGate.message` with a confirm button. Tapping it is a
3520
3524
  * message, which grants consent, so the re-check on the tap resolves and the
3521
- * real DM (or `followGate.notFollowingMessage`) follows automatically.
3525
+ * real DM (or `followGate.notFollowingMessage`) follows automatically. The tap
3526
+ * re-checks the follow relationship live, with no cached answer. A known
3527
+ * non-follower gets `followGate.notFollowingMessage`, never the DM. If Instagram
3528
+ * still will not reveal the relationship on the tap, or the lookup fails, the DM
3529
+ * is delivered (fails open).
3522
3530
  *
3523
3531
  */
3524
3532
  export type whenUnknown = 'send' | 'skip' | 'verify';
@@ -3552,6 +3560,10 @@ export type CommentAutomationFollowGate = {
3552
3560
  * Confirm button label. Defaults to "I'm following" (whenUnknown=verify) or "Unlock" (tapToUnlock).
3553
3561
  */
3554
3562
  buttonLabel?: string;
3563
+ /**
3564
+ * Optional. When set, the follow gate DM and the not-following message with the confirm button also carry a URL button with this label that opens the connected Instagram account's profile. Omit for the confirm button only. Instagram only.
3565
+ */
3566
+ profileButtonLabel?: string;
3555
3567
  /**
3556
3568
  * Sent to a commenter we know does not follow (followerStatus=follower), and after a confirm tap that does not unlock the DM. When following is what would unlock it, the message carries the confirm button so they can re-check once they follow; above 640 characters it goes out as plain text without the button. Omit to stay silent on a keyword comment; a confirm tap always gets an answer (a default message is used).
3557
3569
  */
@@ -22853,7 +22865,7 @@ export type GetConnectUrlData = {
22853
22865
  */
22854
22866
  welcome?: boolean;
22855
22867
  /**
22856
- * Welcome screen only (`welcome=true`): a URL-encoded JSON object that restyles and rewords the screen. All keys are optional. Copy: `heading` (up to 120 characters), `trustLine`, `consentLine` and `statusLine` (up to 200 each, `statusLine` being the line above the button), `buttonLabel` (up to 30, the label of the link the button becomes if the redirect stalls); each may contain the placeholders `{brand}` and `{platform}`. Style: `primaryColor` (the button), `accentColor` (the header gradient, built as a scale of that colour, and the icons), `pageColor`, `cardColor` and `textColor` as `#RRGGBB`, `cornerRadius` as an integer from 0 to 24 (pixels), `font` as `sans`, `serif` or `mono`. A `primaryColor` here wins over the `primaryColor` parameter. Unknown keys, invalid JSON or an invalid value are a 400 `INVALID_FIELD_VALUE`. Rejected when the welcome screen is not shown. Example: `{"heading":"Link your {platform} to {brand}","cardColor":"#FFF7ED","cornerRadius":12}`.
22868
+ * Welcome screen only (`welcome=true`): a URL-encoded JSON object that restyles and rewords the screen. All keys are optional. Copy: `heading` (up to 120 characters), `trustLine`, `consentLine` and `statusLine` (up to 200 each, `statusLine` being the line above the button), `buttonLabel` (up to 30, the label of the link the button becomes if the redirect stalls), and for the closing page shown when there is no `redirect_url`, `successHeading` and `errorHeading` (up to 120) and `successBody` and `errorBody` (up to 200); each may contain the placeholders `{brand}` and `{platform}`. Style: `primaryColor` (the button), `accentColor` (the header gradient, built as a scale of that colour, and the icons), `pageColor`, `cardColor` and `textColor` as `#RRGGBB`, `cornerRadius` as an integer from 0 to 24 (pixels), `font` as `sans`, `serif` or `mono`, `bannerStyle` as `halftone` (default), `solid` (a flat tint of `accentColor`) or `plain` (no banner fill). Icons: `trustLineIcon` (default `shield`) and `consentLineIcon` (default `link`), each one of `shield`, `lock`, `link`, `check`, `user`, `sparkles` or `none`. Visibility: `hide`, an array of any of `heading`, `trustLine`, `consentLine`, `statusLine`, `successBody` and `errorBody`, removes those lines from the screens. Links: `termsUrl` and `privacyUrl` (https, up to 2048 characters) add small Terms and Privacy links at the bottom of every hosted screen. A `primaryColor` here wins over the `primaryColor` parameter. Unknown keys, invalid JSON or an invalid value are a 400 `INVALID_FIELD_VALUE`. Rejected when the welcome screen is not shown. Example: `{"heading":"Link your {platform} to {brand}","cardColor":"#FFF7ED","cornerRadius":12}`.
22857
22869
  */
22858
22870
  welcomeTheme?: string;
22859
22871
  };