ConfluenceClientOptions
Defined in: index.ts:9
Options for createConfluenceClient.
Properties
Section titled “Properties”baseUrl
Section titled “baseUrl”baseUrl:
string
Defined in: index.ts:11
Base URL including the API path, e.g. “https://myorg.atlassian.net/wiki/rest/api”.
errors?
Section titled “errors?”
optionalerrors?:ErrorSink
Defined in: index.ts:19
Reports transport failures and unexpected 5xx. Defaults to a no-op.
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Defined in: index.ts:15
Override fetch for testing. Defaults to globalThis.fetch.
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
logger?
Section titled “logger?”
optionallogger?:Logger
Defined in: index.ts:17
Structured logger for request/response diagnostics. Defaults to a no-op.
token:
string
Defined in: index.ts:13
Base64-encoded “email:apiToken” — use Buffer.from(“email:token”).toString(“base64”).