@unisphere/genie-types 1.22.0-tools.5 → 1.23.0
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 +1249 -484
- package/package.json +3 -2
- package/src/index.d.ts +0 -3
- package/src/lib/avatar-runtime/avatar-service-types.d.ts +3 -247
- package/src/lib/avatar-runtime/{agent-visual-types.d.ts → floater-visual-types.d.ts} +2 -2
- package/src/lib/avatar-runtime/index.d.ts +3 -2
- package/src/lib/avatar-runtime/runtime-types.d.ts +6 -2
- package/src/lib/avatar-runtime/shared-types.d.ts +199 -0
- package/src/lib/avatar-runtime/visual-bridge-types.d.ts +41 -0
- package/src/lib/chat-customizations-types.d.ts +5 -0
- package/src/lib/chat-runtime/runtime-player-plugin-types.d.ts +1 -1
- package/src/lib/chat-runtime/runtime-types.d.ts +2 -2
- package/src/lib/chat-runtime/shared-settings.d.ts +2 -0
- package/src/lib/chat-runtime/visuals-types.d.ts +2 -0
- package/src/lib/admin-demo-runtime/index.d.ts +0 -1
- package/src/lib/admin-demo-runtime/runtime-types.d.ts +0 -14
- package/src/lib/admin-runtime/index.d.ts +0 -1
- package/src/lib/admin-runtime/runtime-types.d.ts +0 -33
- package/src/lib/application-runtime/index.d.ts +0 -1
- package/src/lib/application-runtime/runtime-types.d.ts +0 -57
- package/src/lib/avatar-runtime/lobby-visual-types.d.ts +0 -48
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
/**
|
|
3
|
-
* Configuration settings for the admin runtime.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* Basic admin setup:
|
|
7
|
-
* ```typescript
|
|
8
|
-
* const settings: AdminRuntimeSettings = {
|
|
9
|
-
* ks: 'your-kaltura-session-token'
|
|
10
|
-
* };
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* With partner configuration:
|
|
15
|
-
* ```typescript
|
|
16
|
-
* const settings: AdminRuntimeSettings = {
|
|
17
|
-
* ks: 'your-kaltura-session-token',
|
|
18
|
-
* partnerId: '12345',
|
|
19
|
-
* uiConfId: '54321'
|
|
20
|
-
* };
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export interface AdminRuntimeSettings {
|
|
24
|
-
/** Kaltura session token for authentication */
|
|
25
|
-
ks: string;
|
|
26
|
-
/** UI configuration ID */
|
|
27
|
-
uiConfId?: string;
|
|
28
|
-
/** Kaltura partner ID */
|
|
29
|
-
partnerId?: string;
|
|
30
|
-
}
|
|
31
|
-
export declare const adminRuntimeSettingsSchema: ValidatorSchema;
|
|
32
|
-
/** Runtime name constant for admin experiences */
|
|
33
|
-
export declare const AdminRuntimeName: "admin";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './runtime-types';
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
/**
|
|
3
|
-
* Configuration settings for the application runtime.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* Basic application setup:
|
|
7
|
-
* ```typescript
|
|
8
|
-
* const settings: ApplicationRuntimeSettings = {
|
|
9
|
-
* pid: 'partner-12345',
|
|
10
|
-
* ks: 'your-kaltura-session-token',
|
|
11
|
-
* kalturaServerURI: 'https://www.kaltura.com'
|
|
12
|
-
* };
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* With custom source URL generation:
|
|
17
|
-
* ```typescript
|
|
18
|
-
* const settings: ApplicationRuntimeSettings = {
|
|
19
|
-
* pid: 'partner-12345',
|
|
20
|
-
* ks: 'your-kaltura-session-token',
|
|
21
|
-
* kalturaServerURI: 'https://www.kaltura.com',
|
|
22
|
-
* widgetId: 'widget_abc',
|
|
23
|
-
* genieServerUrl: 'https://genie.example.com',
|
|
24
|
-
* getSourceUrl: ({ entryId, startTime }) =>
|
|
25
|
-
* `https://example.com/media/${entryId}${startTime ? `?t=${startTime}` : ''}`
|
|
26
|
-
* };
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export interface ApplicationRuntimeSettings {
|
|
30
|
-
/** Partner ID in the format `partner-{id}` */
|
|
31
|
-
pid: string;
|
|
32
|
-
/** Widget identifier */
|
|
33
|
-
widgetId?: string;
|
|
34
|
-
/** Genie server URL for API requests */
|
|
35
|
-
genieServerUrl?: string;
|
|
36
|
-
/** Kaltura session token for authentication */
|
|
37
|
-
ks: string;
|
|
38
|
-
/** Kaltura server URI */
|
|
39
|
-
kalturaServerURI: string;
|
|
40
|
-
/** Callback function to generate source URLs for an entry or category */
|
|
41
|
-
getSourceUrl?: (params: {
|
|
42
|
-
type: 'category';
|
|
43
|
-
categoryId: string;
|
|
44
|
-
} | {
|
|
45
|
-
type?: 'entry';
|
|
46
|
-
entryId: string;
|
|
47
|
-
startTime?: number;
|
|
48
|
-
}) => string;
|
|
49
|
-
/** Branding options */
|
|
50
|
-
branding?: {
|
|
51
|
-
/** Display Kaltura logo in the interface */
|
|
52
|
-
kalturaLogo?: boolean;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export declare const applicationRuntimeSettingsSchema: ValidatorSchema;
|
|
56
|
-
/** Runtime name constant for application-level experiences */
|
|
57
|
-
export declare const ApplicationRuntimeName: "application";
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
/**
|
|
3
|
-
* Visual settings for avatar lobby/waiting room display.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* Default lobby:
|
|
7
|
-
* ```typescript
|
|
8
|
-
* const settings: AvatarRuntimeLobbyVisualSettings = {
|
|
9
|
-
* variant: 'default'
|
|
10
|
-
* };
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* Agent variant with customization:
|
|
15
|
-
* ```typescript
|
|
16
|
-
* const settings: AvatarRuntimeLobbyVisualSettings = {
|
|
17
|
-
* variant: 'agent',
|
|
18
|
-
* agentButtonLabel: 'Start Conversation',
|
|
19
|
-
* agentSize: '20rem',
|
|
20
|
-
* isTranslucent: true,
|
|
21
|
-
* threadId: 'thread-123'
|
|
22
|
-
* };
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export interface AvatarRuntimeLobbyVisualSettings {
|
|
26
|
-
/** Settings schema version */
|
|
27
|
-
schemaVersion?: string;
|
|
28
|
-
/** Display variant: 'agent' for agent-specific UI */
|
|
29
|
-
variant?: 'agent';
|
|
30
|
-
/** Thread identifier for resuming conversations */
|
|
31
|
-
threadId?: string;
|
|
32
|
-
/** Message identifier for context */
|
|
33
|
-
messageId?: string;
|
|
34
|
-
/** Agent variant only: label for the start button */
|
|
35
|
-
agentButtonLabel?: string;
|
|
36
|
-
/** Agent variant only: size (width and height) of the card, e.g. '15rem' */
|
|
37
|
-
agentSize?: string;
|
|
38
|
-
/** Inline styles applied to lobby elements */
|
|
39
|
-
styles?: {
|
|
40
|
-
/** Styles applied to the inner container (thumbnail/card) */
|
|
41
|
-
container?: Record<string, string | number>;
|
|
42
|
-
/** Styles applied to the outer wrapper (mini variant only) */
|
|
43
|
-
wrapper?: Record<string, string | number>;
|
|
44
|
-
};
|
|
45
|
-
/** When provided, overrides the default avatar launch behavior on click */
|
|
46
|
-
onOpen?: () => void;
|
|
47
|
-
}
|
|
48
|
-
export declare const avatarRuntimeLobbyVisualSettingsSchema: ValidatorSchema;
|