import { DidCommMessageRole } from "../../repository/DidCommMessageRole.mjs";
import "../../repository/index.mjs";
import { DidCommCredentialState } from "../../modules/credentials/models/DidCommCredentialState.mjs";
import "../../modules/credentials/repository/DidCommCredentialExchangeRepository.mjs";
import "@credo-ts/core";

//#region ../didcomm/src/updates/0.1-0.2/credential.ts
let V01_02MigrationCredentialRole = /* @__PURE__ */ function(V01_02MigrationCredentialRole$1) {
	V01_02MigrationCredentialRole$1[V01_02MigrationCredentialRole$1["Issuer"] = 0] = "Issuer";
	V01_02MigrationCredentialRole$1[V01_02MigrationCredentialRole$1["Holder"] = 1] = "Holder";
	return V01_02MigrationCredentialRole$1;
}({});
const holderCredentialStates = [
	DidCommCredentialState.Declined,
	DidCommCredentialState.ProposalSent,
	DidCommCredentialState.OfferReceived,
	DidCommCredentialState.RequestSent,
	DidCommCredentialState.CredentialReceived
];
const didCommMessageRoleMapping = {
	[V01_02MigrationCredentialRole.Issuer]: {
		proposalMessage: DidCommMessageRole.Receiver,
		offerMessage: DidCommMessageRole.Sender,
		requestMessage: DidCommMessageRole.Receiver,
		credentialMessage: DidCommMessageRole.Sender
	},
	[V01_02MigrationCredentialRole.Holder]: {
		proposalMessage: DidCommMessageRole.Sender,
		offerMessage: DidCommMessageRole.Receiver,
		requestMessage: DidCommMessageRole.Sender,
		credentialMessage: DidCommMessageRole.Receiver
	}
};

//#endregion
//# sourceMappingURL=credential.mjs.map