@resolveio/server-lib 22.1.12 → 22.1.14

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.
@@ -131,8 +131,23 @@ export declare function resolveAssistantCollectionOverride(collectionRanking: Re
131
131
  reason: string;
132
132
  } | null;
133
133
  export declare function resolveAssistantCrossCollectionFallbackCandidates(collection: string): string[];
134
- export declare function resolveAssistantAvailableCrossCollectionFallbacksFromNames(collection: string, triedCollections: Set<string>, collectionNames: string[]): string[];
135
- export declare function shouldAcceptAssistantFallbackDocuments(documents: any[]): boolean;
134
+ export declare function resolveAssistantAvailableCrossCollectionFallbacksFromNames(collection: string, triedCollections: Set<string>, collectionNames: string[], options?: {
135
+ fieldHints?: string[];
136
+ }): string[];
137
+ type AssistantFallbackAcceptanceOptions = {
138
+ requireDimensionFields?: boolean;
139
+ minDimensionFillRate?: number;
140
+ preferredDimensionFields?: string[];
141
+ };
142
+ export declare function evaluateAssistantFallbackDocumentsQuality(documents: any[], options?: AssistantFallbackAcceptanceOptions): {
143
+ accepted: boolean;
144
+ rowCount: number;
145
+ dimensionFields: string[];
146
+ bestField?: string;
147
+ bestFillRate: number;
148
+ averageFillRate: number;
149
+ };
150
+ export declare function shouldAcceptAssistantFallbackDocuments(documents: any[], options?: AssistantFallbackAcceptanceOptions): boolean;
136
151
  export declare function collectUserViewPermissions(user: any): string[];
137
152
  export declare function userHasInvoiceAccess(user: any): boolean;
138
153
  export declare function resolveAssistantUserAccessTier(user: any): 'super_admin' | 'customer_portal' | 'client_user';