const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.js');
const require_index = require('../../../../../../../../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/cjs/index.js');
const require_index$1 = 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/discover-features/protocol/v1/messages/DidCommFeaturesDiscloseMessage.ts
var import_cjs = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_index.require_cjs());
var import_cjs$1 = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_index$1.require_cjs());
var DidCommFeaturesDiscloseProtocol = class {
	constructor(options) {
		if (options) {
			this.protocolId = options.protocolId;
			this.roles = options.roles;
		}
	}
};
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "pid" }),
	(0, import_cjs$1.IsString)(),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], DidCommFeaturesDiscloseProtocol.prototype, "protocolId", void 0);
require_decorate.__decorate([
	(0, import_cjs$1.IsString)({ each: true }),
	(0, import_cjs$1.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", Array)
], DidCommFeaturesDiscloseProtocol.prototype, "roles", void 0);
var DidCommFeaturesDiscloseMessage = class DidCommFeaturesDiscloseMessage extends require_DidCommMessage.DidCommMessage {
	constructor(options) {
		super();
		this.type = DidCommFeaturesDiscloseMessage.type.messageTypeUri;
		if (options) {
			this.id = options.id ?? this.generateId();
			this.protocols = options.protocols.map((p) => new DidCommFeaturesDiscloseProtocol(p));
			this.setThread({ threadId: options.threadId });
		}
	}
};
DidCommFeaturesDiscloseMessage.type = require_messageType.parseMessageType("https://didcomm.org/discover-features/1.0/disclose");
require_decorate.__decorate([require_messageType.IsValidMessageType(DidCommFeaturesDiscloseMessage.type), require_decorateMetadata.__decorateMetadata("design:type", Object)], DidCommFeaturesDiscloseMessage.prototype, "type", void 0);
require_decorate.__decorate([
	(0, import_cjs$1.IsInstance)(DidCommFeaturesDiscloseProtocol, { each: true }),
	(0, import_cjs.Type)(() => DidCommFeaturesDiscloseProtocol),
	require_decorateMetadata.__decorateMetadata("design:type", Array)
], DidCommFeaturesDiscloseMessage.prototype, "protocols", void 0);

//#endregion
exports.DidCommFeaturesDiscloseMessage = DidCommFeaturesDiscloseMessage;
exports.DidCommFeaturesDiscloseProtocol = DidCommFeaturesDiscloseProtocol;