@langchain/google-webauth 0.2.17 → 1.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 +18 -0
- package/LICENSE +6 -6
- package/README.md +2 -5
- package/dist/_virtual/rolldown_runtime.cjs +25 -0
- package/dist/auth.cjs +37 -42
- package/dist/auth.cjs.map +1 -0
- package/dist/auth.d.cts +13 -0
- package/dist/auth.d.cts.map +1 -0
- package/dist/auth.d.ts +11 -13
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +36 -41
- package/dist/auth.js.map +1 -0
- package/dist/chat_models.cjs +21 -19
- package/dist/chat_models.cjs.map +1 -0
- package/dist/chat_models.d.cts +21 -0
- package/dist/chat_models.d.cts.map +1 -0
- package/dist/chat_models.d.ts +13 -7
- package/dist/chat_models.d.ts.map +1 -0
- package/dist/chat_models.js +20 -15
- package/dist/chat_models.js.map +1 -0
- package/dist/embeddings.cjs +22 -25
- package/dist/embeddings.cjs.map +1 -0
- package/dist/embeddings.d.cts +22 -0
- package/dist/embeddings.d.cts.map +1 -0
- package/dist/embeddings.d.ts +14 -8
- package/dist/embeddings.d.ts.map +1 -0
- package/dist/embeddings.js +21 -21
- package/dist/embeddings.js.map +1 -0
- package/dist/index.cjs +7 -19
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +5 -3
- package/dist/llms.cjs +22 -25
- package/dist/llms.cjs.map +1 -0
- package/dist/llms.d.cts +22 -0
- package/dist/llms.d.cts.map +1 -0
- package/dist/llms.d.ts +14 -8
- package/dist/llms.d.ts.map +1 -0
- package/dist/llms.js +21 -21
- package/dist/llms.js.map +1 -0
- package/dist/types.cjs +9 -17
- package/dist/types.d.cts +1 -0
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utils.cjs +9 -17
- package/dist/utils.d.cts +1 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +55 -68
- package/dist/media.cjs +0 -17
- package/dist/media.d.ts +0 -13
- package/dist/media.js +0 -12
- package/index.cjs +0 -1
- package/index.d.cts +0 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/types.cjs +0 -1
- package/types.d.cts +0 -1
- package/types.d.ts +0 -1
- package/types.js +0 -1
- package/utils.cjs +0 -1
- package/utils.d.cts +0 -1
- package/utils.d.ts +0 -1
- package/utils.js +0 -1
package/dist/embeddings.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { BaseGoogleEmbeddings, } from "@langchain/google-common";
|
|
2
1
|
import { WebGoogleAuth } from "./auth.js";
|
|
2
|
+
import { BaseGoogleEmbeddings } from "@langchain/google-common";
|
|
3
|
+
|
|
4
|
+
//#region src/embeddings.ts
|
|
3
5
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
}
|
|
6
|
+
* Integration with an LLM.
|
|
7
|
+
*/
|
|
8
|
+
var GoogleEmbeddings = class extends BaseGoogleEmbeddings {
|
|
9
|
+
static lc_name() {
|
|
10
|
+
return "GoogleEmbeddings";
|
|
11
|
+
}
|
|
12
|
+
lc_serializable = true;
|
|
13
|
+
constructor(fields) {
|
|
14
|
+
super(fields);
|
|
15
|
+
}
|
|
16
|
+
buildAbstractedClient(fields) {
|
|
17
|
+
return new WebGoogleAuth(fields);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { GoogleEmbeddings };
|
|
23
|
+
//# sourceMappingURL=embeddings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embeddings.js","names":["fields: GoogleEmbeddingsInput","fields?: GoogleConnectionParams<WebGoogleAuthOptions>"],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleConnectionParams,\n BaseGoogleEmbeddings,\n BaseGoogleEmbeddingsParams,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput\n extends BaseGoogleEmbeddingsParams<WebGoogleAuthOptions> {}\n\n/**\n * Integration with an LLM.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<WebGoogleAuthOptions>\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<WebGoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(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,cAAc;CAC1B;AACF"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./chat_models.cjs"), exports);
|
|
18
|
-
__exportStar(require("./llms.cjs"), exports);
|
|
19
|
-
__exportStar(require("./embeddings.cjs"), exports);
|
|
1
|
+
const require_chat_models = require('./chat_models.cjs');
|
|
2
|
+
const require_llms = require('./llms.cjs');
|
|
3
|
+
const require_embeddings = require('./embeddings.cjs');
|
|
4
|
+
|
|
5
|
+
exports.ChatGoogle = require_chat_models.ChatGoogle;
|
|
6
|
+
exports.GoogleEmbeddings = require_embeddings.GoogleEmbeddings;
|
|
7
|
+
exports.GoogleLLM = require_llms.GoogleLLM;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ChatGoogle, ChatGoogleInput } from "./chat_models.cjs";
|
|
2
|
+
import { GoogleLLM, GoogleLLMInput } from "./llms.cjs";
|
|
3
|
+
import { GoogleEmbeddings, GoogleEmbeddingsInput } from "./embeddings.cjs";
|
|
4
|
+
export { ChatGoogle, ChatGoogleInput, GoogleEmbeddings, GoogleEmbeddingsInput, GoogleLLM, GoogleLLMInput };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ChatGoogle, ChatGoogleInput } from "./chat_models.js";
|
|
2
|
+
import { GoogleLLM, GoogleLLMInput } from "./llms.js";
|
|
3
|
+
import { GoogleEmbeddings, GoogleEmbeddingsInput } from "./embeddings.js";
|
|
4
|
+
export { ChatGoogle, ChatGoogleInput, GoogleEmbeddings, GoogleEmbeddingsInput, GoogleLLM, GoogleLLMInput };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ChatGoogle } from "./chat_models.js";
|
|
2
|
+
import { GoogleLLM } from "./llms.js";
|
|
3
|
+
import { GoogleEmbeddings } from "./embeddings.js";
|
|
4
|
+
|
|
5
|
+
export { ChatGoogle, GoogleEmbeddings, GoogleLLM };
|
package/dist/llms.cjs
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_auth = require('./auth.cjs');
|
|
3
|
+
const __langchain_google_common = require_rolldown_runtime.__toESM(require("@langchain/google-common"));
|
|
4
|
+
|
|
5
|
+
//#region src/llms.ts
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
buildAbstractedClient(fields) {
|
|
24
|
-
return new auth_js_1.WebGoogleAuth(fields);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
7
|
+
* Integration with an LLM.
|
|
8
|
+
*/
|
|
9
|
+
var GoogleLLM = class extends __langchain_google_common.GoogleBaseLLM {
|
|
10
|
+
static lc_name() {
|
|
11
|
+
return "GoogleLLM";
|
|
12
|
+
}
|
|
13
|
+
lc_serializable = true;
|
|
14
|
+
constructor(fields) {
|
|
15
|
+
super(fields);
|
|
16
|
+
}
|
|
17
|
+
buildAbstractedClient(fields) {
|
|
18
|
+
return new require_auth.WebGoogleAuth(fields);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
27
23
|
exports.GoogleLLM = GoogleLLM;
|
|
24
|
+
//# sourceMappingURL=llms.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llms.cjs","names":["GoogleBaseLLM","fields?: GoogleLLMInput","fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined","WebGoogleAuth"],"sources":["../src/llms.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleBaseLLM,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput\n extends GoogleBaseLLMInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with an LLM.\n */\nexport class GoogleLLM\n extends GoogleBaseLLM<WebGoogleAuthOptions>\n implements GoogleLLMInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"GoogleLLM\";\n }\n\n lc_serializable = true;\n\n constructor(fields?: GoogleLLMInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;;AAgBA,IAAa,YAAb,cACUA,wCAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,kBAAkB;CAElB,YAAYC,QAAyB;EACnC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAIC,2BAAc;CAC1B;AACF"}
|
package/dist/llms.d.cts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { WebGoogleAuthOptions } from "./auth.cjs";
|
|
2
|
+
import { GoogleAbstractedClient, GoogleBaseLLM, GoogleBaseLLMInput } from "@langchain/google-common";
|
|
3
|
+
|
|
4
|
+
//#region src/llms.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Input to LLM class.
|
|
8
|
+
*/
|
|
9
|
+
interface GoogleLLMInput extends GoogleBaseLLMInput<WebGoogleAuthOptions> {}
|
|
10
|
+
/**
|
|
11
|
+
* Integration with an LLM.
|
|
12
|
+
*/
|
|
13
|
+
declare class GoogleLLM extends GoogleBaseLLM<WebGoogleAuthOptions> implements GoogleLLMInput {
|
|
14
|
+
// Used for tracing, replace with the same name as your class
|
|
15
|
+
static lc_name(): string;
|
|
16
|
+
lc_serializable: boolean;
|
|
17
|
+
constructor(fields?: GoogleLLMInput);
|
|
18
|
+
buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { GoogleLLM, GoogleLLMInput };
|
|
22
|
+
//# sourceMappingURL=llms.d.cts.map
|
|
@@ -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 // 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<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAA+B,UAAdI,cAAAA,SAAuBF,kBAAT,CAA4BC,oBAA5B,CAAA,CAAA;;AAA2B;AAK1D;AAA8B,cAATE,SAAAA,SAAkBJ,aAAT,CAAuBE,oBAAvB,CAAA,YAAwDC,cAAxD,CAAA;EAAA;EAA2C,OAIhDA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAc,eACcD,EAAAA,OAAAA;EAAoB,WAAvCD,CAAAA,MAAAA,CAAAA,EADTE,cACSF;EAAkB,qBAAqCF,CAAAA,MAAAA,EAAvDE,kBAAuDF,CAApCG,oBAAoCH,CAAAA,GAAAA,SAAAA,CAAAA,EAAAA,sBAAAA"}
|
package/dist/llms.d.ts
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import { GoogleAbstractedClient, GoogleBaseLLM, GoogleBaseLLMInput } from "@langchain/google-common";
|
|
2
1
|
import { WebGoogleAuthOptions } from "./auth.js";
|
|
2
|
+
import { GoogleAbstractedClient, GoogleBaseLLM, GoogleBaseLLMInput } from "@langchain/google-common";
|
|
3
|
+
|
|
4
|
+
//#region src/llms.d.ts
|
|
5
|
+
|
|
3
6
|
/**
|
|
4
7
|
* Input to LLM class.
|
|
5
8
|
*/
|
|
6
|
-
|
|
7
|
-
}
|
|
9
|
+
interface GoogleLLMInput extends GoogleBaseLLMInput<WebGoogleAuthOptions> {}
|
|
8
10
|
/**
|
|
9
11
|
* Integration with an LLM.
|
|
10
12
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
declare class GoogleLLM extends GoogleBaseLLM<WebGoogleAuthOptions> implements GoogleLLMInput {
|
|
14
|
+
// Used for tracing, replace with the same name as your class
|
|
15
|
+
static lc_name(): string;
|
|
16
|
+
lc_serializable: boolean;
|
|
17
|
+
constructor(fields?: GoogleLLMInput);
|
|
18
|
+
buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;
|
|
16
19
|
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { GoogleLLM, GoogleLLMInput };
|
|
22
|
+
//# sourceMappingURL=llms.d.ts.map
|
|
@@ -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 // 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<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAA+B,UAAdI,cAAAA,SAAuBF,kBAAT,CAA4BC,oBAA5B,CAAA,CAAA;;AAA2B;AAK1D;AAA8B,cAATE,SAAAA,SAAkBJ,aAAT,CAAuBE,oBAAvB,CAAA,YAAwDC,cAAxD,CAAA;EAAA;EAA2C,OAIhDA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAc,eACcD,EAAAA,OAAAA;EAAoB,WAAvCD,CAAAA,MAAAA,CAAAA,EADTE,cACSF;EAAkB,qBAAqCF,CAAAA,MAAAA,EAAvDE,kBAAuDF,CAApCG,oBAAoCH,CAAAA,GAAAA,SAAAA,CAAAA,EAAAA,sBAAAA"}
|
package/dist/llms.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { GoogleBaseLLM, } from "@langchain/google-common";
|
|
2
1
|
import { WebGoogleAuth } from "./auth.js";
|
|
2
|
+
import { GoogleBaseLLM } from "@langchain/google-common";
|
|
3
|
+
|
|
4
|
+
//#region src/llms.ts
|
|
3
5
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
}
|
|
6
|
+
* Integration with an LLM.
|
|
7
|
+
*/
|
|
8
|
+
var GoogleLLM = class extends GoogleBaseLLM {
|
|
9
|
+
static lc_name() {
|
|
10
|
+
return "GoogleLLM";
|
|
11
|
+
}
|
|
12
|
+
lc_serializable = true;
|
|
13
|
+
constructor(fields) {
|
|
14
|
+
super(fields);
|
|
15
|
+
}
|
|
16
|
+
buildAbstractedClient(fields) {
|
|
17
|
+
return new WebGoogleAuth(fields);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { GoogleLLM };
|
|
23
|
+
//# sourceMappingURL=llms.js.map
|
package/dist/llms.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llms.js","names":["fields?: GoogleLLMInput","fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined"],"sources":["../src/llms.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleBaseLLM,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput\n extends GoogleBaseLLMInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with an LLM.\n */\nexport class GoogleLLM\n extends GoogleBaseLLM<WebGoogleAuthOptions>\n implements GoogleLLMInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"GoogleLLM\";\n }\n\n lc_serializable = true;\n\n constructor(fields?: GoogleLLMInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,YAAb,cACU,cAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,kBAAkB;CAElB,YAAYA,QAAyB;EACnC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAI,cAAc;CAC1B;AACF"}
|
package/dist/types.cjs
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
})
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("@langchain/google-common/types"), exports);
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var __langchain_google_common_types = require("@langchain/google-common/types");
|
|
4
|
+
Object.keys(__langchain_google_common_types).forEach(function (k) {
|
|
5
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () { return __langchain_google_common_types[k]; }
|
|
8
|
+
});
|
|
9
|
+
});
|
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@langchain/google-common/types";
|
package/dist/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@langchain/google-common/types";
|
|
1
|
+
export * from "@langchain/google-common/types";
|
package/dist/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@langchain/google-common/types"
|
|
1
|
+
export * from "@langchain/google-common/types"
|
package/dist/utils.cjs
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
})
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("@langchain/google-common/utils"), exports);
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var __langchain_google_common_utils = require("@langchain/google-common/utils");
|
|
4
|
+
Object.keys(__langchain_google_common_utils).forEach(function (k) {
|
|
5
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () { return __langchain_google_common_utils[k]; }
|
|
8
|
+
});
|
|
9
|
+
});
|
package/dist/utils.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@langchain/google-common/utils";
|
package/dist/utils.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@langchain/google-common/utils";
|
|
1
|
+
export * from "@langchain/google-common/utils";
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@langchain/google-common/utils"
|
|
1
|
+
export * from "@langchain/google-common/utils"
|
package/package.json
CHANGED
|
@@ -1,115 +1,102 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/google-webauth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Web-based authentication support for Google services",
|
|
5
|
+
"author": "LangChain",
|
|
6
|
+
"license": "MIT",
|
|
5
7
|
"type": "module",
|
|
6
8
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
9
|
+
"node": ">=20"
|
|
8
10
|
},
|
|
9
|
-
"main": "./index.js",
|
|
10
|
-
"types": "./index.d.ts",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "git@github.com:langchain-ai/langchainjs.git"
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-google-webauth/",
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "yarn turbo:command build:internal --filter=@langchain/google-webauth",
|
|
18
|
-
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
|
|
19
|
-
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
|
|
20
|
-
"lint:dpdm": "dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
|
|
21
|
-
"lint": "yarn lint:eslint && yarn lint:dpdm",
|
|
22
|
-
"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
|
|
23
|
-
"clean": "rm -rf .turbo dist/",
|
|
24
|
-
"prepack": "yarn build",
|
|
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%",
|
|
29
|
-
"format": "prettier --config .prettierrc --write \"src\"",
|
|
30
|
-
"format:check": "prettier --config .prettierrc --check \"src\""
|
|
31
|
-
},
|
|
32
|
-
"author": "LangChain",
|
|
33
|
-
"license": "MIT",
|
|
34
16
|
"dependencies": {
|
|
35
|
-
"@langchain/google-common": "^0.
|
|
17
|
+
"@langchain/google-common": "^1.0.0",
|
|
36
18
|
"web-auth-library": "^1.0.3"
|
|
37
19
|
},
|
|
38
20
|
"peerDependencies": {
|
|
39
|
-
"@langchain/core": "
|
|
21
|
+
"@langchain/core": "^1.0.0"
|
|
40
22
|
},
|
|
41
23
|
"devDependencies": {
|
|
42
24
|
"@jest/globals": "^29.5.0",
|
|
43
|
-
"@langchain/core": "workspace:*",
|
|
44
|
-
"@langchain/scripts": ">=0.1.0 <0.2.0",
|
|
45
25
|
"@swc/core": "^1.3.90",
|
|
46
26
|
"@swc/jest": "^0.2.29",
|
|
47
27
|
"@tsconfig/recommended": "^1.0.3",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
49
|
-
"@typescript-eslint/parser": "^6.12.0",
|
|
50
28
|
"dotenv": "^16.3.1",
|
|
51
29
|
"dpdm": "^3.14.0",
|
|
52
|
-
"eslint": "^
|
|
53
|
-
"eslint-config-airbnb-base": "^15.0.0",
|
|
54
|
-
"eslint-config-prettier": "^8.6.0",
|
|
55
|
-
"eslint-plugin-import": "^2.27.5",
|
|
56
|
-
"eslint-plugin-no-instanceof": "^1.0.1",
|
|
57
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
30
|
+
"eslint": "^9.34.0",
|
|
58
31
|
"jest": "^29.5.0",
|
|
59
32
|
"jest-environment-node": "^29.6.4",
|
|
60
33
|
"prettier": "^2.8.3",
|
|
61
|
-
"release-it": "^18.1.2",
|
|
62
34
|
"rollup": "^4.5.2",
|
|
63
35
|
"ts-jest": "^29.1.0",
|
|
64
36
|
"typescript": "~5.8.3",
|
|
65
|
-
"zod": "^3.
|
|
37
|
+
"zod": "^3.25.76",
|
|
38
|
+
"@langchain/core": "1.0.0",
|
|
39
|
+
"@langchain/eslint": "0.1.0"
|
|
66
40
|
},
|
|
67
41
|
"publishConfig": {
|
|
68
42
|
"access": "public"
|
|
69
43
|
},
|
|
44
|
+
"main": "./dist/index.js",
|
|
45
|
+
"types": "./dist/index.d.ts",
|
|
70
46
|
"exports": {
|
|
71
47
|
".": {
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
"default": "./index.
|
|
48
|
+
"input": "./src/index.ts",
|
|
49
|
+
"import": {
|
|
50
|
+
"types": "./dist/index.d.ts",
|
|
51
|
+
"default": "./dist/index.js"
|
|
76
52
|
},
|
|
77
|
-
"
|
|
78
|
-
|
|
53
|
+
"require": {
|
|
54
|
+
"types": "./dist/index.d.cts",
|
|
55
|
+
"default": "./dist/index.cjs"
|
|
56
|
+
}
|
|
79
57
|
},
|
|
80
58
|
"./utils": {
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
"default": "./utils.
|
|
59
|
+
"input": "./src/utils.ts",
|
|
60
|
+
"import": {
|
|
61
|
+
"types": "./dist/utils.d.ts",
|
|
62
|
+
"default": "./dist/utils.js"
|
|
85
63
|
},
|
|
86
|
-
"
|
|
87
|
-
|
|
64
|
+
"require": {
|
|
65
|
+
"types": "./dist/utils.d.cts",
|
|
66
|
+
"default": "./dist/utils.cjs"
|
|
67
|
+
}
|
|
88
68
|
},
|
|
89
69
|
"./types": {
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
"
|
|
93
|
-
"default": "./types.
|
|
70
|
+
"input": "./src/types.ts",
|
|
71
|
+
"import": {
|
|
72
|
+
"types": "./dist/types.d.ts",
|
|
73
|
+
"default": "./dist/types.js"
|
|
94
74
|
},
|
|
95
|
-
"
|
|
96
|
-
|
|
75
|
+
"require": {
|
|
76
|
+
"types": "./dist/types.d.cts",
|
|
77
|
+
"default": "./dist/types.cjs"
|
|
78
|
+
}
|
|
97
79
|
},
|
|
98
80
|
"./package.json": "./package.json"
|
|
99
81
|
},
|
|
100
82
|
"files": [
|
|
101
83
|
"dist/",
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
84
|
+
"CHANGELOG.md",
|
|
85
|
+
"README.md",
|
|
86
|
+
"LICENSE"
|
|
87
|
+
],
|
|
88
|
+
"scripts": {
|
|
89
|
+
"build": "pnpm --filter @langchain/build compile @langchain/google-webauth",
|
|
90
|
+
"lint:eslint": "eslint --cache src/",
|
|
91
|
+
"lint:dpdm": "dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
|
|
92
|
+
"lint": "pnpm lint:eslint && pnpm lint:dpdm",
|
|
93
|
+
"lint:fix": "pnpm lint:eslint --fix && pnpm lint:dpdm",
|
|
94
|
+
"clean": "rm -rf .turbo dist/",
|
|
95
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
|
|
96
|
+
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
|
|
97
|
+
"test:single": "NODE_OPTIONS=--experimental-vm-modules pnpm run jest --config jest.config.cjs --testTimeout 100000",
|
|
98
|
+
"test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
|
|
99
|
+
"format": "prettier --config .prettierrc --write \"src\"",
|
|
100
|
+
"format:check": "prettier --config .prettierrc --check \"src\""
|
|
101
|
+
}
|
|
102
|
+
}
|
package/dist/media.cjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('./dist/index.cjs');
|
package/index.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/index.js'
|
package/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/index.js'
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/index.js'
|
package/types.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('./dist/types.cjs');
|
package/types.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/types.js'
|
package/types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/types.js'
|
package/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/types.js'
|
package/utils.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('./dist/utils.cjs');
|
package/utils.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/utils.js'
|
package/utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/utils.js'
|
package/utils.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/utils.js'
|