@ikonai/sdk 1.0.42 → 1.0.43
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 +5 -10
- package/index.js +1916 -2057
- package/package.json +1 -1
- package/utils/query-params.d.ts +0 -3
|
@@ -33,11 +33,8 @@ export declare function authenticateLocal(config: LocalConfig, signal?: AbortSig
|
|
|
33
33
|
*
|
|
34
34
|
* Flow:
|
|
35
35
|
* 1. POST /auth/api-key with { space, apiKey, user } → get JWT token
|
|
36
|
-
* 2.
|
|
37
|
-
* 3.
|
|
38
|
-
* 4. Request channel
|
|
39
|
-
* 5. POST /rooms/connect and poll until running
|
|
40
|
-
* 6. Connect to the returned Ikon server URL
|
|
36
|
+
* 2. POST /init to create profile, allocate channel, and wait for running
|
|
37
|
+
* 3. Connect to the returned Ikon server URL
|
|
41
38
|
*/
|
|
42
39
|
export declare function authenticateApiKey(config: ApiKeyConfig, signal?: AbortSignal, proxyMode?: ProxyMode, proxyPreferred?: boolean): Promise<AuthResult>;
|
|
43
40
|
/**
|
|
@@ -45,10 +42,8 @@ export declare function authenticateApiKey(config: ApiKeyConfig, signal?: AbortS
|
|
|
45
42
|
* Use this when the token was obtained from auth.ikonai.com (OAuth) or /auth/anonymous.
|
|
46
43
|
*
|
|
47
44
|
* Flow:
|
|
48
|
-
* 1. Use provided token as Bearer auth
|
|
49
|
-
* 2.
|
|
50
|
-
* 3.
|
|
51
|
-
* 4. POST /rooms/connect and poll until running
|
|
52
|
-
* 5. Connect to the returned Ikon server URL
|
|
45
|
+
* 1. Use provided token as Bearer auth
|
|
46
|
+
* 2. POST /init to create profile, allocate channel, and wait for running
|
|
47
|
+
* 3. Connect to the returned Ikon server URL
|
|
53
48
|
*/
|
|
54
49
|
export declare function authenticateSessionToken(config: SessionTokenConfig, signal?: AbortSignal, proxyMode?: ProxyMode, proxyPreferred?: boolean): Promise<AuthResult>;
|