const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.js');
let __credo_ts_core = require("@credo-ts/core");
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);

//#region ../didcomm/src/modules/basic-messages/repository/DidCommBasicMessageRecord.ts
var DidCommBasicMessageRecord = class DidCommBasicMessageRecord extends __credo_ts_core.BaseRecord {
	constructor(props) {
		super();
		this.type = DidCommBasicMessageRecord.type;
		if (props) {
			this.id = props.id ?? __credo_ts_core.utils.uuid();
			this.createdAt = props.createdAt ?? /* @__PURE__ */ new Date();
			this.content = props.content;
			this.sentTime = props.sentTime;
			this.connectionId = props.connectionId;
			this._tags = props.tags ?? {};
			this.role = props.role;
			this.threadId = props.threadId;
			this.parentThreadId = props.parentThreadId;
		}
	}
	getTags() {
		return {
			...this._tags,
			connectionId: this.connectionId,
			role: this.role,
			threadId: this.threadId,
			parentThreadId: this.parentThreadId
		};
	}
};
DidCommBasicMessageRecord.type = "BasicMessageRecord";

//#endregion
exports.DidCommBasicMessageRecord = DidCommBasicMessageRecord;