@langchain/google-gauth 2.1.24 → 2.1.26-dev-1773698445534

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @langchain/google-gauth
2
2
 
3
+ ## 2.1.25
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @langchain/google-common@2.1.25
9
+
3
10
  ## 2.1.24
4
11
 
5
12
  ### Patch Changes
package/dist/auth.cjs CHANGED
@@ -1,6 +1,5 @@
1
1
  let _langchain_google_common = require("@langchain/google-common");
2
2
  let google_auth_library = require("google-auth-library");
3
-
4
3
  //#region src/auth.ts
5
4
  var GAuthClient = class extends _langchain_google_common.GoogleAbstractedFetchClient {
6
5
  gauth;
@@ -24,7 +23,7 @@ var GAuthClient = class extends _langchain_google_common.GoogleAbstractedFetchCl
24
23
  return this._request(opts?.url, opts, {});
25
24
  }
26
25
  };
27
-
28
26
  //#endregion
29
27
  exports.GAuthClient = GAuthClient;
28
+
30
29
  //# sourceMappingURL=auth.cjs.map
package/dist/auth.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"auth.cjs","names":["GoogleAbstractedFetchClient","GoogleAuth"],"sources":["../src/auth.ts"],"sourcesContent":["import { Readable } from \"stream\";\nimport {\n AbstractStream,\n ensureAuthOptionScopes,\n GoogleAbstractedClientOps,\n GoogleAbstractedFetchClient,\n GoogleConnectionParams,\n JsonStream,\n SseJsonStream,\n SseStream,\n} from \"@langchain/google-common\";\nimport { GoogleAuth, GoogleAuthOptions } from \"google-auth-library\";\n\nexport class NodeAbstractStream implements AbstractStream {\n private baseStream: AbstractStream;\n\n constructor(baseStream: AbstractStream, data: Readable) {\n this.baseStream = baseStream;\n const decoder = new TextDecoder(\"utf-8\");\n data.on(\"data\", (data) => {\n const text = decoder.decode(data, { stream: true });\n this.appendBuffer(text);\n });\n data.on(\"end\", () => {\n const rest = decoder.decode();\n this.appendBuffer(rest);\n this.closeBuffer();\n });\n }\n\n appendBuffer(data: string): void {\n return this.baseStream.appendBuffer(data);\n }\n\n closeBuffer(): void {\n return this.baseStream.closeBuffer();\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n nextChunk(): Promise<any> {\n return this.baseStream.nextChunk();\n }\n\n get streamDone(): boolean {\n return this.baseStream.streamDone;\n }\n}\n\nexport class NodeJsonStream extends NodeAbstractStream {\n constructor(data: Readable) {\n super(new JsonStream(), data);\n }\n}\n\nexport class NodeSseStream extends NodeAbstractStream {\n constructor(data: Readable) {\n super(new SseStream(), data);\n }\n}\n\nexport class NodeSseJsonStream extends NodeAbstractStream {\n constructor(data: Readable) {\n super(new SseJsonStream(), data);\n }\n}\n\nexport class GAuthClient extends GoogleAbstractedFetchClient {\n gauth: GoogleAuth;\n\n constructor(fields?: GoogleConnectionParams<GoogleAuthOptions>) {\n super();\n const options = ensureAuthOptionScopes<GoogleAuthOptions>(\n fields?.authOptions,\n \"scopes\",\n fields?.platformType\n );\n this.gauth = new GoogleAuth(options);\n this._fetch = async (...args) => {\n const url = args[0];\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const opts: any = args[1] ?? {};\n opts.responseType = \"stream\";\n return await this.gauth.fetch(url, opts);\n };\n }\n\n get clientType(): string {\n return \"gauth\";\n }\n\n async getProjectId(): Promise<string> {\n return this.gauth.getProjectId();\n }\n\n async request(opts: GoogleAbstractedClientOps): Promise<unknown> {\n return this._request(opts?.url, opts, {});\n }\n}\n"],"mappings":";;;;AAkEA,IAAa,cAAb,cAAiCA,qDAA4B;CAC3D;CAEA,YAAY,QAAoD;AAC9D,SAAO;AAMP,OAAK,QAAQ,IAAIC,oFAJf,QAAQ,aACR,UACA,QAAQ,aACT,CACmC;AACpC,OAAK,SAAS,OAAO,GAAG,SAAS;GAC/B,MAAM,MAAM,KAAK;GAEjB,MAAM,OAAY,KAAK,MAAM,EAAE;AAC/B,QAAK,eAAe;AACpB,UAAO,MAAM,KAAK,MAAM,MAAM,KAAK,KAAK;;;CAI5C,IAAI,aAAqB;AACvB,SAAO;;CAGT,MAAM,eAAgC;AACpC,SAAO,KAAK,MAAM,cAAc;;CAGlC,MAAM,QAAQ,MAAmD;AAC/D,SAAO,KAAK,SAAS,MAAM,KAAK,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"auth.cjs","names":["GoogleAbstractedFetchClient","GoogleAuth"],"sources":["../src/auth.ts"],"sourcesContent":["import { Readable } from \"stream\";\nimport {\n AbstractStream,\n ensureAuthOptionScopes,\n GoogleAbstractedClientOps,\n GoogleAbstractedFetchClient,\n GoogleConnectionParams,\n JsonStream,\n SseJsonStream,\n SseStream,\n} from \"@langchain/google-common\";\nimport { GoogleAuth, GoogleAuthOptions } from \"google-auth-library\";\n\nexport class NodeAbstractStream implements AbstractStream {\n private baseStream: AbstractStream;\n\n constructor(baseStream: AbstractStream, data: Readable) {\n this.baseStream = baseStream;\n const decoder = new TextDecoder(\"utf-8\");\n data.on(\"data\", (data) => {\n const text = decoder.decode(data, { stream: true });\n this.appendBuffer(text);\n });\n data.on(\"end\", () => {\n const rest = decoder.decode();\n this.appendBuffer(rest);\n this.closeBuffer();\n });\n }\n\n appendBuffer(data: string): void {\n return this.baseStream.appendBuffer(data);\n }\n\n closeBuffer(): void {\n return this.baseStream.closeBuffer();\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n nextChunk(): Promise<any> {\n return this.baseStream.nextChunk();\n }\n\n get streamDone(): boolean {\n return this.baseStream.streamDone;\n }\n}\n\nexport class NodeJsonStream extends NodeAbstractStream {\n constructor(data: Readable) {\n super(new JsonStream(), data);\n }\n}\n\nexport class NodeSseStream extends NodeAbstractStream {\n constructor(data: Readable) {\n super(new SseStream(), data);\n }\n}\n\nexport class NodeSseJsonStream extends NodeAbstractStream {\n constructor(data: Readable) {\n super(new SseJsonStream(), data);\n }\n}\n\nexport class GAuthClient extends GoogleAbstractedFetchClient {\n gauth: GoogleAuth;\n\n constructor(fields?: GoogleConnectionParams<GoogleAuthOptions>) {\n super();\n const options = ensureAuthOptionScopes<GoogleAuthOptions>(\n fields?.authOptions,\n \"scopes\",\n fields?.platformType\n );\n this.gauth = new GoogleAuth(options);\n this._fetch = async (...args) => {\n const url = args[0];\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const opts: any = args[1] ?? {};\n opts.responseType = \"stream\";\n return await this.gauth.fetch(url, opts);\n };\n }\n\n get clientType(): string {\n return \"gauth\";\n }\n\n async getProjectId(): Promise<string> {\n return this.gauth.getProjectId();\n }\n\n async request(opts: GoogleAbstractedClientOps): Promise<unknown> {\n return this._request(opts?.url, opts, {});\n }\n}\n"],"mappings":";;;AAkEA,IAAa,cAAb,cAAiCA,yBAAAA,4BAA4B;CAC3D;CAEA,YAAY,QAAoD;AAC9D,SAAO;AAMP,OAAK,QAAQ,IAAIC,oBAAAA,YAAAA,GAAAA,yBAAAA,wBAJf,QAAQ,aACR,UACA,QAAQ,aACT,CACmC;AACpC,OAAK,SAAS,OAAO,GAAG,SAAS;GAC/B,MAAM,MAAM,KAAK;GAEjB,MAAM,OAAY,KAAK,MAAM,EAAE;AAC/B,QAAK,eAAe;AACpB,UAAO,MAAM,KAAK,MAAM,MAAM,KAAK,KAAK;;;CAI5C,IAAI,aAAqB;AACvB,SAAO;;CAGT,MAAM,eAAgC;AACpC,SAAO,KAAK,MAAM,cAAc;;CAGlC,MAAM,QAAQ,MAAmD;AAC/D,SAAO,KAAK,SAAS,MAAM,KAAK,MAAM,EAAE,CAAC"}
package/dist/auth.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { GoogleAbstractedFetchClient, ensureAuthOptionScopes } from "@langchain/google-common";
2
2
  import { GoogleAuth } from "google-auth-library";
