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/routing/messages/DidCommMediationRequestMessage.ts
/**
* This message serves as a request from the recipient to the mediator, asking for the permission (and routing information)
* to publish the endpoint as a mediator.
*
* @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0211-route-coordination/README.md#mediation-request
*/
var DidCommMediationRequestMessage = class DidCommMediationRequestMessage extends require_DidCommMessage.DidCommMessage {
	/**
	* Create new DidCommBasicMessage instance.
	* sentTime will be assigned to new Date if not passed, id will be assigned to uuid/v4 if not passed
	* @param options
	*/
	constructor(options) {
		super();
		this.type = DidCommMediationRequestMessage.type.messageTypeUri;
		if (options) {
			this.id = options.id || this.generateId();
			this.addLocale(options.locale || "en");
		}
	}
};
DidCommMediationRequestMessage.type = require_messageType.parseMessageType("https://didcomm.org/coordinate-mediation/1.0/mediate-request");
require_decorate.__decorate([require_messageType.IsValidMessageType(DidCommMediationRequestMessage.type), require_decorateMetadata.__decorateMetadata("design:type", Object)], DidCommMediationRequestMessage.prototype, "type", void 0);

//#endregion
exports.DidCommMediationRequestMessage = DidCommMediationRequestMessage;