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/DidCommHangupMessage.ts
/**
* This message is sent by the rotating_party to inform the observing_party that they are done
* with the relationship and will no longer be responding.
*
* @see https://github.com/hyperledger/aries-rfcs/tree/main/features/0794-did-rotate#hangup
*/
var DidCommHangupMessage = class DidCommHangupMessage extends require_DidCommMessage.DidCommMessage {
	/**
	* Create new HangupMessage instance.
	* @param options
	*/
	constructor(options) {
		super();
		this.type = DidCommHangupMessage.type.messageTypeUri;
		if (options) this.id = options.id || this.generateId();
	}
};
DidCommHangupMessage.type = require_messageType.parseMessageType("https://didcomm.org/did-rotate/1.0/hangup");
require_decorate.__decorate([require_messageType.IsValidMessageType(DidCommHangupMessage.type), require_decorateMetadata.__decorateMetadata("design:type", Object)], DidCommHangupMessage.prototype, "type", void 0);

//#endregion
exports.DidCommHangupMessage = DidCommHangupMessage;