import "../../../../../../shared/src/valita.js";
import { commitSchema } from "./data.js";
import { object, boolean, tuple, literal, string, union } from "@badrap/valita";
const downstreamStatusSchema = object({
  ack: boolean().optional(() => true)
});
const downstreamStatusMessageSchema = tuple([
  literal("status"),
  downstreamStatusSchema,
  object({ watermark: string() })
]);
const upstreamStatusMessageSchema = tuple([
  literal("status"),
  union(downstreamStatusSchema, commitSchema),
  object({ watermark: string() })
]);
export {
  downstreamStatusMessageSchema,
  downstreamStatusSchema,
  upstreamStatusMessageSchema
};
//# sourceMappingURL=status.js.map
