mindcache 3.4.4 → 3.5.0

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.
@@ -111,8 +111,8 @@ declare const SystemTagHelpers: {
111
111
  * Cloud configuration options for MindCache constructor
112
112
  */
113
113
  interface MindCacheCloudOptions {
114
- /** Instance ID to connect to */
115
- instanceId: string;
114
+ /** Instance ID to connect to (not needed for OAuth - auto-provisioned) */
115
+ instanceId?: string;
116
116
  /** Project ID (optional, defaults to 'default') */
117
117
  projectId?: string;
118
118
  /** API endpoint to fetch WS token (recommended for browser) */
@@ -123,6 +123,20 @@ interface MindCacheCloudOptions {
123
123
  apiKey?: string;
124
124
  /** WebSocket base URL (defaults to production) */
125
125
  baseUrl?: string;
126
+ /**
127
+ * OAuth configuration for browser apps using "Sign in with MindCache"
128
+ * When set, user authentication and instance provisioning is automatic
129
+ */
130
+ oauth?: {
131
+ /** Client ID from MindCache developer portal */
132
+ clientId: string;
133
+ /** Redirect URI for OAuth callback (defaults to current URL) */
134
+ redirectUri?: string;
135
+ /** Scopes to request (default: ['read', 'write']) */
136
+ scopes?: string[];
137
+ /** Auto-redirect to login if not authenticated (default: false) */
138
+ autoLogin?: boolean;
139
+ };
126
140
  }
127
141
  interface MindCacheIndexedDBOptions {
128
142
  /** Database name (defaults to 'mindcache_db') */
@@ -111,8 +111,8 @@ declare const SystemTagHelpers: {
111
111
  * Cloud configuration options for MindCache constructor
112
112
  */
113
113
  interface MindCacheCloudOptions {
114
- /** Instance ID to connect to */
115
- instanceId: string;
114
+ /** Instance ID to connect to (not needed for OAuth - auto-provisioned) */
115
+ instanceId?: string;
116
116
  /** Project ID (optional, defaults to 'default') */
117
117
  projectId?: string;
118
118
  /** API endpoint to fetch WS token (recommended for browser) */
@@ -123,6 +123,20 @@ interface MindCacheCloudOptions {
123
123
  apiKey?: string;
124
124
  /** WebSocket base URL (defaults to production) */
125
125
  baseUrl?: string;
126
+ /**
127
+ * OAuth configuration for browser apps using "Sign in with MindCache"
128
+ * When set, user authentication and instance provisioning is automatic
129
+ */
130
+ oauth?: {
131
+ /** Client ID from MindCache developer portal */
132
+ clientId: string;
133
+ /** Redirect URI for OAuth callback (defaults to current URL) */
134
+ redirectUri?: string;
135
+ /** Scopes to request (default: ['read', 'write']) */
136
+ scopes?: string[];
137
+ /** Auto-redirect to login if not authenticated (default: false) */
138
+ autoLogin?: boolean;
139
+ };
126
140
  }
127
141
  interface MindCacheIndexedDBOptions {
128
142
  /** Database name (defaults to 'mindcache_db') */
@@ -1,5 +1,5 @@
1
- import { M as MindCache, C as CloudConfig, a as CloudAdapter } from '../CloudAdapter-DOvDQswy.mjs';
2
- export { d as ClearOperation, c as CloudAdapterEvents, b as ConnectionState, D as DeleteOperation, O as Operation, S as SetOperation } from '../CloudAdapter-DOvDQswy.mjs';
1
+ import { M as MindCache, C as CloudConfig, a as CloudAdapter } from '../CloudAdapter-CM7nyJaG.mjs';
2
+ export { d as ClearOperation, c as CloudAdapterEvents, b as ConnectionState, D as DeleteOperation, O as Operation, S as SetOperation } from '../CloudAdapter-CM7nyJaG.mjs';
3
3
  import 'yjs';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { M as MindCache, C as CloudConfig, a as CloudAdapter } from '../CloudAdapter-DOvDQswy.js';
2
- export { d as ClearOperation, c as CloudAdapterEvents, b as ConnectionState, D as DeleteOperation, O as Operation, S as SetOperation } from '../CloudAdapter-DOvDQswy.js';
1
+ import { M as MindCache, C as CloudConfig, a as CloudAdapter } from '../CloudAdapter-CM7nyJaG.js';
2
+ export { d as ClearOperation, c as CloudAdapterEvents, b as ConnectionState, D as DeleteOperation, O as Operation, S as SetOperation } from '../CloudAdapter-CM7nyJaG.js';
3
3
  import 'yjs';
4
4
 
5
5
  /**