@1interface/chat-core 0.12.0 → 0.14.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 +27 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { FetchArgs } from '@reduxjs/toolkit/query';
|
|
|
17
17
|
import { FetchBaseQueryError } from '@reduxjs/toolkit/query';
|
|
18
18
|
import { ForgotPasswordRequest } from '@1interface/shared-core';
|
|
19
19
|
import { IdpHint } from '@1interface/shared-core';
|
|
20
|
+
import { InheritedAuthAdapter } from '@1interface/shared-core';
|
|
20
21
|
import { LoggerContextProvider } from '@1interface/shared-core';
|
|
21
22
|
import { LogoutRequest } from '@1interface/shared-core';
|
|
22
23
|
import { Message } from '@1interface/shared-core';
|
|
@@ -275,6 +276,7 @@ export declare const AUTH_MODES: {
|
|
|
275
276
|
readonly GUEST_ONLY: "guest_only";
|
|
276
277
|
readonly SIGN_IN_ONLY: "sign_in_only";
|
|
277
278
|
readonly GUEST_AND_SIGN_IN: "guest_and_sign_in";
|
|
279
|
+
readonly INHERIT: "inherit";
|
|
278
280
|
};
|
|
279
281
|
|
|
280
282
|
export declare type AuthClientType = (typeof AUTH_CLIENT_TYPES)[keyof typeof AUTH_CLIENT_TYPES];
|
|
@@ -780,6 +782,8 @@ export declare function createDefaultAdapterConfig(opts?: {
|
|
|
780
782
|
onAuthExpired?: () => void;
|
|
781
783
|
}): AdapterConfig;
|
|
782
784
|
|
|
785
|
+
export declare function createInheritedSessionRefresher(store: SessionStoreLike, adapter: InheritedAuthAdapter): () => Promise<TokenRefreshResult | null>;
|
|
786
|
+
|
|
783
787
|
export declare function createSessionRefresher(store: SessionStoreLike): () => Promise<TokenRefreshResult | null>;
|
|
784
788
|
|
|
785
789
|
export declare const DEFAULT_CONVERSATION_TITLE = "New Conversation";
|
|
@@ -1339,10 +1343,17 @@ export declare interface StreamMessageParams {
|
|
|
1339
1343
|
body?: Record<string, unknown>;
|
|
1340
1344
|
}
|
|
1341
1345
|
|
|
1346
|
+
export declare const STT_GESTURES: {
|
|
1347
|
+
readonly HOLD: "hold";
|
|
1348
|
+
readonly TAP: "tap";
|
|
1349
|
+
};
|
|
1350
|
+
|
|
1342
1351
|
export declare interface SttConfig {
|
|
1343
1352
|
enabled: boolean;
|
|
1344
1353
|
}
|
|
1345
1354
|
|
|
1355
|
+
export declare type STTGesture = (typeof STT_GESTURES)[keyof typeof STT_GESTURES];
|
|
1356
|
+
|
|
1346
1357
|
export declare const THINKING_MESSAGES: {
|
|
1347
1358
|
readonly INITIAL: readonly ["Working on it", "Just a moment", "Reviewing your request", "Looking into that", "One moment, please", "Checking"];
|
|
1348
1359
|
readonly LATER: readonly ["Almost ready", "Gathering the details", "Finishing up", "Getting things in order", "Preparing your answer", "Wrapping this up"];
|
|
@@ -3682,6 +3693,19 @@ export declare function useInfiniteScroll({ hasMore, isLoadingRef, scrollAreaRef
|
|
|
3682
3693
|
itemCount: number;
|
|
3683
3694
|
}): (node: HTMLDivElement | null) => void;
|
|
3684
3695
|
|
|
3696
|
+
export declare function useInheritedAuthBoot({ adapter, enabled, }: UseInheritedAuthBootOptions): UseInheritedAuthBootResult;
|
|
3697
|
+
|
|
3698
|
+
export declare interface UseInheritedAuthBootOptions {
|
|
3699
|
+
adapter: InheritedAuthAdapter | null;
|
|
3700
|
+
enabled: boolean;
|
|
3701
|
+
}
|
|
3702
|
+
|
|
3703
|
+
export declare interface UseInheritedAuthBootResult {
|
|
3704
|
+
isInheritedBootPending: boolean;
|
|
3705
|
+
inheritedAuthFailed: boolean;
|
|
3706
|
+
retryInheritedAuth: () => void;
|
|
3707
|
+
}
|
|
3708
|
+
|
|
3685
3709
|
export declare const useIsDesktop: () => boolean;
|
|
3686
3710
|
|
|
3687
3711
|
export declare const useLazyGetConversationByIdQuery: <R extends Record<string, any> = TSHelpersId<(Omit<{
|
|
@@ -4244,13 +4268,14 @@ authorize_url: string;
|
|
|
4244
4268
|
reset: () => void;
|
|
4245
4269
|
}];
|
|
4246
4270
|
|
|
4247
|
-
export declare const useSTTRecording: ({ onTranscriptionComplete, onTranscriptionPopulate, ensureConversation, autoSendVoice, }?: UseSTTRecordingParams) => UseSTTRecordingReturn;
|
|
4271
|
+
export declare const useSTTRecording: ({ onTranscriptionComplete, onTranscriptionPopulate, ensureConversation, autoSendVoice, gesture, }?: UseSTTRecordingParams) => UseSTTRecordingReturn;
|
|
4248
4272
|
|
|
4249
4273
|
declare interface UseSTTRecordingParams {
|
|
4250
4274
|
onTranscriptionComplete?: (text: string) => Promise<void>;
|
|
4251
4275
|
onTranscriptionPopulate?: (text: string) => void;
|
|
4252
4276
|
ensureConversation?: () => Promise<string | null>;
|
|
4253
4277
|
autoSendVoice?: boolean;
|
|
4278
|
+
gesture?: STTGesture;
|
|
4254
4279
|
}
|
|
4255
4280
|
|
|
4256
4281
|
declare interface UseSTTRecordingReturn {
|
|
@@ -4259,6 +4284,7 @@ declare interface UseSTTRecordingReturn {
|
|
|
4259
4284
|
audioLevel: number;
|
|
4260
4285
|
startRecording: () => Promise<void>;
|
|
4261
4286
|
stopRecording: () => Promise<void>;
|
|
4287
|
+
cancelRecording: (() => void) | null;
|
|
4262
4288
|
}
|
|
4263
4289
|
|
|
4264
4290
|
export declare const useThinkingMessage: (params?: UseThinkingMessageParams) => UseThinkingMessageResult;
|