3
-
4
3
  //#region src/auth.ts
5
4
  var GAuthClient = class extends GoogleAbstractedFetchClient {
6
5
  gauth;
@@ -24,7 +23,7 @@ var GAuthClient = class extends GoogleAbstractedFetchClient {
24
23
  return this._request(opts?.url, opts, {});
25
24
  }
26
25
  };
27
-
28
26
  //#endregion
29
27
  export { GAuthClient };
28
+
30
29
  //# sourceMappingURL=auth.js.map
package/dist/auth.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","names":[],"sources":["../src/auth.ts"],"sourcesContent":["import { Readable } from \"stream\";\nimport {\n AbstractStream,\n ensureAuthOptionScopes,\n GoogleAbstractedClientOps,\n GoogleAbstractedFetchClient,\n GoogleConnectionParams,\n JsonStream,\n SseJsonStream,\n SseStream,\n} from \"@langchain/google-common\";\nimport { GoogleAuth, GoogleAuthOptions } from \"google-auth-library\";\n\nexport class NodeAbstractStream implements AbstractStream {\n private baseStream: AbstractStream;\n\n constructor(baseStream: AbstractStream, data: Readable) {\n this.baseStream = baseStream;\n const decoder = new TextDecoder(\"utf-8\");\n data.on(\"data\", (data) => {\n const text = decoder.decode(data, { stream: true });\n this.appendBuffer(text);\n });\n data.on(\"end\", () => {\n const rest = decoder.decode();\n this.appendBuffer(rest);\n this.closeBuffer();\n });\n }\n\n appendBuffer(data: string): void {\n return this.baseStream.appendBuffer(data);\n }\n\n closeBuffer(): void {\n return this.baseStream.closeBuffer();\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n nextChunk(): Promise<any> {\n return this.baseStream.nextChunk();\n }\n\n get streamDone(): boolean {\n return this.baseStream.streamDone;\n }\n}\n\nexport class NodeJsonStream extends NodeAbstractStream {\n constructor(data: Readable) {\n super(new JsonStream(), data);\n }\n}\n\nexport class NodeSseStream extends NodeAbstractStream {\n constructor(data: Readable) {\n super(new SseStream(), data);\n }\n}\n\nexport class NodeSseJsonStream extends NodeAbstractStream {\n constructor(data: Readable) {\n super(new SseJsonStream(), data);\n }\n}\n\nexport class GAuthClient extends GoogleAbstractedFetchClient {\n gauth: GoogleAuth;\n\n constructor(fields?: GoogleConnectionParams<GoogleAuthOptions>) {\n super();\n const options = ensureAuthOptionScopes<GoogleAuthOptions>(\n fields?.authOptions,\n \"scopes\",\n fields?.platformType\n );\n this.gauth = new GoogleAuth(options);\n this._fetch = async (...args) => {\n const url = args[0];\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const opts: any = args[1] ?? {};\n opts.responseType = \"stream\";\n return await this.gauth.fetch(url, opts);\n };\n }\n\n get clientType(): string {\n return \"gauth\";\n }\n\n async getProjectId(): Promise<string> {\n return this.gauth.getProjectId();\n }\n\n async request(opts: GoogleAbstractedClientOps): Promise<unknown> {\n return this._request(opts?.url, opts, {});\n }\n}\n"],"mappings":";;;;AAkEA,IAAa,cAAb,cAAiC,4BAA4B;CAC3D;CAEA,YAAY,QAAoD;AAC9D,SAAO;AAMP,OAAK,QAAQ,IAAI,WALD,uBACd,QAAQ,aACR,UACA,QAAQ,aACT,CACmC;AACpC,OAAK,SAAS,OAAO,GAAG,SAAS;GAC/B,MAAM,MAAM,KAAK;GAEjB,MAAM,OAAY,KAAK,MAAM,EAAE;AAC/B,QAAK,eAAe;AACpB,UAAO,MAAM,KAAK,MAAM,MAAM,KAAK,KAAK;;;CAI5C,IAAI,aAAqB;AACvB,SAAO;;CAGT,MAAM,eAAgC;AACpC,SAAO,KAAK,MAAM,cAAc;;CAGlC,MAAM,QAAQ,MAAmD;AAC/D,SAAO,KAAK,SAAS,MAAM,KAAK,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"auth.js","names":[],"sources":["../src/auth.ts"],"sourcesContent":["import { Readable } from \"stream\";\nimport {\n AbstractStream,\n ensureAuthOptionScopes,\n GoogleAbstractedClientOps,\n GoogleAbstractedFetchClient,\n GoogleConnectionParams,\n JsonStream,\n SseJsonStream,\n SseStream,\n} from \"@langchain/google-common\";\nimport { GoogleAuth, GoogleAuthOptions } from \"google-auth-library\";\n\nexport class NodeAbstractStream implements AbstractStream {\n private baseStream: AbstractStream;\n\n constructor(baseStream: AbstractStream, data: Readable) {\n this.baseStream = baseStream;\n const decoder = new TextDecoder(\"utf-8\");\n data.on(\"data\", (data) => {\n const text = decoder.decode(data, { stream: true });\n this.appendBuffer(text);\n });\n data.on(\"end\", () => {\n const rest = decoder.decode();\n this.appendBuffer(rest);\n this.closeBuffer();\n });\n }\n\n appendBuffer(data: string): void {\n return this.baseStream.appendBuffer(data);\n }\n\n closeBuffer(): void {\n return this.baseStream.closeBuffer();\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n nextChunk(): Promise<any> {\n return this.baseStream.nextChunk();\n }\n\n get streamDone(): boolean {\n return this.baseStream.streamDone;\n }\n}\n\nexport class NodeJsonStream extends NodeAbstractStream {\n constructor(data: Readable) {\n super(new JsonStream(), data);\n }\n}\n\nexport class NodeSseStream extends NodeAbstractStream {\n constructor(data: Readable) {\n super(new SseStream(), data);\n }\n}\n\nexport class NodeSseJsonStream extends NodeAbstractStream {\n constructor(data: Readable) {\n super(new SseJsonStream(), data);\n }\n}\n\nexport class GAuthClient extends GoogleAbstractedFetchClient {\n gauth: GoogleAuth;\n\n constructor(fields?: GoogleConnectionParams<GoogleAuthOptions>) {\n super();\n const options = ensureAuthOptionScopes<GoogleAuthOptions>(\n fields?.authOptions,\n \"scopes\",\n fields?.platformType\n );\n this.gauth = new GoogleAuth(options);\n this._fetch = async (...args) => {\n const url = args[0];\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const opts: any = args[1] ?? {};\n opts.responseType = \"stream\";\n return await this.gauth.fetch(url, opts);\n };\n }\n\n get clientType(): string {\n return \"gauth\";\n }\n\n async getProjectId(): Promise<string> {\n return this.gauth.getProjectId();\n }\n\n async request(opts: GoogleAbstractedClientOps): Promise<unknown> {\n return this._request(opts?.url, opts, {});\n }\n}\n"],"mappings":";;;AAkEA,IAAa,cAAb,cAAiC,4BAA4B;CAC3D;CAEA,YAAY,QAAoD;AAC9D,SAAO;AAMP,OAAK,QAAQ,IAAI,WALD,uBACd,QAAQ,aACR,UACA,QAAQ,aACT,CACmC;AACpC,OAAK,SAAS,OAAO,GAAG,SAAS;GAC/B,MAAM,MAAM,KAAK;GAEjB,MAAM,OAAY,KAAK,MAAM,EAAE;AAC/B,QAAK,eAAe;AACpB,UAAO,MAAM,KAAK,MAAM,MAAM,KAAK,KAAK;;;CAI5C,IAAI,aAAqB;AACvB,SAAO;;CAGT,MAAM,eAAgC;AACpC,SAAO,KAAK,MAAM,cAAc;;CAGlC,MAAM,QAAQ,MAAmD;AAC/D,SAAO,KAAK,SAAS,MAAM,KAAK,MAAM,EAAE,CAAC"}
@@ -1,6 +1,5 @@
1
- const require_auth = require('./auth.cjs');
1
+ const require_auth = require("./auth.cjs");
2
2
  let _langchain_google_common = require("@langchain/google-common");
