@kintone/rest-api-client
Version:
Kintone REST API client for JavaScript
41 lines (40 loc) • 1.11 kB
TypeScript
import https from "https";
type ClientCertAuth = {
pfx: Buffer;
password: string;
} | {
pfxFilePath: string;
password: string;
};
export declare const readFileFromPath: (filePath: string) => Promise<{
data: NonSharedBuffer;
name: string;
}>;
export declare const getRequestToken: () => never;
export declare const getDefaultAuth: () => never;
export declare const buildPlatformDependentConfig: ({ httpsAgent, clientCertAuth, socketTimeout, }: {
httpsAgent?: https.Agent;
clientCertAuth?: ClientCertAuth;
socketTimeout?: number;
}) => {
timeout: number;
httpsAgent: https.Agent;
} | {
timeout?: undefined;
httpsAgent: https.Agent;
} | {
timeout: number;
httpsAgent?: undefined;
} | {
timeout?: undefined;
httpsAgent?: undefined;
};
export declare const buildHeaders: (params: {
userAgent?: string;
}) => {
"User-Agent": string;
};
export declare const buildFormDataValue: (data: unknown) => unknown;
export declare const buildBaseUrl: (baseUrl: string | undefined) => string;
export declare const getVersion: () => any;
export {};