@ikonai/sdk 1.0.42 → 1.0.44
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/client/ikon-client-config.d.ts +2 -0
- package/connection/authenticator.d.ts +5 -10
- package/index.d.ts +1 -1
- package/index.js +1924 -1920
- package/media/ikon-image-capture.d.ts +5 -0
- package/media/ikon-video-capture.d.ts +4 -0
- package/package.json +1 -1
- package/utils/query-params.d.ts +0 -3
- package/webrtc/index.d.ts +1 -1
- package/webrtc/webrtc-config.d.ts +0 -1
- package/webrtc/webrtc-connection.d.ts +1 -0
- package/webrtc/webrtc-signaling.d.ts +5 -0
|
@@ -252,6 +252,8 @@ export interface VideoConfig {
|
|
|
252
252
|
export interface WebRtcConfig {
|
|
253
253
|
/** Enable WebRTC for audio and video. Default: true */
|
|
254
254
|
enabled?: boolean;
|
|
255
|
+
/** ICE servers (TURN/STUN) for WebRTC. Server-provided ICE servers take precedence. */
|
|
256
|
+
iceServers?: RTCIceServer[];
|
|
255
257
|
}
|
|
256
258
|
/**
|
|
257
259
|
* Configuration for IkonClient.
|
|
@@ -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>;
|
package/index.d.ts
CHANGED
|
@@ -26,5 +26,5 @@ export { IKON_AUTH_BASE_URL, IKON_AUTH_URL_PROD, IKON_AUTH_URL_DEV, IKON_BACKEND
|
|
|
26
26
|
export { getOrCreateDeviceId, clearDeviceId, extractUserIdFromToken } from './storage';
|
|
27
27
|
export { IkonMedia, IkonAudioPlayback, IkonVideoPlayback, isSharedArrayBufferSupported, isAudioWorkletSupported, IkonMediaCapture, IkonVideoCapture, IkonAudioCapture, IkonImageCapture } from './media';
|
|
28
28
|
export type { IkonMediaConfig, IkonAudioPlaybackConfig, IkonVideoPlaybackConfig, IkonVideoCaptureHandle, IkonVideoCaptureRequest, IkonVideoCaptureOptions, VideoCaptureSource, IkonAudioCaptureHandle, IkonAudioCaptureRequest, IkonAudioCaptureOptions, IkonImageCaptureRequest, IkonImageCaptureResult } from './media';
|
|
29
|
-
export { WebRTCConnection, WebRTCSignaling, WEBRTC_AUDIO_CODEC, WEBRTC_AUDIO_SAMPLE_RATE, WEBRTC_AUDIO_CHANNELS, WEBRTC_AUDIO_BITRATE, WEBRTC_AUDIO_JITTER_BUFFER_TARGET_MS, WEBRTC_VIDEO_CODEC, WEBRTC_VIDEO_MAX_BITRATE, WEBRTC_VIDEO_MAX_FRAMERATE, WEBRTC_BUNDLE_POLICY, WEBRTC_RTCP_MUX_POLICY,
|
|
29
|
+
export { WebRTCConnection, WebRTCSignaling, WEBRTC_AUDIO_CODEC, WEBRTC_AUDIO_SAMPLE_RATE, WEBRTC_AUDIO_CHANNELS, WEBRTC_AUDIO_BITRATE, WEBRTC_AUDIO_JITTER_BUFFER_TARGET_MS, WEBRTC_VIDEO_CODEC, WEBRTC_VIDEO_MAX_BITRATE, WEBRTC_VIDEO_MAX_FRAMERATE, WEBRTC_BUNDLE_POLICY, WEBRTC_RTCP_MUX_POLICY, WEBRTC_DATA_CHANNEL_LABEL, WEBRTC_DATA_CHANNEL_ORDERED, WEBRTC_DATA_CHANNEL_MAX_RETRANSMITS, WEBRTC_MAX_AUDIO_TRACKS, WEBRTC_MAX_VIDEO_TRACKS } from './webrtc';
|
|
30
30
|
export type { WebRTCConnectionConfig, WebRTCConnectionState, WebRTCSignalingConfig } from './webrtc';
|