autogram-sdk
Version:
SDK for Autogram signer
75 lines (72 loc) • 3.74 kB
text/typescript
import { p as paths } from '../apiClient-C7OYvkhl.mjs';
export { A as AutogramVMobileIntegration, a as AutogramVMobileIntegrationInterfaceStateful, b as AvmIntegrationDocument, D as DocumentToSign, G as GetDocumentsResponse, S as SignedDocument, r as randomUUID } from '../apiClient-C7OYvkhl.mjs';
import 'zod';
/**
* ???
* Probably used for testing(?)
* @category Autogram V Mobile
*/
declare class AutogramVMobileSimulation {
apiClient: AutogramVMobileClientApiClient;
guid: string;
encryptionKey: string;
constructor();
parseUrl(urlString: string): void;
visualizeDocument(): Promise<{
content: string;
mimeType: string;
filename?: string | undefined;
}>;
signDocument(): Promise<void>;
}
/**
* Client for simulating mobile app. Not used in extension or similar integrations
*/
declare class AutogramVMobileClientApiClient {
baseUrl: string;
constructor();
_getDocumentVisualization: "/documents/{guid}/visualization";
getDocumentVisualization(params: paths[typeof this._getDocumentVisualization]["get"]["parameters"]["path"], documentEncryptionKey: string): Promise<{
content: string;
mimeType: string;
filename?: string | undefined;
}>;
_getDocumentSignatureParameters: "/documents/{guid}/parameters";
getDocumentSignatureParameters(params: paths[typeof this._getDocumentSignatureParameters]["get"]["parameters"]["path"], documentEncryptionKey: string): Promise<{
checkPDFACompliance?: boolean;
autoLoadEform?: boolean;
level?: "PAdES_BASELINE_B" | "PAdES_BASELINE_T" | "XAdES_BASELINE_B" | "XAdES_BASELINE_T" | "CAdES_BASELINE_B" | "CAdES_BASELINE_T";
container?: "ASiC-E" | "ASiC-S";
containerXmlns?: "http://data.gov.sk/def/container/xmldatacontainer+xml/1.1";
embedUsedSchemas?: boolean;
identifier?: string;
packaging?: "ENVELOPED" | "ENVELOPING";
digestAlgorithm?: "SHA256" | "SHA384" | "SHA512";
en319132?: boolean;
infoCanonicalization?: "INCLUSIVE" | "EXCLUSIVE" | "INCLUSIVE_WITH_COMMENTS" | "EXCLUSIVE_WITH_COMMENTS" | "INCLUSIVE_11" | "INCLUSIVE_11_WITH_COMMENTS";
propertiesCanonicalization?: "INCLUSIVE" | "EXCLUSIVE" | "INCLUSIVE_WITH_COMMENTS" | "EXCLUSIVE_WITH_COMMENTS" | "INCLUSIVE_11" | "INCLUSIVE_11_WITH_COMMENTS";
keyInfoCanonicalization?: "INCLUSIVE" | "EXCLUSIVE" | "INCLUSIVE_WITH_COMMENTS" | "EXCLUSIVE_WITH_COMMENTS" | "INCLUSIVE_11" | "INCLUSIVE_11_WITH_COMMENTS";
schema?: string;
schemaIdentifier?: string;
transformation?: string;
transformationIdentifier?: string;
transformationLanguage?: string;
transformationMediaDestinationTypeDescription?: "XHTML" | "HTML" | "TXT";
transformationTargetEnvironment?: string;
}>;
_postDocumentDataToSign: "/documents/{guid}/datatosign";
postDocumentDataToSign(params: paths[typeof this._postDocumentDataToSign]["post"]["parameters"]["path"], data: NonNullable<paths[typeof this._postDocumentDataToSign]["post"]["requestBody"]>["content"]["application/json"], documentEncryptionKey: string): Promise<{
dataToSign: string;
signingTime: number;
signingCertificate: string;
}>;
_postDocumentSign: "/documents/{guid}/sign";
postDocumentSign(params: paths[typeof this._postDocumentSign]["post"]["parameters"]["path"], data: NonNullable<paths[typeof this._postDocumentSign]["post"]["requestBody"]>["content"]["application/json"], documentEncryptionKey: string): Promise<{
content: string;
filename: string;
mimeType: string;
signedBy: string;
issuedBy: string;
}>;
}
export { AutogramVMobileSimulation };