/var/www/greso.tech/server/nsm/node_modules/google-auth-library/build/src/auth
NameSizeModeActions
authclient.d.ts42040644editdlrm
authclient.js21440644editdlrm
awsclient.d.ts44410644editdlrm
awsclient.js121900644editdlrm
awsrequestsigner.d.ts16260644editdlrm
awsrequestsigner.js92960644editdlrm
baseexternalclient.d.ts93010644editdlrm
baseexternalclient.js180850644editdlrm
computeclient.d.ts13450644editdlrm
computeclient.js44420644editdlrm
credentials.d.ts22760644editdlrm
credentials.js7040644editdlrm
downscopedclient.d.ts65400644editdlrm
downscopedclient.js131660644editdlrm
envDetect.d.ts3240644editdlrm
envDetect.js26670644editdlrm
executable-response.d.ts44890644editdlrm
executable-response.js67140644editdlrm
externalAccountAuthorizedUserClient.d.ts34260644editdlrm
externalAccountAuthorizedUserClient.js101550644editdlrm
externalclient.d.ts13560644editdlrm
externalclient.js29790644editdlrm
googleauth.d.ts116260644editdlrm
googleauth.js288830644editdlrm
iam.d.ts6230644editdlrm
iam.js13480644editdlrm
identitypoolclient.d.ts36920644editdlrm
identitypoolclient.js75670644editdlrm
idtokenclient.d.ts8960644editdlrm
idtokenclient.js20880644editdlrm
impersonated.d.ts47690644editdlrm
impersonated.js68750644editdlrm
jwtaccess.d.ts24090644editdlrm
jwtaccess.js69870644editdlrm
jwtclient.d.ts38330644editdlrm
jwtclient.js100500644editdlrm
loginticket.d.ts53670644editdlrm
loginticket.js17680644editdlrm
oauth2client.d.ts225210644editdlrm
oauth2client.js313120644editdlrm
oauth2common.d.ts33770644editdlrm
oauth2common.js77340644editdlrm
pluggable-auth-client.d.ts59830644editdlrm
pluggable-auth-client.js99260644editdlrm
pluggable-auth-handler.d.ts18420644editdlrm
pluggable-auth-handler.js68240644editdlrm
refreshclient.d.ts17430644editdlrm
refreshclient.js42310644editdlrm
stscredentials.d.ts46360644editdlrm
stscredentials.js48860644editdlrm
Edit: /var/www/greso.tech/server/nsm/node_modules/google-auth-library/build/src/auth/authclient.d.ts (4204B)
/// import { EventEmitter } from 'events'; import { GaxiosOptions, GaxiosPromise, GaxiosResponse } from 'gaxios'; import { DefaultTransporter } from '../transporters'; import { Credentials } from './credentials'; import { Headers } from './oauth2client'; /** * Defines the root interface for all clients that generate credentials * for calling Google APIs. All clients should implement this interface. */ export interface CredentialsClient { /** * The project ID corresponding to the current credentials if available. */ projectId?: string | null; /** * The expiration threshold in milliseconds before forcing token refresh. */ eagerRefreshThresholdMillis: number; /** * Whether to force refresh on failure when making an authorization request. */ forceRefreshOnFailure: boolean; /** * @return A promise that resolves with the current GCP access token * response. If the current credential is expired, a new one is retrieved. */ getAccessToken(): Promise<{ token?: string | null; res?: GaxiosResponse | null; }>; /** * The main authentication interface. It takes an optional url which when * present is the endpoint being accessed, and returns a Promise which * resolves with authorization header fields. * * The result has the form: * { Authorization: 'Bearer ' } * @param url The URI being authorized. */ getRequestHeaders(url?: string): Promise; /** * Provides an alternative Gaxios request implementation with auth credentials */ request(opts: GaxiosOptions): GaxiosPromise; /** * Sets the auth credentials. */ setCredentials(credentials: Credentials): void; /** * Subscribes a listener to the tokens event triggered when a token is * generated. * * @param event The tokens event to subscribe to. * @param listener The listener that triggers on event trigger. * @return The current client instance. */ on(event: 'tokens', listener: (tokens: Credentials) => void): this; } export declare interface AuthClient { on(event: 'tokens', listener: (tokens: Credentials) => void): this; } export declare abstract class AuthClient extends EventEmitter implements CredentialsClient { /** * The quota project ID. The quota project can be used by client libraries for the billing purpose. * See {@link https://cloud.google.com/docs/quota| Working with quotas} */ quotaProjectId?: string; transporter: DefaultTransporter; credentials: Credentials; projectId?: string | null; eagerRefreshThresholdMillis: number; forceRefreshOnFailure: boolean; /** * Provides an alternative Gaxios request implementation with auth credentials */ abstract request(opts: GaxiosOptions): GaxiosPromise; /** * The main authentication interface. It takes an optional url which when * present is the endpoint being accessed, and returns a Promise which * resolves with authorization header fields. * * The result has the form: * { Authorization: 'Bearer ' } * @param url The URI being authorized. */ abstract getRequestHeaders(url?: string): Promise; /** * @return A promise that resolves with the current GCP access token * response. If the current credential is expired, a new one is retrieved. */ abstract getAccessToken(): Promise<{ token?: string | null; res?: GaxiosResponse | null; }>; /** * Sets the auth credentials. */ setCredentials(credentials: Credentials): void; /** * Append additional headers, e.g., x-goog-user-project, shared across the * classes inheriting AuthClient. This method should be used by any method * that overrides getRequestMetadataAsync(), which is a shared helper for * setting request information in both gRPC and HTTP API calls. * * @param headers object to append additional headers to. */ protected addSharedMetadataHeaders(headers: Headers): Headers; }