nylas 8.0.0 → 8.0.2

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.
@@ -163,6 +163,9 @@ class Auth extends resource_js_1.Resource {
163
163
  if (config.state) {
164
164
  url.searchParams.set('state', config.state);
165
165
  }
166
+ if (config.smtpRequired) {
167
+ url.searchParams.set('options', 'smtp_required');
168
+ }
166
169
  return url;
167
170
  }
168
171
  hashPKCESecret(secret) {
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
4
  // This file is generated by scripts/exportVersion.js
5
- exports.SDK_VERSION = '8.0.0';
5
+ exports.SDK_VERSION = '8.0.2';
@@ -160,6 +160,9 @@ export class Auth extends Resource {
160
160
  if (config.state) {
161
161
  url.searchParams.set('state', config.state);
162
162
  }
163
+ if (config.smtpRequired) {
164
+ url.searchParams.set('options', 'smtp_required');
165
+ }
163
166
  return url;
164
167
  }
165
168
  hashPKCESecret(secret) {
@@ -1,2 +1,2 @@
1
1
  // This file is generated by scripts/exportVersion.js
2
- export const SDK_VERSION = '8.0.0';
2
+ export const SDK_VERSION = '8.0.2';
@@ -49,6 +49,12 @@ export interface URLForAuthenticationConfig {
49
49
  * If a Grant for the provided email already exists, a Grant's re-auth will automatically be initiated.
50
50
  */
51
51
  loginHint?: string;
52
+ /**
53
+ * If set to true, the options=smtp_required parameter is added to the authentication URL.
54
+ * This forces users to provide SMTP settings during IMAP authentication, preventing
55
+ * send failures from missing SMTP configuration.
56
+ */
57
+ smtpRequired?: boolean;
52
58
  }
53
59
  /**
54
60
  * Configuration for generating a URL for admin consent authentication for Microsoft.
@@ -130,6 +130,11 @@ export interface Event {
130
130
  * Master event id if recurring events.
131
131
  */
132
132
  masterEventId?: string;
133
+ /**
134
+ * The original start time of the event, in Unix timestamp format.
135
+ * This field is present only if the event is an instance of a recurring event.
136
+ */
137
+ originalStartTime?: number;
133
138
  /**
134
139
  * Notetaker meeting bot settings
135
140
  */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "8.0.0";
1
+ export declare const SDK_VERSION = "8.0.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nylas",
3
- "version": "8.0.0",
3
+ "version": "8.0.2",
4
4
  "description": "A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.",
5
5
  "main": "lib/cjs/nylas.js",
6
6
  "types": "lib/types/nylas.d.ts",