@ikonai/sdk 0.0.13 → 0.0.14
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/connection/urls.d.ts +17 -10
- package/index.js +701 -702
- package/package.json +1 -1
package/connection/urls.d.ts
CHANGED
|
@@ -18,24 +18,31 @@ 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 window.location.hostname.
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* Derive backend API URL from environment or window.location.hostname.
|
|
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. Default → IKON_BACKEND_URL_PROD
|
|
24
27
|
*/
|
|
25
28
|
export declare function deriveBackendUrl(): string;
|
|
26
29
|
/**
|
|
27
30
|
* Derive backend type from environment or window.location.hostname.
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
+
* Priority:
|
|
32
|
+
* 1. VITE_IKON_BACKEND_TYPE env var (set by .NET server during local dev)
|
|
33
|
+
* 2. VITE_IKON_BACKEND_URL env var contains '.dev.' → 'development'
|
|
34
|
+
* 3. Local environment (localhost, LAN IPs) → 'development'
|
|
35
|
+
* 4. Hostname contains '.dev.' → 'development'
|
|
36
|
+
* 5. Default → 'production'
|
|
31
37
|
*/
|
|
32
38
|
export declare function deriveBackendType(): BackendType;
|
|
33
39
|
/**
|
|
34
40
|
* Derive auth service URL from environment or window.location.hostname.
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
41
|
+
* 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. Default → IKON_AUTH_URL_PROD
|
|
39
46
|
*/
|
|
40
47
|
export declare function deriveAuthUrl(): string;
|
|
41
48
|
/**
|