Fixes + stable gateway ids

This commit is contained in:
Stephan D
2026-02-18 20:38:08 +01:00
parent 4dc182bfa2
commit 770c7b9da9
119 changed files with 3000 additions and 734 deletions

View File

@@ -2,11 +2,17 @@ syntax = "proto3";
package common.pagination.v1;
option go_package = "github.com/tech/sendico/pkg/proto/common/pagination/v1;paginationv1";
// CursorPageRequest carries opaque cursor-based pagination parameters.
message CursorPageRequest {
string cursor = 1; // opaque
int32 limit = 2; // page size
// cursor is the opaque continuation token from a previous response.
string cursor = 1;
// limit is the maximum number of items to return per page.
int32 limit = 2;
}
// CursorPageResponse carries the opaque token for the next page.
message CursorPageResponse {
string next_cursor = 1; // opaque
// next_cursor is the opaque token to fetch the next page; empty when no
// more results are available.
string next_cursor = 1;
}

View File

@@ -2,11 +2,14 @@ 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;
}