OptionalbaseOverride the API origin. Defaults to DEFAULT_BASE_URL.
OptionaldeviceDevice descriptor for queue requests. Defaults to DEFAULT_DEVICE.
OptionalfetchA custom fetch implementation (e.g. node-wreq for browser TLS
impersonation). Ignored when request is supplied. Defaults to global fetch.
OptionalheadersExtra headers merged onto the defaults. Ignored when request is supplied.
OptionallanguageResponse language. Defaults to ru. One of en/uz/uk/us/ru/kk/hy.
OptionalonA hook called whenever the API returns fields the library does not model.
Setting it enables detection (no need to also set reportUnknownFields) and
routes reports here instead of to console.warn — wire it to your logger,
metrics or a test assertion.
OptionalreportWhen true, log a warning (via console.warn) whenever the API returns a
field the library does not yet model. Useful for spotting upstream API
changes. Ignored when ClientOptions.onUnknownField is set.
OptionalrequestA pre-configured Request transport (custom headers, proxy, timeout).
OptionalretriesRetries for transient failures on idempotent (GET) requests. Defaults to
2 (3 attempts). Set 0 to disable. Ignored when request is supplied.
OptionalretryInitial retry backoff in ms. Defaults to 300. Ignored when request is supplied.
OptionalretryMaximum retry backoff in ms. Defaults to 4000. Ignored when request is supplied.
OptionaltokenOAuth token used to authenticate requests.
OptionaluserUser-Agent value. Ignored when request is supplied. Defaults to the library UA.
Options accepted by the Client constructor.