@langchain/google-webauth 2.1.18 → 2.1.19

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,13 @@
1
1
  # @langchain/google-webauth
2
2
 
3
+ ## 2.1.19
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`27186c5`](https://github.com/langchain-ai/langchainjs/commit/27186c54884cfe7c2522fa50b42c3ca0ccaefdba), [`05396f7`](https://github.com/langchain-ai/langchainjs/commit/05396f7ce0a91c49a3bae4bbcd3dbdd6cbd18089), [`5a6f26b`](https://github.com/langchain-ai/langchainjs/commit/5a6f26bbaed80195dc538c538b96219a8b03f38f), [`7be50a7`](https://github.com/langchain-ai/langchainjs/commit/7be50a7014d7622e0ab8d303dfc9c633ebc96333)]:
8
+ - @langchain/core@1.1.25
9
+ - @langchain/google-common@2.1.19
10
+
3
11
  ## 2.1.18
4
12
 
5
13
  ### Patch Changes
package/dist/auth.cjs CHANGED
@@ -1,18 +1,17 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
- const __langchain_google_common = require_rolldown_runtime.__toESM(require("@langchain/google-common"));
3
- const __langchain_core_utils_env = require_rolldown_runtime.__toESM(require("@langchain/core/utils/env"));
4
- const web_auth_library_google = require_rolldown_runtime.__toESM(require("web-auth-library/google"));
1
+ let _langchain_google_common = require("@langchain/google-common");
2
+ let _langchain_core_utils_env = require("@langchain/core/utils/env");
3
+ let web_auth_library_google = require("web-auth-library/google");
5
4
 
6
5
  //#region src/auth.ts
7
- var WebGoogleAuth = class extends __langchain_google_common.GoogleAbstractedFetchClient {
6
+ var WebGoogleAuth = class extends _langchain_google_common.GoogleAbstractedFetchClient {
8
7
  options;
9
8
  constructor(fields) {
10
9
  super();
11
10
  const options = fields?.authOptions;
12
11
  const accessToken = options?.accessToken;
13
- const credentials = options?.credentials ?? (0, __langchain_core_utils_env.getEnvironmentVariable)("GOOGLE_WEB_CREDENTIALS") ?? (0, __langchain_core_utils_env.getEnvironmentVariable)("GOOGLE_VERTEX_AI_WEB_CREDENTIALS");
12
+ const credentials = options?.credentials ?? (0, _langchain_core_utils_env.getEnvironmentVariable)("GOOGLE_WEB_CREDENTIALS") ?? (0, _langchain_core_utils_env.getEnvironmentVariable)("GOOGLE_VERTEX_AI_WEB_CREDENTIALS");
14
13
  if (credentials === void 0) throw new Error(`Credentials not found. Please set the GOOGLE_WEB_CREDENTIALS environment variable or pass credentials into "authOptions.credentials".`);
15
- this.options = (0, __langchain_google_common.ensureAuthOptionScopes)({
14
+ this.options = (0, _langchain_google_common.ensureAuthOptionScopes)({
16
15
  ...options,
17
16
  accessToken,
18
17
  credentials
@@ -22,8 +21,7 @@ var WebGoogleAuth = class extends __langchain_google_common.GoogleAbstractedFetc
22
21
  return "webauth";
23
22
  }
24
23
  async getProjectId() {
25
- const credentials = (0, web_auth_library_google.getCredentials)(this.options.credentials);
26
- return credentials.project_id;
24
+ return (0, web_auth_library_google.getCredentials)(this.options.credentials).project_id;
27
25
  }
28
26
  async request(opts) {
29
27
  let { accessToken } = this.options;
package/dist/auth.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"auth.cjs","names":["GoogleAbstractedFetchClient","fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined","opts: GoogleAbstractedClientOps"],"sources":["../src/auth.ts"],"sourcesContent":["import { getEnvironmentVariable } from \"@langchain/core/utils/env\";\nimport {\n ensureAuthOptionScopes,\n GoogleAbstractedClientOps,\n GoogleAbstractedFetchClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport {\n getAccessToken,\n getCredentials,\n Credentials,\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore CJS type resolution workaround\n} from \"web-auth-library/google\";\n\nexport type WebGoogleAuthOptions = {\n credentials: string | Credentials;\n scope?: string | string[];\n accessToken?: string;\n responseModality?: string;\n};\n\nexport class WebGoogleAuth extends GoogleAbstractedFetchClient {\n options: WebGoogleAuthOptions;\n\n constructor(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined) {\n super();\n\n const options = fields?.authOptions;\n const accessToken = options?.accessToken;\n\n const credentials =\n options?.credentials ??\n getEnvironmentVariable(\"GOOGLE_WEB_CREDENTIALS\") ??\n getEnvironmentVariable(\"GOOGLE_VERTEX_AI_WEB_CREDENTIALS\");\n if (credentials === undefined)\n throw new Error(\n `Credentials not found. Please set the GOOGLE_WEB_CREDENTIALS environment variable or pass credentials into \"authOptions.credentials\".`\n );\n\n this.options = ensureAuthOptionScopes<WebGoogleAuthOptions>(\n { ...options, accessToken, credentials },\n \"scope\",\n fields?.platformType\n );\n }\n\n get clientType(): string {\n return \"webauth\";\n }\n\n async getProjectId(): Promise<string> {\n const credentials = getCredentials(this.options.credentials);\n return credentials.project_id;\n }\n\n async request(opts: GoogleAbstractedClientOps): Promise<unknown> {\n let { accessToken } = this.options;\n\n if (accessToken === undefined) {\n accessToken = await getAccessToken(this.options);\n }\n\n const authHeader = {\n Authorization: `Bearer ${accessToken}`,\n };\n return this._request(opts?.url, opts, authHeader);\n }\n}\n"],"mappings":";;;;;;AAsBA,IAAa,gBAAb,cAAmCA,sDAA4B;CAC7D;CAEA,YAAYC,QAA8D;EACxE,OAAO;EAEP,MAAM,UAAU,QAAQ;EACxB,MAAM,cAAc,SAAS;EAE7B,MAAM,cACJ,SAAS,sEACc,yBAAyB,2DACzB,mCAAmC;AAC5D,MAAI,gBAAgB,OAClB,OAAM,IAAI,MACR,CAAC,qIAAqI,CAAC;EAG3I,KAAK,gEACH;GAAE,GAAG;GAAS;GAAa;EAAa,GACxC,SACA,QAAQ,aACT;CACF;CAED,IAAI,aAAqB;AACvB,SAAO;CACR;CAED,MAAM,eAAgC;EACpC,MAAM,0DAA6B,KAAK,QAAQ,YAAY;AAC5D,SAAO,YAAY;CACpB;CAED,MAAM,QAAQC,MAAmD;EAC/D,IAAI,EAAE,aAAa,GAAG,KAAK;AAE3B,MAAI,gBAAgB,QAClB,cAAc,kDAAqB,KAAK,QAAQ;EAGlD,MAAM,aAAa,EACjB,eAAe,CAAC,OAAO,EAAE,aAAa,CACvC;AACD,SAAO,KAAK,SAAS,MAAM,KAAK,MAAM,WAAW;CAClD;AACF"}
1
+ {"version":3,"file":"auth.cjs","names":["GoogleAbstractedFetchClient"],"sources":["../src/auth.ts"],"sourcesContent":["import { getEnvironmentVariable } from \"@langchain/core/utils/env\";\nimport {\n ensureAuthOptionScopes,\n GoogleAbstractedClientOps,\n GoogleAbstractedFetchClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport {\n getAccessToken,\n getCredentials,\n Credentials,\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore CJS type resolution workaround\n} from \"web-auth-library/google\";\n\nexport type WebGoogleAuthOptions = {\n credentials: string | Credentials;\n scope?: string | string[];\n accessToken?: string;\n responseModality?: string;\n};\n\nexport class WebGoogleAuth extends GoogleAbstractedFetchClient {\n options: WebGoogleAuthOptions;\n\n constructor(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined) {\n super();\n\n const options = fields?.authOptions;\n const accessToken = options?.accessToken;\n\n const credentials =\n options?.credentials ??\n getEnvironmentVariable(\"GOOGLE_WEB_CREDENTIALS\") ??\n getEnvironmentVariable(\"GOOGLE_VERTEX_AI_WEB_CREDENTIALS\");\n if (credentials === undefined)\n throw new Error(\n `Credentials not found. Please set the GOOGLE_WEB_CREDENTIALS environment variable or pass credentials into \"authOptions.credentials\".`\n );\n\n this.options = ensureAuthOptionScopes<WebGoogleAuthOptions>(\n { ...options, accessToken, credentials },\n \"scope\",\n fields?.platformType\n );\n }\n\n get clientType(): string {\n return \"webauth\";\n }\n\n async getProjectId(): Promise<string> {\n const credentials = getCredentials(this.options.credentials);\n return credentials.project_id;\n }\n\n async request(opts: GoogleAbstractedClientOps): Promise<unknown> {\n let { accessToken } = this.options;\n\n if (accessToken === undefined) {\n accessToken = await getAccessToken(this.options);\n }\n\n const authHeader = {\n Authorization: `Bearer ${accessToken}`,\n };\n return this._request(opts?.url, opts, authHeader);\n }\n}\n"],"mappings":";;;;;AAsBA,IAAa,gBAAb,cAAmCA,qDAA4B;CAC7D;CAEA,YAAY,QAA8D;AACxE,SAAO;EAEP,MAAM,UAAU,QAAQ;EACxB,MAAM,cAAc,SAAS;EAE7B,MAAM,cACJ,SAAS,qEACc,yBAAyB,0DACzB,mCAAmC;AAC5D,MAAI,gBAAgB,OAClB,OAAM,IAAI,MACR,wIACD;AAEH,OAAK,+DACH;GAAE,GAAG;GAAS;GAAa;GAAa,EACxC,SACA,QAAQ,aACT;;CAGH,IAAI,aAAqB;AACvB,SAAO;;CAGT,MAAM,eAAgC;AAEpC,qDADmC,KAAK,QAAQ,YAAY,CACzC;;CAGrB,MAAM,QAAQ,MAAmD;EAC/D,IAAI,EAAE,gBAAgB,KAAK;AAE3B,MAAI,gBAAgB,OAClB,eAAc,kDAAqB,KAAK,QAAQ;EAGlD,MAAM,aAAa,EACjB,eAAe,UAAU,eAC1B;AACD,SAAO,KAAK,SAAS,MAAM,KAAK,MAAM,WAAW"}
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.cts","names":["GoogleAbstractedClientOps","GoogleAbstractedFetchClient","GoogleBaseLLMInput","Credentials","WebGoogleAuthOptions","WebGoogleAuth","Promise"],"sources":["../src/auth.d.ts"],"sourcesContent":["import { GoogleAbstractedClientOps, GoogleAbstractedFetchClient, GoogleBaseLLMInput } from \"@langchain/google-common\";\nimport { Credentials } from \"web-auth-library/google\";\nexport type WebGoogleAuthOptions = {\n credentials: string | Credentials;\n scope?: string | string[];\n accessToken?: string;\n responseModality?: string;\n};\nexport declare class WebGoogleAuth extends GoogleAbstractedFetchClient {\n options: WebGoogleAuthOptions;\n constructor(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined);\n get clientType(): string;\n getProjectId(): Promise<string>;\n request(opts: GoogleAbstractedClientOps): Promise<unknown>;\n}\n//# sourceMappingURL=auth.d.ts.map"],"mappings":";;;;KAEYI,oBAAAA;wBACcD;EADdC,KAAAA,CAAAA,EAAAA,MAAAA,GAAAA,MAAoB,EAAA"}
1
+ {"version":3,"file":"auth.d.cts","names":[],"sources":["../src/auth.ts"],"mappings":";;;;KAeY,oBAAA;EACV,WAAA,WAAsB,WAAA;EACtB,KAAA;EACA,WAAA;EACA,gBAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","names":["GoogleAbstractedClientOps","GoogleAbstractedFetchClient","GoogleBaseLLMInput","Credentials","WebGoogleAuthOptions","WebGoogleAuth","Promise"],"sources":["../src/auth.d.ts"],"sourcesContent":["import { GoogleAbstractedClientOps, GoogleAbstractedFetchClient, GoogleBaseLLMInput } from \"@langchain/google-common\";\nimport { Credentials } from \"web-auth-library/google\";\nexport type WebGoogleAuthOptions = {\n credentials: string | Credentials;\n scope?: string | string[];\n accessToken?: string;\n responseModality?: string;\n};\nexport declare class WebGoogleAuth extends GoogleAbstractedFetchClient {\n options: WebGoogleAuthOptions;\n constructor(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined);\n get clientType(): string;\n getProjectId(): Promise<string>;\n request(opts: GoogleAbstractedClientOps): Promise<unknown>;\n}\n//# sourceMappingURL=auth.d.ts.map"],"mappings":";;;;KAEYI,oBAAAA;wBACcD;EADdC,KAAAA,CAAAA,EAAAA,MAAAA,GAAAA,MAAoB,EAAA"}
1
+ {"version":3,"file":"auth.d.ts","names":[],"sources":["../src/auth.ts"],"mappings":";;;;KAeY,oBAAA;EACV,WAAA,WAAsB,WAAA;EACtB,KAAA;EACA,WAAA;EACA,gBAAA;AAAA"}
package/dist/auth.js CHANGED
@@ -21,8 +21,7 @@ var WebGoogleAuth = class extends GoogleAbstractedFetchClient {
21
21
  return "webauth";
22
22
  }
23
23
  async getProjectId() {
24
- const credentials = getCredentials(this.options.credentials);
25
- return credentials.project_id;
24
+ return getCredentials(this.options.credentials).project_id;
26
25
  }
27
26
  async request(opts) {
28
27
  let { accessToken } = this.options;
package/dist/auth.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","names":["fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined","opts: GoogleAbstractedClientOps"],"sources":["../src/auth.ts"],"sourcesContent":["import { getEnvironmentVariable } from \"@langchain/core/utils/env\";\nimport {\n ensureAuthOptionScopes,\n GoogleAbstractedClientOps,\n GoogleAbstractedFetchClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport {\n getAccessToken,\n getCredentials,\n Credentials,\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore CJS type resolution workaround\n} from \"web-auth-library/google\";\n\nexport type WebGoogleAuthOptions = {\n credentials: string | Credentials;\n scope?: string | string[];\n accessToken?: string;\n responseModality?: string;\n};\n\nexport class WebGoogleAuth extends GoogleAbstractedFetchClient {\n options: WebGoogleAuthOptions;\n\n constructor(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined) {\n super();\n\n const options = fields?.authOptions;\n const accessToken = options?.accessToken;\n\n const credentials =\n options?.credentials ??\n getEnvironmentVariable(\"GOOGLE_WEB_CREDENTIALS\") ??\n getEnvironmentVariable(\"GOOGLE_VERTEX_AI_WEB_CREDENTIALS\");\n if (credentials === undefined)\n throw new Error(\n `Credentials not found. Please set the GOOGLE_WEB_CREDENTIALS environment variable or pass credentials into \"authOptions.credentials\".`\n );\n\n this.options = ensureAuthOptionScopes<WebGoogleAuthOptions>(\n { ...options, accessToken, credentials },\n \"scope\",\n fields?.platformType\n );\n }\n\n get clientType(): string {\n return \"webauth\";\n }\n\n async getProjectId(): Promise<string> {\n const credentials = getCredentials(this.options.credentials);\n return credentials.project_id;\n }\n\n async request(opts: GoogleAbstractedClientOps): Promise<unknown> {\n let { accessToken } = this.options;\n\n if (accessToken === undefined) {\n accessToken = await getAccessToken(this.options);\n }\n\n const authHeader = {\n Authorization: `Bearer ${accessToken}`,\n };\n return this._request(opts?.url, opts, authHeader);\n }\n}\n"],"mappings":";;;;;AAsBA,IAAa,gBAAb,cAAmC,4BAA4B;CAC7D;CAEA,YAAYA,QAA8D;EACxE,OAAO;EAEP,MAAM,UAAU,QAAQ;EACxB,MAAM,cAAc,SAAS;EAE7B,MAAM,cACJ,SAAS,eACT,uBAAuB,yBAAyB,IAChD,uBAAuB,mCAAmC;AAC5D,MAAI,gBAAgB,OAClB,OAAM,IAAI,MACR,CAAC,qIAAqI,CAAC;EAG3I,KAAK,UAAU,uBACb;GAAE,GAAG;GAAS;GAAa;EAAa,GACxC,SACA,QAAQ,aACT;CACF;CAED,IAAI,aAAqB;AACvB,SAAO;CACR;CAED,MAAM,eAAgC;EACpC,MAAM,cAAc,eAAe,KAAK,QAAQ,YAAY;AAC5D,SAAO,YAAY;CACpB;CAED,MAAM,QAAQC,MAAmD;EAC/D,IAAI,EAAE,aAAa,GAAG,KAAK;AAE3B,MAAI,gBAAgB,QAClB,cAAc,MAAM,eAAe,KAAK,QAAQ;EAGlD,MAAM,aAAa,EACjB,eAAe,CAAC,OAAO,EAAE,aAAa,CACvC;AACD,SAAO,KAAK,SAAS,MAAM,KAAK,MAAM,WAAW;CAClD;AACF"}
1
+ {"version":3,"file":"auth.js","names":[],"sources":["../src/auth.ts"],"sourcesContent":["import { getEnvironmentVariable } from \"@langchain/core/utils/env\";\nimport {\n ensureAuthOptionScopes,\n GoogleAbstractedClientOps,\n GoogleAbstractedFetchClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport {\n getAccessToken,\n getCredentials,\n Credentials,\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore CJS type resolution workaround\n} from \"web-auth-library/google\";\n\nexport type WebGoogleAuthOptions = {\n credentials: string | Credentials;\n scope?: string | string[];\n accessToken?: string;\n responseModality?: string;\n};\n\nexport class WebGoogleAuth extends GoogleAbstractedFetchClient {\n options: WebGoogleAuthOptions;\n\n constructor(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined) {\n super();\n\n const options = fields?.authOptions;\n const accessToken = options?.accessToken;\n\n const credentials =\n options?.credentials ??\n getEnvironmentVariable(\"GOOGLE_WEB_CREDENTIALS\") ??\n getEnvironmentVariable(\"GOOGLE_VERTEX_AI_WEB_CREDENTIALS\");\n if (credentials === undefined)\n throw new Error(\n `Credentials not found. Please set the GOOGLE_WEB_CREDENTIALS environment variable or pass credentials into \"authOptions.credentials\".`\n );\n\n this.options = ensureAuthOptionScopes<WebGoogleAuthOptions>(\n { ...options, accessToken, credentials },\n \"scope\",\n fields?.platformType\n );\n }\n\n get clientType(): string {\n return \"webauth\";\n }\n\n async getProjectId(): Promise<string> {\n const credentials = getCredentials(this.options.credentials);\n return credentials.project_id;\n }\n\n async request(opts: GoogleAbstractedClientOps): Promise<unknown> {\n let { accessToken } = this.options;\n\n if (accessToken === undefined) {\n accessToken = await getAccessToken(this.options);\n }\n\n const authHeader = {\n Authorization: `Bearer ${accessToken}`,\n };\n return this._request(opts?.url, opts, authHeader);\n }\n}\n"],"mappings":";;;;;AAsBA,IAAa,gBAAb,cAAmC,4BAA4B;CAC7D;CAEA,YAAY,QAA8D;AACxE,SAAO;EAEP,MAAM,UAAU,QAAQ;EACxB,MAAM,cAAc,SAAS;EAE7B,MAAM,cACJ,SAAS,eACT,uBAAuB,yBAAyB,IAChD,uBAAuB,mCAAmC;AAC5D,MAAI,gBAAgB,OAClB,OAAM,IAAI,MACR,wIACD;AAEH,OAAK,UAAU,uBACb;GAAE,GAAG;GAAS;GAAa;GAAa,EACxC,SACA,QAAQ,aACT;;CAGH,IAAI,aAAqB;AACvB,SAAO;;CAGT,MAAM,eAAgC;AAEpC,SADoB,eAAe,KAAK,QAAQ,YAAY,CACzC;;CAGrB,MAAM,QAAQ,MAAmD;EAC/D,IAAI,EAAE,gBAAgB,KAAK;AAE3B,MAAI,gBAAgB,OAClB,eAAc,MAAM,eAAe,KAAK,QAAQ;EAGlD,MAAM,aAAa,EACjB,eAAe,UAAU,eAC1B;AACD,SAAO,KAAK,SAAS,MAAM,KAAK,MAAM,WAAW"}
@@ -1,12 +1,11 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
1
  const require_auth = require('./auth.cjs');
3
- const __langchain_google_common = require_rolldown_runtime.__toESM(require("@langchain/google-common"));
2
+ let _langchain_google_common = require("@langchain/google-common");
4
3
 
5
4
  //#region src/chat_models.ts
6
5
  /**
7
6
  * Integration with a chat model.
8
7
  */
9
- var ChatGoogle = class extends __langchain_google_common.ChatGoogleBase {
8
+ var ChatGoogle = class extends _langchain_google_common.ChatGoogleBase {
10
9
  static lc_name() {
11
10
  return "ChatGoogle";
12
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"chat_models.cjs","names":["ChatGoogleBase","fields?: ChatGoogleInput","fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined","WebGoogleAuth"],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with a chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<WebGoogleAuthOptions>\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(fields?: ChatGoogleInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;;AAgBA,IAAa,aAAb,cACUA,yCAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,YAAYC,QAA0B;EACpC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAIC,2BAAc;CAC1B;AACF"}
1
+ {"version":3,"file":"chat_models.cjs","names":["ChatGoogleBase","WebGoogleAuth"],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with a chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<WebGoogleAuthOptions>\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(fields?: ChatGoogleInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,aAAb,cACUA,wCAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,YAAY,QAA0B;AACpC,QAAM,OAAO;;CAGf,sBACE,QACwB;AACxB,SAAO,IAAIC,2BAAc,OAAO"}
@@ -2,7 +2,6 @@ import { WebGoogleAuthOptions } from "./auth.cjs";
2
2
  import { ChatGoogleBase, ChatGoogleBaseInput, GoogleAbstractedClient, GoogleBaseLLMInput } from "@langchain/google-common";
3
3
 
4
4
  //#region src/chat_models.d.ts
5
-
6
5
  /**
7
6
  * Input to chat model class.
8
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"chat_models.d.cts","names":["ChatGoogleBase","ChatGoogleBaseInput","GoogleAbstractedClient","GoogleBaseLLMInput","WebGoogleAuthOptions","ChatGoogleInput","ChatGoogle"],"sources":["../src/chat_models.d.ts"],"sourcesContent":["import { ChatGoogleBase, ChatGoogleBaseInput, GoogleAbstractedClient, GoogleBaseLLMInput } from \"@langchain/google-common\";\nimport { WebGoogleAuthOptions } from \"./auth.js\";\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {\n}\n/**\n * Integration with a chat model.\n */\nexport declare class ChatGoogle extends ChatGoogleBase<WebGoogleAuthOptions> implements ChatGoogleInput {\n static lc_name(): string;\n constructor(fields?: ChatGoogleInput);\n buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n//# sourceMappingURL=chat_models.d.ts.map"],"mappings":";;;;;;;AAKA;AAKqBM,UALJD,eAAAA,SAAwBJ,mBAKV,CAL8BG,oBAK9B,CAAA,CAAA;;;;AAG0DF,cAHpEI,UAAAA,SAAmBN,cAGiDE,CAHlCE,oBAGkCF,CAAAA,YAHDG,eAGCH,CAAAA;EAHjDF,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAgDK,WAAAA,CAAAA,MAAAA,CAAAA,EAE/DA,eAF+DA;EAAe,qBAAA,CAAA,MAAA,EAGrEF,kBAHqE,CAGlDC,oBAHkD,CAAA,GAAA,SAAA,CAAA,EAGdF,sBAHc"}
1
+ {"version":3,"file":"chat_models.d.cts","names":[],"sources":["../src/chat_models.ts"],"mappings":";;;;;;AAWA;UAAiB,eAAA,SAAwB,mBAAA,CAAoB,oBAAA;;;AAK7D;cAAa,UAAA,SACH,cAAA,CAAe,oBAAA,aACZ,eAAA;EAAA,OAGJ,OAAA,CAAA;EAIP,WAAA,CAAY,MAAA,GAAS,eAAA;EAIrB,qBAAA,CACE,MAAA,EAAQ,kBAAA,CAAmB,oBAAA,gBAC1B,sBAAA;AAAA"}
@@ -2,7 +2,6 @@ import { WebGoogleAuthOptions } from "./auth.js";
2
2
  import { ChatGoogleBase, ChatGoogleBaseInput, GoogleAbstractedClient, GoogleBaseLLMInput } from "@langchain/google-common";
3
3
 
4
4
  //#region src/chat_models.d.ts
5
-
6
5
  /**
7
6
  * Input to chat model class.
8
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"chat_models.d.ts","names":["ChatGoogleBase","ChatGoogleBaseInput","GoogleAbstractedClient","GoogleBaseLLMInput","WebGoogleAuthOptions","ChatGoogleInput","ChatGoogle"],"sources":["../src/chat_models.d.ts"],"sourcesContent":["import { ChatGoogleBase, ChatGoogleBaseInput, GoogleAbstractedClient, GoogleBaseLLMInput } from \"@langchain/google-common\";\nimport { WebGoogleAuthOptions } from \"./auth.js\";\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {\n}\n/**\n * Integration with a chat model.\n */\nexport declare class ChatGoogle extends ChatGoogleBase<WebGoogleAuthOptions> implements ChatGoogleInput {\n static lc_name(): string;\n constructor(fields?: ChatGoogleInput);\n buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n//# sourceMappingURL=chat_models.d.ts.map"],"mappings":";;;;;;;AAKA;AAKqBM,UALJD,eAAAA,SAAwBJ,mBAKV,CAL8BG,oBAK9B,CAAA,CAAA;;;;AAG0DF,cAHpEI,UAAAA,SAAmBN,cAGiDE,CAHlCE,oBAGkCF,CAAAA,YAHDG,eAGCH,CAAAA;EAHjDF,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAgDK,WAAAA,CAAAA,MAAAA,CAAAA,EAE/DA,eAF+DA;EAAe,qBAAA,CAAA,MAAA,EAGrEF,kBAHqE,CAGlDC,oBAHkD,CAAA,GAAA,SAAA,CAAA,EAGdF,sBAHc"}
1
+ {"version":3,"file":"chat_models.d.ts","names":[],"sources":["../src/chat_models.ts"],"mappings":";;;;;;AAWA;UAAiB,eAAA,SAAwB,mBAAA,CAAoB,oBAAA;;;AAK7D;cAAa,UAAA,SACH,cAAA,CAAe,oBAAA,aACZ,eAAA;EAAA,OAGJ,OAAA,CAAA;EAIP,WAAA,CAAY,MAAA,GAAS,eAAA;EAIrB,qBAAA,CACE,MAAA,EAAQ,kBAAA,CAAmB,oBAAA,gBAC1B,sBAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"chat_models.js","names":["fields?: ChatGoogleInput","fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined"],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with a chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<WebGoogleAuthOptions>\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(fields?: ChatGoogleInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,aAAb,cACU,eAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,YAAYA,QAA0B;EACpC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAI,cAAc;CAC1B;AACF"}
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 { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with a chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<WebGoogleAuthOptions>\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(fields?: ChatGoogleInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,aAAb,cACU,eAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,YAAY,QAA0B;AACpC,QAAM,OAAO;;CAGf,sBACE,QACwB;AACxB,SAAO,IAAI,cAAc,OAAO"}
@@ -1,12 +1,11 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
1
  const require_auth = require('./auth.cjs');
3
- const __langchain_google_common = require_rolldown_runtime.__toESM(require("@langchain/google-common"));
2
+ let _langchain_google_common = require("@langchain/google-common");
4
3
 
5
4
  //#region src/embeddings.ts
6
5
  /**
7
6
  * Integration with an LLM.
8
7
  */
9
- var GoogleEmbeddings = class extends __langchain_google_common.BaseGoogleEmbeddings {
8
+ var GoogleEmbeddings = class extends _langchain_google_common.BaseGoogleEmbeddings {
10
9
  static lc_name() {
11
10
  return "GoogleEmbeddings";
12
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"embeddings.cjs","names":["BaseGoogleEmbeddings","fields: GoogleEmbeddingsInput","fields?: GoogleConnectionParams<WebGoogleAuthOptions>","WebGoogleAuth"],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleConnectionParams,\n BaseGoogleEmbeddings,\n BaseGoogleEmbeddingsParams,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<WebGoogleAuthOptions> {}\n\n/**\n * Integration with an LLM.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<WebGoogleAuthOptions>\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<WebGoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;;AAgBA,IAAa,mBAAb,cACUA,+CAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,kBAAkB;CAElB,YAAYC,QAA+B;EACzC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAIC,2BAAc;CAC1B;AACF"}
1
+ {"version":3,"file":"embeddings.cjs","names":["BaseGoogleEmbeddings","WebGoogleAuth"],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleConnectionParams,\n BaseGoogleEmbeddings,\n BaseGoogleEmbeddingsParams,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<WebGoogleAuthOptions> {}\n\n/**\n * Integration with an LLM.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<WebGoogleAuthOptions>\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<WebGoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,mBAAb,cACUA,8CAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAA+B;AACzC,QAAM,OAAO;;CAGf,sBACE,QACwB;AACxB,SAAO,IAAIC,2BAAc,OAAO"}
@@ -2,7 +2,6 @@ import { WebGoogleAuthOptions } from "./auth.cjs";
2
2
  import { BaseGoogleEmbeddings, BaseGoogleEmbeddingsParams, GoogleAbstractedClient, GoogleConnectionParams } from "@langchain/google-common";
3
3
 
4
4
  //#region src/embeddings.d.ts
5
-
6
5
  /**
7
6
  * Input to LLM class.
8
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"embeddings.d.cts","names":["GoogleAbstractedClient","GoogleConnectionParams","BaseGoogleEmbeddings","BaseGoogleEmbeddingsParams","WebGoogleAuthOptions","GoogleEmbeddingsInput","GoogleEmbeddings"],"sources":["../src/embeddings.d.ts"],"sourcesContent":["import { GoogleAbstractedClient, GoogleConnectionParams, BaseGoogleEmbeddings, BaseGoogleEmbeddingsParams } from \"@langchain/google-common\";\nimport { WebGoogleAuthOptions } from \"./auth.js\";\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<WebGoogleAuthOptions> {\n}\n/**\n * Integration with an LLM.\n */\nexport declare class GoogleEmbeddings extends BaseGoogleEmbeddings<WebGoogleAuthOptions> implements GoogleEmbeddingsInput {\n static lc_name(): string;\n lc_serializable: boolean;\n constructor(fields: GoogleEmbeddingsInput);\n buildAbstractedClient(fields?: GoogleConnectionParams<WebGoogleAuthOptions>): GoogleAbstractedClient;\n}\n//# sourceMappingURL=embeddings.d.ts.map"],"mappings":";;;;;;;AAKA;AAKqBM,UALJD,qBAAAA,SAA8BF,0BAKV,CALqCC,oBAKrC,CAAA,CAAA;;;;AAI6CJ,cAJ7DM,gBAAAA,SAAyBJ,oBAIoCF,CAJfI,oBAIeJ,CAAAA,YAJkBK,qBAIlBL,CAAAA;EAJpCE,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAsDG,eAAAA,EAAAA,OAAAA;EAAqB,WAAA,CAAA,MAAA,EAGjGA,qBAHiG;iCAItFJ,uBAAuBG,wBAAwBJ"}
1
+ {"version":3,"file":"embeddings.d.cts","names":[],"sources":["../src/embeddings.ts"],"mappings":";;;;;;AAWA;UAAiB,qBAAA,SAA8B,0BAAA,CAA2B,oBAAA;;;AAK1E;cAAa,gBAAA,SACH,oBAAA,CAAqB,oBAAA,aAClB,qBAAA;EAAA,OAGJ,OAAA,CAAA;EAIP,eAAA;EAEA,WAAA,CAAY,MAAA,EAAQ,qBAAA;EAIpB,qBAAA,CACE,MAAA,GAAS,sBAAA,CAAuB,oBAAA,IAC/B,sBAAA;AAAA"}
@@ -2,7 +2,6 @@ import { WebGoogleAuthOptions } from "./auth.js";
2
2
  import { BaseGoogleEmbeddings, BaseGoogleEmbeddingsParams, GoogleAbstractedClient, GoogleConnectionParams } from "@langchain/google-common";
3
3
 
4
4
  //#region src/embeddings.d.ts
5
-
6
5
  /**
7
6
  * Input to LLM class.
8
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"embeddings.d.ts","names":["GoogleAbstractedClient","GoogleConnectionParams","BaseGoogleEmbeddings","BaseGoogleEmbeddingsParams","WebGoogleAuthOptions","GoogleEmbeddingsInput","GoogleEmbeddings"],"sources":["../src/embeddings.d.ts"],"sourcesContent":["import { GoogleAbstractedClient, GoogleConnectionParams, BaseGoogleEmbeddings, BaseGoogleEmbeddingsParams } from \"@langchain/google-common\";\nimport { WebGoogleAuthOptions } from \"./auth.js\";\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<WebGoogleAuthOptions> {\n}\n/**\n * Integration with an LLM.\n */\nexport declare class GoogleEmbeddings extends BaseGoogleEmbeddings<WebGoogleAuthOptions> implements GoogleEmbeddingsInput {\n static lc_name(): string;\n lc_serializable: boolean;\n constructor(fields: GoogleEmbeddingsInput);\n buildAbstractedClient(fields?: GoogleConnectionParams<WebGoogleAuthOptions>): GoogleAbstractedClient;\n}\n//# sourceMappingURL=embeddings.d.ts.map"],"mappings":";;;;;;;AAKA;AAKqBM,UALJD,qBAAAA,SAA8BF,0BAKV,CALqCC,oBAKrC,CAAA,CAAA;;;;AAI6CJ,cAJ7DM,gBAAAA,SAAyBJ,oBAIoCF,CAJfI,oBAIeJ,CAAAA,YAJkBK,qBAIlBL,CAAAA;EAJpCE,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAsDG,eAAAA,EAAAA,OAAAA;EAAqB,WAAA,CAAA,MAAA,EAGjGA,qBAHiG;iCAItFJ,uBAAuBG,wBAAwBJ"}
1
+ {"version":3,"file":"embeddings.d.ts","names":[],"sources":["../src/embeddings.ts"],"mappings":";;;;;;AAWA;UAAiB,qBAAA,SAA8B,0BAAA,CAA2B,oBAAA;;;AAK1E;cAAa,gBAAA,SACH,oBAAA,CAAqB,oBAAA,aAClB,qBAAA;EAAA,OAGJ,OAAA,CAAA;EAIP,eAAA;EAEA,WAAA,CAAY,MAAA,EAAQ,qBAAA;EAIpB,qBAAA,CACE,MAAA,GAAS,sBAAA,CAAuB,oBAAA,IAC/B,sBAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"embeddings.js","names":["fields: GoogleEmbeddingsInput","fields?: GoogleConnectionParams<WebGoogleAuthOptions>"],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleConnectionParams,\n BaseGoogleEmbeddings,\n BaseGoogleEmbeddingsParams,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<WebGoogleAuthOptions> {}\n\n/**\n * Integration with an LLM.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<WebGoogleAuthOptions>\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<WebGoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,mBAAb,cACU,qBAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,kBAAkB;CAElB,YAAYA,QAA+B;EACzC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAI,cAAc;CAC1B;AACF"}
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 { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<WebGoogleAuthOptions> {}\n\n/**\n * Integration with an LLM.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<WebGoogleAuthOptions>\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<WebGoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,mBAAb,cACU,qBAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAA+B;AACzC,QAAM,OAAO;;CAGf,sBACE,QACwB;AACxB,SAAO,IAAI,cAAc,OAAO"}
package/dist/index.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1
2
  const require_chat_models = require('./chat_models.cjs');
2
3
  const require_llms = require('./llms.cjs');
3
4
  const require_embeddings = require('./embeddings.cjs');
package/dist/llms.cjs CHANGED
@@ -1,12 +1,11 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
1
  const require_auth = require('./auth.cjs');
3
- const __langchain_google_common = require_rolldown_runtime.__toESM(require("@langchain/google-common"));
2
+ let _langchain_google_common = require("@langchain/google-common");
4
3
 
5
4
  //#region src/llms.ts
6
5
  /**
7
6
  * Integration with an LLM.
8
7
  */
9
- var GoogleLLM = class extends __langchain_google_common.GoogleBaseLLM {
8
+ var GoogleLLM = class extends _langchain_google_common.GoogleBaseLLM {
10
9
  static lc_name() {
11
10
  return "GoogleLLM";
12
11
  }
package/dist/llms.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"llms.cjs","names":["GoogleBaseLLM","fields?: GoogleLLMInput","fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined","WebGoogleAuth"],"sources":["../src/llms.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleBaseLLM,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with an LLM.\n */\nexport class GoogleLLM\n extends GoogleBaseLLM<WebGoogleAuthOptions>\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 }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;;AAeA,IAAa,YAAb,cACUA,wCAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,kBAAkB;CAElB,YAAYC,QAAyB;EACnC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAIC,2BAAc;CAC1B;AACF"}
1
+ {"version":3,"file":"llms.cjs","names":["GoogleBaseLLM","WebGoogleAuth"],"sources":["../src/llms.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleBaseLLM,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with an LLM.\n */\nexport class GoogleLLM\n extends GoogleBaseLLM<WebGoogleAuthOptions>\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 }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAeA,IAAa,YAAb,cACUA,uCAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAAyB;AACnC,QAAM,OAAO;;CAGf,sBACE,QACwB;AACxB,SAAO,IAAIC,2BAAc,OAAO"}
package/dist/llms.d.cts CHANGED
@@ -2,7 +2,6 @@ import { WebGoogleAuthOptions } from "./auth.cjs";
2
2
  import { GoogleAbstractedClient, GoogleBaseLLM, GoogleBaseLLMInput } from "@langchain/google-common";
3
3
 
4
4
  //#region src/llms.d.ts
5
-
6
5
  /**
7
6
  * Input to LLM class.
8
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"llms.d.cts","names":["GoogleAbstractedClient","GoogleBaseLLM","GoogleBaseLLMInput","WebGoogleAuthOptions","GoogleLLMInput","GoogleLLM"],"sources":["../src/llms.d.ts"],"sourcesContent":["import { GoogleAbstractedClient, GoogleBaseLLM, GoogleBaseLLMInput } from \"@langchain/google-common\";\nimport { WebGoogleAuthOptions } from \"./auth.js\";\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<WebGoogleAuthOptions> {\n}\n/**\n * Integration with an LLM.\n */\nexport declare class GoogleLLM extends GoogleBaseLLM<WebGoogleAuthOptions> implements GoogleLLMInput {\n static lc_name(): string;\n lc_serializable: boolean;\n constructor(fields?: GoogleLLMInput);\n buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n//# sourceMappingURL=llms.d.ts.map"],"mappings":";;;;;;;AAKA;AAKqBK,UALJD,cAAAA,SAAuBF,kBAKV,CAL6BC,oBAK7B,CAAA,CAAA;;;;AAI2DH,cAJpEK,SAAAA,SAAkBJ,aAIkDD,CAJpCG,oBAIoCH,CAAAA,YAJHI,cAIGJ,CAAAA;EAJlDC,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAA+CG,eAAAA,EAAAA,OAAAA;EAAc,WAAA,CAAA,MAAA,CAAA,EAG3EA,cAH2E;gCAIlEF,mBAAmBC,oCAAoCH"}
1
+ {"version":3,"file":"llms.d.cts","names":[],"sources":["../src/llms.ts"],"mappings":";;;;;;AAUA;UAAiB,cAAA,SAAuB,kBAAA,CAAmB,oBAAA;;;AAK3D;cAAa,SAAA,SACH,aAAA,CAAc,oBAAA,aACX,cAAA;EAAA,OAGJ,OAAA,CAAA;EAIP,eAAA;EAEA,WAAA,CAAY,MAAA,GAAS,cAAA;EAIrB,qBAAA,CACE,MAAA,EAAQ,kBAAA,CAAmB,oBAAA,gBAC1B,sBAAA;AAAA"}
package/dist/llms.d.ts CHANGED
@@ -2,7 +2,6 @@ import { WebGoogleAuthOptions } from "./auth.js";
2
2
  import { GoogleAbstractedClient, GoogleBaseLLM, GoogleBaseLLMInput } from "@langchain/google-common";
3
3
 
4
4
  //#region src/llms.d.ts
5
-
6
5
  /**
7
6
  * Input to LLM class.
8
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"llms.d.ts","names":["GoogleAbstractedClient","GoogleBaseLLM","GoogleBaseLLMInput","WebGoogleAuthOptions","GoogleLLMInput","GoogleLLM"],"sources":["../src/llms.d.ts"],"sourcesContent":["import { GoogleAbstractedClient, GoogleBaseLLM, GoogleBaseLLMInput } from \"@langchain/google-common\";\nimport { WebGoogleAuthOptions } from \"./auth.js\";\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<WebGoogleAuthOptions> {\n}\n/**\n * Integration with an LLM.\n */\nexport declare class GoogleLLM extends GoogleBaseLLM<WebGoogleAuthOptions> implements GoogleLLMInput {\n static lc_name(): string;\n lc_serializable: boolean;\n constructor(fields?: GoogleLLMInput);\n buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n//# sourceMappingURL=llms.d.ts.map"],"mappings":";;;;;;;AAKA;AAKqBK,UALJD,cAAAA,SAAuBF,kBAKV,CAL6BC,oBAK7B,CAAA,CAAA;;;;AAI2DH,cAJpEK,SAAAA,SAAkBJ,aAIkDD,CAJpCG,oBAIoCH,CAAAA,YAJHI,cAIGJ,CAAAA;EAJlDC,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAA+CG,eAAAA,EAAAA,OAAAA;EAAc,WAAA,CAAA,MAAA,CAAA,EAG3EA,cAH2E;gCAIlEF,mBAAmBC,oCAAoCH"}
1
+ {"version":3,"file":"llms.d.ts","names":[],"sources":["../src/llms.ts"],"mappings":";;;;;;AAUA;UAAiB,cAAA,SAAuB,kBAAA,CAAmB,oBAAA;;;AAK3D;cAAa,SAAA,SACH,aAAA,CAAc,oBAAA,aACX,cAAA;EAAA,OAGJ,OAAA,CAAA;EAIP,eAAA;EAEA,WAAA,CAAY,MAAA,GAAS,cAAA;EAIrB,qBAAA,CACE,MAAA,EAAQ,kBAAA,CAAmB,oBAAA,gBAC1B,sBAAA;AAAA"}
package/dist/llms.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"llms.js","names":["fields?: GoogleLLMInput","fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined"],"sources":["../src/llms.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleBaseLLM,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with an LLM.\n */\nexport class GoogleLLM\n extends GoogleBaseLLM<WebGoogleAuthOptions>\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 }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAeA,IAAa,YAAb,cACU,cAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,kBAAkB;CAElB,YAAYA,QAAyB;EACnC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAI,cAAc;CAC1B;AACF"}
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 { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with an LLM.\n */\nexport class GoogleLLM\n extends GoogleBaseLLM<WebGoogleAuthOptions>\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 }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAeA,IAAa,YAAb,cACU,cAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAAyB;AACnC,QAAM,OAAO;;CAGf,sBACE,QACwB;AACxB,SAAO,IAAI,cAAc,OAAO"}
package/dist/types.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
 
2
2
 
3
- var __langchain_google_common_types = require("@langchain/google-common/types");
4
- Object.keys(__langchain_google_common_types).forEach(function (k) {
3
+ var _langchain_google_common_types = require("@langchain/google-common/types");
4
+ Object.keys(_langchain_google_common_types).forEach(function (k) {
5
5
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
6
  enumerable: true,
7
- get: function () { return __langchain_google_common_types[k]; }
7
+ get: function () { return _langchain_google_common_types[k]; }
8
8
  });
9
9
  });
package/dist/types.js CHANGED
@@ -1 +1,3 @@
1
1
  export * from "@langchain/google-common/types"
2
+
3
+ export { };
package/dist/utils.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
 
2
2
 
3
- var __langchain_google_common_utils = require("@langchain/google-common/utils");
4
- Object.keys(__langchain_google_common_utils).forEach(function (k) {
3
+ var _langchain_google_common_utils = require("@langchain/google-common/utils");
4
+ Object.keys(_langchain_google_common_utils).forEach(function (k) {
5
5
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
6
  enumerable: true,
7
- get: function () { return __langchain_google_common_utils[k]; }
7
+ get: function () { return _langchain_google_common_utils[k]; }
8
8
  });
9
9
  });
package/dist/utils.js CHANGED
@@ -1 +1,3 @@
1
1
  export * from "@langchain/google-common/utils"
2
+
3
+ export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-webauth",
3
- "version": "2.1.18",
3
+ "version": "2.1.19",
4
4
  "description": "Web-based authentication support for Google services",
5
5
  "author": "LangChain",
6
6
  "license": "MIT",
@@ -15,10 +15,10 @@
15
15
  "homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-google-webauth/",
16
16
  "dependencies": {
17
17
  "web-auth-library": "^1.0.3",
18
- "@langchain/google-common": "2.1.18"
18
+ "@langchain/google-common": "2.1.19"
19
19
  },
20
20
  "peerDependencies": {
21
- "@langchain/core": "^1.1.23"
21
+ "@langchain/core": "^1.1.25"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@jest/globals": "^30.2.0",
@@ -34,9 +34,9 @@
34
34
  "ts-jest": "^29.4.6",
35
35
  "typescript": "~5.8.3",
36
36
  "zod": "^3.25.76",
37
- "@langchain/core": "^1.1.23",
38
- "@langchain/tsconfig": "0.0.1",
39
- "@langchain/eslint": "0.1.1"
37
+ "@langchain/core": "^1.1.25",
38
+ "@langchain/eslint": "0.1.1",
39
+ "@langchain/tsconfig": "0.0.1"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
@@ -1,25 +0,0 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
- key = keys[i];
11
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
- get: ((k) => from[k]).bind(null, key),
13
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
- });
15
- }
16
- return to;
17
- };
18
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
- value: mod,
20
- enumerable: true
21
- }) : target, mod));
22
-
23
- //#endregion
24
-
25
- exports.__toESM = __toESM;