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 { ReturnRouteTypes } from "../../../../../decorators/transport/TransportDecorator.mjs";
import { IsValidMessageType, parseMessageType } from "../../../../../util/messageType.mjs";
import { DidCommMessage } from "../../../../../DidCommMessage.mjs";
import { Expose } from "class-transformer";
import { IsBoolean } from "class-validator";

//#region ../didcomm/src/modules/message-pickup/protocol/v2/messages/DidCommLiveDeliveryChangeV2Message.ts
var DidCommLiveDeliveryChangeV2Message = class DidCommLiveDeliveryChangeV2Message extends DidCommMessage {
	constructor(options) {
		super();
		this.allowQueueTransport = false;
		this.type = DidCommLiveDeliveryChangeV2Message.type.messageTypeUri;
		if (options) {
			this.id = options.id || this.generateId();
			this.liveDelivery = options.liveDelivery;
		}
		this.setReturnRouting(ReturnRouteTypes.all);
	}
};
DidCommLiveDeliveryChangeV2Message.type = parseMessageType("https://didcomm.org/messagepickup/2.0/live-delivery-change");
__decorate([IsValidMessageType(DidCommLiveDeliveryChangeV2Message.type), __decorateMetadata("design:type", Object)], DidCommLiveDeliveryChangeV2Message.prototype, "type", void 0);
__decorate([
	IsBoolean(),
	Expose({ name: "live_delivery" }),
	__decorateMetadata("design:type", Boolean)
], DidCommLiveDeliveryChangeV2Message.prototype, "liveDelivery", void 0);

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