import "../../../../../../shared/src/valita.js";
import { identifierSchema, backfillIDSchema, tableMetadataSchema } from "./data.js";
import { upstreamStatusMessageSchema } from "./status.js";
import { object, record } from "@badrap/valita";
const changeSourceUpstreamSchema = upstreamStatusMessageSchema;
const backfillRequestSchema = object({
  table: identifierSchema.extend({
    // The table metadata is set to null if it is never specified by the
    // change-source.
    metadata: tableMetadataSchema.nullable()
  }),
  columns: record(backfillIDSchema)
});
export {
  backfillRequestSchema,
  changeSourceUpstreamSchema
};
//# sourceMappingURL=upstream.js.map
