UNPKG

@langchain/community

Version:
23 lines (22 loc) 736 B
import { Credentials } from "web-auth-library/google"; import type { GoogleAbstractedClient, GoogleAbstractedClientOps } from "../types/googlevertexai-types.js"; export type WebGoogleAuthOptions = { credentials: string | Credentials; scope?: string | string[]; accessToken?: string; }; export declare class WebGoogleAuth implements GoogleAbstractedClient { options: WebGoogleAuthOptions; constructor(options?: WebGoogleAuthOptions); getProjectId(): Promise<string>; request(opts: GoogleAbstractedClientOps): Promise<{ data: any; config: {}; status: number; statusText: string; headers: Headers; request: { responseURL: string; }; }>; }