@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
34 lines • 1.16 kB
TypeScript
import { HTTPClient } from "./http.js";
import { Logger } from "./logger.js";
import { RetryConfig } from "./retries.js";
/**
* Contains the list of servers available to the SDK
*/
export declare const ServerList: readonly ["https://api.unkey.com"];
export type SDKOptions = {
rootKey?: string | (() => Promise<string>) | undefined;
httpClient?: HTTPClient;
/**
* Allows overriding the default server used by the SDK
*/
serverIdx?: number | undefined;
/**
* Allows overriding the default server URL used by the SDK
*/
serverURL?: string | undefined;
/**
* Allows overriding the default retry config used by the SDK
*/
retryConfig?: RetryConfig;
timeoutMs?: number;
debugLogger?: Logger;
};
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
export declare const SDK_METADATA: {
readonly language: "typescript";
readonly openapiDocVersion: "2.0.0";
readonly sdkVersion: "2.0.0-alpha.7";
readonly genVersion: "2.578.0";
readonly userAgent: "speakeasy-sdk/typescript 2.0.0-alpha.7 2.578.0 2.0.0 @unkey/api";
};
//# sourceMappingURL=config.d.ts.map