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

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