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');

//#region ../didcomm/src/decorators/thread/ThreadDecorator.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());
const PthidRegExp = /^([-_./A-Za-z0-9]{8,64}|did:[a-z0-9]+:(?:%[0-9A-Fa-f]{2}|[A-Za-z0-9.-])+(?::(?:%[0-9A-Fa-f]{2}|[A-Za-z0-9._~!$&'()*+,;=:@/?-])*)*(?:\?(?:%[0-9A-Fa-f]{2}|[A-Za-z0-9._~!$&'()*+,;=:@/?-])*)?(?:#(?:%[0-9A-Fa-f]{2}|[A-Za-z0-9._~!$&'()*+,;=:@/?-])*)?)$/;
/**
* Represents `~thread` decorator
* @see https://github.com/hyperledger/aries-rfcs/blob/master/concepts/0008-message-id-and-threading/README.md
*/
var ThreadDecorator = class {
	constructor(partial) {
		this.threadId = partial?.threadId;
		this.parentThreadId = partial?.parentThreadId;
		this.senderOrder = partial?.senderOrder;
		this.receivedOrders = partial?.receivedOrders;
	}
};
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "thid" }),
	(0, import_cjs$1.Matches)(PthidRegExp),
	(0, import_cjs$1.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], ThreadDecorator.prototype, "threadId", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "pthid" }),
	(0, import_cjs$1.Matches)(PthidRegExp),
	(0, import_cjs$1.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], ThreadDecorator.prototype, "parentThreadId", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "sender_order" }),
	(0, import_cjs$1.IsOptional)(),
	(0, import_cjs$1.IsInt)(),
	require_decorateMetadata.__decorateMetadata("design:type", Number)
], ThreadDecorator.prototype, "senderOrder", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "received_orders" }),
	(0, import_cjs$1.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", Object)
], ThreadDecorator.prototype, "receivedOrders", void 0);

//#endregion
exports.ThreadDecorator = ThreadDecorator;