const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.js');
const require_index = require('../../../../../../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/cjs/index.js');
const require_index$1 = require('../../../../../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/index.js');
const require_decorateMetadata = require('../../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
const require_decorate = require('../../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
const require_messageType = require('../../../util/messageType.js');
const require_DidCommMessage = require('../../../DidCommMessage.js');

//#region ../didcomm/src/modules/routing/messages/DidCommKeylistUpdateMessage.ts
var import_cjs = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_index.require_cjs());
var import_cjs$1 = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_index$1.require_cjs());
var _ref;
let DidCommKeylistUpdateAction = /* @__PURE__ */ function(DidCommKeylistUpdateAction$1) {
	DidCommKeylistUpdateAction$1["add"] = "add";
	DidCommKeylistUpdateAction$1["remove"] = "remove";
	return DidCommKeylistUpdateAction$1;
}({});
var DidCommKeylistUpdate = class {
	constructor(options) {
		if (options) {
			this.recipientKey = options.recipientKey;
			this.action = options.action;
		}
	}
};
require_decorate.__decorate([
	(0, import_cjs$1.IsString)(),
	(0, import_cjs.Expose)({ name: "recipient_key" }),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], DidCommKeylistUpdate.prototype, "recipientKey", void 0);
require_decorate.__decorate([(0, import_cjs$1.IsEnum)(DidCommKeylistUpdateAction), require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref = typeof DidCommKeylistUpdateAction !== "undefined" && DidCommKeylistUpdateAction) === "function" ? _ref : Object)], DidCommKeylistUpdate.prototype, "action", void 0);
/**
* Used to notify the mediator of keys in use by the recipient.
*
* @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0211-route-coordination/README.md#keylist-update
*/
var DidCommKeylistUpdateMessage = class DidCommKeylistUpdateMessage extends require_DidCommMessage.DidCommMessage {
	constructor(options) {
		super();
		this.type = DidCommKeylistUpdateMessage.type.messageTypeUri;
		if (options) {
			this.id = options.id || this.generateId();
			this.updates = options.updates;
		}
	}
};
DidCommKeylistUpdateMessage.type = require_messageType.parseMessageType("https://didcomm.org/coordinate-mediation/1.0/keylist-update");
require_decorate.__decorate([require_messageType.IsValidMessageType(DidCommKeylistUpdateMessage.type), require_decorateMetadata.__decorateMetadata("design:type", Object)], DidCommKeylistUpdateMessage.prototype, "type", void 0);
require_decorate.__decorate([
	(0, import_cjs.Type)(() => DidCommKeylistUpdate),
	(0, import_cjs$1.IsArray)(),
	(0, import_cjs$1.ValidateNested)(),
	(0, import_cjs$1.IsInstance)(DidCommKeylistUpdate, { each: true }),
	require_decorateMetadata.__decorateMetadata("design:type", Array)
], DidCommKeylistUpdateMessage.prototype, "updates", void 0);

//#endregion
exports.DidCommKeylistUpdate = DidCommKeylistUpdate;
exports.DidCommKeylistUpdateAction = DidCommKeylistUpdateAction;
exports.DidCommKeylistUpdateMessage = DidCommKeylistUpdateMessage;