Skip to content

js-bao-wss-client


js-bao-wss-client / IntegrationsAPI

Interface: IntegrationsAPI ​

Integrations API, available as client.integrations. Sends requests to third-party services through integrations configured for the app, so credentials stay server-side.

Deprecated ​

Call a server function instead: it calls the integration with ctx.integrations.call (see the Server Functions guide).

Methods ​

call() ​

call<TRes, TReq>(request): Promise<IntegrationCallResponse<TRes>>

Call an integration's proxy endpoint.

The optional generics are additive. TRes types the response body and is first to preserve the meaning of existing single-arg call<MyResponse>() call sites; TReq types the request body. Both default to unknown, so untyped callers must narrow before reading arbitrary properties.

Type Parameters ​

TRes ​

TRes = unknown

TReq ​

TReq = unknown

Parameters ​

request ​

IntegrationCallRequest<TReq>

Returns ​

Promise<IntegrationCallResponse<TRes>>

Deprecated ​

Call a server function instead: it calls the integration with ctx.integrations.call (see the Server Functions guide).

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30