{"version":3,"file":"backend.mjs","names":[],"sources":["../../../../src/modules/kms/options/backend.ts"],"sourcesContent":["import { z } from 'zod'\nimport type { zBaseSchema } from '../../../utils/zod'\n\nexport const zWithBackend = <Schema extends zBaseSchema>(schema: Schema) =>\n  schema.and(z.object({ backend: z.optional(z.string()) }))\n\nexport type WithBackend<T> = T & {\n  /**\n   * The backend to use for creating the key. If not provided the\n   * default backend for key operations will be used.\n   */\n  backend?: string\n}\n"],"mappings":";;;;;AAGA,MAAa,gBAA4C,WACvD,OAAO,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC"}