init: vibn-agent-runner — Gemini autonomous agent backend
Made-with: Cursor
This commit is contained in:
25
node_modules/gaxios/build/cjs/src/interceptor.d.ts
generated
vendored
Normal file
25
node_modules/gaxios/build/cjs/src/interceptor.d.ts
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { GaxiosError, GaxiosOptionsPrepared, GaxiosResponse } from './common.js';
|
||||
/**
|
||||
* Interceptors that can be run for requests or responses. These interceptors run asynchronously.
|
||||
*/
|
||||
export interface GaxiosInterceptor<T extends GaxiosOptionsPrepared | GaxiosResponse> {
|
||||
/**
|
||||
* Function to be run when applying an interceptor.
|
||||
*
|
||||
* @param {T} configOrResponse The current configuration or response.
|
||||
* @returns {Promise<T>} Promise that resolves to the modified set of options or response.
|
||||
*/
|
||||
resolved?: (configOrResponse: T) => Promise<T>;
|
||||
/**
|
||||
* Function to be run if the previous call to resolved throws / rejects or the request results in an invalid status
|
||||
* as determined by the call to validateStatus.
|
||||
*
|
||||
* @param {GaxiosError} err The error thrown from the previously called resolved function.
|
||||
*/
|
||||
rejected?: (err: GaxiosError) => void;
|
||||
}
|
||||
/**
|
||||
* Class to manage collections of GaxiosInterceptors for both requests and responses.
|
||||
*/
|
||||
export declare class GaxiosInterceptorManager<T extends GaxiosOptionsPrepared | GaxiosResponse> extends Set<GaxiosInterceptor<T> | null> {
|
||||
}
|
||||
Reference in New Issue
Block a user