UNPKG

@hpcc-js/comms

Version:
57 lines (56 loc) 1.51 kB
import { IConnection, IOptions } from "../connection.ts"; export declare namespace WsCodesign { interface ListUserIDsRequest { } interface WsCodesignPingRequest { } interface SignRequest { SigningMethod?: string; UserID: string; KeyPass: string; Text: string; } interface VerifyRequest { Text: string; } interface Exception { Code: string; Audience: string; Source: string; Message: string; } interface Exceptions { Source: string; Exception: Exception[]; } interface UserIDs { Item: string[]; } interface ListUserIDsResponse { Exceptions: Exceptions; UserIDs: UserIDs; } interface WsCodesignPingResponse { } interface SignResponse { Exceptions: Exceptions; RetCode: number; ErrMsg: string; SignedText: string; } interface VerifyResponse { Exceptions: Exceptions; RetCode: number; ErrMsg: string; IsVerified: boolean; SignedBy: string; } } export declare class CodesignService { private _connection; constructor(optsConnection: IOptions | IConnection); connectionOptions(): IOptions; ListUserIDs(request: WsCodesign.ListUserIDsRequest): Promise<string[]>; Sign(request: WsCodesign.SignRequest): Promise<WsCodesign.SignResponse>; Verify(request: WsCodesign.VerifyRequest): Promise<WsCodesign.VerifyResponse>; }