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";
import { DidCommFeature } from "../../../../../models/features/DidCommFeature.mjs";
import "../../../../../models/index.mjs";
import { Type } from "class-transformer";
import { IsInstance } from "class-validator";

//#region ../didcomm/src/modules/discover-features/protocol/v2/messages/DidCommFeaturesDisclosuresMessage.ts
var DidCommFeaturesDisclosuresMessage = class DidCommFeaturesDisclosuresMessage extends DidCommMessage {
	constructor(options) {
		super();
		this.type = DidCommFeaturesDisclosuresMessage.type.messageTypeUri;
		if (options) {
			this.id = options.id ?? this.generateId();
			this.disclosures = options.features ?? [];
			if (options.threadId) this.setThread({ threadId: options.threadId });
		}
	}
};
DidCommFeaturesDisclosuresMessage.type = parseMessageType("https://didcomm.org/discover-features/2.0/disclosures");
__decorate([IsValidMessageType(DidCommFeaturesDisclosuresMessage.type), __decorateMetadata("design:type", Object)], DidCommFeaturesDisclosuresMessage.prototype, "type", void 0);
__decorate([
	IsInstance(DidCommFeature, { each: true }),
	Type(() => DidCommFeature),
	__decorateMetadata("design:type", Array)
], DidCommFeaturesDisclosuresMessage.prototype, "disclosures", void 0);

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