@langchain/google-webauth 0.0.26 → 0.1.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/dist/media.cjs ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BlobStoreAIStudioFile = exports.BlobStoreGoogleCloudStorage = void 0;
4
+ const media_1 = require("@langchain/google-common/experimental/media");
5
+ const auth_js_1 = require("./auth.cjs");
6
+ class BlobStoreGoogleCloudStorage extends media_1.BlobStoreGoogleCloudStorageBase {
7
+ buildClient(fields) {
8
+ return new auth_js_1.WebGoogleAuth(fields);
9
+ }
10
+ }
11
+ exports.BlobStoreGoogleCloudStorage = BlobStoreGoogleCloudStorage;
12
+ class BlobStoreAIStudioFile extends media_1.BlobStoreAIStudioFileBase {
13
+ buildAbstractedClient(fields) {
14
+ return new auth_js_1.WebGoogleAuth(fields);
15
+ }
16
+ }
17
+ exports.BlobStoreAIStudioFile = BlobStoreAIStudioFile;
@@ -0,0 +1,13 @@
1
+ import { GoogleAbstractedClient, GoogleBaseLLMInput } from "@langchain/google-common";
2
+ import { BlobStoreAIStudioFileBase, BlobStoreAIStudioFileBaseParams, BlobStoreGoogleCloudStorageBase, BlobStoreGoogleCloudStorageBaseParams } from "@langchain/google-common/experimental/media";
3
+ import { WebGoogleAuthOptions } from "./auth.js";
4
+ export interface BlobStoreGoogleCloudStorageParams extends BlobStoreGoogleCloudStorageBaseParams<WebGoogleAuthOptions> {
5
+ }
6
+ export declare class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<WebGoogleAuthOptions> {
7
+ buildClient(fields?: GoogleBaseLLMInput<WebGoogleAuthOptions>): GoogleAbstractedClient;
8
+ }
9
+ export interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<WebGoogleAuthOptions> {
10
+ }
11
+ export declare class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<WebGoogleAuthOptions> {
12
+ buildAbstractedClient(fields?: BlobStoreAIStudioFileParams): GoogleAbstractedClient;
13
+ }
package/dist/media.js ADDED
@@ -0,0 +1,12 @@
1
+ import { BlobStoreAIStudioFileBase, BlobStoreGoogleCloudStorageBase, } from "@langchain/google-common/experimental/media";
2
+ import { WebGoogleAuth } from "./auth.js";
3
+ export class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase {
4
+ buildClient(fields) {
5
+ return new WebGoogleAuth(fields);
6
+ }
7
+ }
8
+ export class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase {
9
+ buildAbstractedClient(fields) {
10
+ return new WebGoogleAuth(fields);
11
+ }
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-webauth",
3
- "version": "0.0.26",
3
+ "version": "0.1.0",
4
4
  "description": "Web-based authentication support for Google services",
5
5
  "type": "module",
6
6
  "engines": {
@@ -15,38 +15,33 @@
15
15
  "homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-google-webauth/",
16
16
  "scripts": {
17
17
  "build": "yarn turbo:command build:internal --filter=@langchain/google-webauth",
18
- "build:internal": "yarn lc_build_v2 --create-entrypoints --pre --tree-shaking",
19
- "build:deps": "yarn run turbo:command build --filter=@langchain/google-common",
20
- "build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rm -rf dist/tests dist/**/tests",
21
- "build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rm -rf dist-cjs",
22
- "build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch",
23
- "build:scripts": "yarn create-entrypoints && yarn check-tree-shaking",
18
+ "build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
24
19
  "lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
25
20
  "lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
26
21
  "lint": "yarn lint:eslint && yarn lint:dpdm",
27
22
  "lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
28
23
  "clean": "rm -rf .turbo dist/",
29
24
  "prepack": "yarn build",
30
- "test": "yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
31
- "test:watch": "yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
32
- "test:single": "yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
33
- "test:integration": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
25
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
26
+ "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
27
+ "test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
28
+ "test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
34
29
  "format": "prettier --config .prettierrc --write \"src\"",
35
- "format:check": "prettier --config .prettierrc --check \"src\"",
36
- "move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
37
- "create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
38
- "check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
30
+ "format:check": "prettier --config .prettierrc --check \"src\""
39
31
  },
40
32
  "author": "LangChain",
41
33
  "license": "MIT",
42
34
  "dependencies": {
43
- "@langchain/core": ">=0.2.21 <0.3.0",
44
- "@langchain/google-common": "~0.0.26",
35
+ "@langchain/google-common": "~0.1.0",
45
36
  "web-auth-library": "^1.0.3"
46
37
  },
38
+ "peerDependencies": {
39
+ "@langchain/core": ">=0.2.21 <0.4.0"
40
+ },
47
41
  "devDependencies": {
48
42
  "@jest/globals": "^29.5.0",
49
- "@langchain/scripts": "~0.0.20",
43
+ "@langchain/core": "workspace:*",
44
+ "@langchain/scripts": ">=0.1.0 <0.2.0",
50
45
  "@swc/core": "^1.3.90",
51
46
  "@swc/jest": "^0.2.29",
52
47
  "@tsconfig/recommended": "^1.0.3",
@@ -66,7 +61,8 @@
66
61
  "release-it": "^17.6.0",
67
62
  "rollup": "^4.5.2",
68
63
  "ts-jest": "^29.1.0",
69
- "typescript": "<5.2.0"
64
+ "typescript": "<5.2.0",
65
+ "zod": "^3.23.8"
70
66
  },
71
67
  "publishConfig": {
72
68
  "access": "public"