@getlatedev/node 0.2.1709 → 0.2.1711

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
@@ -15725,9 +15725,19 @@ type ImapDiscovery = {
15725
15725
  reconnectCause?: (string) | null;
15726
15726
  reason?: (string) | null;
15727
15727
  /**
15728
- * proton_requires_bridge: Proton Mail only works through its local bridge. forwarding_only: the domain forwards mail (Cloudflare Email Routing) and stores none, so connect the mailbox it forwards to.
15728
+ * Why an `unsupported` route cannot connect:
15729
+ *
15730
+ * - `proton_requires_bridge`: Proton Mail only works through its local bridge.
15731
+ * - `forwarding_only`: the domain forwards mail (Cloudflare Email Routing) and stores none, so connect the mailbox it forwards to.
15732
+ * - `domain_typo`: the domain takes no mail and looks like a mistyped consumer domain. `suggestedEmail` has the likely address.
15733
+ * - `no_mail_domain`: the domain has no MX and no address, so it cannot receive email.
15734
+ *
15735
+ */
15736
+ unsupportedReason?: ('proton_requires_bridge' | 'forwarding_only' | 'domain_typo' | 'no_mail_domain') | null;
15737
+ /**
15738
+ * With unsupportedReason domain_typo: the address the user most likely meant, such as ana7275@gmail.com for ana@7275gmail.com. Run discovery again with it once the user confirms.
15729
15739
  */
15730
- unsupportedReason?: ('proton_requires_bridge' | 'forwarding_only') | null;
15740
+ suggestedEmail?: (string) | null;
15731
15741
  /**
15732
15742
  * Google only: Gmail over IMAP with an app password, for accounts whose admin blocks Google sign-in for other apps.
15733
15743
  */
@@ -15743,9 +15753,15 @@ type source4 = 'preset' | 'mx' | 'autoconfig' | 'ispdb' | 'srv' | 'probe' | 'non
15743
15753
  type confidence = 'high' | 'medium' | 'low';
15744
15754
  type kind11 = 'password' | 'app_password' | 'oauth';
15745
15755
  /**
15746
- * proton_requires_bridge: Proton Mail only works through its local bridge. forwarding_only: the domain forwards mail (Cloudflare Email Routing) and stores none, so connect the mailbox it forwards to.
15756
+ * Why an `unsupported` route cannot connect:
15757
+ *
15758
+ * - `proton_requires_bridge`: Proton Mail only works through its local bridge.
15759
+ * - `forwarding_only`: the domain forwards mail (Cloudflare Email Routing) and stores none, so connect the mailbox it forwards to.
15760
+ * - `domain_typo`: the domain takes no mail and looks like a mistyped consumer domain. `suggestedEmail` has the likely address.
15761
+ * - `no_mail_domain`: the domain has no MX and no address, so it cannot receive email.
15762
+ *
15747
15763
  */
15748
- type unsupportedReason = 'proton_requires_bridge' | 'forwarding_only';
15764
+ type unsupportedReason = 'proton_requires_bridge' | 'forwarding_only' | 'domain_typo' | 'no_mail_domain';
15749
15765
  type ImessageAudienceContact = {
15750
15766
  conversationId?: string;
15751
15767
  accountId?: string;
@@ -33099,29 +33115,39 @@ type QueryGoogleSearchConsoleSearchAnalyticsData = {
33099
33115
  accountId: string;
33100
33116
  fromDate?: string;
33101
33117
  toDate?: string;
33102
- dimensions?: Array<('date' | 'hour' | 'query' | 'page' | 'country' | 'device' | 'searchAppearance')>;
33118
+ dimensions?: Array<('date' | 'hour' | 'query' | 'page' | 'country' | 'device' | 'searchAppearance' | 'brandedClassification')>;
33103
33119
  /**
33104
- * Which Google surface to read. Defaults to `web`.
33120
+ * Which Google surface to read. Defaults to `web`. `webMultimodal` is Google Lens, Circle to Search and image uploads.
33105
33121
  */
33106
- type?: 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews';
33122
+ type?: 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews' | 'webMultimodal';
33107
33123
  dimensionFilterGroups?: Array<{
33108
33124
  groupType?: 'and';
33109
- filters: Array<{
33125
+ filters?: Array<{
33110
33126
  /**
33111
- * Narrow dates with startDate and endDate instead.
33127
+ * Narrow dates with fromDate and toDate instead.
33112
33128
  */
33113
- dimension: 'query' | 'page' | 'country' | 'device' | 'searchAppearance';
33129
+ dimension: 'query' | 'page' | 'country' | 'device' | 'searchAppearance' | 'brandedClassification';
33114
33130
  /**
33115
33131
  * Defaults to `equals`.
33116
33132
  */
33117
33133
  operator?: 'equals' | 'notEquals' | 'contains' | 'notContains' | 'includingRegex' | 'excludingRegex';
33118
33134
  /**
33119
- * The value to match. Countries are ISO 3166-1 alpha-3 codes (`usa`), devices `DESKTOP`, `MOBILE` or `TABLET`.
33135
+ * The value to match. Countries are ISO 3166-1 alpha-3 codes (`usa`), devices `DESKTOP`, `MOBILE` or `TABLET`, brandedClassification `BRANDED` or `NON_BRANDED`.
33120
33136
  */
33121
33137
  expression: string;
33122
33138
  }>;
33139
+ /**
33140
+ * Matches a row whose value is any of the expressions. A dimension goes in filters or in filterLists, not both.
33141
+ */
33142
+ filterLists?: Array<{
33143
+ dimension: 'country' | 'device';
33144
+ expressions: Array<(string)>;
33145
+ }>;
33123
33146
  }>;
33124
- aggregationType?: 'auto' | 'byPage' | 'byProperty';
33147
+ /**
33148
+ * byNewsShowcasePanel needs a NEWS_SHOWCASE searchAppearance filter and type discover or googleNews.
33149
+ */
33150
+ aggregationType?: 'auto' | 'byPage' | 'byProperty' | 'byNewsShowcasePanel';
33125
33151
  /**
33126
33152
  * Defaults to 1000.
33127
33153
  */
@@ -33169,6 +33195,14 @@ type QueryGoogleSearchConsoleSearchAnalyticsResponse = ({
33169
33195
  fromDate?: string;
33170
33196
  toDate?: string;
33171
33197
  aggregationType?: (string) | null;
33198
+ /**
33199
+ * From this Pacific day on the numbers can still change. Sent with dataState all when grouped by date.
33200
+ */
33201
+ firstIncompleteDate?: (string) | null;
33202
+ /**
33203
+ * The same for hours, with dataState hourly_all when grouped by hour.
33204
+ */
33205
+ firstIncompleteHour?: (string) | null;
33172
33206
  };
33173
33207
  });
33174
33208
  type QueryGoogleSearchConsoleSearchAnalyticsError = (ErrorResponse | unknown | {
package/dist/index.d.ts CHANGED
@@ -15725,9 +15725,19 @@ type ImapDiscovery = {
15725
15725
  reconnectCause?: (string) | null;
15726
15726
  reason?: (string) | null;
15727
15727
  /**
15728
- * proton_requires_bridge: Proton Mail only works through its local bridge. forwarding_only: the domain forwards mail (Cloudflare Email Routing) and stores none, so connect the mailbox it forwards to.
15728
+ * Why an `unsupported` route cannot connect:
15729
+ *
15730
+ * - `proton_requires_bridge`: Proton Mail only works through its local bridge.
15731
+ * - `forwarding_only`: the domain forwards mail (Cloudflare Email Routing) and stores none, so connect the mailbox it forwards to.
15732
+ * - `domain_typo`: the domain takes no mail and looks like a mistyped consumer domain. `suggestedEmail` has the likely address.
15733
+ * - `no_mail_domain`: the domain has no MX and no address, so it cannot receive email.
15734
+ *
15735
+ */
15736
+ unsupportedReason?: ('proton_requires_bridge' | 'forwarding_only' | 'domain_typo' | 'no_mail_domain') | null;
15737
+ /**
15738
+ * With unsupportedReason domain_typo: the address the user most likely meant, such as ana7275@gmail.com for ana@7275gmail.com. Run discovery again with it once the user confirms.
15729
15739
  */
15730
- unsupportedReason?: ('proton_requires_bridge' | 'forwarding_only') | null;
15740
+ suggestedEmail?: (string) | null;
15731
15741
  /**
15732
15742
  * Google only: Gmail over IMAP with an app password, for accounts whose admin blocks Google sign-in for other apps.
15733
15743
  */
@@ -15743,9 +15753,15 @@ type source4 = 'preset' | 'mx' | 'autoconfig' | 'ispdb' | 'srv' | 'probe' | 'non
15743
15753
  type confidence = 'high' | 'medium' | 'low';
15744
15754
  type kind11 = 'password' | 'app_password' | 'oauth';
15745
15755
  /**
15746
- * proton_requires_bridge: Proton Mail only works through its local bridge. forwarding_only: the domain forwards mail (Cloudflare Email Routing) and stores none, so connect the mailbox it forwards to.
15756
+ * Why an `unsupported` route cannot connect:
15757
+ *
15758
+ * - `proton_requires_bridge`: Proton Mail only works through its local bridge.
15759
+ * - `forwarding_only`: the domain forwards mail (Cloudflare Email Routing) and stores none, so connect the mailbox it forwards to.
15760
+ * - `domain_typo`: the domain takes no mail and looks like a mistyped consumer domain. `suggestedEmail` has the likely address.
15761
+ * - `no_mail_domain`: the domain has no MX and no address, so it cannot receive email.
15762
+ *
15747
15763
  */
15748
- type unsupportedReason = 'proton_requires_bridge' | 'forwarding_only';
15764
+ type unsupportedReason = 'proton_requires_bridge' | 'forwarding_only' | 'domain_typo' | 'no_mail_domain';
15749
15765
  type ImessageAudienceContact = {
15750
15766
  conversationId?: string;
15751
15767
  accountId?: string;
@@ -33099,29 +33115,39 @@ type QueryGoogleSearchConsoleSearchAnalyticsData = {
33099
33115
  accountId: string;
33100
33116
  fromDate?: string;
33101
33117
  toDate?: string;
33102
- dimensions?: Array<('date' | 'hour' | 'query' | 'page' | 'country' | 'device' | 'searchAppearance')>;
33118
+ dimensions?: Array<('date' | 'hour' | 'query' | 'page' | 'country' | 'device' | 'searchAppearance' | 'brandedClassification')>;
33103
33119
  /**
33104
- * Which Google surface to read. Defaults to `web`.
33120
+ * Which Google surface to read. Defaults to `web`. `webMultimodal` is Google Lens, Circle to Search and image uploads.
33105
33121
  */
33106
- type?: 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews';
33122
+ type?: 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews' | 'webMultimodal';
33107
33123
  dimensionFilterGroups?: Array<{
33108
33124
  groupType?: 'and';
33109
- filters: Array<{
33125
+ filters?: Array<{
33110
33126
  /**
33111
- * Narrow dates with startDate and endDate instead.
33127
+ * Narrow dates with fromDate and toDate instead.
33112
33128
  */
33113
- dimension: 'query' | 'page' | 'country' | 'device' | 'searchAppearance';
33129
+ dimension: 'query' | 'page' | 'country' | 'device' | 'searchAppearance' | 'brandedClassification';
33114
33130
  /**
33115
33131
  * Defaults to `equals`.
33116
33132
  */
33117
33133
  operator?: 'equals' | 'notEquals' | 'contains' | 'notContains' | 'includingRegex' | 'excludingRegex';
33118
33134
  /**
33119
- * The value to match. Countries are ISO 3166-1 alpha-3 codes (`usa`), devices `DESKTOP`, `MOBILE` or `TABLET`.
33135
+ * The value to match. Countries are ISO 3166-1 alpha-3 codes (`usa`), devices `DESKTOP`, `MOBILE` or `TABLET`, brandedClassification `BRANDED` or `NON_BRANDED`.
33120
33136
  */
33121
33137
  expression: string;
33122
33138
  }>;
33139
+ /**
33140
+ * Matches a row whose value is any of the expressions. A dimension goes in filters or in filterLists, not both.
33141
+ */
33142
+ filterLists?: Array<{
33143
+ dimension: 'country' | 'device';
33144
+ expressions: Array<(string)>;
33145
+ }>;
33123
33146
  }>;
33124
- aggregationType?: 'auto' | 'byPage' | 'byProperty';
33147
+ /**
33148
+ * byNewsShowcasePanel needs a NEWS_SHOWCASE searchAppearance filter and type discover or googleNews.
33149
+ */
33150
+ aggregationType?: 'auto' | 'byPage' | 'byProperty' | 'byNewsShowcasePanel';
33125
33151
  /**
33126
33152
  * Defaults to 1000.
33127
33153
  */
@@ -33169,6 +33195,14 @@ type QueryGoogleSearchConsoleSearchAnalyticsResponse = ({
33169
33195
  fromDate?: string;
33170
33196
  toDate?: string;
33171
33197
  aggregationType?: (string) | null;
33198
+ /**
33199
+ * From this Pacific day on the numbers can still change. Sent with dataState all when grouped by date.
33200
+ */
33201
+ firstIncompleteDate?: (string) | null;
33202
+ /**
33203
+ * The same for hours, with dataState hourly_all when grouped by hour.
33204
+ */
33205
+ firstIncompleteHour?: (string) | null;
33172
33206
  };
33173
33207
  });
33174
33208
  type QueryGoogleSearchConsoleSearchAnalyticsError = (ErrorResponse | 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.1709",
39
+ version: "0.2.1711",
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.1709",
8
+ version: "0.2.1711",
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.1709",
3
+ "version": "0.2.1711",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1321,7 +1321,11 @@ export const getGoogleAnalyticsMetadata = <ThrowOnError extends boolean = false>
1321
1321
  * Query Google Search Console search analytics
1322
1322
  * Clicks, impressions, CTR and average position from Google Search for a connected Search Console site, through Google's `searchAnalytics.query`.
1323
1323
  *
1324
- * Group by any of `date`, `hour`, `query`, `page`, `country`, `device` and `searchAppearance`, and filter with Google's own filter groups. With no dimensions you get one row with the site's totals.
1324
+ * Group by any of `date`, `hour`, `query`, `page`, `country`, `device`, `searchAppearance` and `brandedClassification`, and filter with Google's own filter groups. With no dimensions you get one row with the site's totals.
1325
+ *
1326
+ * ### Branded queries
1327
+ *
1328
+ * `brandedClassification` splits searches into `BRANDED` and `NON_BRANDED`. Google has it from February 21, 2026, and only for sites with enough search volume. As a filter it takes `equals` only and cannot be combined with a `query` filter.
1325
1329
  *
1326
1330
  * ### Dates
1327
1331
  *
@@ -13801,9 +13801,19 @@ export type ImapDiscovery = {
13801
13801
  reconnectCause?: (string) | null;
13802
13802
  reason?: (string) | null;
13803
13803
  /**
13804
- * proton_requires_bridge: Proton Mail only works through its local bridge. forwarding_only: the domain forwards mail (Cloudflare Email Routing) and stores none, so connect the mailbox it forwards to.
13804
+ * Why an `unsupported` route cannot connect:
13805
+ *
13806
+ * - `proton_requires_bridge`: Proton Mail only works through its local bridge.
13807
+ * - `forwarding_only`: the domain forwards mail (Cloudflare Email Routing) and stores none, so connect the mailbox it forwards to.
13808
+ * - `domain_typo`: the domain takes no mail and looks like a mistyped consumer domain. `suggestedEmail` has the likely address.
13809
+ * - `no_mail_domain`: the domain has no MX and no address, so it cannot receive email.
13810
+ *
13811
+ */
13812
+ unsupportedReason?: ('proton_requires_bridge' | 'forwarding_only' | 'domain_typo' | 'no_mail_domain') | null;
13813
+ /**
13814
+ * With unsupportedReason domain_typo: the address the user most likely meant, such as ana7275@gmail.com for ana@7275gmail.com. Run discovery again with it once the user confirms.
13805
13815
  */
13806
- unsupportedReason?: ('proton_requires_bridge' | 'forwarding_only') | null;
13816
+ suggestedEmail?: (string) | null;
13807
13817
  /**
13808
13818
  * Google only: Gmail over IMAP with an app password, for accounts whose admin blocks Google sign-in for other apps.
13809
13819
  */
@@ -13824,9 +13834,15 @@ export type confidence = 'high' | 'medium' | 'low';
13824
13834
  export type kind11 = 'password' | 'app_password' | 'oauth';
13825
13835
 
13826
13836
  /**
13827
- * proton_requires_bridge: Proton Mail only works through its local bridge. forwarding_only: the domain forwards mail (Cloudflare Email Routing) and stores none, so connect the mailbox it forwards to.
13837
+ * Why an `unsupported` route cannot connect:
13838
+ *
13839
+ * - `proton_requires_bridge`: Proton Mail only works through its local bridge.
13840
+ * - `forwarding_only`: the domain forwards mail (Cloudflare Email Routing) and stores none, so connect the mailbox it forwards to.
13841
+ * - `domain_typo`: the domain takes no mail and looks like a mistyped consumer domain. `suggestedEmail` has the likely address.
13842
+ * - `no_mail_domain`: the domain has no MX and no address, so it cannot receive email.
13843
+ *
13828
13844
  */
13829
- export type unsupportedReason = 'proton_requires_bridge' | 'forwarding_only';
13845
+ export type unsupportedReason = 'proton_requires_bridge' | 'forwarding_only' | 'domain_typo' | 'no_mail_domain';
13830
13846
 
13831
13847
  export type ImessageAudienceContact = {
13832
13848
  conversationId?: string;
@@ -32002,29 +32018,39 @@ export type QueryGoogleSearchConsoleSearchAnalyticsData = {
32002
32018
  accountId: string;
32003
32019
  fromDate?: string;
32004
32020
  toDate?: string;
32005
- dimensions?: Array<('date' | 'hour' | 'query' | 'page' | 'country' | 'device' | 'searchAppearance')>;
32021
+ dimensions?: Array<('date' | 'hour' | 'query' | 'page' | 'country' | 'device' | 'searchAppearance' | 'brandedClassification')>;
32006
32022
  /**
32007
- * Which Google surface to read. Defaults to `web`.
32023
+ * Which Google surface to read. Defaults to `web`. `webMultimodal` is Google Lens, Circle to Search and image uploads.
32008
32024
  */
32009
- type?: 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews';
32025
+ type?: 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews' | 'webMultimodal';
32010
32026
  dimensionFilterGroups?: Array<{
32011
32027
  groupType?: 'and';
32012
- filters: Array<{
32028
+ filters?: Array<{
32013
32029
  /**
32014
- * Narrow dates with startDate and endDate instead.
32030
+ * Narrow dates with fromDate and toDate instead.
32015
32031
  */
32016
- dimension: 'query' | 'page' | 'country' | 'device' | 'searchAppearance';
32032
+ dimension: 'query' | 'page' | 'country' | 'device' | 'searchAppearance' | 'brandedClassification';
32017
32033
  /**
32018
32034
  * Defaults to `equals`.
32019
32035
  */
32020
32036
  operator?: 'equals' | 'notEquals' | 'contains' | 'notContains' | 'includingRegex' | 'excludingRegex';
32021
32037
  /**
32022
- * The value to match. Countries are ISO 3166-1 alpha-3 codes (`usa`), devices `DESKTOP`, `MOBILE` or `TABLET`.
32038
+ * The value to match. Countries are ISO 3166-1 alpha-3 codes (`usa`), devices `DESKTOP`, `MOBILE` or `TABLET`, brandedClassification `BRANDED` or `NON_BRANDED`.
32023
32039
  */
32024
32040
  expression: string;
32025
32041
  }>;
32042
+ /**
32043
+ * Matches a row whose value is any of the expressions. A dimension goes in filters or in filterLists, not both.
32044
+ */
32045
+ filterLists?: Array<{
32046
+ dimension: 'country' | 'device';
32047
+ expressions: Array<(string)>;
32048
+ }>;
32026
32049
  }>;
32027
- aggregationType?: 'auto' | 'byPage' | 'byProperty';
32050
+ /**
32051
+ * byNewsShowcasePanel needs a NEWS_SHOWCASE searchAppearance filter and type discover or googleNews.
32052
+ */
32053
+ aggregationType?: 'auto' | 'byPage' | 'byProperty' | 'byNewsShowcasePanel';
32028
32054
  /**
32029
32055
  * Defaults to 1000.
32030
32056
  */
@@ -32073,6 +32099,14 @@ export type QueryGoogleSearchConsoleSearchAnalyticsResponse = ({
32073
32099
  fromDate?: string;
32074
32100
  toDate?: string;
32075
32101
  aggregationType?: (string) | null;
32102
+ /**
32103
+ * From this Pacific day on the numbers can still change. Sent with dataState all when grouped by date.
32104
+ */
32105
+ firstIncompleteDate?: (string) | null;
32106
+ /**
32107
+ * The same for hours, with dataState hourly_all when grouped by hour.
32108
+ */
32109
+ firstIncompleteHour?: (string) | null;
32076
32110
  };
32077
32111
  });
32078
32112