@1interface/chat-core 0.13.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 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";
@@ -3689,6 +3693,19 @@ export declare function useInfiniteScroll({ hasMore, isLoadingRef, scrollAreaRef
3689
3693
  itemCount: number;
3690
3694
  }): (node: HTMLDivElement | null) => void;
3691
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
+
3692
3709
  export declare const useIsDesktop: () => boolean;
3693
3710
 
3694
3711
  export declare const useLazyGetConversationByIdQuery: <R extends Record<string, any> = TSHelpersId<(Omit<{