Files
archie/proto/state/v1/task_event.proto
T
sam a971947c39 refactor(state)!: split StateStoreService into per-domain services
One gRPC service per domain in state.v1 (tasks, executions, accounts, identities, packages, captures, bindings, access, orgs, alerts and so on), each with its own server type in staterpc. RPC and message names and numbers are unchanged.
2026-10-25 19:54:27 +11:00

27 lines
967 B
Protocol Buffer

syntax = "proto3";
package state.v1;
import "state/v1/types.proto";
service TaskEventService {
rpc InsertEvent(InsertEventRequest) returns (InsertEventResponse);
rpc EventsSince(EventsSinceRequest) returns (EventsSinceResponse);
rpc TaskEvents(TaskEventsRequest) returns (TaskEventsResponse);
}
message InsertEventRequest { Event event = 1; }
message InsertEventResponse { int64 id = 1; }
message EventsSinceRequest {
// since_id is the opaque resume cursor returned by the previous page (the SSE
// id: field, echoed back as Last-Event-ID). Empty means "from the
// beginning". The field keeps its name and number so the wire name stays
// put; only its type widened, from the SQLite rowid to the fixed-width
// "<at>|<row id>" cursor.
string since_id = 1;
int64 limit = 2;
}
message EventsSinceResponse { repeated Event events = 1; }
message TaskEventsRequest { int64 task_id = 1; }
message TaskEventsResponse { repeated Event events = 1; }