import { __decorateMetadata } from "../../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
import { __decorate } from "../../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
import { IsValidMessageType, parseMessageType } from "../../../util/messageType.mjs";
import { DidCommMessage } from "../../../DidCommMessage.mjs";

//#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 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 = parseMessageType("https://didcomm.org/did-rotate/1.0/hangup");
__decorate([IsValidMessageType(DidCommHangupMessage.type), __decorateMetadata("design:type", Object)], DidCommHangupMessage.prototype, "type", void 0);

//#endregion
export { DidCommHangupMessage };
//# sourceMappingURL=DidCommHangupMessage.mjs.map