import { GaxiosOptions } from 'gaxios'; export interface ResponseSet { body?: string; status_code?: Number; } export interface GlobalOptions { auth?: any; fid?: string; } export interface MethodOptions extends GaxiosOptions { rootUrl?: string; http2?: boolean; userAgentDirectives?: UserAgentDirective[]; } export interface StreamMethodOptions extends MethodOptions { responseType: 'stream'; } /** * An additional directive to add to the user agent header. * Directives come in the form of: * User-Agent: / * * For more information, see: * https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent */ export interface UserAgentDirective { product: string; version: string; comment?: string; } export interface ServiceOptions extends GlobalOptions { version?: string; } /** * Request and Response headers. */ export interface FerantConfigurable { _options: GlobalOptions; } export interface APIRequestContext { ferant?: FerantConfigurable; _options: GlobalOptions; } export interface APIRequestParams { options: MethodOptions; params: T; context: APIRequestContext; } export interface ServiceOptions extends GlobalOptions { version?: string; }