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).