@tongfun/ui 0.0.1-alpha.14 → 0.0.1-alpha.15

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
@@ -746,6 +746,31 @@ export interface SidebarLayoutSlots {
746
746
  }
747
747
 
748
748
 
749
+ export type TfRequestAuthFailureReason = 'refresh-failed' | 'unauthorized'
750
+
751
+ export interface TfRequestAuthContext {
752
+ token?: string
753
+ tenantId?: string
754
+ userId?: string
755
+ refreshToken?: string
756
+ applicationId?: string
757
+ }
758
+
759
+ export interface TfRequestAuthAdapter {
760
+ getContext(): TfRequestAuthContext | null | undefined
761
+ refresh(): Promise<boolean>
762
+ onAuthFailure?(reason: TfRequestAuthFailureReason): void
763
+ }
764
+
765
+
766
+ export declare function configureRequestAuth(adapter: TfRequestAuthAdapter | null): void
767
+ export declare function hasRequestAuthAdapter(): boolean
768
+ export declare function getRegisteredRequestAuthAdapter(): TfRequestAuthAdapter | null
769
+ export declare function getRequestAuthContext(): TfRequestAuthContext | null
770
+ export declare function refreshRequestAuth(): Promise<boolean>
771
+ export declare function notifyRequestAuthFailure(reason: TfRequestAuthFailureReason): void
772
+ export declare function fetchWithRequestAuth(input: RequestInfo | URL, init?: RequestInit): Promise<Response>
773
+
749
774
  export declare const DOCUMENT_FORM_FIELD_ACCESS_KEY: unique symbol
750
775
  export declare const DOCUMENT_FORM_SHELL_CONTEXT_KEY: unique symbol
751
776
 
@@ -1,5 +1,5 @@
1
- import { jt as Ke, kY as Do } from "./index-PN-orn0y.js";
2
- import { _ as Xa } from "./jspdf.es.min-B3HXbylA.js";
1
+ import { ju as Ke, k$ as Do } from "./index-DeFCl1SX.js";
2
+ import { _ as Xa } from "./jspdf.es.min-DNbeD7Ag.js";
3
3
  import "vue";
4
4
  import "@lucide/vue";
5
5
  import "reka-ui";