3
-
4
3
  //#region src/chat_models.ts
5
4
  /**
6
5
  * Integration with a Google chat model.
@@ -15,13 +14,13 @@ var ChatGoogle = class extends _langchain_google_common.ChatGoogleBase {
15
14
  model: modelOrFields
16
15
  } : modelOrFields ?? {};
17
16
  super(fields);
18
- this._addVersion("@langchain/google-gauth", "2.1.24");
17
+ this._addVersion("@langchain/google-gauth", "2.1.26-dev-1773698445534");
19
18
  }
20
19
  buildAbstractedClient(fields) {
21
20
  return new require_auth.GAuthClient(fields);
22
21
  }
23
22
  };
24
-
25
23
  //#endregion
26
24
  exports.ChatGoogle = ChatGoogle;
25
+
27
26
  //# sourceMappingURL=chat_models.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat_models.cjs","names":["ChatGoogleBase","GAuthClient"],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<GoogleAuthOptions> {}\n\n/**\n * Integration with a Google chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<GoogleAuthOptions>\n implements ChatGoogleInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"ChatGoogle\";\n }\n\n constructor(model: string, params?: Omit<ChatGoogleInput, \"model\">);\n constructor(fields?: ChatGoogleInput);\n constructor(\n modelOrFields?: string | ChatGoogleInput,\n paramsArg?: Omit<ChatGoogleInput, \"model\">\n ) {\n const fields =\n typeof modelOrFields === \"string\"\n ? { ...(paramsArg ?? {}), model: modelOrFields }\n : (modelOrFields ?? {});\n super(fields);\n this._addVersion(\"@langchain/google-gauth\", __PKG_VERSION__);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;AAiBA,IAAa,aAAb,cACUA,wCAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAKT,YACE,eACA,WACA;EACA,MAAM,SACJ,OAAO,kBAAkB,WACrB;GAAE,GAAI,aAAa,EAAE;GAAG,OAAO;GAAe,GAC7C,iBAAiB,EAAE;AAC1B,QAAM,OAAO;AACb,OAAK,YAAY,oCAA2C;;CAG9D,sBACE,QACwB;AACxB,SAAO,IAAIC,yBAAY,OAAO"}
1
+ {"version":3,"file":"chat_models.cjs","names":["ChatGoogleBase","GAuthClient"],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<GoogleAuthOptions> {}\n\n/**\n * Integration with a Google chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<GoogleAuthOptions>\n implements ChatGoogleInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"ChatGoogle\";\n }\n\n constructor(model: string, params?: Omit<ChatGoogleInput, \"model\">);\n constructor(fields?: ChatGoogleInput);\n constructor(\n modelOrFields?: string | ChatGoogleInput,\n paramsArg?: Omit<ChatGoogleInput, \"model\">\n ) {\n const fields =\n typeof modelOrFields === \"string\"\n ? { ...(paramsArg ?? {}), model: modelOrFields }\n : (modelOrFields ?? {});\n super(fields);\n this._addVersion(\"@langchain/google-gauth\", __PKG_VERSION__);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;AAiBA,IAAa,aAAb,cACUA,yBAAAA,eAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAKT,YACE,eACA,WACA;EACA,MAAM,SACJ,OAAO,kBAAkB,WACrB;GAAE,GAAI,aAAa,EAAE;GAAG,OAAO;GAAe,GAC7C,iBAAiB,EAAE;AAC1B,QAAM,OAAO;AACb,OAAK,YAAY,2BAAA,2BAA2C;;CAG9D,sBACE,QACwB;AACxB,SAAO,IAAIC,aAAAA,YAAY,OAAO"}
@@ -1,6 +1,5 @@
1
1
  import { GAuthClient } from "./auth.js";
2
2
  import { ChatGoogleBase } from "@langchain/google-common";
3
-
4
3
  //#region src/chat_models.ts
5
4
  /**
6
5
  * Integration with a Google chat model.
@@ -15,13 +14,13 @@ var ChatGoogle = class extends ChatGoogleBase {
15
14
  model: modelOrFields
16
15
  } : modelOrFields ?? {};
17
16
  super(fields);
18
- this._addVersion("@langchain/google-gauth", "2.1.24");
17
+ this._addVersion("@langchain/google-gauth", "2.1.26-dev-1773698445534");
19
18
  }
20
19
  buildAbstractedClient(fields) {
21
20
  return new GAuthClient(fields);
22
21
  }
23
22
  };
24
-
25
23
  //#endregion
26
24
  export { ChatGoogle };
25
+
27
26
  //# sourceMappingURL=chat_models.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat_models.js","names":[],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<GoogleAuthOptions> {}\n\n/**\n * Integration with a Google chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<GoogleAuthOptions>\n implements ChatGoogleInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"ChatGoogle\";\n }\n\n constructor(model: string, params?: Omit<ChatGoogleInput, \"model\">);\n constructor(fields?: ChatGoogleInput);\n constructor(\n modelOrFields?: string | ChatGoogleInput,\n paramsArg?: Omit<ChatGoogleInput, \"model\">\n ) {\n const fields =\n typeof modelOrFields === \"string\"\n ? { ...(paramsArg ?? {}), model: modelOrFields }\n : (modelOrFields ?? {});\n super(fields);\n this._addVersion(\"@langchain/google-gauth\", __PKG_VERSION__);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;AAiBA,IAAa,aAAb,cACU,eAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAKT,YACE,eACA,WACA;EACA,MAAM,SACJ,OAAO,kBAAkB,WACrB;GAAE,GAAI,aAAa,EAAE;GAAG,OAAO;GAAe,GAC7C,iBAAiB,EAAE;AAC1B,QAAM,OAAO;AACb,OAAK,YAAY,oCAA2C;;CAG9D,sBACE,QACwB;AACxB,SAAO,IAAI,YAAY,OAAO"}
1
+ {"version":3,"file":"chat_models.js","names":[],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<GoogleAuthOptions> {}\n\n/**\n * Integration with a Google chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<GoogleAuthOptions>\n implements ChatGoogleInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"ChatGoogle\";\n }\n\n constructor(model: string, params?: Omit<ChatGoogleInput, \"model\">);\n constructor(fields?: ChatGoogleInput);\n constructor(\n modelOrFields?: string | ChatGoogleInput,\n paramsArg?: Omit<ChatGoogleInput, \"model\">\n ) {\n const fields =\n typeof modelOrFields === \"string\"\n ? { ...(paramsArg ?? {}), model: modelOrFields }\n : (modelOrFields ?? {});\n super(fields);\n this._addVersion(\"@langchain/google-gauth\", __PKG_VERSION__);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;AAiBA,IAAa,aAAb,cACU,eAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAKT,YACE,eACA,WACA;EACA,MAAM,SACJ,OAAO,kBAAkB,WACrB;GAAE,GAAI,aAAa,EAAE;GAAG,OAAO;GAAe,GAC7C,iBAAiB,EAAE;AAC1B,QAAM,OAAO;AACb,OAAK,YAAY,2BAAA,2BAA2C;;CAG9D,sBACE,QACwB;AACxB,SAAO,IAAI,YAAY,OAAO"}
@@ -1,6 +1,5 @@
1
- const require_auth = require('./auth.cjs');
1
+ const require_auth = require("./auth.cjs");
2
2
  let _langchain_google_common = require("@langchain/google-common");
3
-
4
3
  //#region src/embeddings.ts
5
4
  /**
6
5
  * Integration with an Google embeddings model.
@@ -17,7 +16,7 @@ var GoogleEmbeddings = class extends _langchain_google_common.BaseGoogleEmbeddin
17
16
  return new require_auth.GAuthClient(fields);
18
17
  }
19
18
  };
20
-
21
19
  //#endregion
22
20
  exports.GoogleEmbeddings = GoogleEmbeddings;
21
+
23
22
  //# sourceMappingURL=embeddings.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"embeddings.cjs","names":["BaseGoogleEmbeddings","GAuthClient"],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleConnectionParams,\n BaseGoogleEmbeddings,\n BaseGoogleEmbeddingsParams,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<GoogleAuthOptions> {}\n\n/**\n * Integration with an Google embeddings model.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<GoogleAuthOptions>\n implements GoogleEmbeddingsInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"GoogleEmbeddings\";\n }\n\n lc_serializable = true;\n\n constructor(fields: GoogleEmbeddingsInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields?: GoogleConnectionParams<GoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;AAiBA,IAAa,mBAAb,cACUA,8CAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAA+B;AACzC,QAAM,OAAO;;CAGf,sBACE,QACwB;AACxB,SAAO,IAAIC,yBAAY,OAAO"}
1
+ {"version":3,"file":"embeddings.cjs","names":["BaseGoogleEmbeddings","GAuthClient"],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleConnectionParams,\n BaseGoogleEmbeddings,\n BaseGoogleEmbeddingsParams,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<GoogleAuthOptions> {}\n\n/**\n * Integration with an Google embeddings model.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<GoogleAuthOptions>\n implements GoogleEmbeddingsInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"GoogleEmbeddings\";\n }\n\n lc_serializable = true;\n\n constructor(fields: GoogleEmbeddingsInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields?: GoogleConnectionParams<GoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;AAiBA,IAAa,mBAAb,cACUA,yBAAAA,qBAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAA+B;AACzC,QAAM,OAAO;;CAGf,sBACE,QACwB;AACxB,SAAO,IAAIC,aAAAA,YAAY,OAAO"}
@@ -1,6 +1,5 @@
1
1
  import { GAuthClient } from "./auth.js";
2
2
  import { BaseGoogleEmbeddings } from "@langchain/google-common";
3
-
4
3
  //#region src/embeddings.ts
5
4
  /**
6
5
  * Integration with an Google embeddings model.
@@ -17,7 +16,7 @@ var GoogleEmbeddings = class extends BaseGoogleEmbeddings {
17
16
  return new GAuthClient(fields);
18
17
  }
19
18
  };
20
-
21
19
  //#endregion
22
20
  export { GoogleEmbeddings };
21
+
23
22
  //# sourceMappingURL=embeddings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"embeddings.js","names":[],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleConnectionParams,\n BaseGoogleEmbeddings,\n BaseGoogleEmbeddingsParams,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<GoogleAuthOptions> {}\n\n/**\n * Integration with an Google embeddings model.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<GoogleAuthOptions>\n implements GoogleEmbeddingsInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"GoogleEmbeddings\";\n }\n\n lc_serializable = true;\n\n constructor(fields: GoogleEmbeddingsInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields?: GoogleConnectionParams<GoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;AAiBA,IAAa,mBAAb,cACU,qBAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAA+B;AACzC,QAAM,OAAO;;CAGf,sBACE,QACwB;AACxB,SAAO,IAAI,YAAY,OAAO"}
1
+ {"version":3,"file":"embeddings.js","names":[],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleConnectionParams,\n BaseGoogleEmbeddings,\n BaseGoogleEmbeddingsParams,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<GoogleAuthOptions> {}\n\n/**\n * Integration with an Google embeddings model.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<GoogleAuthOptions>\n implements GoogleEmbeddingsInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"GoogleEmbeddings\";\n }\n\n lc_serializable = true;\n\n constructor(fields: GoogleEmbeddingsInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields?: GoogleConnectionParams<GoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;AAiBA,IAAa,mBAAb,cACU,qBAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAA+B;AACzC,QAAM,OAAO;;CAGf,sBACE,QACwB;AACxB,SAAO,IAAI,YAAY,OAAO"}
package/dist/index.cjs CHANGED
@@ -1,11 +1,10 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_chat_models = require('./chat_models.cjs');
3
- const require_llms = require('./llms.cjs');
4
- const require_embeddings = require('./embeddings.cjs');
5
- const require_media = require('./media.cjs');
6
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_chat_models = require("./chat_models.cjs");
3
+ const require_llms = require("./llms.cjs");
4
+ const require_embeddings = require("./embeddings.cjs");
5
+ const require_media = require("./media.cjs");
7
6
  exports.BlobStoreAIStudioFile = require_media.BlobStoreAIStudioFile;
8
7
  exports.BlobStoreGoogleCloudStorage = require_media.BlobStoreGoogleCloudStorage;
9
8
  exports.ChatGoogle = require_chat_models.ChatGoogle;
10
9
  exports.GoogleEmbeddings = require_embeddings.GoogleEmbeddings;
11
- exports.GoogleLLM = require_llms.GoogleLLM;
10
+ exports.GoogleLLM = require_llms.GoogleLLM;
package/dist/index.js CHANGED
@@ -2,5 +2,4 @@ import { ChatGoogle } from "./chat_models.js";
2
2
  import { GoogleLLM } from "./llms.js";
3
3
  import { GoogleEmbeddings } from "./embeddings.js";
4
4
  import { BlobStoreAIStudioFile, BlobStoreGoogleCloudStorage } from "./media.js";
5
-
6
- export { BlobStoreAIStudioFile, BlobStoreGoogleCloudStorage, ChatGoogle, GoogleEmbeddings, GoogleLLM };
5
+ export { BlobStoreAIStudioFile, BlobStoreGoogleCloudStorage, ChatGoogle, GoogleEmbeddings, GoogleLLM };
package/dist/llms.cjs CHANGED
@@ -1,6 +1,5 @@
1
- const require_auth = require('./auth.cjs');
1
+ const require_auth = require("./auth.cjs");
2
2
  let _langchain_google_common = require("@langchain/google-common");
3
-
4
3
  //#region src/llms.ts
5
4
  /**
6
5
  * Integration with a Google LLM.
@@ -12,13 +11,13 @@ var GoogleLLM = class extends _langchain_google_common.GoogleBaseLLM {
12
11
  lc_serializable = true;
13
12
  constructor(fields) {
14
13
  super(fields);
15
- this._addVersion("@langchain/google-gauth", "2.1.24");
14
+ this._addVersion("@langchain/google-gauth", "2.1.26-dev-1773698445534");
16
15
  }
17
16
  buildAbstractedClient(fields) {
18
17
  return new require_auth.GAuthClient(fields);
19
18
  }
20
19
  };
21
-
22
20
  //#endregion
23
21
  exports.GoogleLLM = GoogleLLM;
22
+
24
23
  //# sourceMappingURL=llms.cjs.map
package/dist/llms.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"llms.cjs","names":["GoogleBaseLLM","GAuthClient"],"sources":["../src/llms.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleBaseLLM,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {}\n\n/**\n * Integration with a Google LLM.\n */\nexport class GoogleLLM\n extends GoogleBaseLLM<GoogleAuthOptions>\n implements GoogleLLMInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"GoogleLLM\";\n }\n\n lc_serializable = true;\n\n constructor(fields?: GoogleLLMInput) {\n super(fields);\n this._addVersion(\"@langchain/google-gauth\", __PKG_VERSION__);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,YAAb,cACUA,uCAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAAyB;AACnC,QAAM,OAAO;AACb,OAAK,YAAY,oCAA2C;;CAG9D,sBACE,QACwB;AACxB,SAAO,IAAIC,yBAAY,OAAO"}
1
+ {"version":3,"file":"llms.cjs","names":["GoogleBaseLLM","GAuthClient"],"sources":["../src/llms.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleBaseLLM,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {}\n\n/**\n * Integration with a Google LLM.\n */\nexport class GoogleLLM\n extends GoogleBaseLLM<GoogleAuthOptions>\n implements GoogleLLMInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"GoogleLLM\";\n }\n\n lc_serializable = true;\n\n constructor(fields?: GoogleLLMInput) {\n super(fields);\n this._addVersion(\"@langchain/google-gauth\", __PKG_VERSION__);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;AAgBA,IAAa,YAAb,cACUA,yBAAAA,cAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAAyB;AACnC,QAAM,OAAO;AACb,OAAK,YAAY,2BAAA,2BAA2C;;CAG9D,sBACE,QACwB;AACxB,SAAO,IAAIC,aAAAA,YAAY,OAAO"}
package/dist/llms.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { GAuthClient } from "./auth.js";
2
2
  import { GoogleBaseLLM } from "@langchain/google-common";
3
-
4
3
  //#region src/llms.ts
5
4
  /**
6
5
  * Integration with a Google LLM.
@@ -12,13 +11,13 @@ var GoogleLLM = class extends GoogleBaseLLM {
12
11
  lc_serializable = true;
13
12
  constructor(fields) {
14
13
  super(fields);
15
- this._addVersion("@langchain/google-gauth", "2.1.24");
14
+ this._addVersion("@langchain/google-gauth", "2.1.26-dev-1773698445534");
16
15
  }
17
16
  buildAbstractedClient(fields) {
18
17
  return new GAuthClient(fields);
19
18
  }
20
19
  };
21
-
22
20
  //#endregion
23
21
  export { GoogleLLM };
22
+
24
23
  //# sourceMappingURL=llms.js.map
package/dist/llms.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"llms.js","names":[],"sources":["../src/llms.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleBaseLLM,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {}\n\n/**\n * Integration with a Google LLM.\n */\nexport class GoogleLLM\n extends GoogleBaseLLM<GoogleAuthOptions>\n implements GoogleLLMInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"GoogleLLM\";\n }\n\n lc_serializable = true;\n\n constructor(fields?: GoogleLLMInput) {\n super(fields);\n this._addVersion(\"@langchain/google-gauth\", __PKG_VERSION__);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,YAAb,cACU,cAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAAyB;AACnC,QAAM,OAAO;AACb,OAAK,YAAY,oCAA2C;;CAG9D,sBACE,QACwB;AACxB,SAAO,IAAI,YAAY,OAAO"}
1
+ {"version":3,"file":"llms.js","names":[],"sources":["../src/llms.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleBaseLLM,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {}\n\n/**\n * Integration with a Google LLM.\n */\nexport class GoogleLLM\n extends GoogleBaseLLM<GoogleAuthOptions>\n implements GoogleLLMInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"GoogleLLM\";\n }\n\n lc_serializable = true;\n\n constructor(fields?: GoogleLLMInput) {\n super(fields);\n this._addVersion(\"@langchain/google-gauth\", __PKG_VERSION__);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;AAgBA,IAAa,YAAb,cACU,cAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAAyB;AACnC,QAAM,OAAO;AACb,OAAK,YAAY,2BAAA,2BAA2C;;CAG9D,sBACE,QACwB;AACxB,SAAO,IAAI,YAAY,OAAO"}
package/dist/media.cjs CHANGED
@@ -1,6 +1,5 @@
1
- const require_auth = require('./auth.cjs');
1
+ const require_auth = require("./auth.cjs");
2
2
  let _langchain_google_common_experimental_media = require("@langchain/google-common/experimental/media");
3
-
4
3
  //#region src/media.ts
5
4
  var BlobStoreGoogleCloudStorage = class extends _langchain_google_common_experimental_media.BlobStoreGoogleCloudStorageBase {
6
5
  buildClient(fields) {
@@ -12,8 +11,8 @@ var BlobStoreAIStudioFile = class extends _langchain_google_common_experimental_
12
11
  return new require_auth.GAuthClient(fields);
13
12
  }
14
13
  };
15
-
16
14
  //#endregion
17
15
  exports.BlobStoreAIStudioFile = BlobStoreAIStudioFile;
18
16
  exports.BlobStoreGoogleCloudStorage = BlobStoreGoogleCloudStorage;
17
+
19
18
  //# sourceMappingURL=media.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"media.cjs","names":["BlobStoreGoogleCloudStorageBase","GAuthClient","BlobStoreAIStudioFileBase"],"sources":["../src/media.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport {\n BlobStoreGoogleCloudStorageBase,\n BlobStoreGoogleCloudStorageBaseParams,\n BlobStoreAIStudioFileBase,\n BlobStoreAIStudioFileBaseParams,\n} from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\nexport interface BlobStoreGoogleCloudStorageParams extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(\n fields?: BlobStoreGoogleCloudStorageParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n\nexport interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(\n fields?: BlobStoreAIStudioFileParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;AAYA,IAAa,8BAAb,cAAiDA,4EAAmD;CAClG,YACE,QACwB;AACxB,SAAO,IAAIC,yBAAY,OAAO;;;AAMlC,IAAa,wBAAb,cAA2CC,sEAA6C;CACtF,sBACE,QACwB;AACxB,SAAO,IAAID,yBAAY,OAAO"}
1
+ {"version":3,"file":"media.cjs","names":["BlobStoreGoogleCloudStorageBase","GAuthClient","BlobStoreAIStudioFileBase"],"sources":["../src/media.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport {\n BlobStoreGoogleCloudStorageBase,\n BlobStoreGoogleCloudStorageBaseParams,\n BlobStoreAIStudioFileBase,\n BlobStoreAIStudioFileBaseParams,\n} from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\nexport interface BlobStoreGoogleCloudStorageParams extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(\n fields?: BlobStoreGoogleCloudStorageParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n\nexport interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(\n fields?: BlobStoreAIStudioFileParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;AAYA,IAAa,8BAAb,cAAiDA,4CAAAA,gCAAmD;CAClG,YACE,QACwB;AACxB,SAAO,IAAIC,aAAAA,YAAY,OAAO;;;AAMlC,IAAa,wBAAb,cAA2CC,4CAAAA,0BAA6C;CACtF,sBACE,QACwB;AACxB,SAAO,IAAID,aAAAA,YAAY,OAAO"}
package/dist/media.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { GAuthClient } from "./auth.js";
2
2
  import { BlobStoreAIStudioFileBase, BlobStoreGoogleCloudStorageBase } from "@langchain/google-common/experimental/media";
3
-
4
3
  //#region src/media.ts
5
4
  var BlobStoreGoogleCloudStorage = class extends BlobStoreGoogleCloudStorageBase {
6
5
  buildClient(fields) {
@@ -12,7 +11,7 @@ var BlobStoreAIStudioFile = class extends BlobStoreAIStudioFileBase {
12
11
  return new GAuthClient(fields);
13
12
  }
14
13
  };
15
-
16
14
  //#endregion
17
15
  export { BlobStoreAIStudioFile, BlobStoreGoogleCloudStorage };
16
+
18
17
  //# sourceMappingURL=media.js.map
package/dist/media.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"media.js","names":[],"sources":["../src/media.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport {\n BlobStoreGoogleCloudStorageBase,\n BlobStoreGoogleCloudStorageBaseParams,\n BlobStoreAIStudioFileBase,\n BlobStoreAIStudioFileBaseParams,\n} from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\nexport interface BlobStoreGoogleCloudStorageParams extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(\n fields?: BlobStoreGoogleCloudStorageParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n\nexport interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(\n fields?: BlobStoreAIStudioFileParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;AAYA,IAAa,8BAAb,cAAiD,gCAAmD;CAClG,YACE,QACwB;AACxB,SAAO,IAAI,YAAY,OAAO;;;AAMlC,IAAa,wBAAb,cAA2C,0BAA6C;CACtF,sBACE,QACwB;AACxB,SAAO,IAAI,YAAY,OAAO"}
1
+ {"version":3,"file":"media.js","names":[],"sources":["../src/media.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport {\n BlobStoreGoogleCloudStorageBase,\n BlobStoreGoogleCloudStorageBaseParams,\n BlobStoreAIStudioFileBase,\n BlobStoreAIStudioFileBaseParams,\n} from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\nexport interface BlobStoreGoogleCloudStorageParams extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(\n fields?: BlobStoreGoogleCloudStorageParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n\nexport interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(\n fields?: BlobStoreAIStudioFileParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;AAYA,IAAa,8BAAb,cAAiD,gCAAmD;CAClG,YACE,QACwB;AACxB,SAAO,IAAI,YAAY,OAAO;;;AAMlC,IAAa,wBAAb,cAA2C,0BAA6C;CACtF,sBACE,QACwB;AACxB,SAAO,IAAI,YAAY,OAAO"}
package/dist/types.cjs CHANGED
@@ -1,9 +1,9 @@
1
-
2
-
3
1
  var _langchain_google_common_types = require("@langchain/google-common/types");
4
- Object.keys(_langchain_google_common_types).forEach(function (k) {
5
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
- enumerable: true,
7
- get: function () { return _langchain_google_common_types[k]; }
8
- });
2
+ Object.keys(_langchain_google_common_types).forEach(function(k) {
3
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
4
+ enumerable: true,
5
+ get: function() {
6
+ return _langchain_google_common_types[k];
7
+ }
8
+ });
9
9
  });
package/dist/types.js CHANGED
@@ -1,3 +1,2 @@
1
- export * from "@langchain/google-common/types"
2
-
3
- export { };
1
+ export * from "@langchain/google-common/types";
2
+ export {};
package/dist/utils.cjs CHANGED
@@ -1,9 +1,9 @@
1
-
2
-
3
1
  var _langchain_google_common_utils = require("@langchain/google-common/utils");
4
- Object.keys(_langchain_google_common_utils).forEach(function (k) {
5
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
- enumerable: true,
7
- get: function () { return _langchain_google_common_utils[k]; }
8
- });
2
+ Object.keys(_langchain_google_common_utils).forEach(function(k) {
3
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
4
+ enumerable: true,
5
+ get: function() {
6
+ return _langchain_google_common_utils[k];
7
+ }
8
+ });
9
9
  });
