@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.
@@ -0,0 +1 @@
1
+ export declare const FETCH_TIMEOUT: number;
@@ -0,0 +1,2 @@
1
+ import type { FetchRequest } from '../definitions/open-api';
2
+ export declare const fetchOpenApi: (request: FetchRequest) => Promise<any>;
@@ -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.209",
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": {