init: vibn-agent-runner — Gemini autonomous agent backend
Made-with: Cursor
This commit is contained in:
61
node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.d.ts
generated
vendored
Normal file
61
node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.d.ts
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
import { ExecutableResponse } from './executable-response';
|
||||
/**
|
||||
* Error thrown from the executable run by PluggableAuthClient.
|
||||
*/
|
||||
export declare class ExecutableError extends Error {
|
||||
/**
|
||||
* The exit code returned by the executable.
|
||||
*/
|
||||
readonly code: string;
|
||||
constructor(message: string, code: string);
|
||||
}
|
||||
/**
|
||||
* Defines the options used for the PluggableAuthHandler class.
|
||||
*/
|
||||
export interface PluggableAuthHandlerOptions {
|
||||
/**
|
||||
* The command used to retrieve the third party token.
|
||||
*/
|
||||
command: string;
|
||||
/**
|
||||
* The timeout in milliseconds for running executable,
|
||||
* set to default if none provided.
|
||||
*/
|
||||
timeoutMillis: number;
|
||||
/**
|
||||
* The path to file to check for cached executable response.
|
||||
*/
|
||||
outputFile?: string;
|
||||
}
|
||||
/**
|
||||
* A handler used to retrieve 3rd party token responses from user defined
|
||||
* executables and cached file output for the PluggableAuthClient class.
|
||||
*/
|
||||
export declare class PluggableAuthHandler {
|
||||
private readonly commandComponents;
|
||||
private readonly timeoutMillis;
|
||||
private readonly outputFile?;
|
||||
/**
|
||||
* Instantiates a PluggableAuthHandler instance using the provided
|
||||
* PluggableAuthHandlerOptions object.
|
||||
*/
|
||||
constructor(options: PluggableAuthHandlerOptions);
|
||||
/**
|
||||
* Calls user provided executable to get a 3rd party subject token and
|
||||
* returns the response.
|
||||
* @param envMap a Map of additional Environment Variables required for
|
||||
* the executable.
|
||||
* @return A promise that resolves with the executable response.
|
||||
*/
|
||||
retrieveResponseFromExecutable(envMap: Map<string, string>): Promise<ExecutableResponse>;
|
||||
/**
|
||||
* Checks user provided output file for response from previous run of
|
||||
* executable and return the response if it exists, is formatted correctly, and is not expired.
|
||||
*/
|
||||
retrieveCachedResponse(): Promise<ExecutableResponse | undefined>;
|
||||
/**
|
||||
* Parses given command string into component array, splitting on spaces unless
|
||||
* spaces are between quotation marks.
|
||||
*/
|
||||
private static parseCommand;
|
||||
}
|
||||
Reference in New Issue
Block a user