method

RiduClient.requestPlugin

POST to one declared namespaced plugin endpoint through the configured SDK transport.

Arguments

ArgumentTypeDescription
pluginstringThe plugin value.
pathstringThe path value.
bodyunknownThe body value.
optionsRequestOptions | undefinedThe options value.

Returns

The declared result.

Promise<Result>

How it works

Plugin keys and every path segment are validated before dispatch; empty, whitespace, traversal, query, fragment, and wildcard paths are rejected.

The request retains the client base URL, credentials, merged headers, middleware, abort signal, and structured RiduError behavior.

Full signature

RiduClient.requestPlugin<Result = unknown>( plugin: string, path: string, body: unknown, options?: RequestOptions, ): Promise<Result>

Source packages/sdk/src/types.ts:930

Related types