const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.js');
const require_index = 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_messageType = require('../../../util/messageType.js');
const require_DidCommMessage = require('../../../DidCommMessage.js');

//#region ../didcomm/src/modules/connections/messages/DidCommTrustPingResponseMessage.ts
var import_cjs = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_index.require_cjs());
/**
* Message to respond to a trust ping message
*
* @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0048-trust-ping/README.md#messages
*/
var DidCommTrustPingResponseMessage = class DidCommTrustPingResponseMessage extends require_DidCommMessage.DidCommMessage {
	/**
	* Create new DidCommTrustPingResponseMessage instance.
	* responseRequested will be true if not passed
	* @param options
	*/
	constructor(options) {
		super();
		this.allowDidSovPrefix = true;
		this.type = DidCommTrustPingResponseMessage.type.messageTypeUri;
		if (options) {
			this.id = options.id || this.generateId();
			this.comment = options.comment;
			this.setThread({ threadId: options.threadId });
			if (options.timing) this.setTiming({
				inTime: options.timing.inTime,
				outTime: options.timing.outTime
			});
		}
	}
};
DidCommTrustPingResponseMessage.type = require_messageType.parseMessageType("https://didcomm.org/trust_ping/1.0/ping_response");
require_decorate.__decorate([require_messageType.IsValidMessageType(DidCommTrustPingResponseMessage.type), require_decorateMetadata.__decorateMetadata("design:type", Object)], DidCommTrustPingResponseMessage.prototype, "type", void 0);
require_decorate.__decorate([
	(0, import_cjs.IsString)(),
	(0, import_cjs.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], DidCommTrustPingResponseMessage.prototype, "comment", void 0);

//#endregion
exports.DidCommTrustPingResponseMessage = DidCommTrustPingResponseMessage;