AgentOptions: {
    authSecret: string;
    customizeErrorMessage?: ((error: Error) => string | null) | null;
    envSecret: string;
    experimental?: {
        updateRecordCustomActions?: boolean;
        webhookCustomActions?: boolean;
    };
    forestAdminClient?: ForestAdminClient;
    forestServerUrl?: string;
    instantCacheRefresh?: boolean;
    isProduction: boolean;
    logger?: Logger;
    loggerLevel?: LoggerLevel;
    maxBodySize?: string;
    permissionsCacheDurationInSeconds?: number;
    prefix?: string;
    schemaPath?: string;
    skipSchemaUpdate?: boolean;
    typingsMaxDepth?: number;
    typingsPath?: string | null;
}

Options to configure behavior of an agent's forestadmin driver

Type declaration

  • authSecret: string
  • Optional customizeErrorMessage?: ((error: Error) => string | null) | null
  • envSecret: string
  • Optional experimental?: {
        updateRecordCustomActions?: boolean;
        webhookCustomActions?: boolean;
    }
    • Optional updateRecordCustomActions?: boolean
    • Optional webhookCustomActions?: boolean
  • Optional forestAdminClient?: ForestAdminClient
  • Optional forestServerUrl?: string
  • Optional instantCacheRefresh?: boolean
  • isProduction: boolean
  • Optional logger?: Logger
  • Optional loggerLevel?: LoggerLevel
  • Optional maxBodySize?: string
  • Optional permissionsCacheDurationInSeconds?: number
  • Optional prefix?: string
  • Optional schemaPath?: string
  • Optional skipSchemaUpdate?: boolean
  • Optional typingsMaxDepth?: number
  • Optional typingsPath?: string | null