@langchain/google-webauth 2.0.4 → 2.0.5-dev-1765431816670
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/dist/auth.d.cts.map +1 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/chat_models.d.cts +0 -1
- package/dist/chat_models.d.cts.map +1 -0
- package/dist/chat_models.d.ts +0 -1
- package/dist/chat_models.d.ts.map +1 -0
- package/dist/embeddings.d.cts +0 -1
- package/dist/embeddings.d.cts.map +1 -0
- package/dist/embeddings.d.ts +0 -1
- package/dist/embeddings.d.ts.map +1 -0
- package/dist/llms.d.cts +0 -1
- package/dist/llms.d.cts.map +1 -0
- package/dist/llms.d.ts +0 -1
- package/dist/llms.d.ts.map +1 -0
- package/package.json +16 -7
|
@@ -0,0 +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"}
|
|
@@ -0,0 +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"}
|
package/dist/chat_models.d.cts
CHANGED
|
@@ -11,7 +11,6 @@ interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {}
|
|
|
11
11
|
* Integration with a chat model.
|
|
12
12
|
*/
|
|
13
13
|
declare class ChatGoogle extends ChatGoogleBase<WebGoogleAuthOptions> implements ChatGoogleInput {
|
|
14
|
-
// Used for tracing, replace with the same name as your class
|
|
15
14
|
static lc_name(): string;
|
|
16
15
|
constructor(fields?: ChatGoogleInput);
|
|
17
16
|
buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;
|
|
@@ -0,0 +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"}
|
package/dist/chat_models.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {}
|
|
|
11
11
|
* Integration with a chat model.
|
|
12
12
|
*/
|
|
13
13
|
declare class ChatGoogle extends ChatGoogleBase<WebGoogleAuthOptions> implements ChatGoogleInput {
|
|
14
|
-
// Used for tracing, replace with the same name as your class
|
|
15
14
|
static lc_name(): string;
|
|
16
15
|
constructor(fields?: ChatGoogleInput);
|
|
17
16
|
buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;
|
|
@@ -0,0 +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"}
|
package/dist/embeddings.d.cts
CHANGED
|
@@ -11,7 +11,6 @@ interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<WebGoogleAuth
|
|
|
11
11
|
* Integration with an LLM.
|
|
12
12
|
*/
|
|
13
13
|
declare class GoogleEmbeddings extends BaseGoogleEmbeddings<WebGoogleAuthOptions> implements GoogleEmbeddingsInput {
|
|
14
|
-
// Used for tracing, replace with the same name as your class
|
|
15
14
|
static lc_name(): string;
|
|
16
15
|
lc_serializable: boolean;
|
|
17
16
|
constructor(fields: GoogleEmbeddingsInput);
|
|
@@ -0,0 +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"}
|
package/dist/embeddings.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<WebGoogleAuth
|
|
|
11
11
|
* Integration with an LLM.
|
|
12
12
|
*/
|
|
13
13
|
declare class GoogleEmbeddings extends BaseGoogleEmbeddings<WebGoogleAuthOptions> implements GoogleEmbeddingsInput {
|
|
14
|
-
// Used for tracing, replace with the same name as your class
|
|
15
14
|
static lc_name(): string;
|
|
16
15
|
lc_serializable: boolean;
|
|
17
16
|
constructor(fields: GoogleEmbeddingsInput);
|
|
@@ -0,0 +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"}
|
package/dist/llms.d.cts
CHANGED
|
@@ -11,7 +11,6 @@ interface GoogleLLMInput extends GoogleBaseLLMInput<WebGoogleAuthOptions> {}
|
|
|
11
11
|
* Integration with an LLM.
|
|
12
12
|
*/
|
|
13
13
|
declare class GoogleLLM extends GoogleBaseLLM<WebGoogleAuthOptions> implements GoogleLLMInput {
|
|
14
|
-
// Used for tracing, replace with the same name as your class
|
|
15
14
|
static lc_name(): string;
|
|
16
15
|
lc_serializable: boolean;
|
|
17
16
|
constructor(fields?: GoogleLLMInput);
|
|
@@ -0,0 +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"}
|
package/dist/llms.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ interface GoogleLLMInput extends GoogleBaseLLMInput<WebGoogleAuthOptions> {}
|
|
|
11
11
|
* Integration with an LLM.
|
|
12
12
|
*/
|
|
13
13
|
declare class GoogleLLM extends GoogleBaseLLM<WebGoogleAuthOptions> implements GoogleLLMInput {
|
|
14
|
-
// Used for tracing, replace with the same name as your class
|
|
15
14
|
static lc_name(): string;
|
|
16
15
|
lc_serializable: boolean;
|
|
17
16
|
constructor(fields?: GoogleLLMInput);
|
|
@@ -0,0 +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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/google-webauth",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5-dev-1765431816670",
|
|
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.0.
|
|
18
|
+
"@langchain/google-common": "2.0.5-dev-1765431816670"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@langchain/core": "1.1.
|
|
21
|
+
"@langchain/core": "1.1.5-dev-1765431816670"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@jest/globals": "^29.5.0",
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"ts-jest": "^29.1.0",
|
|
36
36
|
"typescript": "~5.8.3",
|
|
37
37
|
"zod": "^3.25.76",
|
|
38
|
-
"@langchain/core": "1.1.
|
|
38
|
+
"@langchain/core": "1.1.5-dev-1765431816670",
|
|
39
|
+
"@langchain/tsconfig": "0.0.1",
|
|
39
40
|
"@langchain/eslint": "0.1.1"
|
|
40
41
|
},
|
|
41
42
|
"publishConfig": {
|
|
@@ -83,7 +84,15 @@
|
|
|
83
84
|
"dist/",
|
|
84
85
|
"CHANGELOG.md",
|
|
85
86
|
"README.md",
|
|
86
|
-
"LICENSE"
|
|
87
|
+
"LICENSE",
|
|
88
|
+
"utils.d.cts",
|
|
89
|
+
"utils.cjs",
|
|
90
|
+
"utils.d.ts",
|
|
91
|
+
"utils.js",
|
|
92
|
+
"types.d.cts",
|
|
93
|
+
"types.cjs",
|
|
94
|
+
"types.d.ts",
|
|
95
|
+
"types.js"
|
|
87
96
|
],
|
|
88
97
|
"module": "./dist/index.js",
|
|
89
98
|
"scripts": {
|
|
@@ -98,7 +107,7 @@
|
|
|
98
107
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
|
|
99
108
|
"test:single": "NODE_OPTIONS=--experimental-vm-modules pnpm run jest --config jest.config.cjs --testTimeout 100000",
|
|
100
109
|
"test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
|
|
101
|
-
"format": "prettier --
|
|
102
|
-
"format:check": "prettier --
|
|
110
|
+
"format": "prettier --write \"src\"",
|
|
111
|
+
"format:check": "prettier --check \"src\""
|
|
103
112
|
}
|
|
104
113
|
}
|