AgentOptions: {
    authSecret: string;
    customizeErrorMessage?: ((error: Error) => string | null) | null;
    envSecret: string;
    experimental?: {
        updateRecordCustomActions?: boolean;
        webhookCustomActions?: boolean;
    };
    forestAdminClient?: ForestAdminClient;
    forestServerUrl?: string;
    ignoreMissingSchemaElementErrors?: boolean;
    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 ignoreMissingSchemaElementErrors?: boolean

    If true, the agent will not throw an error when a customization error occurs, because of a missing collection for example.

    Default

    false

  • 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