diff options
| author | Adam Malczewski <[email protected]> | 2026-06-27 01:09:39 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-27 01:09:39 +0900 |
| commit | 61e45e60d699ed1ca46f94a8f181c92a940317c6 (patch) | |
| tree | 2892d9773c5a8e367e1e58cdb1e88d9c6ad3fe6d /packages/kernel/src/contracts/auth.ts | |
| parent | 63c7e64532e85e0bbdd6d9ac6825d8f86be98e7a (diff) | |
| parent | 727c98c9dae516a2070eb950410314380a20c974 (diff) | |
| download | dispatch-61e45e60d699ed1ca46f94a8f181c92a940317c6.tar.gz dispatch-61e45e60d699ed1ca46f94a8f181c92a940317c6.zip | |
Merge branch 'feature/indent-change' into dev
Diffstat (limited to 'packages/kernel/src/contracts/auth.ts')
| -rw-r--r-- | packages/kernel/src/contracts/auth.ts | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/packages/kernel/src/contracts/auth.ts b/packages/kernel/src/contracts/auth.ts index 6058156..85963ba 100644 --- a/packages/kernel/src/contracts/auth.ts +++ b/packages/kernel/src/contracts/auth.ts @@ -11,9 +11,9 @@ * This is the common case for OpenAI-compatible and most provider extensions. */ export interface ApiKeyCredentials { - readonly type: "api-key"; - readonly apiKey: string; - readonly baseURL?: string; + readonly type: "api-key"; + readonly apiKey: string; + readonly baseURL?: string; } /** @@ -22,9 +22,9 @@ export interface ApiKeyCredentials { * receives a currently-valid token. */ export interface BearerTokenCredentials { - readonly type: "bearer-token"; - readonly token: string; - readonly baseURL?: string; + readonly type: "bearer-token"; + readonly token: string; + readonly baseURL?: string; } /** Union of credential shapes the kernel recognizes. */ @@ -36,13 +36,13 @@ export type Credentials = ApiKeyCredentials | BearerTokenCredentials; * directly (the concrete vault is a core extension). */ export interface AuthContract { - /** Unique identifier for this auth provider (e.g. "apikey", "claude-oauth"). */ - readonly id: string; + /** Unique identifier for this auth provider (e.g. "apikey", "claude-oauth"). */ + readonly id: string; - /** - * Resolve currently-valid credentials. May involve reading from the - * secret vault (injected via Host API) or performing a token refresh. - * Returns `null` if credentials are unavailable (e.g. not yet configured). - */ - readonly resolve: () => Promise<Credentials | null>; + /** + * Resolve currently-valid credentials. May involve reading from the + * secret vault (injected via Host API) or performing a token refresh. + * Returns `null` if credentials are unavailable (e.g. not yet configured). + */ + readonly resolve: () => Promise<Credentials | null>; } |
