@qwanyx/stack 0.2.102 → 0.2.103

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.
@@ -178,6 +178,11 @@ export interface MailServer {
178
178
  user: string;
179
179
  password: string;
180
180
  }
181
+ export interface GmailTokens {
182
+ access_token: string;
183
+ refresh_token: string;
184
+ token_expiry: number;
185
+ }
181
186
  export interface MailAccount {
182
187
  id: string;
183
188
  label: string;
@@ -185,11 +190,17 @@ export interface MailAccount {
185
190
  lastName: string;
186
191
  email: string;
187
192
  signature?: string;
188
- imap: MailServer;
189
- smtp: MailServer;
193
+ /** Authentication type: 'imap' (default) or 'gmail_api' */
194
+ auth_type?: 'imap' | 'gmail_api';
195
+ /** IMAP settings (used when auth_type = 'imap') */
196
+ imap?: MailServer;
197
+ /** SMTP settings (used when auth_type = 'imap') */
198
+ smtp?: MailServer;
199
+ /** Gmail API tokens (used when auth_type = 'gmail_api') */
200
+ gmail_tokens?: GmailTokens;
190
201
  }
191
202
  export interface EmailMessage {
192
- uid: number;
203
+ uid: number | string;
193
204
  subject: string;
194
205
  from: string;
195
206
  date: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwanyx/stack",
3
- "version": "0.2.102",
3
+ "version": "0.2.103",
4
4
  "description": "Modern HyperCard for React - All-in-one data management (REST + Graph API + Auth + Hooks + UI)",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",