@langchain/google-gauth 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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @langchain/google-gauth
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 [[`0fe9beb`](https://github.com/langchain-ai/langchainjs/commit/0fe9bebee6710f719e47f913eec1ec4f638e4de4), [`21a8374`](https://github.com/langchain-ai/langchainjs/commit/21a83742af89e6a7f29d303f63729d0e31b59fdd)]:
10
+ - @langchain/google-common@2.0.0
11
+
3
12
  ## 1.0.3
4
13
 
5
14
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-gauth",
3
- "version": "1.0.3",
3
+ "version": "2.0.0",
4
4
  "description": "Google auth based authentication support for Google services",
5
5
  "author": "LangChain",
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@
15
15
  "homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-google-gauth/",
16
16
  "dependencies": {
17
17
  "google-auth-library": "^10.1.0",
18
- "@langchain/google-common": "1.0.3"
18
+ "@langchain/google-common": "2.0.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@jest/globals": "^29.5.0",
@@ -32,45 +32,45 @@
32
32
  "ts-jest": "^29.1.0",
33
33
  "typescript": "~5.8.3",
34
34
  "zod": "^3.25.76",
35
- "@langchain/eslint": "0.1.0"
35
+ "@langchain/eslint": "0.1.1"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "main": "./dist/index.js",
41
- "types": "./dist/index.d.ts",
40
+ "main": "./dist/index.cjs",
41
+ "types": "./dist/index.d.cts",
42
42
  "exports": {
43
43
  ".": {
44
44
  "input": "./src/index.ts",
45
- "import": {
46
- "types": "./dist/index.d.ts",
47
- "default": "./dist/index.js"
48
- },
49
45
  "require": {
50
46
  "types": "./dist/index.d.cts",
51
47
  "default": "./dist/index.cjs"
52
- }
53
- },
54
- "./utils": {
55
- "input": "./src/utils.ts",
56
- "import": {
57
- "types": "./dist/utils.d.ts",
58
- "default": "./dist/utils.js"
59
48
  },
60
- "require": {
61
- "types": "./dist/utils.d.cts",
62
- "default": "./dist/utils.cjs"
49
+ "import": {
50
+ "types": "./dist/index.d.ts",
51
+ "default": "./dist/index.js"
63
52
  }
64
53
  },
65
54
  "./types": {
66
55
  "input": "./src/types.ts",
56
+ "require": {
57
+ "types": "./dist/types.d.cts",
58
+ "default": "./dist/types.cjs"
59
+ },
67
60
  "import": {
68
61
  "types": "./dist/types.d.ts",
69
62
  "default": "./dist/types.js"
70
- },
63
+ }
64
+ },
65
+ "./utils": {
66
+ "input": "./src/utils.ts",
71
67
  "require": {
72
- "types": "./dist/types.d.cts",
73
- "default": "./dist/types.cjs"
68
+ "types": "./dist/utils.d.cts",
69
+ "default": "./dist/utils.cjs"
70
+ },
71
+ "import": {
72
+ "types": "./dist/utils.d.ts",
73
+ "default": "./dist/utils.js"
74
74
  }
75
75
  },
76
76
  "./package.json": "./package.json"
@@ -81,9 +81,10 @@
81
81
  "README.md",
82
82
  "LICENSE"
83
83
  ],
84
+ "module": "./dist/index.js",
84
85
  "scripts": {
85
- "build": "turbo build:compile --filter @langchain/google-gauth",
86
- "build:compile": "pnpm --filter @langchain/build compile @langchain/google-gauth",
86
+ "build": "turbo build:compile --filter @langchain/google-gauth --output-logs new-only",
87
+ "build:compile": "tsdown",
87
88
  "lint:eslint": "eslint --cache src/",
88
89
  "lint:dpdm": "dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
89
90
  "lint": "pnpm lint:eslint && pnpm lint:dpdm",
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat_models.d.cts","names":["ChatGoogleBase","ChatGoogleBaseInput","GoogleAbstractedClient","GoogleBaseLLMInput","GoogleAuthOptions","ChatGoogleInput","ChatGoogle"],"sources":["../src/chat_models.d.ts"],"sourcesContent":["import { ChatGoogleBase, ChatGoogleBaseInput, GoogleAbstractedClient, GoogleBaseLLMInput } from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<GoogleAuthOptions> {\n}\n/**\n * Integration with a Google chat model.\n */\nexport declare class ChatGoogle extends ChatGoogleBase<GoogleAuthOptions> 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<GoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAAgC,UAAfK,eAAAA,SAAwBJ,mBAAT,CAA6BG,iBAA7B,CAAA,CAAA;;AAA4B;AAK5D;AAA+B,cAAVE,UAAAA,SAAmBN,cAAT,CAAwBI,iBAAxB,CAAA,YAAsDC,eAAtD,CAAA;EAAA;EAAyC,OAG/CA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAe,WACaD,CAAAA,MAAAA,CAAAA,EAD5BC,eAC4BD;EAAiB,qBAApCD,CAAAA,MAAAA,EAAAA,kBAAAA,CAAmBC,iBAAnBD,CAAAA,GAAAA,SAAAA,CAAAA,EAAoDD,sBAApDC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat_models.d.ts","names":["ChatGoogleBase","ChatGoogleBaseInput","GoogleAbstractedClient","GoogleBaseLLMInput","GoogleAuthOptions","ChatGoogleInput","ChatGoogle"],"sources":["../src/chat_models.d.ts"],"sourcesContent":["import { ChatGoogleBase, ChatGoogleBaseInput, GoogleAbstractedClient, GoogleBaseLLMInput } from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<GoogleAuthOptions> {\n}\n/**\n * Integration with a Google chat model.\n */\nexport declare class ChatGoogle extends ChatGoogleBase<GoogleAuthOptions> 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<GoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAAgC,UAAfK,eAAAA,SAAwBJ,mBAAT,CAA6BG,iBAA7B,CAAA,CAAA;;AAA4B;AAK5D;AAA+B,cAAVE,UAAAA,SAAmBN,cAAT,CAAwBI,iBAAxB,CAAA,YAAsDC,eAAtD,CAAA;EAAA;EAAyC,OAG/CA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAe,WACaD,CAAAA,MAAAA,CAAAA,EAD5BC,eAC4BD;EAAiB,qBAApCD,CAAAA,MAAAA,EAAAA,kBAAAA,CAAmBC,iBAAnBD,CAAAA,GAAAA,SAAAA,CAAAA,EAAoDD,sBAApDC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"embeddings.d.cts","names":["GoogleAbstractedClient","GoogleConnectionParams","BaseGoogleEmbeddings","BaseGoogleEmbeddingsParams","GoogleAuthOptions","GoogleEmbeddingsInput","GoogleEmbeddings"],"sources":["../src/embeddings.d.ts"],"sourcesContent":["import { GoogleAbstractedClient, GoogleConnectionParams, BaseGoogleEmbeddings, BaseGoogleEmbeddingsParams } from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<GoogleAuthOptions> {\n}\n/**\n * Integration with an Google embeddings model.\n */\nexport declare class GoogleEmbeddings extends BaseGoogleEmbeddings<GoogleAuthOptions> 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<GoogleAuthOptions>): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAAsC,UAArBK,qBAAAA,SAA8BF,0BAAT,CAAoCC,iBAApC,CAAA,CAAA;;AAAmC;AAKzE;AAAqC,cAAhBE,gBAAAA,SAAyBJ,oBAAT,CAA8BE,iBAA9B,CAAA,YAA4DC,qBAA5D,CAAA;EAAA;EAA+C,OAI5DA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAqB,eACaD,EAAAA,OAAAA;EAAiB,WAAxCH,CAAAA,MAAAA,EADXI,qBACWJ;EAAsB,qBAAsBD,CAAAA,MAAAA,CAAAA,EAA5CC,sBAA4CD,CAArBI,iBAAqBJ,CAAAA,CAAAA,EAAAA,sBAAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"embeddings.d.ts","names":["GoogleAbstractedClient","GoogleConnectionParams","BaseGoogleEmbeddings","BaseGoogleEmbeddingsParams","GoogleAuthOptions","GoogleEmbeddingsInput","GoogleEmbeddings"],"sources":["../src/embeddings.d.ts"],"sourcesContent":["import { GoogleAbstractedClient, GoogleConnectionParams, BaseGoogleEmbeddings, BaseGoogleEmbeddingsParams } from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<GoogleAuthOptions> {\n}\n/**\n * Integration with an Google embeddings model.\n */\nexport declare class GoogleEmbeddings extends BaseGoogleEmbeddings<GoogleAuthOptions> 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<GoogleAuthOptions>): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAAsC,UAArBK,qBAAAA,SAA8BF,0BAAT,CAAoCC,iBAApC,CAAA,CAAA;;AAAmC;AAKzE;AAAqC,cAAhBE,gBAAAA,SAAyBJ,oBAAT,CAA8BE,iBAA9B,CAAA,YAA4DC,qBAA5D,CAAA;EAAA;EAA+C,OAI5DA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAqB,eACaD,EAAAA,OAAAA;EAAiB,WAAxCH,CAAAA,MAAAA,EADXI,qBACWJ;EAAsB,qBAAsBD,CAAAA,MAAAA,CAAAA,EAA5CC,sBAA4CD,CAArBI,iBAAqBJ,CAAAA,CAAAA,EAAAA,sBAAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"llms.d.cts","names":["GoogleAbstractedClient","GoogleBaseLLM","GoogleBaseLLMInput","GoogleAuthOptions","GoogleLLMInput","GoogleLLM"],"sources":["../src/llms.d.ts"],"sourcesContent":["import { GoogleAbstractedClient, GoogleBaseLLM, GoogleBaseLLMInput } from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {\n}\n/**\n * Integration with a Google LLM.\n */\nexport declare class GoogleLLM extends GoogleBaseLLM<GoogleAuthOptions> 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<GoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAA+B,UAAdI,cAAAA,SAAuBF,kBAAT,CAA4BC,iBAA5B,CAAA,CAAA;;AAA2B;AAK1D;AAA8B,cAATE,SAAAA,SAAkBJ,aAAT,CAAuBE,iBAAvB,CAAA,YAAqDC,cAArD,CAAA;EAAA;EAAwC,OAI7CA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAc,eACcD,EAAAA,OAAAA;EAAiB,WAApCD,CAAAA,MAAAA,CAAAA,EADTE,cACSF;EAAkB,qBAAkCF,CAAAA,MAAAA,EAApDE,kBAAoDF,CAAjCG,iBAAiCH,CAAAA,GAAAA,SAAAA,CAAAA,EAAAA,sBAAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"llms.d.ts","names":["GoogleAbstractedClient","GoogleBaseLLM","GoogleBaseLLMInput","GoogleAuthOptions","GoogleLLMInput","GoogleLLM"],"sources":["../src/llms.d.ts"],"sourcesContent":["import { GoogleAbstractedClient, GoogleBaseLLM, GoogleBaseLLMInput } from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {\n}\n/**\n * Integration with a Google LLM.\n */\nexport declare class GoogleLLM extends GoogleBaseLLM<GoogleAuthOptions> 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<GoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAA+B,UAAdI,cAAAA,SAAuBF,kBAAT,CAA4BC,iBAA5B,CAAA,CAAA;;AAA2B;AAK1D;AAA8B,cAATE,SAAAA,SAAkBJ,aAAT,CAAuBE,iBAAvB,CAAA,YAAqDC,cAArD,CAAA;EAAA;EAAwC,OAI7CA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAc,eACcD,EAAAA,OAAAA;EAAiB,WAApCD,CAAAA,MAAAA,CAAAA,EADTE,cACSF;EAAkB,qBAAkCF,CAAAA,MAAAA,EAApDE,kBAAoDF,CAAjCG,iBAAiCH,CAAAA,GAAAA,SAAAA,CAAAA,EAAAA,sBAAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"media.d.cts","names":["GoogleAbstractedClient","BlobStoreGoogleCloudStorageBase","BlobStoreGoogleCloudStorageBaseParams","BlobStoreAIStudioFileBase","BlobStoreAIStudioFileBaseParams","GoogleAuthOptions","BlobStoreGoogleCloudStorageParams","BlobStoreGoogleCloudStorage","BlobStoreAIStudioFileParams","BlobStoreAIStudioFile"],"sources":["../src/media.d.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport { BlobStoreGoogleCloudStorageBase, BlobStoreGoogleCloudStorageBaseParams, BlobStoreAIStudioFileBase, BlobStoreAIStudioFileBaseParams } from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nexport interface BlobStoreGoogleCloudStorageParams extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {\n}\nexport declare class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(fields?: BlobStoreGoogleCloudStorageParams): GoogleAbstractedClient;\n}\nexport interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {\n}\nexport declare class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(fields?: BlobStoreAIStudioFileParams): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;UAGiBM,iCAAAA,SAA0CJ,sCAAsCG;AAAhFC,cAEIC,2BAAAA,SAAoCN,+BAFP,CAEuCI,iBAFvC,CAAA,CAAA;EAAA,WAAA,CAAA,MAAA,CAAA,EAGzBC,iCAHyB,CAAA,EAGWN,sBAHX;;AAASE,UAK1CM,2BAAAA,SAAoCJ,+BALMF,CAK0BG,iBAL1BH,CAAAA,CAAAA,CAAqC;AAE3EK,cAKAE,qBAAAA,SAA8BN,yBALH,CAK6BE,iBAL7B,CAAA,CAAA;EAAA,qBAAA,CAAA,MAAA,CAAA,EAMbG,2BANa,CAAA,EAMiBR,sBANjB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"media.d.ts","names":["GoogleAbstractedClient","BlobStoreGoogleCloudStorageBase","BlobStoreGoogleCloudStorageBaseParams","BlobStoreAIStudioFileBase","BlobStoreAIStudioFileBaseParams","GoogleAuthOptions","BlobStoreGoogleCloudStorageParams","BlobStoreGoogleCloudStorage","BlobStoreAIStudioFileParams","BlobStoreAIStudioFile"],"sources":["../src/media.d.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport { BlobStoreGoogleCloudStorageBase, BlobStoreGoogleCloudStorageBaseParams, BlobStoreAIStudioFileBase, BlobStoreAIStudioFileBaseParams } from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nexport interface BlobStoreGoogleCloudStorageParams extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {\n}\nexport declare class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(fields?: BlobStoreGoogleCloudStorageParams): GoogleAbstractedClient;\n}\nexport interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {\n}\nexport declare class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(fields?: BlobStoreAIStudioFileParams): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;UAGiBM,iCAAAA,SAA0CJ,sCAAsCG;AAAhFC,cAEIC,2BAAAA,SAAoCN,+BAFP,CAEuCI,iBAFvC,CAAA,CAAA;EAAA,WAAA,CAAA,MAAA,CAAA,EAGzBC,iCAHyB,CAAA,EAGWN,sBAHX;;AAASE,UAK1CM,2BAAAA,SAAoCJ,+BALMF,CAK0BG,iBAL1BH,CAAAA,CAAAA,CAAqC;AAE3EK,cAKAE,qBAAAA,SAA8BN,yBALH,CAK6BE,iBAL7B,CAAA,CAAA;EAAA,qBAAA,CAAA,MAAA,CAAA,EAMbG,2BANa,CAAA,EAMiBR,sBANjB"}