UNPKG

@forestadmin/forestadmin-client

Version:

This package contains the logic to use the ForestAdmin API inside an agent.

12 lines 975 B
import { EnvironmentPermissionsV4, RenderingPermissionV4, UserPermissionV4 } from './types'; import { ModelCustomization } from '../model-customizations/types'; import { ForestAdminAuthServiceInterface, ForestAdminClientOptions, ForestAdminClientOptionsWithDefaults, ForestAdminServerInterface } from '../types'; export type HttpOptions = Pick<ForestAdminClientOptionsWithDefaults, 'envSecret' | 'forestServerUrl'>; export default class ForestHttpApi implements ForestAdminServerInterface { getEnvironmentPermissions(options: HttpOptions): Promise<EnvironmentPermissionsV4>; getUsers(options: HttpOptions): Promise<UserPermissionV4[]>; getRenderingPermissions(renderingId: number, options: HttpOptions): Promise<RenderingPermissionV4>; getModelCustomizations(options: HttpOptions): Promise<ModelCustomization[]>; makeAuthService(options: Required<ForestAdminClientOptions>): ForestAdminAuthServiceInterface; } //# sourceMappingURL=forest-http-api.d.ts.map