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

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

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