@1interface/chat-core 0.2.4 → 0.3.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/dist/index.d.ts +41 -22
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -111,12 +111,13 @@ protocol: ProtocolType;
|
|
|
111
111
|
body?: any;
|
|
112
112
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
|
|
113
113
|
transcribeAudio: MutationDefinition< {
|
|
114
|
+
conversationId: string;
|
|
114
115
|
audioFile: File;
|
|
115
116
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
116
117
|
success: boolean;
|
|
117
118
|
data: {
|
|
118
119
|
text: string;
|
|
119
|
-
|
|
120
|
+
transcription_id: string;
|
|
120
121
|
};
|
|
121
122
|
}, "chatApi", unknown>;
|
|
122
123
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -161,12 +162,13 @@ export declare const apiReducers: {
|
|
|
161
162
|
body?: any;
|
|
162
163
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
|
|
163
164
|
transcribeAudio: MutationDefinition< {
|
|
165
|
+
conversationId: string;
|
|
164
166
|
audioFile: File;
|
|
165
167
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
166
168
|
success: boolean;
|
|
167
169
|
data: {
|
|
168
170
|
text: string;
|
|
169
|
-
|
|
171
|
+
transcription_id: string;
|
|
170
172
|
};
|
|
171
173
|
}, "chatApi", unknown>;
|
|
172
174
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -313,12 +315,13 @@ protocol: ProtocolType;
|
|
|
313
315
|
body?: any;
|
|
314
316
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
|
|
315
317
|
transcribeAudio: MutationDefinition< {
|
|
318
|
+
conversationId: string;
|
|
316
319
|
audioFile: File;
|
|
317
320
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
318
321
|
success: boolean;
|
|
319
322
|
data: {
|
|
320
323
|
text: string;
|
|
321
|
-
|
|
324
|
+
transcription_id: string;
|
|
322
325
|
};
|
|
323
326
|
}, "chatApi", unknown>;
|
|
324
327
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -356,6 +359,7 @@ messageQueue: {
|
|
|
356
359
|
id: string;
|
|
357
360
|
text: string;
|
|
358
361
|
queuedAt: string;
|
|
362
|
+
transcriptionIds?: string[];
|
|
359
363
|
}[];
|
|
360
364
|
};
|
|
361
365
|
conversations: {
|
|
@@ -384,12 +388,13 @@ protocol: ProtocolType;
|
|
|
384
388
|
body?: any;
|
|
385
389
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
|
|
386
390
|
transcribeAudio: MutationDefinition< {
|
|
391
|
+
conversationId: string;
|
|
387
392
|
audioFile: File;
|
|
388
393
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
389
394
|
success: boolean;
|
|
390
395
|
data: {
|
|
391
396
|
text: string;
|
|
392
|
-
|
|
397
|
+
transcription_id: string;
|
|
393
398
|
};
|
|
394
399
|
}, "chatApi", unknown>;
|
|
395
400
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -428,6 +433,7 @@ messageQueue: {
|
|
|
428
433
|
id: string;
|
|
429
434
|
text: string;
|
|
430
435
|
queuedAt: string;
|
|
436
|
+
transcriptionIds?: string[];
|
|
431
437
|
}[];
|
|
432
438
|
};
|
|
433
439
|
conversations: {
|
|
@@ -456,12 +462,13 @@ protocol: ProtocolType;
|
|
|
456
462
|
body?: any;
|
|
457
463
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
|
|
458
464
|
transcribeAudio: MutationDefinition< {
|
|
465
|
+
conversationId: string;
|
|
459
466
|
audioFile: File;
|
|
460
467
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
461
468
|
success: boolean;
|
|
462
469
|
data: {
|
|
463
470
|
text: string;
|
|
464
|
-
|
|
471
|
+
transcription_id: string;
|
|
465
472
|
};
|
|
466
473
|
}, "chatApi", unknown>;
|
|
467
474
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -535,6 +542,7 @@ messageQueue: {
|
|
|
535
542
|
id: string;
|
|
536
543
|
text: string;
|
|
537
544
|
queuedAt: string;
|
|
545
|
+
transcriptionIds?: string[];
|
|
538
546
|
}[];
|
|
539
547
|
}>;
|
|
540
548
|
|
|
@@ -571,6 +579,7 @@ export declare interface ClientConfig {
|
|
|
571
579
|
voice_agent: VoiceAgentConfig;
|
|
572
580
|
features?: string[];
|
|
573
581
|
backend_version?: string;
|
|
582
|
+
panel_switcher_enabled?: boolean;
|
|
574
583
|
}
|
|
575
584
|
|
|
576
585
|
export declare interface ClientConfigResponse {
|
|
@@ -868,6 +877,7 @@ export declare interface QueuedMessage {
|
|
|
868
877
|
id: string;
|
|
869
878
|
text: string;
|
|
870
879
|
queuedAt: string;
|
|
880
|
+
transcriptionIds?: string[];
|
|
871
881
|
}
|
|
872
882
|
|
|
873
883
|
export declare function refreshTokenApi(payload: RefreshRequest): Promise<RefreshApiResult>;
|
|
@@ -959,6 +969,7 @@ messageQueue: {
|
|
|
959
969
|
id: string;
|
|
960
970
|
text: string;
|
|
961
971
|
queuedAt: string;
|
|
972
|
+
transcriptionIds?: string[];
|
|
962
973
|
}[];
|
|
963
974
|
};
|
|
964
975
|
conversations: {
|
|
@@ -987,12 +998,13 @@ protocol: ProtocolType;
|
|
|
987
998
|
body?: any;
|
|
988
999
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
|
|
989
1000
|
transcribeAudio: MutationDefinition< {
|
|
1001
|
+
conversationId: string;
|
|
990
1002
|
audioFile: File;
|
|
991
1003
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
992
1004
|
success: boolean;
|
|
993
1005
|
data: {
|
|
994
1006
|
text: string;
|
|
995
|
-
|
|
1007
|
+
transcription_id: string;
|
|
996
1008
|
};
|
|
997
1009
|
}, "chatApi", unknown>;
|
|
998
1010
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -1032,6 +1044,7 @@ messageQueue: {
|
|
|
1032
1044
|
id: string;
|
|
1033
1045
|
text: string;
|
|
1034
1046
|
queuedAt: string;
|
|
1047
|
+
transcriptionIds?: string[];
|
|
1035
1048
|
}[];
|
|
1036
1049
|
};
|
|
1037
1050
|
conversations: {
|
|
@@ -1060,12 +1073,13 @@ protocol: ProtocolType;
|
|
|
1060
1073
|
body?: any;
|
|
1061
1074
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
|
|
1062
1075
|
transcribeAudio: MutationDefinition< {
|
|
1076
|
+
conversationId: string;
|
|
1063
1077
|
audioFile: File;
|
|
1064
1078
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
1065
1079
|
success: boolean;
|
|
1066
1080
|
data: {
|
|
1067
1081
|
text: string;
|
|
1068
|
-
|
|
1082
|
+
transcription_id: string;
|
|
1069
1083
|
};
|
|
1070
1084
|
}, "chatApi", unknown>;
|
|
1071
1085
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -1119,6 +1133,7 @@ export declare interface StreamMessageParams {
|
|
|
1119
1133
|
message: string;
|
|
1120
1134
|
enableTts?: boolean;
|
|
1121
1135
|
debugMode?: boolean;
|
|
1136
|
+
transcriptionIds?: string[];
|
|
1122
1137
|
body?: Record<string, unknown>;
|
|
1123
1138
|
}
|
|
1124
1139
|
|
|
@@ -1185,7 +1200,7 @@ declare interface UseChatConnectionParams {
|
|
|
1185
1200
|
}
|
|
1186
1201
|
|
|
1187
1202
|
declare interface UseChatConnectionReturn {
|
|
1188
|
-
sendMessage: (inputMsg?: string) => Promise<void>;
|
|
1203
|
+
sendMessage: (inputMsg?: string, transcriptionIds?: string[]) => Promise<void>;
|
|
1189
1204
|
startInitialStream: (conversationId: string, location?: UserLocation | null) => Promise<void>;
|
|
1190
1205
|
setThinkingState: (thinking: boolean) => void;
|
|
1191
1206
|
abortStream: () => void;
|
|
@@ -3808,11 +3823,12 @@ authorize_url: string;
|
|
|
3808
3823
|
reset: () => void;
|
|
3809
3824
|
}];
|
|
3810
3825
|
|
|
3811
|
-
export declare const useSTTRecording: ({ onTranscriptionComplete, onTranscriptionPopulate, autoSendVoice, }?: UseSTTRecordingParams) => UseSTTRecordingReturn;
|
|
3826
|
+
export declare const useSTTRecording: ({ onTranscriptionComplete, onTranscriptionPopulate, ensureConversation, autoSendVoice, }?: UseSTTRecordingParams) => UseSTTRecordingReturn;
|
|
3812
3827
|
|
|
3813
3828
|
declare interface UseSTTRecordingParams {
|
|
3814
|
-
onTranscriptionComplete?: (text: string) => Promise<void>;
|
|
3815
|
-
onTranscriptionPopulate?: (text: string) => void;
|
|
3829
|
+
onTranscriptionComplete?: (text: string, transcriptionIds: string[]) => Promise<void>;
|
|
3830
|
+
onTranscriptionPopulate?: (text: string, transcriptionId: string) => void;
|
|
3831
|
+
ensureConversation?: () => Promise<string | null>;
|
|
3816
3832
|
autoSendVoice?: boolean;
|
|
3817
3833
|
}
|
|
3818
3834
|
|
|
@@ -3868,7 +3884,7 @@ export declare const useTranscribeAudioMutation: <R extends Record<string, any>
|
|
|
3868
3884
|
success: boolean;
|
|
3869
3885
|
data: {
|
|
3870
3886
|
text: string;
|
|
3871
|
-
|
|
3887
|
+
transcription_id: string;
|
|
3872
3888
|
};
|
|
3873
3889
|
};
|
|
3874
3890
|
error?: FetchBaseQueryError | SerializedError;
|
|
@@ -3881,7 +3897,7 @@ export declare const useTranscribeAudioMutation: <R extends Record<string, any>
|
|
|
3881
3897
|
success: boolean;
|
|
3882
3898
|
data: {
|
|
3883
3899
|
text: string;
|
|
3884
|
-
|
|
3900
|
+
transcription_id: string;
|
|
3885
3901
|
};
|
|
3886
3902
|
};
|
|
3887
3903
|
error?: FetchBaseQueryError | SerializedError;
|
|
@@ -3904,7 +3920,7 @@ export declare const useTranscribeAudioMutation: <R extends Record<string, any>
|
|
|
3904
3920
|
success: boolean;
|
|
3905
3921
|
data: {
|
|
3906
3922
|
text: string;
|
|
3907
|
-
|
|
3923
|
+
transcription_id: string;
|
|
3908
3924
|
};
|
|
3909
3925
|
};
|
|
3910
3926
|
error?: FetchBaseQueryError | SerializedError;
|
|
@@ -3927,7 +3943,7 @@ export declare const useTranscribeAudioMutation: <R extends Record<string, any>
|
|
|
3927
3943
|
success: boolean;
|
|
3928
3944
|
data: {
|
|
3929
3945
|
text: string;
|
|
3930
|
-
|
|
3946
|
+
transcription_id: string;
|
|
3931
3947
|
};
|
|
3932
3948
|
};
|
|
3933
3949
|
error?: FetchBaseQueryError | SerializedError;
|
|
@@ -3940,7 +3956,7 @@ export declare const useTranscribeAudioMutation: <R extends Record<string, any>
|
|
|
3940
3956
|
success: boolean;
|
|
3941
3957
|
data: {
|
|
3942
3958
|
text: string;
|
|
3943
|
-
|
|
3959
|
+
transcription_id: string;
|
|
3944
3960
|
};
|
|
3945
3961
|
};
|
|
3946
3962
|
error?: FetchBaseQueryError | SerializedError;
|
|
@@ -3976,7 +3992,7 @@ export declare const useTranscribeAudioMutation: <R extends Record<string, any>
|
|
|
3976
3992
|
success: boolean;
|
|
3977
3993
|
data: {
|
|
3978
3994
|
text: string;
|
|
3979
|
-
|
|
3995
|
+
transcription_id: string;
|
|
3980
3996
|
};
|
|
3981
3997
|
};
|
|
3982
3998
|
error?: FetchBaseQueryError | SerializedError;
|
|
@@ -3989,7 +4005,7 @@ export declare const useTranscribeAudioMutation: <R extends Record<string, any>
|
|
|
3989
4005
|
success: boolean;
|
|
3990
4006
|
data: {
|
|
3991
4007
|
text: string;
|
|
3992
|
-
|
|
4008
|
+
transcription_id: string;
|
|
3993
4009
|
};
|
|
3994
4010
|
};
|
|
3995
4011
|
error?: FetchBaseQueryError | SerializedError;
|
|
@@ -4012,7 +4028,7 @@ export declare const useTranscribeAudioMutation: <R extends Record<string, any>
|
|
|
4012
4028
|
success: boolean;
|
|
4013
4029
|
data: {
|
|
4014
4030
|
text: string;
|
|
4015
|
-
|
|
4031
|
+
transcription_id: string;
|
|
4016
4032
|
};
|
|
4017
4033
|
};
|
|
4018
4034
|
error?: FetchBaseQueryError | SerializedError;
|
|
@@ -4035,7 +4051,7 @@ export declare const useTranscribeAudioMutation: <R extends Record<string, any>
|
|
|
4035
4051
|
success: boolean;
|
|
4036
4052
|
data: {
|
|
4037
4053
|
text: string;
|
|
4038
|
-
|
|
4054
|
+
transcription_id: string;
|
|
4039
4055
|
};
|
|
4040
4056
|
};
|
|
4041
4057
|
error?: FetchBaseQueryError | SerializedError;
|
|
@@ -4048,7 +4064,7 @@ export declare const useTranscribeAudioMutation: <R extends Record<string, any>
|
|
|
4048
4064
|
success: boolean;
|
|
4049
4065
|
data: {
|
|
4050
4066
|
text: string;
|
|
4051
|
-
|
|
4067
|
+
transcription_id: string;
|
|
4052
4068
|
};
|
|
4053
4069
|
};
|
|
4054
4070
|
error?: FetchBaseQueryError | SerializedError;
|
|
@@ -4064,17 +4080,20 @@ export declare const useTranscribeAudioMutation: <R extends Record<string, any>
|
|
|
4064
4080
|
})) => R;
|
|
4065
4081
|
fixedCacheKey?: string;
|
|
4066
4082
|
}) => readonly [(arg: {
|
|
4083
|
+
conversationId: string;
|
|
4067
4084
|
audioFile: File;
|
|
4068
4085
|
}) => MutationActionCreatorResult<MutationDefinition< {
|
|
4086
|
+
conversationId: string;
|
|
4069
4087
|
audioFile: File;
|
|
4070
4088
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
4071
4089
|
success: boolean;
|
|
4072
4090
|
data: {
|
|
4073
4091
|
text: string;
|
|
4074
|
-
|
|
4092
|
+
transcription_id: string;
|
|
4075
4093
|
};
|
|
4076
4094
|
}, "chatApi", unknown>>, TSHelpersNoInfer<R> & {
|
|
4077
4095
|
originalArgs?: {
|
|
4096
|
+
conversationId: string;
|
|
4078
4097
|
audioFile: File;
|
|
4079
4098
|
};
|
|
4080
4099
|
reset: () => void;
|