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');
const require_DidCommKeylistUpdateMessage = require('./DidCommKeylistUpdateMessage.js');

//#region ../didcomm/src/modules/routing/messages/DidCommKeylistUpdateResponseMessage.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, _ref2;
let DidCommKeylistUpdateResult = /* @__PURE__ */ function(DidCommKeylistUpdateResult$1) {
	DidCommKeylistUpdateResult$1["ClientError"] = "client_error";
	DidCommKeylistUpdateResult$1["ServerError"] = "server_error";
	DidCommKeylistUpdateResult$1["NoChange"] = "no_change";
	DidCommKeylistUpdateResult$1["Success"] = "success";
	return DidCommKeylistUpdateResult$1;
}({});
var DidCommKeylistUpdated = class {
	constructor(options) {
		if (options) {
			this.recipientKey = options.recipientKey;
			this.action = options.action;
			this.result = options.result;
		}
	}
};
require_decorate.__decorate([
	(0, import_cjs$1.IsString)(),
	(0, import_cjs.Expose)({ name: "recipient_key" }),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], DidCommKeylistUpdated.prototype, "recipientKey", void 0);
require_decorate.__decorate([(0, import_cjs$1.IsEnum)(require_DidCommKeylistUpdateMessage.DidCommKeylistUpdateAction), require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref = typeof require_DidCommKeylistUpdateMessage.DidCommKeylistUpdateAction !== "undefined" && require_DidCommKeylistUpdateMessage.DidCommKeylistUpdateAction) === "function" ? _ref : Object)], DidCommKeylistUpdated.prototype, "action", void 0);
require_decorate.__decorate([(0, import_cjs$1.IsEnum)(DidCommKeylistUpdateResult), require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref2 = typeof DidCommKeylistUpdateResult !== "undefined" && DidCommKeylistUpdateResult) === "function" ? _ref2 : Object)], DidCommKeylistUpdated.prototype, "result", void 0);
/**
* Used to notify an edge agent with the result of updating the routing keys in the mediator.
*
* @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0211-route-coordination/README.md#keylist-update-response
*/
var DidCommKeylistUpdateResponseMessage = class DidCommKeylistUpdateResponseMessage extends require_DidCommMessage.DidCommMessage {
	constructor(options) {
		super();
		this.type = DidCommKeylistUpdateResponseMessage.type.messageTypeUri;
		if (options) {
			this.id = options.id || this.generateId();
			this.updated = options.keylist;
			this.setThread({ threadId: options.threadId });
		}
	}
};
DidCommKeylistUpdateResponseMessage.type = require_messageType.parseMessageType("https://didcomm.org/coordinate-mediation/1.0/keylist-update-response");
require_decorate.__decorate([require_messageType.IsValidMessageType(DidCommKeylistUpdateResponseMessage.type), require_decorateMetadata.__decorateMetadata("design:type", Object)], DidCommKeylistUpdateResponseMessage.prototype, "type", void 0);
require_decorate.__decorate([
	(0, import_cjs.Type)(() => DidCommKeylistUpdated),
	(0, import_cjs$1.IsArray)(),
	(0, import_cjs$1.ValidateNested)(),
	(0, import_cjs$1.IsInstance)(DidCommKeylistUpdated, { each: true }),
	require_decorateMetadata.__decorateMetadata("design:type", Array)
], DidCommKeylistUpdateResponseMessage.prototype, "updated", void 0);

//#endregion
exports.DidCommKeylistUpdateResponseMessage = DidCommKeylistUpdateResponseMessage;
exports.DidCommKeylistUpdateResult = DidCommKeylistUpdateResult;
exports.DidCommKeylistUpdated = DidCommKeylistUpdated;