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";

//#region ../didcomm/src/modules/connections/messages/DidCommDidExchangeCompleteMessage.ts
/**
* @see https://github.com/hyperledger/aries-rfcs/blob/main/features/0023-did-exchange/README.md#3-exchange-complete
*/
var DidCommDidExchangeCompleteMessage = class DidCommDidExchangeCompleteMessage extends DidCommMessage {
	constructor(options) {
		super();
		this.type = DidCommDidExchangeCompleteMessage.type.messageTypeUri;
		if (options) {
			this.id = options.id ?? this.generateId();
			this.setThread({
				threadId: options.threadId,
				parentThreadId: options.parentThreadId
			});
		}
	}
};
DidCommDidExchangeCompleteMessage.type = parseMessageType("https://didcomm.org/didexchange/1.1/complete");
__decorate([IsValidMessageType(DidCommDidExchangeCompleteMessage.type), __decorateMetadata("design:type", Object)], DidCommDidExchangeCompleteMessage.prototype, "type", void 0);

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