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

//#region ../didcomm/src/modules/connections/messages/DidCommDidRotateMessage.ts
/**
* Message to communicate the DID a party wish to rotate to.
*
* @see https://github.com/hyperledger/aries-rfcs/tree/main/features/0794-did-rotate#rotate
*/
var DidCommDidRotateMessage = class DidCommDidRotateMessage extends DidCommMessage {
	/**
	* Create new RotateMessage instance.
	* @param options
	*/
	constructor(options) {
		super();
		this.type = DidCommDidRotateMessage.type.messageTypeUri;
		if (options) {
			this.id = options.id || this.generateId();
			this.toDid = options.toDid;
		}
	}
};
DidCommDidRotateMessage.type = parseMessageType("https://didcomm.org/did-rotate/1.0/rotate");
__decorate([IsValidMessageType(DidCommDidRotateMessage.type), __decorateMetadata("design:type", Object)], DidCommDidRotateMessage.prototype, "type", void 0);
__decorate([
	Expose({ name: "to_did" }),
	IsString(),
	__decorateMetadata("design:type", String)
], DidCommDidRotateMessage.prototype, "toDid", void 0);

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