eventregistry - v11.0.0
    Preparing search index...

    Interface Config

    Per-call cancellation and deadline, accepted wherever a request is made.

    interface Config {
        allowUseOfArchive?: boolean;
        apiKey?: string;
        host?: string;
        hostAnalytics?: string;
        logging?: boolean;
        maxRetryDelayMs?: number;
        maxTokens?: number;
        minDelayBetweenRequests?: number;
        repeatFailedRequestCount?: number;
        retryDelayMs?: number;
        settingsFName?: string;
        signal?: AbortSignal;
        throwOnError?: boolean;
        timeoutMs?: number;
        validate?: boolean;
        verboseOutput?: boolean;
    }

    Hierarchy (View Summary)

    Index
    allowUseOfArchive?: boolean
    apiKey?: string

    API key that should be used to make the requests to the Event Registry. API key is assigned to each user account and can be obtained on this page: http://eventregistry.org/me?tab=settings

    host?: string

    Host to use to access the Event Registry backend.

    "https://eventregistry.org"
    
    hostAnalytics?: string

    Host address to use to perform the analytics api calls.

    "https://analytics.eventregistry.org"
    
    logging?: boolean

    Log all requests.

    maxRetryDelayMs?: number

    Upper bound for a single wait between retries, in milliseconds (also caps a Retry-After header).

    30000
    
    maxTokens?: number

    Token budget for this client. Once the tokens reported by the API since construction (or usage.reset()) plus the last reported cost of the same endpoint would exceed it, calls throw ErBudgetExceededError before any request is sent. The cost of a call is only known afterwards, so the guard can overshoot by one call.

    minDelayBetweenRequests?: number

    The minimum number of seconds between individual api calls.

    0.5
    
    repeatFailedRequestCount?: number

    If a request fails (for example, because ER is down), what is the max number of times the request should be repeated. Use -1 to retry indefinitely.

    5
    
    retryDelayMs?: number

    Base of the exponential backoff between retries, in milliseconds. Attempt n waits about retryDelayMs * 2^n (with jitter), capped at maxRetryDelayMs.

    5000
    
    settingsFName?: string
    signal?: AbortSignal

    Aborts the call: waiting in the queue, the HTTP request and backoff waits all stop.

    throwOnError?: boolean

    Throw when a call fails instead of resolving to { error }. HTTP failures throw ErApiError, other failures a plain Error. Off by default so existing if (response.error) checks keep working.

    false
    
    timeoutMs?: number

    Overall deadline in milliseconds for the call, queueing, retries and backoff waits included. Exceeding it rejects with ErTimeoutError.

    validate?: boolean

    Check every execQuery response against the documented top-level shapes and throw ErValidationError when one does not match (a missing results array, a result without a uri, a non-numeric counter, ...). Off by default; extra fields never fail validation. Meant for tests and for pipelines that must not continue on malformed data.

    verboseOutput?: boolean

    If true, additional info about errors etc. will be printed to console.