@ikonai/sdk 0.0.7 → 0.0.8
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/authenticator.d.ts +6 -8
- package/index.js +812 -791
- package/package.json +1 -1
- package/transport/web-transport-transport.d.ts +14 -0
|
@@ -33,10 +33,9 @@ export declare function authenticateLocal(config: LocalConfig, signal?: AbortSig
|
|
|
33
33
|
* 1. Parse URL query parameters (id → sessionId, ck → channelKey, all → parameters)
|
|
34
34
|
* 2. Derive backend URL and space domain from hostname
|
|
35
35
|
* 3. Fetch space info by domain
|
|
36
|
-
* 4.
|
|
37
|
-
* 5.
|
|
38
|
-
* 6.
|
|
39
|
-
* 7. Connect to the returned Ikon server URL
|
|
36
|
+
* 4. Request channel
|
|
37
|
+
* 5. POST /rooms/connect and poll until running
|
|
38
|
+
* 6. Connect to the returned Ikon server URL
|
|
40
39
|
*/
|
|
41
40
|
export declare function authenticateBrowser(config: BrowserConfig, signal?: AbortSignal): Promise<AuthResult>;
|
|
42
41
|
/**
|
|
@@ -46,9 +45,8 @@ export declare function authenticateBrowser(config: BrowserConfig, signal?: Abor
|
|
|
46
45
|
* 1. POST /auth/api-key with { space, apiKey, user } → get JWT token
|
|
47
46
|
* 2. Use token as Bearer auth for backend requests
|
|
48
47
|
* 3. GET /profiles/me?space={spaceId} to create user profile
|
|
49
|
-
* 4.
|
|
50
|
-
* 5.
|
|
51
|
-
* 6.
|
|
52
|
-
* 7. Connect to the returned Ikon server URL
|
|
48
|
+
* 4. Request channel
|
|
49
|
+
* 5. POST /rooms/connect and poll until running
|
|
50
|
+
* 6. Connect to the returned Ikon server URL
|
|
53
51
|
*/
|
|
54
52
|
export declare function authenticateApiKey(config: ApiKeyConfig, signal?: AbortSignal): Promise<AuthResult>;
|