import * as Schema from "effect/Schema"; export const PaginationResult = ( Doc: Doc, ) => Schema.Struct({ page: Schema.mutable(Schema.Array(Doc)), isDone: Schema.Boolean, continueCursor: Schema.String, splitCursor: Schema.optionalWith(Schema.Union(Schema.String, Schema.Null), { exact: true, }), pageStatus: Schema.optionalWith( Schema.Union( Schema.Literal("SplitRecommended"), Schema.Literal("SplitRequired"), Schema.Null, ), { exact: true }, ), });