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_TransportDecorator = require('../../../../../decorators/transport/TransportDecorator.js');
const require_messageType = require('../../../../../util/messageType.js');
const require_DidCommMessage = require('../../../../../DidCommMessage.js');
const require_transformers = require('../../../../../util/transformers.js');

//#region ../didcomm/src/modules/message-pickup/protocol/v2/messages/DidCommStatusV2Message.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 _ref, _ref2;
var DidCommStatusV2Message = class DidCommStatusV2Message extends require_DidCommMessage.DidCommMessage {
	constructor(options) {
		super();
		this.allowQueueTransport = false;
		this.type = DidCommStatusV2Message.type.messageTypeUri;
		if (options) {
			this.id = options.id || this.generateId();
			this.recipientKey = options.recipientKey;
			this.messageCount = options.messageCount;
			this.longestWaitedSeconds = options.longestWaitedSeconds;
			this.newestReceivedTime = options.newestReceivedTime;
			this.oldestReceivedTime = options.oldestReceivedTime;
			this.totalBytes = options.totalBytes;
			this.liveDelivery = options.liveDelivery;
			this.setThread({ threadId: options.threadId });
		}
		this.setReturnRouting(require_TransportDecorator.ReturnRouteTypes.all);
	}
};
DidCommStatusV2Message.type = require_messageType.parseMessageType("https://didcomm.org/messagepickup/2.0/status");
require_decorate.__decorate([require_messageType.IsValidMessageType(DidCommStatusV2Message.type), require_decorateMetadata.__decorateMetadata("design:type", Object)], DidCommStatusV2Message.prototype, "type", void 0);
require_decorate.__decorate([
	(0, import_cjs$1.IsString)(),
	(0, import_cjs$1.IsOptional)(),
	(0, import_cjs.Expose)({ name: "recipient_key" }),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], DidCommStatusV2Message.prototype, "recipientKey", void 0);
require_decorate.__decorate([
	(0, import_cjs$1.IsInt)(),
	(0, import_cjs.Expose)({ name: "message_count" }),
	require_decorateMetadata.__decorateMetadata("design:type", Number)
], DidCommStatusV2Message.prototype, "messageCount", void 0);
require_decorate.__decorate([
	(0, import_cjs$1.IsInt)(),
	(0, import_cjs$1.IsOptional)(),
	(0, import_cjs.Expose)({ name: "longest_waited_seconds" }),
	require_decorateMetadata.__decorateMetadata("design:type", Number)
], DidCommStatusV2Message.prototype, "longestWaitedSeconds", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "newest_received_time" }),
	(0, import_cjs.Transform)(({ value }) => require_transformers.DateParser(value)),
	(0, import_cjs$1.IsDate)(),
	(0, import_cjs$1.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref = typeof Date !== "undefined" && Date) === "function" ? _ref : Object)
], DidCommStatusV2Message.prototype, "newestReceivedTime", void 0);
require_decorate.__decorate([
	(0, import_cjs$1.IsOptional)(),
	(0, import_cjs.Transform)(({ value }) => require_transformers.DateParser(value)),
	(0, import_cjs$1.IsDate)(),
	(0, import_cjs.Expose)({ name: "oldest_received_time" }),
	require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref2 = typeof Date !== "undefined" && Date) === "function" ? _ref2 : Object)
], DidCommStatusV2Message.prototype, "oldestReceivedTime", void 0);
require_decorate.__decorate([
	(0, import_cjs$1.IsOptional)(),
	(0, import_cjs$1.IsInt)(),
	(0, import_cjs.Expose)({ name: "total_bytes" }),
	require_decorateMetadata.__decorateMetadata("design:type", Number)
], DidCommStatusV2Message.prototype, "totalBytes", void 0);
require_decorate.__decorate([
	(0, import_cjs$1.IsOptional)(),
	(0, import_cjs$1.IsBoolean)(),
	(0, import_cjs.Expose)({ name: "live_delivery" }),
	require_decorateMetadata.__decorateMetadata("design:type", Boolean)
], DidCommStatusV2Message.prototype, "liveDelivery", void 0);

//#endregion
exports.DidCommStatusV2Message = DidCommStatusV2Message;