{"version":3,"file":"KmsImportKeyOptions.mjs","names":[],"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,uBAAuB,EAAE,OAAO,EAK3C,YAAY,gBACb,CAAC"}