@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.
@@ -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. Use token as Bearer auth for backend requests
37
- * 3. GET /profiles/me?space={spaceId} to create user profile
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 for backend requests
49
- * 2. GET /profiles/me?space={spaceId} to verify profile exists
50
- * 3. Request channel
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>;