Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

View File

@@ -1,5 +1,5 @@
import { GaxiosOptions, GaxiosResponse } from 'gaxios';
import { OAuth2Client } from 'google-auth-library';
import { OAuth2Client, GoogleAuth } from 'google-auth-library';
import { Endpoint } from './endpoint';
export interface APIRequestParams<T = any> {
options: MethodOptions;
@@ -18,15 +18,19 @@ export interface APIRequestContext {
}
/**
* This interface is a mix of the AxiosRequestConfig options
* and our `auth: OAuth2Client|string` options.
* and our `auth` options.
*/
export interface GlobalOptions extends MethodOptions {
auth?: OAuth2Client | string;
auth?: GoogleAuth | OAuth2Client | 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: