@unisphere/genie-types 1.47.4 → 1.47.5

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/index.esm.js CHANGED
@@ -2628,9 +2628,11 @@ const avatarRuntimeSettingsSchema = {
2628
2628
  value: 'manual',
2629
2629
  optional: true
2630
2630
  },
2631
+ // Legacy fallback host, used only when conversation-manager sends no TURN credentials (SECF-30947).
2631
2632
  turnServerUrl: {
2632
2633
  type: 'primitive',
2633
- value: 'string'
2634
+ value: 'string',
2635
+ optional: true
2634
2636
  },
2635
2637
  srsBaseUrl: {
2636
2638
  type: 'primitive',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.47.4",
3
+ "version": "1.47.5",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -9,8 +9,8 @@
9
9
  },
10
10
  "types": "./src/index.d.ts",
11
11
  "dependencies": {
12
- "@kaltura-sdk/rtc-core": "^1.26.2",
13
- "@unisphere/core": "^1.101.2",
12
+ "@kaltura-sdk/rtc-core": "^1.27.0",
13
+ "@unisphere/core": "^1.103.0",
14
14
  "@unisphere/runtime": "^1.98.0",
15
15
  "@unisphere/runtime-js": "^1.98.0"
16
16
  },
@@ -120,8 +120,12 @@ export interface AvatarToolCallEvent {
120
120
  args: Record<string, unknown>;
121
121
  }
122
122
  export type AvatarServerConfig = {
123
- /** TURN server URL for WebRTC connectivity */
124
- turnServerUrl: string;
123
+ /**
124
+ * TURN host (no scheme or port) for the legacy static-credentials fallback. Used only when
125
+ * conversation-manager sends no TURN credentials; otherwise its credentials replace it.
126
+ * @deprecated Temporary (SECF-30947); remove once every conversation-manager sends TURN credentials.
127
+ */
128
+ turnServerUrl?: string;
125
129
  /** Avatar service server URL */
126
130
  serverUrl: string;
127
131
  /** SRS (Simple Realtime Server) base URL for media streaming */
@@ -263,8 +263,6 @@ export interface AvatarConnectionProxyType {
263
263
  readonly sessionId: TinyDataStoreConsumer<string | null>;
264
264
  /** Observable cast mode from server */
265
265
  readonly castMode: TinyDataStoreConsumer<string | null>;
266
- /** Observable TURN server URL */
267
- readonly turnServerURL: TinyDataStoreConsumer<string | null>;
268
266
  /** Observable content data */
269
267
  readonly content: TinyDataStoreConsumer<AvatarContentData | null>;
270
268
  /** Observable agent state and analytics */
@@ -366,8 +364,6 @@ export interface AvatarClientManagerType {
366
364
  readonly sessionId: TinyDataStoreConsumer<string | null>;
367
365
  /** Observable cast mode from server */
368
366
  readonly castMode: TinyDataStoreConsumer<string | null>;
369
- /** Observable TURN server URL */
370
- readonly turnServerURL: TinyDataStoreConsumer<string | null>;
371
367
  /** Observable disconnect information */
372
368
  readonly disconnectData: TinyDataStoreConsumer<{
373
369
  reason: DisconnectReasons;
@@ -498,6 +494,12 @@ export interface AvatarClientManagerType {
498
494
  readonly devicesList: TinyDataStoreConsumer<UserDevicesList | null>;
499
495
  joinSTV(videoContainerId: string, sessionId: string, stvUrl: string, onConnected: () => void): Promise<void>;
500
496
  leaveSTV(): void;
497
+ /** Latest server-issued TURN credentials; read at connection time, never cache or log them. */
498
+ getTurnCredentials(): {
499
+ url: string;
500
+ username: string;
501
+ credential: string;
502
+ } | null;
501
503
  changeDevice(deviceType: DeviceType, deviceId: string): Promise<boolean>;
502
504
  toggleMuteAudio(muted: boolean): Promise<void>;
503
505
  onPlayerReady(): void;
@@ -49,7 +49,6 @@ export interface ChatBranding {
49
49
  * ```typescript
50
50
  * const integration: AvatarIntegration = {
51
51
  * type: 'config',
52
- * turnServerUrl: 'https://turn.example.com',
53
52
  * serverUrl: 'https://avatar.example.com',
54
53
  * srsBaseUrl: 'https://srs.example.com',
55
54
  * clientId: 'client-123',
@@ -70,8 +69,12 @@ export interface ChatBranding {
70
69
  export type AvatarIntegration = {
71
70
  /** Configuration type: 'config' for manual setup */
72
71
  type: 'config';
73
- /** TURN server URL for WebRTC */
74
- turnServerUrl: string;
72
+ /**
73
+ * TURN host for the legacy static-credentials fallback, used only when conversation-manager
74
+ * sends no TURN credentials.
75
+ * @deprecated Temporary (SECF-30947); remove once every conversation-manager sends TURN credentials.
76
+ */
77
+ turnServerUrl?: string;
75
78
  /** Avatar service server URL */
76
79
  serverUrl: string;
77
80
  /** SRS (Simple Realtime Server) base URL */