@langchain/google-webauth 1.0.3 → 2.0.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 +10 -0
- package/package.json +27 -26
- package/dist/auth.d.cts.map +0 -1
- package/dist/auth.d.ts.map +0 -1
- package/dist/chat_models.d.cts.map +0 -1
- package/dist/chat_models.d.ts.map +0 -1
- package/dist/embeddings.d.cts.map +0 -1
- package/dist/embeddings.d.ts.map +0 -1
- package/dist/llms.d.cts.map +0 -1
- package/dist/llms.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @langchain/google-webauth
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#9416](https://github.com/langchain-ai/langchainjs/pull/9416) [`0fe9beb`](https://github.com/langchain-ai/langchainjs/commit/0fe9bebee6710f719e47f913eec1ec4f638e4de4) Thanks [@hntrl](https://github.com/hntrl)! - fix 'moduleResultion: "node"' compatibility
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`708d360`](https://github.com/langchain-ai/langchainjs/commit/708d360df1869def7e4caaa5995d6e907bbf54cd), [`0fe9beb`](https://github.com/langchain-ai/langchainjs/commit/0fe9bebee6710f719e47f913eec1ec4f638e4de4), [`21a8374`](https://github.com/langchain-ai/langchainjs/commit/21a83742af89e6a7f29d303f63729d0e31b59fdd), [`10fa2af`](https://github.com/langchain-ai/langchainjs/commit/10fa2afec0b81efd3467e61b59ba5c82e1043de5)]:
|
|
10
|
+
- @langchain/core@1.1.0
|
|
11
|
+
- @langchain/google-common@2.0.0
|
|
12
|
+
|
|
3
13
|
## 1.0.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/google-webauth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
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": "
|
|
18
|
+
"@langchain/google-common": "2.0.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@langchain/core": "1.0
|
|
21
|
+
"@langchain/core": "1.1.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@jest/globals": "^29.5.0",
|
|
@@ -35,46 +35,46 @@
|
|
|
35
35
|
"ts-jest": "^29.1.0",
|
|
36
36
|
"typescript": "~5.8.3",
|
|
37
37
|
"zod": "^3.25.76",
|
|
38
|
-
"@langchain/core": "1.0
|
|
39
|
-
"@langchain/eslint": "0.1.
|
|
38
|
+
"@langchain/core": "1.1.0",
|
|
39
|
+
"@langchain/eslint": "0.1.1"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"main": "./dist/index.
|
|
45
|
-
"types": "./dist/index.d.
|
|
44
|
+
"main": "./dist/index.cjs",
|
|
45
|
+
"types": "./dist/index.d.cts",
|
|
46
46
|
"exports": {
|
|
47
47
|
".": {
|
|
48
48
|
"input": "./src/index.ts",
|
|
49
|
-
"import": {
|
|
50
|
-
"types": "./dist/index.d.ts",
|
|
51
|
-
"default": "./dist/index.js"
|
|
52
|
-
},
|
|
53
49
|
"require": {
|
|
54
50
|
"types": "./dist/index.d.cts",
|
|
55
51
|
"default": "./dist/index.cjs"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"./utils": {
|
|
59
|
-
"input": "./src/utils.ts",
|
|
60
|
-
"import": {
|
|
61
|
-
"types": "./dist/utils.d.ts",
|
|
62
|
-
"default": "./dist/utils.js"
|
|
63
52
|
},
|
|
64
|
-
"
|
|
65
|
-
"types": "./dist/
|
|
66
|
-
"default": "./dist/
|
|
53
|
+
"import": {
|
|
54
|
+
"types": "./dist/index.d.ts",
|
|
55
|
+
"default": "./dist/index.js"
|
|
67
56
|
}
|
|
68
57
|
},
|
|
69
58
|
"./types": {
|
|
70
59
|
"input": "./src/types.ts",
|
|
60
|
+
"require": {
|
|
61
|
+
"types": "./dist/types.d.cts",
|
|
62
|
+
"default": "./dist/types.cjs"
|
|
63
|
+
},
|
|
71
64
|
"import": {
|
|
72
65
|
"types": "./dist/types.d.ts",
|
|
73
66
|
"default": "./dist/types.js"
|
|
74
|
-
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"./utils": {
|
|
70
|
+
"input": "./src/utils.ts",
|
|
75
71
|
"require": {
|
|
76
|
-
"types": "./dist/
|
|
77
|
-
"default": "./dist/
|
|
72
|
+
"types": "./dist/utils.d.cts",
|
|
73
|
+
"default": "./dist/utils.cjs"
|
|
74
|
+
},
|
|
75
|
+
"import": {
|
|
76
|
+
"types": "./dist/utils.d.ts",
|
|
77
|
+
"default": "./dist/utils.js"
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"./package.json": "./package.json"
|
|
@@ -85,9 +85,10 @@
|
|
|
85
85
|
"README.md",
|
|
86
86
|
"LICENSE"
|
|
87
87
|
],
|
|
88
|
+
"module": "./dist/index.js",
|
|
88
89
|
"scripts": {
|
|
89
|
-
"build": "turbo build:compile --filter @langchain/google-webauth",
|
|
90
|
-
"build:compile": "
|
|
90
|
+
"build": "turbo build:compile --filter @langchain/google-webauth --output-logs new-only",
|
|
91
|
+
"build:compile": "tsdown",
|
|
91
92
|
"lint:eslint": "eslint --cache src/",
|
|
92
93
|
"lint:dpdm": "dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
|
|
93
94
|
"lint": "pnpm lint:eslint && pnpm lint:dpdm",
|
package/dist/auth.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"],"mappings":";;;;KAEYI,oBAAAA;wBACcD;EADdC,KAAAA,CAAAA,EAAAA,MAAAA,GAAAA,MAAoB,EAAA"}
|
package/dist/auth.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"],"mappings":";;;;KAEYI,oBAAAA;wBACcD;EADdC,KAAAA,CAAAA,EAAAA,MAAAA,GAAAA,MAAoB,EAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
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 // Used for tracing, replace with the same name as your class\n static lc_name(): string;\n constructor(fields?: ChatGoogleInput);\n buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAAgC,UAAfK,eAAAA,SAAwBJ,mBAAT,CAA6BG,oBAA7B,CAAA,CAAA;;AAA4B;AAK5D;AAA+B,cAAVE,UAAAA,SAAmBN,cAAT,CAAwBI,oBAAxB,CAAA,YAAyDC,eAAzD,CAAA;EAAA;EAA4C,OAGlDA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAe,WACaD,CAAAA,MAAAA,CAAAA,EAD5BC,eAC4BD;EAAoB,qBAAvCD,CAAAA,MAAAA,EAAAA,kBAAAA,CAAmBC,oBAAnBD,CAAAA,GAAAA,SAAAA,CAAAA,EAAuDD,sBAAvDC"}
|
|
@@ -1 +0,0 @@
|
|
|
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 // Used for tracing, replace with the same name as your class\n static lc_name(): string;\n constructor(fields?: ChatGoogleInput);\n buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAAgC,UAAfK,eAAAA,SAAwBJ,mBAAT,CAA6BG,oBAA7B,CAAA,CAAA;;AAA4B;AAK5D;AAA+B,cAAVE,UAAAA,SAAmBN,cAAT,CAAwBI,oBAAxB,CAAA,YAAyDC,eAAzD,CAAA;EAAA;EAA4C,OAGlDA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAe,WACaD,CAAAA,MAAAA,CAAAA,EAD5BC,eAC4BD;EAAoB,qBAAvCD,CAAAA,MAAAA,EAAAA,kBAAAA,CAAmBC,oBAAnBD,CAAAA,GAAAA,SAAAA,CAAAA,EAAuDD,sBAAvDC"}
|
|
@@ -1 +0,0 @@
|
|
|
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 // Used for tracing, replace with the same name as your class\n static lc_name(): string;\n lc_serializable: boolean;\n constructor(fields: GoogleEmbeddingsInput);\n buildAbstractedClient(fields?: GoogleConnectionParams<WebGoogleAuthOptions>): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAAsC,UAArBK,qBAAAA,SAA8BF,0BAAT,CAAoCC,oBAApC,CAAA,CAAA;;AAAmC;AAKzE;AAAqC,cAAhBE,gBAAAA,SAAyBJ,oBAAT,CAA8BE,oBAA9B,CAAA,YAA+DC,qBAA/D,CAAA;EAAA;EAAkD,OAI/DA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAqB,eACaD,EAAAA,OAAAA;EAAoB,WAA3CH,CAAAA,MAAAA,EADXI,qBACWJ;EAAsB,qBAAyBD,CAAAA,MAAAA,CAAAA,EAA/CC,sBAA+CD,CAAxBI,oBAAwBJ,CAAAA,CAAAA,EAAAA,sBAAAA"}
|
package/dist/embeddings.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 // Used for tracing, replace with the same name as your class\n static lc_name(): string;\n lc_serializable: boolean;\n constructor(fields: GoogleEmbeddingsInput);\n buildAbstractedClient(fields?: GoogleConnectionParams<WebGoogleAuthOptions>): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAAsC,UAArBK,qBAAAA,SAA8BF,0BAAT,CAAoCC,oBAApC,CAAA,CAAA;;AAAmC;AAKzE;AAAqC,cAAhBE,gBAAAA,SAAyBJ,oBAAT,CAA8BE,oBAA9B,CAAA,YAA+DC,qBAA/D,CAAA;EAAA;EAAkD,OAI/DA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAqB,eACaD,EAAAA,OAAAA;EAAoB,WAA3CH,CAAAA,MAAAA,EADXI,qBACWJ;EAAsB,qBAAyBD,CAAAA,MAAAA,CAAAA,EAA/CC,sBAA+CD,CAAxBI,oBAAwBJ,CAAAA,CAAAA,EAAAA,sBAAAA"}
|
package/dist/llms.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 // Used for tracing, replace with the same name as your class\n static lc_name(): string;\n lc_serializable: boolean;\n constructor(fields?: GoogleLLMInput);\n buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAA+B,UAAdI,cAAAA,SAAuBF,kBAAT,CAA4BC,oBAA5B,CAAA,CAAA;;AAA2B;AAK1D;AAA8B,cAATE,SAAAA,SAAkBJ,aAAT,CAAuBE,oBAAvB,CAAA,YAAwDC,cAAxD,CAAA;EAAA;EAA2C,OAIhDA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAc,eACcD,EAAAA,OAAAA;EAAoB,WAAvCD,CAAAA,MAAAA,CAAAA,EADTE,cACSF;EAAkB,qBAAqCF,CAAAA,MAAAA,EAAvDE,kBAAuDF,CAApCG,oBAAoCH,CAAAA,GAAAA,SAAAA,CAAAA,EAAAA,sBAAAA"}
|
package/dist/llms.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 // Used for tracing, replace with the same name as your class\n static lc_name(): string;\n lc_serializable: boolean;\n constructor(fields?: GoogleLLMInput);\n buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAA+B,UAAdI,cAAAA,SAAuBF,kBAAT,CAA4BC,oBAA5B,CAAA,CAAA;;AAA2B;AAK1D;AAA8B,cAATE,SAAAA,SAAkBJ,aAAT,CAAuBE,oBAAvB,CAAA,YAAwDC,cAAxD,CAAA;EAAA;EAA2C,OAIhDA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAc,eACcD,EAAAA,OAAAA;EAAoB,WAAvCD,CAAAA,MAAAA,CAAAA,EADTE,cACSF;EAAkB,qBAAqCF,CAAAA,MAAAA,EAAvDE,kBAAuDF,CAApCG,oBAAoCH,CAAAA,GAAAA,SAAAA,CAAAA,EAAAA,sBAAAA"}
|