@langchain/google-webauth 0.0.27 → 0.1.2
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 +17 -0
- package/dist/media.d.ts +13 -0
- package/dist/media.js +12 -0
- package/package.json +8 -4
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;
|
package/dist/media.d.ts
ADDED
|
@@ -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.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Web-based authentication support for Google services",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -32,12 +32,15 @@
|
|
|
32
32
|
"author": "LangChain",
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@langchain/
|
|
36
|
-
"@langchain/google-common": "~0.0.27",
|
|
35
|
+
"@langchain/google-common": "~0.1.2",
|
|
37
36
|
"web-auth-library": "^1.0.3"
|
|
38
37
|
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@langchain/core": ">=0.2.21 <0.4.0"
|
|
40
|
+
},
|
|
39
41
|
"devDependencies": {
|
|
40
42
|
"@jest/globals": "^29.5.0",
|
|
43
|
+
"@langchain/core": "workspace:*",
|
|
41
44
|
"@langchain/scripts": ">=0.1.0 <0.2.0",
|
|
42
45
|
"@swc/core": "^1.3.90",
|
|
43
46
|
"@swc/jest": "^0.2.29",
|
|
@@ -58,7 +61,8 @@
|
|
|
58
61
|
"release-it": "^17.6.0",
|
|
59
62
|
"rollup": "^4.5.2",
|
|
60
63
|
"ts-jest": "^29.1.0",
|
|
61
|
-
"typescript": "<5.2.0"
|
|
64
|
+
"typescript": "<5.2.0",
|
|
65
|
+
"zod": "^3.23.8"
|
|
62
66
|
},
|
|
63
67
|
"publishConfig": {
|
|
64
68
|
"access": "public"
|