syntax = "proto3";

package openspeak.v1;

option go_package = "github.com/sorti/openspeak/pkg/api/openspeak/v1";

// Error details
message Error {
  string code = 1;
  string message = 2;
  map<string, string> details = 3;
}

// Response status
message Status {
  bool success = 1;
  Error error = 2;
}

// Pagination support
message PaginationRequest {
  int32 page = 1;
  int32 page_size = 2;
  string sort_by = 3;
}

message PaginationResponse {
  int32 page = 1;
  int32 page_size = 2;
  int32 total_count = 3;
  int32 total_pages = 4;
}
