

const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.js');
const require_keyOps = require('./keyOps.js');
let zod = require("zod");

//#region src/modules/kms/jwk/jwk.ts
const vJwkCommon = zod.z.object({
	kty: zod.z.string(),
	kid: zod.z.optional(zod.z.string()),
	alg: zod.z.optional(zod.z.string()),
	key_ops: zod.z.optional(require_keyOps.zJwkKeyOps),
	use: zod.z.optional(require_keyOps.zJwkUse),
	ext: zod.z.optional(zod.z.boolean()),
	x5c: zod.z.optional(zod.z.array(zod.z.string())),
	x5t: zod.z.optional(zod.z.string()),
	"x5t#S256": zod.z.optional(zod.z.string()),
	x5u: zod.z.optional(zod.z.string())
}).loose();
const vJwk = zod.z.object({
	...vJwkCommon.shape,
	crv: zod.z.optional(zod.z.string()),
	x: zod.z.optional(zod.z.string()),
	d: zod.z.optional(zod.z.string()),
	y: zod.z.optional(zod.z.string()),
	k: zod.z.optional(zod.z.string()),
	e: zod.z.optional(zod.z.string()),
	n: zod.z.optional(zod.z.string()),
	dp: zod.z.optional(zod.z.string()),
	dq: zod.z.optional(zod.z.string()),
	oth: zod.z.optional(zod.z.array(zod.z.object({
		d: zod.z.optional(zod.z.string()),
		r: zod.z.optional(zod.z.string()),
		t: zod.z.optional(zod.z.string())
	}).loose())),
	p: zod.z.optional(zod.z.string()),
	q: zod.z.optional(zod.z.string()),
	qi: zod.z.optional(zod.z.string())
}).loose();

//#endregion
exports.vJwkCommon = vJwkCommon;