@credo-ts/core
Version:
<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1
47 lines (46 loc) • 1.88 kB
text/typescript
import { KnownJwaSignatureAlgorithm } from "../jwk/jwa.mjs";
import { KmsCreateKeyType } from "./KmsCreateKeyOptions.mjs";
import { KmsDecryptDataDecryption } from "./KmsDecryptOptions.mjs";
import { KmsEncryptDataEncryption } from "./KmsEncryptOptions.mjs";
import { KmsKeyAgreementDecryptOptions } from "./KmsKeyAgreementDecryptOptions.mjs";
import { KmsKeyAgreementEncryptOptions } from "./KmsKeyAgreementEncryptOptions.mjs";
import { KmsJwkPrivate } from "../jwk/knownJwk.mjs";
import "../jwk/index.mjs";
//#region src/modules/kms/options/KmsOperation.d.ts
type KmsOperationCreateKey = {
operation: 'createKey';
type: KmsCreateKeyType;
};
type KmsOperationImportKey = {
operation: 'importKey';
privateJwk: KmsJwkPrivate;
};
type KmsOperationDeleteKey = {
operation: 'deleteKey';
};
type KmsOperationSign = {
operation: 'sign';
algorithm: KnownJwaSignatureAlgorithm;
};
type KmsOperationVerify = {
operation: 'verify';
algorithm: KnownJwaSignatureAlgorithm;
};
type KmsOperationEncrypt = {
operation: 'encrypt';
encryption: KmsEncryptDataEncryption;
keyAgreement?: KmsKeyAgreementEncryptOptions;
};
type KmsOperationDecrypt = {
operation: 'decrypt';
decryption: KmsDecryptDataDecryption;
keyAgreement?: KmsKeyAgreementDecryptOptions;
};
type KmsOperationRandomBytes = {
operation: 'randomBytes';
};
type KmsOperation = KmsOperationCreateKey | KmsOperationImportKey | KmsOperationDeleteKey | KmsOperationSign | KmsOperationVerify | KmsOperationEncrypt | KmsOperationDecrypt | KmsOperationRandomBytes;
declare function getKmsOperationHumanDescription(operation: KmsOperation): string;
//#endregion
export { KmsOperation, KmsOperationCreateKey, KmsOperationDecrypt, KmsOperationDeleteKey, KmsOperationEncrypt, KmsOperationImportKey, KmsOperationSign, KmsOperationVerify, getKmsOperationHumanDescription };
//# sourceMappingURL=KmsOperation.d.mts.map