@ingestkorea/client-sens
Version:
INGESTKOREA SDK Naver Cloud Platform SENS Client for Node.js.
26 lines (25 loc) • 703 B
TypeScript
import { NodeHttpHandler } from "@ingestkorea/util-http-handler";
import { SensCommand } from "./models";
export type Credentials = {
accessKey: string;
secretKey: string;
};
export type ServiceId = {
push?: string;
sms?: string;
kakao?: string;
};
export interface SensClientConfig {
credentials?: Credentials;
serviceId?: ServiceId;
}
export interface SensClientResolvedConfig {
credentials: Credentials;
serviceId: ServiceId;
}
export declare class SensClient {
config: SensClientResolvedConfig;
requestHandler: NodeHttpHandler;
constructor(config: SensClientConfig);
send<T, P>(command: SensCommand<T, P, SensClientResolvedConfig>): Promise<P>;
}