@credo-ts/core
Version:
<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1
41 lines • 1.48 kB
text/typescript
import { BaseAgent } from "../../agent/BaseAgent.mjs";
import { VersionString } from "../../utils/version.mjs";
import { updateV0_3_1ToV0_4 } from "./updates/0.3.1-0.4/index.mjs";
import { updateV0_3ToV0_3_1 } from "./updates/0.3-0.3.1/index.mjs";
import { updateV0_4ToV0_5 } from "./updates/0.4-0.5/index.mjs";
//#region src/storage/migration/updates.d.ts
export interface UpdateConfig {
v0_1ToV0_2: V0_1ToV0_2UpdateConfig;
}
export interface Update {
fromVersion: VersionString;
toVersion: VersionString;
doUpdate: <Agent extends BaseAgent>(agent: Agent, updateConfig: UpdateConfig) => Promise<void>;
}
export interface V0_1ToV0_2UpdateConfig {
mediationRoleUpdateStrategy: 'allMediator' | 'allRecipient' | 'recipientIfEndpoint' | 'doNotChange';
}
export declare const supportedUpdates: readonly [{
readonly fromVersion: "0.1";
readonly toVersion: "0.2";
readonly doUpdate: () => void;
}, {
readonly fromVersion: "0.2";
readonly toVersion: "0.3";
readonly doUpdate: () => void;
}, {
readonly fromVersion: "0.3";
readonly toVersion: "0.3.1";
readonly doUpdate: typeof updateV0_3ToV0_3_1;
}, {
readonly fromVersion: "0.3.1";
readonly toVersion: "0.4";
readonly doUpdate: typeof updateV0_3_1ToV0_4;
}, {
readonly fromVersion: "0.4";
readonly toVersion: "0.5";
readonly doUpdate: typeof updateV0_4ToV0_5;
}];
export type UpdateToVersion = (typeof supportedUpdates)[number]['toVersion'];
//#endregion
//# sourceMappingURL=updates.d.mts.map