@docusign/iam-sdk
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.
49 lines • 1.48 kB
TypeScript
import { HTTPClient } from "./http.js";
import { Logger } from "./logger.js";
import { RetryConfig } from "./retries.js";
/**
* Demo
*/
export declare const ServerDemo = "demo";
/**
* Production
*/
export declare const ServerProd = "prod";
/**
* Contains the list of servers available to the SDK
*/
export declare const ServerList: {
readonly demo: "https://api-d.docusign.com";
readonly prod: "https://api.docusign.com";
};
export type SDKOptions = {
accessToken?: string | (() => Promise<string>) | undefined;
httpClient?: HTTPClient;
/**
* Allows overriding the default server used by the SDK
*/
server?: keyof typeof ServerList | undefined;
/**
* Allows overriding the default server URL used by the SDK
*/
serverURL?: string | undefined;
/**
* Allows overriding the default user agent used by the SDK
*/
userAgent?: 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: "v1";
readonly sdkVersion: "1.0.0-beta.3";
readonly genVersion: "2.651.2";
readonly userAgent: "speakeasy-sdk/typescript 1.0.0-beta.3 2.651.2 v1 @docusign/iam-sdk";
};
//# sourceMappingURL=config.d.ts.map