@unisphere/genie-types 1.22.0 → 1.23.1

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.
@@ -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";