import CommunicationProtocolEnum from "../enum/CommunicationProtocol.enum"; import { ActorRuntimeOptions } from "./actors/ActorRuntimeOptions"; import { LoggerOptions } from "./logger/LoggerOptions"; export type DaprClientOptions = { /** * Host location of the Dapr sidecar. * Default is 127.0.0.1. */ daprHost: string; /** * Port of the Dapr sidecar. * Default is 3500. */ daprPort: string; /** * Protocol to use to communicate with the Dapr sidecar. * Default is HTTP. */ communicationProtocol: CommunicationProtocolEnum; /** * If set to false, the HTTP client will not reuse the same connection for multiple requests. * Default is true. */ isKeepAlive?: boolean; /** * Options related to logging. */ logger?: LoggerOptions; /** * Options related to actors. */ actor?: ActorRuntimeOptions; /** * API token to authenticate with Dapr. * See https://docs.dapr.io/operations/security/api-token/. */ daprApiToken?: string; /** * The maximum size of the request body in megabytes. * Default is 4MB. */ maxBodySizeMb?: number; };