RayfinClientConfig interface

Configuration for RayfinClient.create.

Select authentication explicitly and register services from their owning packages. Session options belong to the authentication adapter, not here.

Extends

Omit<ApiClientConfig, "getAccessToken" | "onRefreshNeeded" | "onAuthExhausted" | "useProxy">

Properties

auth

Authentication adapter, such as browserSession or suppliedToken.

runtimeConfig

Deployment values returned by resolveRayfinConfig.

services

Synchronous factories for the service namespaces this client exposes.

Inherited Properties

baseUrl

Base URL of the Rayfin backend the client targets. Use an absolute URL (for example, the deployed Fabric item URL) to call a backend directly, or an empty string ('') to keep requests same-origin so a dev-server proxy can forward them.

fetch

Fetch implementation to use, for example one configured with a network proxy.

functionsBaseUrl

Optional override for the functions invocation host. When set, function invocations (client.functions.<name>.invoke(...)) are routed to ${functionsBaseUrl}/api/<name> (Azure Functions Core Tools convention) instead of the default ${baseUrl}/functions/<name>/invoke path that goes through the Fabric InvokeController. Set this in local-debug scenarios (e.g. from import.meta.env.VITE_RAYFIN_FUNCTIONS_URL) to point the frontend at a locally-running func start process while data calls continue to hit the deployed Fabric item via baseUrl.

headers

Default headers merged into every request.

moniker

Explicit x-ms-workload-resource-moniker value (typically a resolved Fabric item ID). Takes precedence over the GUID heuristically extracted from baseUrl, so callers with an authoritative resolved item ID (e.g. resolveRayfinConfig()'s resolved runtimeConfig.itemId) aren't at the mercy of URL-shape guessing.

publishableKey

Publishable key used for service-level authentication. Required.

timeout

Default request timeout in milliseconds (defaults to 30000).

Property Details

auth

Authentication adapter, such as browserSession or suppliedToken.

auth: ClientAuthFactory<TAuth> & (Extract<TAuth, PromiseLike<unknown>> extends never ? unknown : never)

Property Value

ClientAuthFactory<TAuth> & (Extract<TAuth, PromiseLike<unknown>> extends never ? unknown : never)

runtimeConfig

Deployment values returned by resolveRayfinConfig.

runtimeConfig?: RayfinRuntimeConfig

Property Value

services

Synchronous factories for the service namespaces this client exposes.

services?: ClientServices & TServices & ValidClientServices<TServices>

Property Value

ClientServices & TServices & ValidClientServices<TServices>

Inherited Property Details

baseUrl

Base URL of the Rayfin backend the client targets. Use an absolute URL (for example, the deployed Fabric item URL) to call a backend directly, or an empty string ('') to keep requests same-origin so a dev-server proxy can forward them.

baseUrl: string

Property Value

string

Inherited From Omit.baseUrl

fetch

Fetch implementation to use, for example one configured with a network proxy.

fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

Property Value

(input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

Inherited From Omit.fetch

functionsBaseUrl

Optional override for the functions invocation host. When set, function invocations (client.functions.<name>.invoke(...)) are routed to ${functionsBaseUrl}/api/<name> (Azure Functions Core Tools convention) instead of the default ${baseUrl}/functions/<name>/invoke path that goes through the Fabric InvokeController. Set this in local-debug scenarios (e.g. from import.meta.env.VITE_RAYFIN_FUNCTIONS_URL) to point the frontend at a locally-running func start process while data calls continue to hit the deployed Fabric item via baseUrl.

functionsBaseUrl?: string

Property Value

string

Inherited From Omit.functionsBaseUrl

headers

Default headers merged into every request.

headers?: Record<string, string>

Property Value

Record<string, string>

Inherited From Omit.headers

moniker

Explicit x-ms-workload-resource-moniker value (typically a resolved Fabric item ID). Takes precedence over the GUID heuristically extracted from baseUrl, so callers with an authoritative resolved item ID (e.g. resolveRayfinConfig()'s resolved runtimeConfig.itemId) aren't at the mercy of URL-shape guessing.

moniker?: string

Property Value

string

Inherited From Omit.moniker

publishableKey

Publishable key used for service-level authentication. Required.

publishableKey: string

Property Value

string

Inherited From Omit.publishableKey

timeout

Default request timeout in milliseconds (defaults to 30000).

timeout?: number

Property Value

number

Inherited From Omit.timeout