@ikonai/sdk 1.0.30 → 1.0.32

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.
@@ -80,6 +80,14 @@ export interface LocalConfig extends CommonConnectionConfig {
80
80
  * get-or-create the user's profile before connecting.
81
81
  */
82
82
  token?: string;
83
+ /**
84
+ * Backend API URL for profile operations. If not provided, derived from environment.
85
+ */
86
+ backendUrl?: string;
87
+ /**
88
+ * Auth service URL for anonymous authentication. If not provided, derived from environment.
89
+ */
90
+ authUrl?: string;
83
91
  }
84
92
  /**
85
93
  * Common options for cloud-based modes (apiKey and sessionToken).
@@ -18,14 +18,15 @@ export declare const IKON_AUTH_BASE_URL = "https://auth.ikonai.com";
18
18
  */
19
19
  export declare function getBackendUrl(backendType?: BackendType): string;
20
20
  /**
21
- * Derive backend API URL from environment or window.location.hostname.
21
+ * Derive backend API URL.
22
22
  * Priority:
23
- * 1. VITE_IKON_BACKEND_URL env var (set by .NET server during local dev)
24
- * 2. Local environment (localhost, LAN IPs) IKON_BACKEND_URL_DEV
25
- * 3. Hostname contains '.dev.' → IKON_BACKEND_URL_DEV
26
- * 4. DefaultIKON_BACKEND_URL_PROD
23
+ * 1. Explicit override (e.g. from config)
24
+ * 2. VITE_IKON_BACKEND_URL env var (set by .NET server during local dev)
25
+ * 3. Local environment (localhost, LAN IPs) → IKON_BACKEND_URL_DEV
26
+ * 4. Hostname contains '.dev.' IKON_BACKEND_URL_DEV
27
+ * 5. Default → IKON_BACKEND_URL_PROD
27
28
  */
28
- export declare function deriveBackendUrl(): string;
29
+ export declare function deriveBackendUrl(override?: string): string;
29
30
  /**
30
31
  * Derive backend type from environment or window.location.hostname.
31
32
  * Priority:
@@ -37,14 +38,15 @@ export declare function deriveBackendUrl(): string;
37
38
  */
38
39
  export declare function deriveBackendType(): BackendType;
39
40
  /**
40
- * Derive auth service URL from environment or window.location.hostname.
41
+ * Derive auth service URL.
41
42
  * Priority:
42
- * 1. VITE_IKON_AUTH_URL env var (set by .NET server during local dev)
43
- * 2. Local environment (localhost, LAN IPs) IKON_AUTH_URL_DEV
44
- * 3. Hostname contains '.dev.' → IKON_AUTH_URL_DEV
45
- * 4. DefaultIKON_AUTH_URL_PROD
43
+ * 1. Explicit override (e.g. from config)
44
+ * 2. VITE_IKON_AUTH_URL env var (set by .NET server during local dev)
45
+ * 3. Local environment (localhost, LAN IPs) → IKON_AUTH_URL_DEV
46
+ * 4. Hostname contains '.dev.' IKON_AUTH_URL_DEV
47
+ * 5. Default → IKON_AUTH_URL_PROD
46
48
  */
47
- export declare function deriveAuthUrl(): string;
49
+ export declare function deriveAuthUrl(override?: string): string;
48
50
  /**
49
51
  * Parse URL query parameters.
50
52
  */