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');
let __credo_ts_core = require("@credo-ts/core");
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);

//#region ../didcomm/src/BaseDidCommMessage.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 MessageIdRegExp = /[-_./a-zA-Z0-9]{8,64}/;
const MessageTypeRegExp = /(.*?)([a-zA-Z0-9._-]+)\/(\d[^/]*)\/([a-zA-Z0-9._-]+)$/;
var BaseDidCommMessage = class {
	generateId() {
		return __credo_ts_core.utils.uuid();
	}
};
require_decorate.__decorate([
	(0, import_cjs$1.Matches)(MessageIdRegExp),
	(0, import_cjs.Expose)({ name: "@id" }),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], BaseDidCommMessage.prototype, "id", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "@type" }),
	(0, import_cjs$1.Matches)(MessageTypeRegExp),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], BaseDidCommMessage.prototype, "type", void 0);

//#endregion
exports.BaseDidCommMessage = BaseDidCommMessage;
exports.MessageIdRegExp = MessageIdRegExp;
exports.MessageTypeRegExp = MessageTypeRegExp;