@aigne/core 0.4.210 → 0.4.211-beta.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.
@@ -0,0 +1,3 @@
1
+ import { FetchRequest } from '../definitions/api-parameter';
2
+ export declare const fetchApi: (request: FetchRequest) => Promise<any>;
3
+ export default fetchApi;
@@ -0,0 +1,25 @@
1
+ export declare function flattenApiStructure(apiStructure: {
2
+ paths: {
3
+ [key: string]: {
4
+ [key: string]: {
5
+ 'x-id': string;
6
+ 'x-did': string;
7
+ 'x-path': string;
8
+ 'x-method': string;
9
+ type: string;
10
+ summary?: string;
11
+ description?: string;
12
+ };
13
+ };
14
+ };
15
+ }): {
16
+ id: string;
17
+ type: string;
18
+ url?: string;
19
+ name?: string;
20
+ did?: string;
21
+ path: string;
22
+ method: string;
23
+ summary?: string;
24
+ description?: string;
25
+ }[];
@@ -0,0 +1,6 @@
1
+ import { API, AuthConfig, AuthResult, FetchRequest, ParametersResult } from '../definitions/api-parameter';
2
+ import { RunnableDefinition } from '../runnable';
3
+ export declare function getAuthParams(auth?: AuthConfig): AuthResult;
4
+ export declare function processParameters(api: API, inputs: RunnableDefinition['inputs'], input: Record<string, any>): ParametersResult;
5
+ export declare function mergeParameters(parameters: AuthResult, authParams: AuthResult): AuthResult;
6
+ export declare const formatRequest: (api: API, inputs: RunnableDefinition["inputs"], input: Record<string, any>) => FetchRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/core",
3
- "version": "0.4.210",
3
+ "version": "0.4.211-beta.2",
4
4
  "description": "AIGNE core library",
5
5
  "publishConfig": {
6
6
  "access": "public"