@getlatedev/node 0.2.1667 → 0.2.1669

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
@@ -34941,7 +34941,19 @@ type GetAccountHealthResponse = ({
34941
34941
  * Google and Microsoft only: today's outbound mail allowance for the mailbox.
34942
34942
  */
34943
34943
  sendCap?: {
34944
+ /**
34945
+ * Today's cap: the base cap, doubled after 14 days of sending with no spam signal.
34946
+ */
34944
34947
  limit?: number;
34948
+ /**
34949
+ * The cap before doubling.
34950
+ */
34951
+ baseLimit?: number;
34952
+ doubled?: boolean;
34953
+ /**
34954
+ * When the cap doubles if the mailbox sends every day from now on and raises no spam signal. Null once doubled, with a manual limit, and on IMAP.
34955
+ */
34956
+ doublesAt?: (string) | null;
34945
34957
  used?: number;
34946
34958
  resetsAt?: string;
34947
34959
  };
@@ -34949,6 +34961,18 @@ type GetAccountHealthResponse = ({
34949
34961
  * Google and Microsoft only: state of the provider change-notification subscriptions behind `message.received` and `calendar.event.*`. `pending` means a granted area has no live subscription yet (retried every 6 hours), `failed` that renewals keep failing (reconnect the account).
34950
34962
  */
34951
34963
  push?: 'active' | 'pending' | 'failed' | 'not_applicable';
34964
+ /**
34965
+ * Microsoft only: present while the login has no Exchange Online mailbox (no Exchange license, inactive, soft-deleted or on-premises). Mail and calendar requests then answer 412 `mailbox_not_available`; files are not affected. Absent when the mailbox works. `status` is also `warning`, with the reason in `issues`.
34966
+ */
34967
+ mailbox?: {
34968
+ status?: 'unavailable';
34969
+ reason?: 'no_mailbox';
34970
+ message?: string;
34971
+ /**
34972
+ * When Microsoft last answered that the login has no mailbox.
34973
+ */
34974
+ detectedAt?: string;
34975
+ };
34952
34976
  /**
34953
34977
  * Microsoft only: how mail sent from the user's own mail client reaches `message.sent`. `poll` while Microsoft will not give Zernio a working Sent Items subscription for this mailbox (read every 5 minutes), `push` otherwise.
34954
34978
  */
@@ -35858,6 +35882,7 @@ type GetConnectUrlData = {
35858
35882
  * - A LinkedIn connect through an app saves the member's own profile: organization pages, and mention lookups, stay on Zernio's app.
35859
35883
  * - The connect requests the app's `scopeAreas`. `scopes` may narrow them but not add an area the app does not enable (400).
35860
35884
  * - If the user does not grant every requested area, the account still connects and the redirect carries `missing_permissions=<areas>` (the headless POST returns `missingPermissions`).
35885
+ * - A Microsoft login that connected with `email` or `calendar` but has no Exchange Online mailbox still connects (files work), and the redirect carries `mailboxNotice=mailbox_not_available`. Mail and calendar requests then answer 412 `mailbox_not_available`.
35861
35886
  * - If the platform refuses a permission your app is not approved for, the redirect carries `error=oauth_app_scope_not_allowed`.
35862
35887
  *
35863
35888
  * The account remembers the app, and token refresh, publishing and inbox run on it. Reconnecting through another app, or without one, moves the account to that app.
package/dist/index.d.ts CHANGED
@@ -34941,7 +34941,19 @@ type GetAccountHealthResponse = ({
34941
34941
  * Google and Microsoft only: today's outbound mail allowance for the mailbox.
34942
34942
  */
34943
34943
  sendCap?: {
34944
+ /**
34945
+ * Today's cap: the base cap, doubled after 14 days of sending with no spam signal.
34946
+ */
34944
34947
  limit?: number;
34948
+ /**
34949
+ * The cap before doubling.
34950
+ */
34951
+ baseLimit?: number;
34952
+ doubled?: boolean;
34953
+ /**
34954
+ * When the cap doubles if the mailbox sends every day from now on and raises no spam signal. Null once doubled, with a manual limit, and on IMAP.
34955
+ */
34956
+ doublesAt?: (string) | null;
34945
34957
  used?: number;
34946
34958
  resetsAt?: string;
34947
34959
  };
@@ -34949,6 +34961,18 @@ type GetAccountHealthResponse = ({
34949
34961
  * Google and Microsoft only: state of the provider change-notification subscriptions behind `message.received` and `calendar.event.*`. `pending` means a granted area has no live subscription yet (retried every 6 hours), `failed` that renewals keep failing (reconnect the account).
34950
34962
  */
34951
34963
  push?: 'active' | 'pending' | 'failed' | 'not_applicable';
34964
+ /**
34965
+ * Microsoft only: present while the login has no Exchange Online mailbox (no Exchange license, inactive, soft-deleted or on-premises). Mail and calendar requests then answer 412 `mailbox_not_available`; files are not affected. Absent when the mailbox works. `status` is also `warning`, with the reason in `issues`.
34966
+ */
34967
+ mailbox?: {
34968
+ status?: 'unavailable';
34969
+ reason?: 'no_mailbox';
34970
+ message?: string;
34971
+ /**
34972
+ * When Microsoft last answered that the login has no mailbox.
34973
+ */
34974
+ detectedAt?: string;
34975
+ };
34952
34976
  /**
34953
34977
  * Microsoft only: how mail sent from the user's own mail client reaches `message.sent`. `poll` while Microsoft will not give Zernio a working Sent Items subscription for this mailbox (read every 5 minutes), `push` otherwise.
34954
34978
  */
@@ -35858,6 +35882,7 @@ type GetConnectUrlData = {
35858
35882
  * - A LinkedIn connect through an app saves the member's own profile: organization pages, and mention lookups, stay on Zernio's app.
35859
35883
  * - The connect requests the app's `scopeAreas`. `scopes` may narrow them but not add an area the app does not enable (400).
35860
35884
  * - If the user does not grant every requested area, the account still connects and the redirect carries `missing_permissions=<areas>` (the headless POST returns `missingPermissions`).
35885
+ * - A Microsoft login that connected with `email` or `calendar` but has no Exchange Online mailbox still connects (files work), and the redirect carries `mailboxNotice=mailbox_not_available`. Mail and calendar requests then answer 412 `mailbox_not_available`.
35861
35886
  * - If the platform refuses a permission your app is not approved for, the redirect carries `error=oauth_app_scope_not_allowed`.
35862
35887
  *
35863
35888
  * The account remembers the app, and token refresh, publishing and inbox run on it. Reconnecting through another app, or without one, moves the account to that app.
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.1667",
39
+ version: "0.2.1669",
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.1667",
8
+ version: "0.2.1669",
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.1667",
3
+ "version": "0.2.1669",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -6182,13 +6182,16 @@ export const listEmailMessages = <ThrowOnError extends boolean = false>(options:
6182
6182
  * Send an email
6183
6183
  * Sends from the connected mailbox and returns the stored sent copy.
6184
6184
  *
6185
- * The message is mirrored into the inbox (`message.sent` fires once) and counted against the mailbox's daily cap. The cap is reported in the `X-Zernio-Send-Limit`, `X-Zernio-Send-Remaining` and `X-Zernio-Send-Reset` response headers.
6185
+ * The message is mirrored into the inbox (`message.sent` fires once) and counted against the mailbox's daily cap. The cap is reported in the `X-Zernio-Send-Limit`, `X-Zernio-Send-Remaining` and `X-Zernio-Send-Reset` response headers, plus `X-Zernio-Send-Doubles-At` while the cap can still double.
6186
6186
  *
6187
6187
  * ### Sending limits
6188
6188
  *
6189
6189
  * These mailboxes are for one-to-one mail, not bulk sends. Protection on every mailbox:
6190
6190
  *
6191
- * - Daily cap: Microsoft 1,000; Google Workspace 500; Gmail consumer 200. Reaching it answers 429 `email_send_cap_reached` with `details.cap`.
6191
+ * - Daily cap: Microsoft 1,000; Google Workspace 500; Gmail consumer 200; IMAP 200. Reaching it answers 429 `email_send_cap_reached` with `details.cap`.
6192
+ * - The cap of a Microsoft, Google Workspace or Gmail mailbox doubles once (2,000, 1,000 and 400) after 14 days with a successful send, counted since its last spam signal and never past the provider's own limit. Days need not be consecutive.
6193
+ * - A spam signal starts the count over and returns the cap to its base. Signals: a same-body burst, a send refused over the mailbox's sending quota, a spam or blocklist bounce, or 10 hard bounces within an hour. Without one, a doubled cap stays doubled.
6194
+ * - Higher limits are available on request for established senders.
6192
6195
  * - The same body reaching more than 50 distinct recipients within an hour pauses the mailbox with an escalating cooldown (429 `rate_limited`, `account.rate_limited` webhook).
6193
6196
  *
6194
6197
  * ### Scheduling
@@ -34023,7 +34023,19 @@ export type GetAccountHealthResponse = ({
34023
34023
  * Google and Microsoft only: today's outbound mail allowance for the mailbox.
34024
34024
  */
34025
34025
  sendCap?: {
34026
+ /**
34027
+ * Today's cap: the base cap, doubled after 14 days of sending with no spam signal.
34028
+ */
34026
34029
  limit?: number;
34030
+ /**
34031
+ * The cap before doubling.
34032
+ */
34033
+ baseLimit?: number;
34034
+ doubled?: boolean;
34035
+ /**
34036
+ * When the cap doubles if the mailbox sends every day from now on and raises no spam signal. Null once doubled, with a manual limit, and on IMAP.
34037
+ */
34038
+ doublesAt?: (string) | null;
34027
34039
  used?: number;
34028
34040
  resetsAt?: string;
34029
34041
  };
@@ -34031,6 +34043,18 @@ export type GetAccountHealthResponse = ({
34031
34043
  * Google and Microsoft only: state of the provider change-notification subscriptions behind `message.received` and `calendar.event.*`. `pending` means a granted area has no live subscription yet (retried every 6 hours), `failed` that renewals keep failing (reconnect the account).
34032
34044
  */
34033
34045
  push?: 'active' | 'pending' | 'failed' | 'not_applicable';
34046
+ /**
34047
+ * Microsoft only: present while the login has no Exchange Online mailbox (no Exchange license, inactive, soft-deleted or on-premises). Mail and calendar requests then answer 412 `mailbox_not_available`; files are not affected. Absent when the mailbox works. `status` is also `warning`, with the reason in `issues`.
34048
+ */
34049
+ mailbox?: {
34050
+ status?: 'unavailable';
34051
+ reason?: 'no_mailbox';
34052
+ message?: string;
34053
+ /**
34054
+ * When Microsoft last answered that the login has no mailbox.
34055
+ */
34056
+ detectedAt?: string;
34057
+ };
34034
34058
  /**
34035
34059
  * Microsoft only: how mail sent from the user's own mail client reaches `message.sent`. `poll` while Microsoft will not give Zernio a working Sent Items subscription for this mailbox (read every 5 minutes), `push` otherwise.
34036
34060
  */
@@ -34986,6 +35010,7 @@ export type GetConnectUrlData = {
34986
35010
  * - A LinkedIn connect through an app saves the member's own profile: organization pages, and mention lookups, stay on Zernio's app.
34987
35011
  * - The connect requests the app's `scopeAreas`. `scopes` may narrow them but not add an area the app does not enable (400).
34988
35012
  * - If the user does not grant every requested area, the account still connects and the redirect carries `missing_permissions=<areas>` (the headless POST returns `missingPermissions`).
35013
+ * - A Microsoft login that connected with `email` or `calendar` but has no Exchange Online mailbox still connects (files work), and the redirect carries `mailboxNotice=mailbox_not_available`. Mail and calendar requests then answer 412 `mailbox_not_available`.
34989
35014
  * - If the platform refuses a permission your app is not approved for, the redirect carries `error=oauth_app_scope_not_allowed`.
34990
35015
  *
34991
35016
  * The account remembers the app, and token refresh, publishing and inbox run on it. Reconnecting through another app, or without one, moves the account to that app.