@forestadmin/forestadmin-client 1.37.18 → 1.38.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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { McpServerConfigService } from './types';
|
|
2
2
|
import type { ForestAdminClientOptionsWithDefaults, ForestAdminServerInterface } from '../types';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ToolConfig } from '@forestadmin/ai-proxy';
|
|
4
4
|
export default class McpServerConfigFromApiService implements McpServerConfigService {
|
|
5
5
|
private readonly forestadminServerInterface;
|
|
6
6
|
private readonly options;
|
|
7
7
|
constructor(forestadminServerInterface: ForestAdminServerInterface, options: ForestAdminClientOptionsWithDefaults);
|
|
8
|
-
getConfiguration(): Promise<
|
|
8
|
+
getConfiguration(): Promise<Record<string, ToolConfig>>;
|
|
9
9
|
}
|
|
10
10
|
export { McpServerConfigService } from './types';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ToolConfig } from '@forestadmin/ai-proxy';
|
|
2
2
|
export interface McpServerConfigService {
|
|
3
|
-
getConfiguration(): Promise<
|
|
3
|
+
getConfiguration(): Promise<Record<string, ToolConfig>>;
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -2,13 +2,13 @@ import type { EnvironmentPermissionsV4, RenderingPermissionV4, UserPermissionV4
|
|
|
2
2
|
import type { ModelCustomization } from '../model-customizations/types';
|
|
3
3
|
import type { ActivityLogHttpOptions, ActivityLogResponse, ForestAdminAuthServiceInterface, ForestAdminClientOptions, ForestAdminServerInterface, ForestSchemaCollection, IpWhitelistRulesResponse } from '../types';
|
|
4
4
|
import type { HttpOptions } from '../utils/http-options';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ToolConfig } from '@forestadmin/ai-proxy';
|
|
6
6
|
export default class ForestHttpApi implements ForestAdminServerInterface {
|
|
7
7
|
getEnvironmentPermissions(options: HttpOptions): Promise<EnvironmentPermissionsV4>;
|
|
8
8
|
getUsers(options: HttpOptions): Promise<UserPermissionV4[]>;
|
|
9
9
|
getRenderingPermissions(renderingId: number, options: HttpOptions): Promise<RenderingPermissionV4>;
|
|
10
10
|
getModelCustomizations(options: HttpOptions): Promise<ModelCustomization[]>;
|
|
11
|
-
getMcpServerConfigs(options: HttpOptions): Promise<
|
|
11
|
+
getMcpServerConfigs(options: HttpOptions): Promise<Record<string, ToolConfig>>;
|
|
12
12
|
makeAuthService(options: Required<ForestAdminClientOptions>): ForestAdminAuthServiceInterface;
|
|
13
13
|
getSchema(options: HttpOptions): Promise<ForestSchemaCollection[]>;
|
|
14
14
|
postSchema(options: HttpOptions, schema: object): Promise<void>;
|
package/dist/types.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type { ForestSchema } from './schema/types';
|
|
|
9
9
|
import type { RequestContextVariables } from './utils/context-variables';
|
|
10
10
|
import type ContextVariables from './utils/context-variables';
|
|
11
11
|
import type { HttpOptions } from './utils/http-options';
|
|
12
|
-
import type {
|
|
12
|
+
import type { ToolConfig } from '@forestadmin/ai-proxy';
|
|
13
13
|
import type { ParsedUrlQuery } from 'querystring';
|
|
14
14
|
export type { CollectionActionEvent, RawTree, RawTreeWithSources } from './permissions/types';
|
|
15
15
|
export type LoggerLevel = 'Debug' | 'Info' | 'Warn' | 'Error';
|
|
@@ -236,7 +236,7 @@ export interface ForestAdminServerInterface {
|
|
|
236
236
|
getUsers?: (...args: any[]) => Promise<UserPermissionV4[]>;
|
|
237
237
|
getRenderingPermissions?: (renderingId: number, ...args: any[]) => Promise<RenderingPermissionV4>;
|
|
238
238
|
getModelCustomizations?: (options: HttpOptions) => Promise<ModelCustomization[]>;
|
|
239
|
-
getMcpServerConfigs?: (options: HttpOptions) => Promise<
|
|
239
|
+
getMcpServerConfigs?: (options: HttpOptions) => Promise<Record<string, ToolConfig>>;
|
|
240
240
|
makeAuthService?(options: ForestAdminClientOptionsWithDefaults): ForestAdminAuthServiceInterface;
|
|
241
241
|
getSchema?: (options: HttpOptions) => Promise<ForestSchemaCollection[]>;
|
|
242
242
|
postSchema?: (options: HttpOptions, schema: object) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forestadmin/forestadmin-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"test": "jest"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@forestadmin/ai-proxy": "1.
|
|
35
|
-
"@forestadmin/datasource-toolkit": "1.53.
|
|
34
|
+
"@forestadmin/ai-proxy": "1.7.0",
|
|
35
|
+
"@forestadmin/datasource-toolkit": "1.53.1",
|
|
36
36
|
"@types/json-api-serializer": "^2.6.3",
|
|
37
37
|
"@types/jsonwebtoken": "^9.0.1",
|
|
38
38
|
"@types/superagent": "^8.1.9"
|