@langchain/google-webauth 2.1.30 → 2.2.0
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 +14 -0
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/chat_models.cjs +1 -1
- package/dist/chat_models.cjs.map +1 -1
- package/dist/chat_models.js +1 -1
- package/dist/chat_models.js.map +1 -1
- package/dist/llms.cjs +1 -1
- package/dist/llms.cjs.map +1 -1
- package/dist/llms.js +1 -1
- package/dist/llms.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @langchain/google-webauth
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`de0958c`](https://github.com/langchain-ai/langchainjs/commit/de0958cdb1b2e31868b038ce48e149ebe7151ba7), [`3aff161`](https://github.com/langchain-ai/langchainjs/commit/3aff161e1ca9cc7e92277ad071e372e5b55a0c6e), [`2e28115`](https://github.com/langchain-ai/langchainjs/commit/2e2811509d75af94f57cedcc3842f178f4c020d1)]:
|
|
8
|
+
- @langchain/google-common@2.2.0
|
|
9
|
+
|
|
10
|
+
## 2.1.31
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`a640079`](https://github.com/langchain-ai/langchainjs/commit/a64007997a4940f51bba3c1c83dae89d1ccfb692), [`7be1da4`](https://github.com/langchain-ai/langchainjs/commit/7be1da46ee1a2920b08212aeeed34dec57590d62)]:
|
|
15
|
+
- @langchain/google-common@2.1.31
|
|
16
|
+
|
|
3
17
|
## 2.1.30
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/auth.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 // oxlint-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,yBAAAA,4BAA4B;CAC7D;CAEA,YAAY,QAA8D;AACxE,SAAO;EAEP,MAAM,UAAU,QAAQ;EACxB,MAAM,cAAc,SAAS;EAE7B,MAAM,cACJ,SAAS,gBAAA,GAAA,0BAAA,wBACc,yBAAyB,KAAA,GAAA,0BAAA,wBACzB,mCAAmC;AAC5D,MAAI,gBAAgB,KAAA,EAClB,OAAM,IAAI,MACR,wIACD;AAEH,OAAK,WAAA,GAAA,yBAAA,wBACH;GAAE,GAAG;GAAS;GAAa;GAAa,EACxC,SACA,QAAQ,aACT;;CAGH,IAAI,aAAqB;AACvB,SAAO;;CAGT,MAAM,eAAgC;AAEpC,UAAA,GAAA,wBAAA,gBADmC,KAAK,QAAQ,
|
|
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 // oxlint-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,yBAAAA,4BAA4B;CAC7D;CAEA,YAAY,QAA8D;AACxE,SAAO;EAEP,MAAM,UAAU,QAAQ;EACxB,MAAM,cAAc,SAAS;EAE7B,MAAM,cACJ,SAAS,gBAAA,GAAA,0BAAA,wBACc,yBAAyB,KAAA,GAAA,0BAAA,wBACzB,mCAAmC;AAC5D,MAAI,gBAAgB,KAAA,EAClB,OAAM,IAAI,MACR,wIACD;AAEH,OAAK,WAAA,GAAA,yBAAA,wBACH;GAAE,GAAG;GAAS;GAAa;GAAa,EACxC,SACA,QAAQ,aACT;;CAGH,IAAI,aAAqB;AACvB,SAAO;;CAGT,MAAM,eAAgC;AAEpC,UAAA,GAAA,wBAAA,gBADmC,KAAK,QAAQ,YAC9B,CAAC;;CAGrB,MAAM,QAAQ,MAAmD;EAC/D,IAAI,EAAE,gBAAgB,KAAK;AAE3B,MAAI,gBAAgB,KAAA,EAClB,eAAc,OAAA,GAAA,wBAAA,gBAAqB,KAAK,QAAQ;EAGlD,MAAM,aAAa,EACjB,eAAe,UAAU,eAC1B;AACD,SAAO,KAAK,SAAS,MAAM,KAAK,MAAM,WAAW"}
|
package/dist/auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 // oxlint-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,KAAA,EAClB,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,
|
|
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 // oxlint-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,KAAA,EAClB,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,YAC9B,CAAC;;CAGrB,MAAM,QAAQ,MAAmD;EAC/D,IAAI,EAAE,gBAAgB,KAAK;AAE3B,MAAI,gBAAgB,KAAA,EAClB,eAAc,MAAM,eAAe,KAAK,QAAQ;EAGlD,MAAM,aAAa,EACjB,eAAe,UAAU,eAC1B;AACD,SAAO,KAAK,SAAS,MAAM,KAAK,MAAM,WAAW"}
|
package/dist/chat_models.cjs
CHANGED
|
@@ -14,7 +14,7 @@ var ChatGoogle = class extends _langchain_google_common.ChatGoogleBase {
|
|
|
14
14
|
model: modelOrFields
|
|
15
15
|
} : modelOrFields ?? {};
|
|
16
16
|
super(fields);
|
|
17
|
-
this._addVersion("@langchain/google-webauth", "2.
|
|
17
|
+
this._addVersion("@langchain/google-webauth", "2.2.0");
|
|
18
18
|
}
|
|
19
19
|
buildAbstractedClient(fields) {
|
|
20
20
|
return new require_auth.WebGoogleAuth(fields);
|
package/dist/chat_models.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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(model: string, fields?: Omit<ChatGoogleInput, \"model\">);\n constructor(fields?: ChatGoogleInput);\n constructor(\n modelOrFields?: string | ChatGoogleInput,\n fieldsArg?: Omit<ChatGoogleInput, \"model\">\n ) {\n const fields =\n typeof modelOrFields === \"string\"\n ? { ...(fieldsArg ?? {}), model: modelOrFields }\n : (modelOrFields ?? {});\n super(fields);\n this._addVersion(\"@langchain/google-webauth\", __PKG_VERSION__);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;AAgBA,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,6BAAA,
|
|
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(model: string, fields?: Omit<ChatGoogleInput, \"model\">);\n constructor(fields?: ChatGoogleInput);\n constructor(\n modelOrFields?: string | ChatGoogleInput,\n fieldsArg?: Omit<ChatGoogleInput, \"model\">\n ) {\n const fields =\n typeof modelOrFields === \"string\"\n ? { ...(fieldsArg ?? {}), model: modelOrFields }\n : (modelOrFields ?? {});\n super(fields);\n this._addVersion(\"@langchain/google-webauth\", __PKG_VERSION__);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;AAgBA,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,6BAAA,QAA6C;;CAGhE,sBACE,QACwB;AACxB,SAAO,IAAIC,aAAAA,cAAc,OAAO"}
|
package/dist/chat_models.js
CHANGED
|
@@ -14,7 +14,7 @@ var ChatGoogle = class extends ChatGoogleBase {
|
|
|
14
14
|
model: modelOrFields
|
|
15
15
|
} : modelOrFields ?? {};
|
|
16
16
|
super(fields);
|
|
17
|
-
this._addVersion("@langchain/google-webauth", "2.
|
|
17
|
+
this._addVersion("@langchain/google-webauth", "2.2.0");
|
|
18
18
|
}
|
|
19
19
|
buildAbstractedClient(fields) {
|
|
20
20
|
return new WebGoogleAuth(fields);
|
package/dist/chat_models.js.map
CHANGED
|
@@ -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 { 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(model: string, fields?: Omit<ChatGoogleInput, \"model\">);\n constructor(fields?: ChatGoogleInput);\n constructor(\n modelOrFields?: string | ChatGoogleInput,\n fieldsArg?: Omit<ChatGoogleInput, \"model\">\n ) {\n const fields =\n typeof modelOrFields === \"string\"\n ? { ...(fieldsArg ?? {}), model: modelOrFields }\n : (modelOrFields ?? {});\n super(fields);\n this._addVersion(\"@langchain/google-webauth\", __PKG_VERSION__);\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;;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,6BAAA,
|
|
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(model: string, fields?: Omit<ChatGoogleInput, \"model\">);\n constructor(fields?: ChatGoogleInput);\n constructor(\n modelOrFields?: string | ChatGoogleInput,\n fieldsArg?: Omit<ChatGoogleInput, \"model\">\n ) {\n const fields =\n typeof modelOrFields === \"string\"\n ? { ...(fieldsArg ?? {}), model: modelOrFields }\n : (modelOrFields ?? {});\n super(fields);\n this._addVersion(\"@langchain/google-webauth\", __PKG_VERSION__);\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;;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,6BAAA,QAA6C;;CAGhE,sBACE,QACwB;AACxB,SAAO,IAAI,cAAc,OAAO"}
|
package/dist/llms.cjs
CHANGED
|
@@ -11,7 +11,7 @@ var GoogleLLM = class extends _langchain_google_common.GoogleBaseLLM {
|
|
|
11
11
|
lc_serializable = true;
|
|
12
12
|
constructor(fields) {
|
|
13
13
|
super(fields);
|
|
14
|
-
this._addVersion("@langchain/google-webauth", "2.
|
|
14
|
+
this._addVersion("@langchain/google-webauth", "2.2.0");
|
|
15
15
|
}
|
|
16
16
|
buildAbstractedClient(fields) {
|
|
17
17
|
return new require_auth.WebGoogleAuth(fields);
|
package/dist/llms.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 this._addVersion(\"@langchain/google-webauth\", __PKG_VERSION__);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;AAeA,IAAa,YAAb,cACUA,yBAAAA,cAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAAyB;AACnC,QAAM,OAAO;AACb,OAAK,YAAY,6BAAA,
|
|
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 this._addVersion(\"@langchain/google-webauth\", __PKG_VERSION__);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;AAeA,IAAa,YAAb,cACUA,yBAAAA,cAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAAyB;AACnC,QAAM,OAAO;AACb,OAAK,YAAY,6BAAA,QAA6C;;CAGhE,sBACE,QACwB;AACxB,SAAO,IAAIC,aAAAA,cAAc,OAAO"}
|
package/dist/llms.js
CHANGED
|
@@ -11,7 +11,7 @@ var GoogleLLM = class extends GoogleBaseLLM {
|
|
|
11
11
|
lc_serializable = true;
|
|
12
12
|
constructor(fields) {
|
|
13
13
|
super(fields);
|
|
14
|
-
this._addVersion("@langchain/google-webauth", "2.
|
|
14
|
+
this._addVersion("@langchain/google-webauth", "2.2.0");
|
|
15
15
|
}
|
|
16
16
|
buildAbstractedClient(fields) {
|
|
17
17
|
return new WebGoogleAuth(fields);
|
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 { 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 this._addVersion(\"@langchain/google-webauth\", __PKG_VERSION__);\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;AACb,OAAK,YAAY,6BAAA,
|
|
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 this._addVersion(\"@langchain/google-webauth\", __PKG_VERSION__);\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;AACb,OAAK,YAAY,6BAAA,QAA6C;;CAGhE,sBACE,QACwB;AACxB,SAAO,IAAI,cAAc,OAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/google-webauth",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Web-based authentication support for Google services",
|
|
5
5
|
"author": "LangChain",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,24 +15,24 @@
|
|
|
15
15
|
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/providers/langchain-google-webauth/",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"web-auth-library": "^1.0.3",
|
|
18
|
-
"@langchain/google-common": "2.
|
|
18
|
+
"@langchain/google-common": "2.2.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@langchain/core": "^1.
|
|
21
|
+
"@langchain/core": "^1.2.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@jest/globals": "^30.
|
|
25
|
-
"@swc/core": "^1.15.
|
|
24
|
+
"@jest/globals": "^30.4.1",
|
|
25
|
+
"@swc/core": "^1.15.40",
|
|
26
26
|
"@swc/jest": "^0.2.29",
|
|
27
27
|
"@tsconfig/recommended": "^1.0.3",
|
|
28
28
|
"dotenv": "^17.4.0",
|
|
29
29
|
"dpdm": "^3.14.0",
|
|
30
|
-
"jest": "^30.
|
|
31
|
-
"jest-environment-node": "^30.
|
|
32
|
-
"ts-jest": "^29.4.
|
|
33
|
-
"typescript": "~
|
|
30
|
+
"jest": "^30.4.2",
|
|
31
|
+
"jest-environment-node": "^30.4.1",
|
|
32
|
+
"ts-jest": "^29.4.11",
|
|
33
|
+
"typescript": "~6.0.3",
|
|
34
34
|
"zod": "^3.25.76",
|
|
35
|
-
"@langchain/core": "^1.
|
|
35
|
+
"@langchain/core": "^1.2.0",
|
|
36
36
|
"@langchain/tsconfig": "0.0.1"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|