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/connections/messages/DidCommDidExchangeCompleteMessage.ts
/**
* @see https://github.com/hyperledger/aries-rfcs/blob/main/features/0023-did-exchange/README.md#3-exchange-complete
*/
var DidCommDidExchangeCompleteMessage = class DidCommDidExchangeCompleteMessage extends require_DidCommMessage.DidCommMessage {
	constructor(options) {
		super();
		this.type = DidCommDidExchangeCompleteMessage.type.messageTypeUri;
		if (options) {
			this.id = options.id ?? this.generateId();
			this.setThread({
				threadId: options.threadId,
				parentThreadId: options.parentThreadId
			});
		}
	}
};
DidCommDidExchangeCompleteMessage.type = require_messageType.parseMessageType("https://didcomm.org/didexchange/1.1/complete");
require_decorate.__decorate([require_messageType.IsValidMessageType(DidCommDidExchangeCompleteMessage.type), require_decorateMetadata.__decorateMetadata("design:type", Object)], DidCommDidExchangeCompleteMessage.prototype, "type", void 0);

//#endregion
exports.DidCommDidExchangeCompleteMessage = DidCommDidExchangeCompleteMessage;