@langchain/google-gauth 2.1.15 → 2.1.16

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,12 @@
1
1
  # @langchain/google-gauth
2
2
 
3
+ ## 2.1.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`5681181`](https://github.com/langchain-ai/langchainjs/commit/568118119f44cc4509a2c04dff2891230e874f46)]:
8
+ - @langchain/google-common@2.1.16
9
+
3
10
  ## 2.1.15
4
11
 
5
12
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"chat_models.cjs","names":["ChatGoogleBase","fields?: ChatGoogleInput","fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined","GAuthClient"],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput\n extends ChatGoogleBaseInput<GoogleAuthOptions> {}\n\n/**\n * Integration with a Google chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<GoogleAuthOptions>\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<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;;AAkBA,IAAa,aAAb,cACUA,yCAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,YAAYC,QAA0B;EACpC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAIC,yBAAY;CACxB;AACF"}
1
+ {"version":3,"file":"chat_models.cjs","names":["ChatGoogleBase","fields?: ChatGoogleInput","fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined","GAuthClient"],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\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 class ChatGoogle\n extends ChatGoogleBase<GoogleAuthOptions>\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<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;;AAiBA,IAAa,aAAb,cACUA,yCAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,YAAYC,QAA0B;EACpC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAIC,yBAAY;CACxB;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"chat_models.js","names":["fields?: ChatGoogleInput","fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined"],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput\n extends ChatGoogleBaseInput<GoogleAuthOptions> {}\n\n/**\n * Integration with a Google chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<GoogleAuthOptions>\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<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;AAkBA,IAAa,aAAb,cACU,eAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,YAAYA,QAA0B;EACpC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAI,YAAY;CACxB;AACF"}
1
+ {"version":3,"file":"chat_models.js","names":["fields?: ChatGoogleInput","fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined"],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\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 class ChatGoogle\n extends ChatGoogleBase<GoogleAuthOptions>\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<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;AAiBA,IAAa,aAAb,cACU,eAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,YAAYA,QAA0B;EACpC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAI,YAAY;CACxB;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"embeddings.cjs","names":["BaseGoogleEmbeddings","fields: GoogleEmbeddingsInput","fields?: GoogleConnectionParams<GoogleAuthOptions>","GAuthClient"],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleConnectionParams,\n BaseGoogleEmbeddings,\n BaseGoogleEmbeddingsParams,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput\n extends BaseGoogleEmbeddingsParams<GoogleAuthOptions> {}\n\n/**\n * Integration with an Google embeddings model.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<GoogleAuthOptions>\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<GoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;;AAkBA,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,yBAAY;CACxB;AACF"}
1
+ {"version":3,"file":"embeddings.cjs","names":["BaseGoogleEmbeddings","fields: GoogleEmbeddingsInput","fields?: GoogleConnectionParams<GoogleAuthOptions>","GAuthClient"],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleConnectionParams,\n BaseGoogleEmbeddings,\n BaseGoogleEmbeddingsParams,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<GoogleAuthOptions> {}\n\n/**\n * Integration with an Google embeddings model.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<GoogleAuthOptions>\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<GoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;;AAiBA,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,yBAAY;CACxB;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"embeddings.js","names":["fields: GoogleEmbeddingsInput","fields?: GoogleConnectionParams<GoogleAuthOptions>"],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleConnectionParams,\n BaseGoogleEmbeddings,\n BaseGoogleEmbeddingsParams,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput\n extends BaseGoogleEmbeddingsParams<GoogleAuthOptions> {}\n\n/**\n * Integration with an Google embeddings model.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<GoogleAuthOptions>\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<GoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;AAkBA,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,YAAY;CACxB;AACF"}
1
+ {"version":3,"file":"embeddings.js","names":["fields: GoogleEmbeddingsInput","fields?: GoogleConnectionParams<GoogleAuthOptions>"],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleConnectionParams,\n BaseGoogleEmbeddings,\n BaseGoogleEmbeddingsParams,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<GoogleAuthOptions> {}\n\n/**\n * Integration with an Google embeddings model.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<GoogleAuthOptions>\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<GoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;AAiBA,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,YAAY;CACxB;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"media.cjs","names":["BlobStoreGoogleCloudStorageBase","fields?: BlobStoreGoogleCloudStorageParams","GAuthClient","BlobStoreAIStudioFileBase","fields?: BlobStoreAIStudioFileParams"],"sources":["../src/media.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport {\n BlobStoreGoogleCloudStorageBase,\n BlobStoreGoogleCloudStorageBaseParams,\n BlobStoreAIStudioFileBase,\n BlobStoreAIStudioFileBaseParams,\n} from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\nexport interface BlobStoreGoogleCloudStorageParams\n extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(\n fields?: BlobStoreGoogleCloudStorageParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n\nexport interface BlobStoreAIStudioFileParams\n extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(\n fields?: BlobStoreAIStudioFileParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;AAaA,IAAa,8BAAb,cAAiDA,6EAAmD;CAClG,YACEC,QACwB;AACxB,SAAO,IAAIC,yBAAY;CACxB;AACF;AAKD,IAAa,wBAAb,cAA2CC,uEAA6C;CACtF,sBACEC,QACwB;AACxB,SAAO,IAAIF,yBAAY;CACxB;AACF"}
1
+ {"version":3,"file":"media.cjs","names":["BlobStoreGoogleCloudStorageBase","fields?: BlobStoreGoogleCloudStorageParams","GAuthClient","BlobStoreAIStudioFileBase","fields?: BlobStoreAIStudioFileParams"],"sources":["../src/media.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport {\n BlobStoreGoogleCloudStorageBase,\n BlobStoreGoogleCloudStorageBaseParams,\n BlobStoreAIStudioFileBase,\n BlobStoreAIStudioFileBaseParams,\n} from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\nexport interface BlobStoreGoogleCloudStorageParams extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(\n fields?: BlobStoreGoogleCloudStorageParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n\nexport interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(\n fields?: BlobStoreAIStudioFileParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;AAYA,IAAa,8BAAb,cAAiDA,6EAAmD;CAClG,YACEC,QACwB;AACxB,SAAO,IAAIC,yBAAY;CACxB;AACF;AAID,IAAa,wBAAb,cAA2CC,uEAA6C;CACtF,sBACEC,QACwB;AACxB,SAAO,IAAIF,yBAAY;CACxB;AACF"}
package/dist/media.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"media.js","names":["fields?: BlobStoreGoogleCloudStorageParams","fields?: BlobStoreAIStudioFileParams"],"sources":["../src/media.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport {\n BlobStoreGoogleCloudStorageBase,\n BlobStoreGoogleCloudStorageBaseParams,\n BlobStoreAIStudioFileBase,\n BlobStoreAIStudioFileBaseParams,\n} from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\nexport interface BlobStoreGoogleCloudStorageParams\n extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(\n fields?: BlobStoreGoogleCloudStorageParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n\nexport interface BlobStoreAIStudioFileParams\n extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(\n fields?: BlobStoreAIStudioFileParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;AAaA,IAAa,8BAAb,cAAiD,gCAAmD;CAClG,YACEA,QACwB;AACxB,SAAO,IAAI,YAAY;CACxB;AACF;AAKD,IAAa,wBAAb,cAA2C,0BAA6C;CACtF,sBACEC,QACwB;AACxB,SAAO,IAAI,YAAY;CACxB;AACF"}
1
+ {"version":3,"file":"media.js","names":["fields?: BlobStoreGoogleCloudStorageParams","fields?: BlobStoreAIStudioFileParams"],"sources":["../src/media.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport {\n BlobStoreGoogleCloudStorageBase,\n BlobStoreGoogleCloudStorageBaseParams,\n BlobStoreAIStudioFileBase,\n BlobStoreAIStudioFileBaseParams,\n} from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\nexport interface BlobStoreGoogleCloudStorageParams extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(\n fields?: BlobStoreGoogleCloudStorageParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n\nexport interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(\n fields?: BlobStoreAIStudioFileParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;AAYA,IAAa,8BAAb,cAAiD,gCAAmD;CAClG,YACEA,QACwB;AACxB,SAAO,IAAI,YAAY;CACxB;AACF;AAID,IAAa,wBAAb,cAA2C,0BAA6C;CACtF,sBACEC,QACwB;AACxB,SAAO,IAAI,YAAY;CACxB;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-gauth",
3
- "version": "2.1.15",
3
+ "version": "2.1.16",
4
4
  "description": "Google auth based authentication support for Google services",
5
5
  "author": "LangChain",
6
6
  "license": "MIT",
@@ -15,11 +15,11 @@
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": "2.1.15"
18
+ "@langchain/google-common": "2.1.16"
19
19
  },
20
20
  "devDependencies": {
21
- "@jest/globals": "^29.5.0",
22
- "@swc/core": "^1.3.90",
21
+ "@jest/globals": "^30.2.0",
22
+ "@swc/core": "^1.15.11",
23
23
  "@swc/jest": "^0.2.29",
24
24
  "@tsconfig/recommended": "^1.0.3",
25
25
  "dotenv": "^16.3.1",
@@ -28,7 +28,7 @@
28
28
  "jest": "^29.5.0",
29
29
  "jest-environment-node": "^29.6.4",
30
30
  "prettier": "^3.5.0",
31
- "ts-jest": "^29.1.0",
31
+ "ts-jest": "^29.4.6",
32
32
  "typescript": "~5.8.3",
33
33
  "zod": "^3.25.76",
34
34
  "@langchain/eslint": "0.1.1",