/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { Type } from "@sinclair/typebox";
import { RevisionTagSchema, SessionIdSchema } from "../core/index.js";
import { MessageFormatVersion } from "./messageFormat.js";
// Return type is intentionally derived.
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export const Message = (tChange) => Type.Object({
    revision: Type.Optional(RevisionTagSchema),
    originatorId: SessionIdSchema,
    changeset: Type.Optional(tChange),
    branchId: Type.Optional(Type.Number()),
    version: Type.Literal(MessageFormatVersion.vSharedBranches),
});
//# sourceMappingURL=messageFormatVSharedBranches.js.map