syntax = "proto3";
package common.pagination.v2;
option go_package = "github.com/tech/sendico/pkg/proto/common/pagination/v2;paginationv2";

import "google/protobuf/wrappers.proto";

// ViewCursor provides offset-based pagination with an optional archive filter.
message ViewCursor {
  // limit is the maximum number of items to return.
  google.protobuf.Int64Value limit = 1;
  // offset is the zero-based starting position in the result set.
  google.protobuf.Int64Value offset = 2;
  // is_archived, when set, filters results by their archived status.
  google.protobuf.BoolValue is_archived = 3;
}
