Skip to content

Interface: OpenCloudConfig

Defined in: src/index.ts:10

Configuration options for initializing the OpenCloud SDK client.

Properties

apiKey?

ts
optional apiKey: string;

Defined in: src/index.ts:15

Roblox Open Cloud API key for authentication. This is optional and if not provided, you must use withAuth() for per-request authentication.


userAgent?

ts
optional userAgent: string;

Defined in: src/index.ts:17

Custom user agent string for API requests (defaults to "@relatiohq/opencloud")


baseUrl?

ts
optional baseUrl: string;

Defined in: src/index.ts:19

Base URL for the Roblox API (defaults to "https://apis.roblox.com")


retry?

ts
optional retry: HttpRetry;

Defined in: src/index.ts:21

Retry configuration for failed requests


fetchImpl()?

ts
optional fetchImpl: {
  (input, init?): Promise<Response>;
  (input, init?): Promise<Response>;
};

Defined in: src/index.ts:23

Custom fetch implementation (useful for testing or custom environments)

Call Signature

ts
(input, init?): Promise<Response>;

MDN Reference

Parameters
ParameterType
inputURL | RequestInfo
init?RequestInit
Returns

Promise<Response>

Call Signature

ts
(input, init?): Promise<Response>;

MDN Reference

Parameters
ParameterType
inputstring | URL | Request
init?RequestInit
Returns

Promise<Response>