package/dist/utils.js CHANGED
@@ -1,3 +1,2 @@
1
- export * from "@langchain/google-common/utils"
2
-
3
- export { };
1
+ export * from "@langchain/google-common/utils";
2
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-gauth",
3
- "version": "2.1.24",
3
+ "version": "2.1.26-dev-1773698445534",
4
4
  "description": "Google auth based authentication support for Google services",
5
5
  "author": "LangChain",
6
6
  "license": "MIT",
@@ -12,24 +12,19 @@
12
12
  "type": "git",
13
13
  "url": "git@github.com:langchain-ai/langchainjs.git"
14
14
  },
15
- "homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-google-gauth/",
15
+ "homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/providers/langchain-google-gauth/",
16
16
  "dependencies": {
17
17
  "google-auth-library": "^10.1.0",
18
- "@langchain/google-common": "2.1.24"
18
+ "@langchain/google-common": "2.1.26-dev-1773698445534"
19
19
  },
20
20
  "devDependencies": {
21
- "@jest/globals": "^30.2.0",
22
- "@swc/core": "^1.15.13",
23
- "@swc/jest": "^0.2.29",
24
21
  "@tsconfig/recommended": "^1.0.3",
25
22
  "dotenv": "^16.3.1",
26
23
  "dpdm": "^3.14.0",
27
24
  "eslint": "^9.34.0",
28
- "jest": "^30.2.0",
29
- "jest-environment-node": "^30.2.0",
30
25
  "prettier": "^3.5.0",
31
- "ts-jest": "^29.4.6",
32
26
  "typescript": "~5.8.3",
27
+ "vitest": "^3.2.4",
33
28
  "zod": "^3.25.76",
34
29
  "@langchain/tsconfig": "0.0.1",
35
30
  "@langchain/eslint": "0.1.1"
@@ -90,12 +85,12 @@
90
85
  "lint": "pnpm lint:eslint && pnpm lint:dpdm",
91
86
  "lint:fix": "pnpm lint:eslint --fix && pnpm lint:dpdm",
92
87
  "clean": "rm -rf .turbo dist/",
93
- "test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
94
- "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
95
- "test:single": "NODE_OPTIONS=--experimental-vm-modules pnpm run jest --config jest.config.cjs --testTimeout 100000",
96
- "test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPatterns=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
97
- "test:standard:unit": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPatterns=\\.standard\\.test.ts --testTimeout 100000 --maxWorkers=50%",
98
- "test:standard:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPatterns=\\.standard\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
88
+ "test": "vitest run",
89
+ "test:watch": "vitest",
90
+ "test:single": "vitest run",
91
+ "test:int": "vitest run --mode int",
92
+ "test:standard:unit": "vitest run --mode standard-unit",
93
+ "test:standard:int": "vitest run --mode standard-int",
99
94
  "test:standard": "pnpm test:standard:unit && pnpm test:standard:int",
100
95
  "format": "prettier --write \"src\"",
101
96
  "format:check": "prettier --check \"src\""