@aigne/core 0.4.209 → 0.4.210
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/lib/cjs/definitions/data-type-schema.js +3 -3
- package/lib/cjs/definitions/open-api.js +2 -0
- package/lib/cjs/index.js +3 -0
- package/lib/cjs/open-api-agent.js +62 -0
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/constants.js +4 -0
- package/lib/cjs/utils/fetch-open-api.js +30 -0
- package/lib/cjs/utils/fetch.js +20 -0
- package/lib/cjs/utils/index.js +3 -0
- package/lib/cjs/utils/open-api-parameter.js +84 -0
- package/lib/esm/definitions/data-type-schema.js +1 -1
- package/lib/esm/definitions/open-api.js +1 -0
- package/lib/esm/index.js +3 -0
- package/lib/esm/open-api-agent.js +59 -0
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/constants.js +1 -0
- package/lib/esm/utils/fetch-open-api.js +26 -0
- package/lib/esm/utils/fetch.js +17 -0
- package/lib/esm/utils/index.js +3 -0
- package/lib/esm/utils/open-api-parameter.js +78 -0
- package/lib/types/context.d.ts +1 -0
- package/lib/types/definitions/data-type-schema.d.ts +1 -1
- package/lib/types/definitions/open-api.d.ts +36 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/open-api-agent.d.ts +55 -0
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/lib/types/utils/constants.d.ts +1 -0
- package/lib/types/utils/fetch-open-api.d.ts +2 -0
- package/lib/types/utils/fetch.d.ts +1 -0
- package/lib/types/utils/index.d.ts +3 -0
- package/lib/types/utils/open-api-parameter.d.ts +7 -0
- package/package.json +2 -20
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FETCH_TIMEOUT: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function checkFetchResponse(result: Response): Promise<Response>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
export * from './fetch';
|
|
2
|
+
export * from './fetch-open-api';
|
|
1
3
|
export * from './is-non-nullable';
|
|
2
4
|
export * from './mustache-utils';
|
|
3
5
|
export * from './nullable';
|
|
4
6
|
export * from './omit';
|
|
7
|
+
export * from './open-api-parameter';
|
|
5
8
|
export * from './ordered-map';
|
|
6
9
|
export * from './stream-utils';
|
|
7
10
|
export * from './union';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AuthConfig, FetchRequest, HTTPMethod } from '../definitions/open-api';
|
|
2
|
+
import type { OpenAPIAgentDefinition } from '../open-api-agent';
|
|
3
|
+
export declare function formatOpenAPIRequest(api: {
|
|
4
|
+
url: string;
|
|
5
|
+
method: HTTPMethod;
|
|
6
|
+
auth?: AuthConfig;
|
|
7
|
+
}, inputs: OpenAPIAgentDefinition['inputs'], input: Record<string, any>): Promise<FetchRequest>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.210",
|
|
4
4
|
"description": "AIGNE core library",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,36 +23,18 @@
|
|
|
23
23
|
"url": "git+https://github.com/blocklet/ai-studio.git"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@abtnode/client": "^1.16.37",
|
|
27
|
-
"@blocklet/sdk": "^1.16.37",
|
|
28
26
|
"@types/mustache": "^4.2.5",
|
|
29
|
-
"axios": "^1.7.5",
|
|
30
|
-
"cron": "^3.1.7",
|
|
31
|
-
"fast-deep-equal": "^3.1.3",
|
|
32
|
-
"fastq": "^1.17.1",
|
|
33
|
-
"fs-extra": "^11.2.0",
|
|
34
|
-
"glob": "^10.4.5",
|
|
35
|
-
"joi": "^17.13.3",
|
|
36
|
-
"js-base64": "^3.7.7",
|
|
37
|
-
"js-cookie": "^3.0.5",
|
|
38
|
-
"json-logic-js": "^2.0.5",
|
|
39
|
-
"json-stable-stringify": "^1.1.1",
|
|
40
27
|
"lodash": "^4.17.21",
|
|
41
28
|
"mustache": "^4.2.0",
|
|
42
29
|
"nanoid": "^3.3.7",
|
|
43
|
-
"openapi3-ts": "^4.3.3",
|
|
44
|
-
"react-querybuilder": "^7.7.1",
|
|
45
|
-
"snowflake-uuid": "^1.0.0",
|
|
46
30
|
"tsyringe": "^4.8.0",
|
|
47
|
-
"ufo": "^1.5.4"
|
|
48
|
-
"yaml": "^2.5.0"
|
|
31
|
+
"ufo": "^1.5.4"
|
|
49
32
|
},
|
|
50
33
|
"devDependencies": {
|
|
51
34
|
"@tsconfig/recommended": "^1.0.8",
|
|
52
35
|
"@types/bun": "^1.1.16",
|
|
53
36
|
"npm-run-all": "^4.1.5",
|
|
54
37
|
"rimraf": "^6.0.1",
|
|
55
|
-
"ts-jest": "^29.2.5",
|
|
56
38
|
"typescript": "^5.5.4"
|
|
57
39
|
},
|
|
58
40
|
"scripts": {
|