@cortexkit/anthropic-auth-core 2.4.3 → 2.4.4
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/cachekeep.d.ts +77 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7671 -7464
- package/dist/native-account-refusal.d.ts +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { NativeRefreshResult } from './native-refresh-coordinator.ts';
|
|
2
|
+
export type NativeAccountRefusalReason = 'account-policy' | 'account-unavailable' | 'credential-changed';
|
|
3
|
+
/** A closed, credential-free refusal that retrying a background send cannot fix. */
|
|
4
|
+
export declare class NativeAccountRefusal extends Error {
|
|
5
|
+
readonly reason: NativeAccountRefusalReason;
|
|
6
|
+
constructor(reason: NativeAccountRefusalReason);
|
|
7
|
+
}
|
|
8
|
+
/** Unknown failures and vault outages retain the caller's existing retry policy. */
|
|
9
|
+
export declare function nativeAccountRefusal(error: unknown): NativeAccountRefusal | undefined;
|
|
10
|
+
/** Refresh/validation backoff and failed I/O are not permanent account refusals. */
|
|
11
|
+
export declare function nativeLocalAccountRefusal(result: NativeRefreshResult): NativeAccountRefusal | undefined;
|