UNPKG

@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

1 lines • 1.34 kB
{"version":3,"file":"KmsImportKeyOptions.mjs","names":["z"],"sources":["../../../../src/modules/kms/options/KmsImportKeyOptions.ts"],"sourcesContent":["import { z } from 'zod'\nimport { type KmsJwkPrivate, type KmsJwkPublicFromKmsJwkPrivate, zKmsJwkPrivate } from '../jwk/knownJwk'\n\nexport const zKmsImportKeyOptions = z.object({\n /**\n * The private jwk to import. If the key needs to use a specific keyId, make sure to set\n * the `kid` property on the JWK. If no kid is provided a key id will be generated.\n */\n privateJwk: zKmsJwkPrivate,\n})\n\nexport interface KmsImportKeyOptions<Jwk extends KmsJwkPrivate> {\n /**\n * The private jwk to import. If the key needs to use a specific keyId, make sure to set\n * the `kid` property on the JWK. If no kid is provided a key id will be generated.\n */\n privateJwk: Jwk\n}\n\nexport interface KmsImportKeyReturn<Jwk extends KmsJwkPrivate> {\n keyId: string\n\n /**\n * The public JWK representation of the imported key. `kid` will always\n * be defined.\n *\n * In case of a symmetric (oct) key this won't include any key material, but\n * will include additional JWK claims such as `use`, `kty`, and `kid`\n */\n publicJwk: KmsJwkPublicFromKmsJwkPrivate<Jwk> & { kid: string }\n}\n"],"mappings":";;;AAGA,MAAa,uBAAuBA,IAAE,OAAO;;;;;AAK3C,YAAY,eACd,CAAC"}