diff options
| author | Adam Malczewski <[email protected]> | 2026-06-26 22:03:19 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-26 22:23:39 +0900 |
| commit | 727c98c9dae516a2070eb950410314380a20c974 (patch) | |
| tree | 52aa1022c54f11770be7e4e2a324f0a8b8b8deec /packages/kernel/src/contracts/auth.ts | |
| parent | e59dc11f63b1df51142259bb2c406af8c9c8c2bb (diff) | |
| download | dispatch-727c98c9dae516a2070eb950410314380a20c974.tar.gz dispatch-727c98c9dae516a2070eb950410314380a20c974.zip | |
style: switch from tabs to 2-space indentation
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>; } |
