@iblai/web-utils 1.8.0 → 1.8.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.
@@ -0,0 +1,16 @@
1
+ import { SERVICES } from '@data-layer/constants';
2
+ export declare const CALL_CONFIGURATIONS_REDUCER_PATH = "callConfigurationsApiSlice";
3
+ export declare const CALL_CONFIGURATIONS_ENDPOINTS: {
4
+ readonly LIST: {
5
+ readonly service: SERVICES.DM;
6
+ readonly path: (org: string, userId: string) => string;
7
+ };
8
+ readonly DETAIL: {
9
+ readonly service: SERVICES.DM;
10
+ readonly path: (org: string, userId: string, id: number) => string;
11
+ };
12
+ };
13
+ export declare const CALL_CONFIGURATIONS_TAGS: {
14
+ readonly LIST: "callConfigurations";
15
+ readonly DETAIL: "callConfiguration";
16
+ };
@@ -0,0 +1,49 @@
1
+ import type { Voice } from '@iblai/iblai-api';
2
+ export type CallConfigurationMode = 'realtime' | 'inference';
3
+ export type TtsProvider = 'openai' | 'google' | 'elevenlabs' | 'azure_openai';
4
+ export type SttProvider = 'openai' | 'google' | 'deepgram' | 'cartesia' | 'azure_openai';
5
+ export type LlmProvider = 'openai' | 'google' | 'azure_openai';
6
+ export interface CallConfiguration {
7
+ id: number;
8
+ mentor: string;
9
+ mode?: CallConfigurationMode;
10
+ tts_provider?: TtsProvider;
11
+ stt_provider?: SttProvider;
12
+ llm_provider?: LlmProvider;
13
+ language?: string;
14
+ use_function_calling_for_rag?: boolean;
15
+ google_voice?: Voice;
16
+ openai_voice?: Voice;
17
+ openai_voice_id?: number | null;
18
+ google_voice_id?: number | null;
19
+ enable_video?: boolean;
20
+ screensharing_system_prompt?: string;
21
+ screensharing_proactive_prompt?: string;
22
+ platform_key?: string;
23
+ }
24
+ export type CallConfigurationRequest = Partial<Omit<CallConfiguration, 'id' | 'platform_key'>>;
25
+ export interface ListCallConfigurationsArgs {
26
+ org: string;
27
+ userId: string;
28
+ mentor?: string;
29
+ mode?: CallConfigurationMode;
30
+ search?: string;
31
+ }
32
+ export interface GetCallConfigurationArgs {
33
+ org: string;
34
+ userId: string;
35
+ id: number;
36
+ }
37
+ export interface CreateCallConfigurationArgs {
38
+ org: string;
39
+ userId: string;
40
+ requestBody: CallConfigurationRequest & {
41
+ mentor: string;
42
+ };
43
+ }
44
+ export interface UpdateCallConfigurationArgs {
45
+ org: string;
46
+ userId: string;
47
+ id: number;
48
+ requestBody: CallConfigurationRequest;
49
+ }