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_DidCommAttachment = require('../../../decorators/attachment/DidCommAttachment.js');
const require_messageType = require('../../../util/messageType.js');
const require_DidCommMessage = require('../../../DidCommMessage.js');

//#region ../didcomm/src/modules/connections/messages/DidCommDidExchangeResponseMessage.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;
/**
* Message part of connection protocol used to complete the connection
*
* @see https://github.com/hyperledger/aries-rfcs/blob/main/features/0023-did-exchange/README.md#2-exchange-response
*/
var DidCommDidExchangeResponseMessage = class DidCommDidExchangeResponseMessage extends require_DidCommMessage.DidCommMessage {
	/**
	* Create new DidExchangeResponseMessage instance.
	* @param options
	*/
	constructor(options) {
		super();
		this.type = DidCommDidExchangeResponseMessage.type.messageTypeUri;
		if (options) {
			this.id = options.id || this.generateId();
			this.did = options.did;
			this.setThread({ threadId: options.threadId });
		}
	}
};
DidCommDidExchangeResponseMessage.type = require_messageType.parseMessageType("https://didcomm.org/didexchange/1.1/response");
require_decorate.__decorate([require_messageType.IsValidMessageType(DidCommDidExchangeResponseMessage.type), require_decorateMetadata.__decorateMetadata("design:type", Object)], DidCommDidExchangeResponseMessage.prototype, "type", void 0);
require_decorate.__decorate([(0, import_cjs$1.IsString)(), require_decorateMetadata.__decorateMetadata("design:type", String)], DidCommDidExchangeResponseMessage.prototype, "did", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "did_doc~attach" }),
	(0, import_cjs$1.IsOptional)(),
	(0, import_cjs.Type)(() => require_DidCommAttachment.DidCommAttachment),
	(0, import_cjs$1.ValidateNested)(),
	require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref = typeof require_DidCommAttachment.DidCommAttachment !== "undefined" && require_DidCommAttachment.DidCommAttachment) === "function" ? _ref : Object)
], DidCommDidExchangeResponseMessage.prototype, "didDoc", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "did_rotate~attach" }),
	(0, import_cjs$1.IsOptional)(),
	(0, import_cjs.Type)(() => require_DidCommAttachment.DidCommAttachment),
	(0, import_cjs$1.ValidateNested)(),
	require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref2 = typeof require_DidCommAttachment.DidCommAttachment !== "undefined" && require_DidCommAttachment.DidCommAttachment) === "function" ? _ref2 : Object)
], DidCommDidExchangeResponseMessage.prototype, "didRotate", void 0);

//#endregion
exports.DidCommDidExchangeResponseMessage = DidCommDidExchangeResponseMessage;