From 5f375f8a147dcc5802c681fe880d228e532f230a Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 27 Sep 2026 06:49:03 +1000 Subject: [PATCH] feat(state-store): ListSteps, dashboard run detail reads it; drop tasks.stage docs/prds/execution-tree-state-machine.md: step_executions (0017) is now the durable per-step record; the dashboard's run detail (GET /api/tasks/{id}/ attempts) still folded stage_start/stage_finish events into a rail by hand, and tasks.stage duplicated what StartStep/FinishStep already record properly. Added the missing read: - ListSteps(execution_id, attempt) -- attempt 0 lists every attempt of the execution, oldest first, so the rail renders every attempt from one call. New storecontract.StepReader (separate from StepRecorder: this is a dashboard/API/dispatch action per the PRD's wire contract, never task-scoped-grant callable), postgresdb.ListStepExecutions, staterpc client/server/values.go plumbing, wired through state_store.go's Deps and archieui/compose.go's Server.Steps the same optional-capability pattern every other dashboard read uses. - internal/webui/api_tasks_attempts.go: stageViewsFromSteps replaces foldStages/finishStage/stageOutcome. Attempt bounds, event_count and which attempt numbers exist stay sourced from events (an attempt can carry events -- agent calls -- with no step), only the stage list itself moves. The wire JSON contract is unchanged, so no frontend change was needed; `task ui` confirms ui/dist still matches a fresh build. - A running step past the task's own current attempt reads interrupted, not running: RecoverStale (archie-core, still open per #1214) is what corrects a crashed run's stale "running" row, and until it does this is the honest read rather than trusting a row that may be stale. Dropped tasks.stage and every reader, no fallback: - Migration 0018 drops the column; tasks.sql's INSERT/UPDATE/RETURNING lists and the sqlc-generated code no longer carry it. - workflow.Task.Stage is gone; workflow.Run's in-flight "which stage is this" bookkeeping moves to TaskContext.Stage (execution-time only, never persisted -- park/finish's event tagging is its only reader). - pb.Task.stage (wire field 10) is `[deprecated = true]`, not deleted (never reuse a field number); staterpc's taskProto/taskValue no longer map it. - taskactions.Task.Stage and the retry event's "previous_stage" data field are gone: the operator-action package had no reader for the column beyond echoing it. - The chat /tasks command's per-task "workflow/stage" display drops to workflow-only (ChatTaskSummary.Stage removed, workflowStage() deleted): it was a genuine reader with no replacement in scope for this change. Read the archie-web-ui skill and the state-store/daemon docs/development pages first, per instruction. Stayed out of cancel/stop code throughout (Pi's concurrent CancelExecution work); the only shared files touched (workflow.go, daemon-adjacent SQL) got the smallest possible diff. --- internal/app/archied/main.go | 1 - internal/app/archied/state_store.go | 3 + internal/app/archieui/compose.go | 3 + internal/app/archieui/run_test.go | 30 +- internal/contracts/state/v1/state.pb.go | 2059 ++++++++++------- internal/contracts/state/v1/state_grpc.pb.go | 42 + .../domain/storecontract/storecontract.go | 9 + internal/domain/taskactions/service.go | 10 +- internal/domain/workflow/changes_test.go | 7 +- internal/domain/workflow/steps.go | 2 +- internal/domain/workflow/task/step.go | 25 +- internal/domain/workflow/task/task.go | 1 - internal/domain/workflow/workflow.go | 13 +- internal/gateway/gateway.go | 20 +- internal/gateway/gateway_test.go | 12 +- internal/gateway/task_tools.go | 1 - .../migrations/0018_drop_tasks_stage.sql | 13 + .../postgres/postgresdb/call_tasks.sql.go | 5 +- .../postgres/postgresdb/models.go | 1 - .../postgres/postgresdb/steps.sql.go | 63 + .../postgres/postgresdb/tasks.sql.go | 40 +- .../infrastructure/postgres/queries/steps.sql | 9 + .../infrastructure/postgres/queries/tasks.sql | 18 +- internal/infrastructure/postgres/steps.go | 35 + .../infrastructure/postgres/steps_test.go | 65 + internal/infrastructure/postgres/store.go | 4 +- internal/infrastructure/staterpc/client.go | 12 + internal/infrastructure/staterpc/server.go | 16 + internal/infrastructure/staterpc/values.go | 26 +- internal/infrastructure/taskactions/store.go | 2 +- internal/webui/api_tasks_attempts.go | 172 +- internal/webui/api_tasks_attempts_test.go | 405 ++-- internal/webui/server.go | 8 + internal/webui/webui_test.go | 2 +- proto/state/v1/state.proto | 35 +- 35 files changed, 1910 insertions(+), 1259 deletions(-) create mode 100644 internal/infrastructure/postgres/migrations/0018_drop_tasks_stage.sql diff --git a/internal/app/archied/main.go b/internal/app/archied/main.go index 4a05d052d..361766c61 100644 --- a/internal/app/archied/main.go +++ b/internal/app/archied/main.go @@ -166,7 +166,6 @@ func (a chatTaskListerAdapter) ListChatTasks(ctx context.Context, identity strin Title: task.Title, Status: task.Status, Workflow: task.Workflow, - Stage: task.Stage, PRNumber: task.PRNumber, Attempt: task.Attempt, ParkReason: task.ParkReason, diff --git a/internal/app/archied/state_store.go b/internal/app/archied/state_store.go index e0b816e03..e94cf2caf 100644 --- a/internal/app/archied/state_store.go +++ b/internal/app/archied/state_store.go @@ -352,6 +352,9 @@ func (b *boot) stateStoreDeps(grants *staterpc.TaskGrants) staterpc.Deps { if ec, ok := b.st.(storecontract.ExecutionCanceller); ok { deps.Canceller = ec } + if sr, ok := b.st.(storecontract.StepReader); ok { + deps.StepReader = sr + } b.accessDeps(&deps) if css, ok := b.st.(storecontract.ConfigSnapshotStore); ok { deps.ConfigSnapshots = css diff --git a/internal/app/archieui/compose.go b/internal/app/archieui/compose.go index 1900a8e74..3612f7753 100644 --- a/internal/app/archieui/compose.go +++ b/internal/app/archieui/compose.go @@ -90,6 +90,9 @@ func compose(d deps) *webui.Server { if snapshots, ok := d.Store.(storecontract.ConfigSnapshotStore); ok { srv.ConfigSource = webui.RemoteConfigView(snapshots) } + if steps, ok := d.Store.(storecontract.StepReader); ok { + srv.Steps = steps + } // Channel lifecycle follows the same split as the config view: the process // hosting the channels publishes, this one reads. Withholding it left // /api/channels answering with nothing while channels were running diff --git a/internal/app/archieui/run_test.go b/internal/app/archieui/run_test.go index d404a4a73..564c53972 100644 --- a/internal/app/archieui/run_test.go +++ b/internal/app/archieui/run_test.go @@ -20,6 +20,7 @@ import ( "github.com/samcharles93/archie-core/internal/domain/messaging" "github.com/samcharles93/archie-core/internal/domain/storecontract" "github.com/samcharles93/archie-core/internal/domain/taskactions" + "github.com/samcharles93/archie-core/internal/domain/workflow/task" "github.com/samcharles93/archie-core/internal/events" "github.com/samcharles93/archie-core/internal/gateway" "github.com/samcharles93/archie-core/internal/infrastructure/gatewayrpc" @@ -102,10 +103,15 @@ func serveGRPC(t *testing.T, register func(grpc.ServiceRegistrar)) (target strin func TestUIServesDashboardAgainstRemoteContracts(t *testing.T) { st := pgstore.Open(t) defer st.Close() - seeded, err := st.EnqueueChatTask(t.Context(), "acme", "widget", "remote summary", "body", "implement", "") - if err != nil { + if _, err := st.EnqueueChatTask(t.Context(), "acme", "widget", "remote summary", "body", "implement", ""); err != nil { t.Fatalf("seed task: %v", err) } + // Claimed (not just enqueued): StartStep guards on the execution's own + // current attempt, which a merely-queued task does not have yet. + seeded, err := st.ClaimNext(t.Context()) + if err != nil || seeded == nil { + t.Fatalf("claim seeded task: %+v %v", seeded, err) + } // The daemon publishes the configuration page's projection; this process // only renders it (archie-core-ymut). The forge host is published too: it // is what the run-detail reads resolve their repository and pull-request @@ -129,9 +135,23 @@ func TestUIServesDashboardAgainstRemoteContracts(t *testing.T) { // worker's change capture -- attributed to one attempt, so the assertions // further down read them back through the real client rather than a fake. seedAt := time.Now().UTC() + prepareStepID, _, err := st.StartStep(t.Context(), task.StepStart{ExecutionID: seeded.ID, Attempt: 1, Kind: task.StepKindStage, Name: "prepare"}) + if err != nil { + t.Fatalf("seed prepare step: %v", err) + } + if _, err := st.FinishStep(t.Context(), task.StepFinish{ + StepID: prepareStepID, ExecutionID: seeded.ID, From: taskstate.StepRunning, To: taskstate.StepSucceeded, + }); err != nil { + t.Fatalf("finish prepare step: %v", err) + } + // Terminal, not left running: the attempt rail reads the task's own + // record for "is this still happening" (inFlight), and a run still + // marked running would report the attempt "running" regardless of its + // finished step, rather than the "ok" a completed run's own stages earn. + if err := st.Transition(t.Context(), seeded.ID, taskstate.Running, taskstate.Completed, "done"); err != nil { + t.Fatalf("complete seeded task: %v", err) + } for _, e := range []events.Event{ - {Kind: events.KindStageStart, TaskID: seeded.ID, Attempt: 1, Stage: "prepare", At: seedAt}, - {Kind: events.KindStageFinish, TaskID: seeded.ID, Attempt: 1, Stage: "prepare", At: seedAt.Add(time.Second), Data: map[string]any{"duration_ms": 1000}}, {Kind: events.KindConfigCaptured, TaskID: seeded.ID, Attempt: 1, At: seedAt, Data: map[string]any{ "schema": events.ConfigCapturedSchema, "document": map[string]any{"bot_user": "archie"}, }}, @@ -150,7 +170,7 @@ func TestUIServesDashboardAgainstRemoteContracts(t *testing.T) { stateTarget, stopState := serveGRPC(t, func(r grpc.ServiceRegistrar) { eda := pgstore.EDA(t, nil) - staterpc.RegisterServer(r, staterpc.Deps{Tasks: st, Captures: eda, BindingDispatcher: eda, ConfigSnapshots: st, Log: slog.New(slog.DiscardHandler)}) + staterpc.RegisterServer(r, staterpc.Deps{Tasks: st, Captures: eda, BindingDispatcher: eda, ConfigSnapshots: st, StepReader: st, Log: slog.New(slog.DiscardHandler)}) }) defer stopState() chat := &fakeChat{sessions: []gateway.SessionContext{ diff --git a/internal/contracts/state/v1/state.pb.go b/internal/contracts/state/v1/state.pb.go index 1dbd94afb..389893dfb 100644 --- a/internal/contracts/state/v1/state.pb.go +++ b/internal/contracts/state/v1/state.pb.go @@ -1264,16 +1264,22 @@ func (x *BindIdentitySubjectResponse) GetIdentity() *Identity { // Task mirrors internal/domain/workflow.Task. type Task struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` - Repo string `protobuf:"bytes,3,opt,name=repo,proto3" json:"repo,omitempty"` - IssueNumber int64 `protobuf:"varint,4,opt,name=issue_number,json=issueNumber,proto3" json:"issue_number,omitempty"` - Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` - Body string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` - Labels string `protobuf:"bytes,7,opt,name=labels,proto3" json:"labels,omitempty"` - Status string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"` - Workflow string `protobuf:"bytes,9,opt,name=workflow,proto3" json:"workflow,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + Repo string `protobuf:"bytes,3,opt,name=repo,proto3" json:"repo,omitempty"` + IssueNumber int64 `protobuf:"varint,4,opt,name=issue_number,json=issueNumber,proto3" json:"issue_number,omitempty"` + Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` + Body string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` + Labels string `protobuf:"bytes,7,opt,name=labels,proto3" json:"labels,omitempty"` + Status string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"` + Workflow string `protobuf:"bytes,9,opt,name=workflow,proto3" json:"workflow,omitempty"` + // Retired: the per-task "current stage" column was overwritten as + // workflow.Run advanced and carried no history. step_executions is the + // durable per-step record now (docs/prds/execution-tree-state-machine.md); + // ListSteps is its read. + // + // Deprecated: Marked as deprecated in state/v1/state.proto. Stage string `protobuf:"bytes,10,opt,name=stage,proto3" json:"stage,omitempty"` Branch string `protobuf:"bytes,11,opt,name=branch,proto3" json:"branch,omitempty"` Plan string `protobuf:"bytes,12,opt,name=plan,proto3" json:"plan,omitempty"` @@ -1427,6 +1433,7 @@ func (x *Task) GetWorkflow() string { return "" } +// Deprecated: Marked as deprecated in state/v1/state.proto. func (x *Task) GetStage() string { if x != nil { return x.Stage @@ -3758,6 +3765,239 @@ func (x *CancelExecutionResponse) GetCancelledStepIds() []int64 { return nil } +// StepExecution mirrors internal/domain/workflow/task.StepExecution. +type StepExecution struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ExecutionId int64 `protobuf:"varint,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + Attempt int64 `protobuf:"varint,3,opt,name=attempt,proto3" json:"attempt,omitempty"` + // parent_id is 0 for a stage at the tree's root. + ParentId int64 `protobuf:"varint,4,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` + Depth int32 `protobuf:"varint,5,opt,name=depth,proto3" json:"depth,omitempty"` + Kind string `protobuf:"bytes,6,opt,name=kind,proto3" json:"kind,omitempty"` + Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` + Status string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"` + Detail string `protobuf:"bytes,9,opt,name=detail,proto3" json:"detail,omitempty"` + TokensUsed int64 `protobuf:"varint,10,opt,name=tokens_used,json=tokensUsed,proto3" json:"tokens_used,omitempty"` + StartedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + FinishedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StepExecution) Reset() { + *x = StepExecution{} + mi := &file_state_v1_state_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StepExecution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StepExecution) ProtoMessage() {} + +func (x *StepExecution) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[54] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StepExecution.ProtoReflect.Descriptor instead. +func (*StepExecution) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{54} +} + +func (x *StepExecution) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *StepExecution) GetExecutionId() int64 { + if x != nil { + return x.ExecutionId + } + return 0 +} + +func (x *StepExecution) GetAttempt() int64 { + if x != nil { + return x.Attempt + } + return 0 +} + +func (x *StepExecution) GetParentId() int64 { + if x != nil { + return x.ParentId + } + return 0 +} + +func (x *StepExecution) GetDepth() int32 { + if x != nil { + return x.Depth + } + return 0 +} + +func (x *StepExecution) GetKind() string { + if x != nil { + return x.Kind + } + return "" +} + +func (x *StepExecution) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *StepExecution) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *StepExecution) GetDetail() string { + if x != nil { + return x.Detail + } + return "" +} + +func (x *StepExecution) GetTokensUsed() int64 { + if x != nil { + return x.TokensUsed + } + return 0 +} + +func (x *StepExecution) GetStartedAt() *timestamppb.Timestamp { + if x != nil { + return x.StartedAt + } + return nil +} + +func (x *StepExecution) GetFinishedAt() *timestamppb.Timestamp { + if x != nil { + return x.FinishedAt + } + return nil +} + +type ListStepsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExecutionId int64 `protobuf:"varint,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + // attempt selects one attempt's steps; 0 lists every attempt of the + // execution, oldest first -- the dashboard's run-detail rail renders every + // attempt from a single call rather than one per attempt. + Attempt int64 `protobuf:"varint,2,opt,name=attempt,proto3" json:"attempt,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListStepsRequest) Reset() { + *x = ListStepsRequest{} + mi := &file_state_v1_state_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListStepsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListStepsRequest) ProtoMessage() {} + +func (x *ListStepsRequest) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[55] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListStepsRequest.ProtoReflect.Descriptor instead. +func (*ListStepsRequest) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{55} +} + +func (x *ListStepsRequest) GetExecutionId() int64 { + if x != nil { + return x.ExecutionId + } + return 0 +} + +func (x *ListStepsRequest) GetAttempt() int64 { + if x != nil { + return x.Attempt + } + return 0 +} + +type ListStepsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Steps []*StepExecution `protobuf:"bytes,1,rep,name=steps,proto3" json:"steps,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListStepsResponse) Reset() { + *x = ListStepsResponse{} + mi := &file_state_v1_state_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListStepsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListStepsResponse) ProtoMessage() {} + +func (x *ListStepsResponse) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[56] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListStepsResponse.ProtoReflect.Descriptor instead. +func (*ListStepsResponse) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{56} +} + +func (x *ListStepsResponse) GetSteps() []*StepExecution { + if x != nil { + return x.Steps + } + return nil +} + type UpdateRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` @@ -3767,7 +4007,7 @@ type UpdateRequest struct { func (x *UpdateRequest) Reset() { *x = UpdateRequest{} - mi := &file_state_v1_state_proto_msgTypes[54] + mi := &file_state_v1_state_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3779,7 +4019,7 @@ func (x *UpdateRequest) String() string { func (*UpdateRequest) ProtoMessage() {} func (x *UpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[54] + mi := &file_state_v1_state_proto_msgTypes[57] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3792,7 +4032,7 @@ func (x *UpdateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead. func (*UpdateRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{54} + return file_state_v1_state_proto_rawDescGZIP(), []int{57} } func (x *UpdateRequest) GetTask() *Task { @@ -3810,7 +4050,7 @@ type UpdateResponse struct { func (x *UpdateResponse) Reset() { *x = UpdateResponse{} - mi := &file_state_v1_state_proto_msgTypes[55] + mi := &file_state_v1_state_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3822,7 +4062,7 @@ func (x *UpdateResponse) String() string { func (*UpdateResponse) ProtoMessage() {} func (x *UpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[55] + mi := &file_state_v1_state_proto_msgTypes[58] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3835,7 +4075,7 @@ func (x *UpdateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead. func (*UpdateResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{55} + return file_state_v1_state_proto_rawDescGZIP(), []int{58} } type RequeueRequest struct { @@ -3849,7 +4089,7 @@ type RequeueRequest struct { func (x *RequeueRequest) Reset() { *x = RequeueRequest{} - mi := &file_state_v1_state_proto_msgTypes[56] + mi := &file_state_v1_state_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3861,7 +4101,7 @@ func (x *RequeueRequest) String() string { func (*RequeueRequest) ProtoMessage() {} func (x *RequeueRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[56] + mi := &file_state_v1_state_proto_msgTypes[59] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3874,7 +4114,7 @@ func (x *RequeueRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RequeueRequest.ProtoReflect.Descriptor instead. func (*RequeueRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{56} + return file_state_v1_state_proto_rawDescGZIP(), []int{59} } func (x *RequeueRequest) GetTaskId() int64 { @@ -3906,7 +4146,7 @@ type RequeueResponse struct { func (x *RequeueResponse) Reset() { *x = RequeueResponse{} - mi := &file_state_v1_state_proto_msgTypes[57] + mi := &file_state_v1_state_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3918,7 +4158,7 @@ func (x *RequeueResponse) String() string { func (*RequeueResponse) ProtoMessage() {} func (x *RequeueResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[57] + mi := &file_state_v1_state_proto_msgTypes[60] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3931,7 +4171,7 @@ func (x *RequeueResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RequeueResponse.ProtoReflect.Descriptor instead. func (*RequeueResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{57} + return file_state_v1_state_proto_rawDescGZIP(), []int{60} } type ParkTaskRequest struct { @@ -3946,7 +4186,7 @@ type ParkTaskRequest struct { func (x *ParkTaskRequest) Reset() { *x = ParkTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[58] + mi := &file_state_v1_state_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3958,7 +4198,7 @@ func (x *ParkTaskRequest) String() string { func (*ParkTaskRequest) ProtoMessage() {} func (x *ParkTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[58] + mi := &file_state_v1_state_proto_msgTypes[61] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3971,7 +4211,7 @@ func (x *ParkTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkTaskRequest.ProtoReflect.Descriptor instead. func (*ParkTaskRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{58} + return file_state_v1_state_proto_rawDescGZIP(), []int{61} } func (x *ParkTaskRequest) GetTaskId() int64 { @@ -4010,7 +4250,7 @@ type ParkTaskResponse struct { func (x *ParkTaskResponse) Reset() { *x = ParkTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[59] + mi := &file_state_v1_state_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4022,7 +4262,7 @@ func (x *ParkTaskResponse) String() string { func (*ParkTaskResponse) ProtoMessage() {} func (x *ParkTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[59] + mi := &file_state_v1_state_proto_msgTypes[62] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4035,7 +4275,7 @@ func (x *ParkTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkTaskResponse.ProtoReflect.Descriptor instead. func (*ParkTaskResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{59} + return file_state_v1_state_proto_rawDescGZIP(), []int{62} } type RecoverStaleRequest struct { @@ -4046,7 +4286,7 @@ type RecoverStaleRequest struct { func (x *RecoverStaleRequest) Reset() { *x = RecoverStaleRequest{} - mi := &file_state_v1_state_proto_msgTypes[60] + mi := &file_state_v1_state_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4058,7 +4298,7 @@ func (x *RecoverStaleRequest) String() string { func (*RecoverStaleRequest) ProtoMessage() {} func (x *RecoverStaleRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[60] + mi := &file_state_v1_state_proto_msgTypes[63] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4071,7 +4311,7 @@ func (x *RecoverStaleRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecoverStaleRequest.ProtoReflect.Descriptor instead. func (*RecoverStaleRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{60} + return file_state_v1_state_proto_rawDescGZIP(), []int{63} } type RecoverStaleResponse struct { @@ -4083,7 +4323,7 @@ type RecoverStaleResponse struct { func (x *RecoverStaleResponse) Reset() { *x = RecoverStaleResponse{} - mi := &file_state_v1_state_proto_msgTypes[61] + mi := &file_state_v1_state_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4095,7 +4335,7 @@ func (x *RecoverStaleResponse) String() string { func (*RecoverStaleResponse) ProtoMessage() {} func (x *RecoverStaleResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[61] + mi := &file_state_v1_state_proto_msgTypes[64] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4108,7 +4348,7 @@ func (x *RecoverStaleResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecoverStaleResponse.ProtoReflect.Descriptor instead. func (*RecoverStaleResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{61} + return file_state_v1_state_proto_rawDescGZIP(), []int{64} } func (x *RecoverStaleResponse) GetCount() int64 { @@ -4129,7 +4369,7 @@ type ArchiveTaskRequest struct { func (x *ArchiveTaskRequest) Reset() { *x = ArchiveTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[62] + mi := &file_state_v1_state_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4141,7 +4381,7 @@ func (x *ArchiveTaskRequest) String() string { func (*ArchiveTaskRequest) ProtoMessage() {} func (x *ArchiveTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[62] + mi := &file_state_v1_state_proto_msgTypes[65] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4154,7 +4394,7 @@ func (x *ArchiveTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ArchiveTaskRequest.ProtoReflect.Descriptor instead. func (*ArchiveTaskRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{62} + return file_state_v1_state_proto_rawDescGZIP(), []int{65} } func (x *ArchiveTaskRequest) GetTaskId() int64 { @@ -4187,7 +4427,7 @@ type ArchiveTaskResponse struct { func (x *ArchiveTaskResponse) Reset() { *x = ArchiveTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[63] + mi := &file_state_v1_state_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4199,7 +4439,7 @@ func (x *ArchiveTaskResponse) String() string { func (*ArchiveTaskResponse) ProtoMessage() {} func (x *ArchiveTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[63] + mi := &file_state_v1_state_proto_msgTypes[66] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4212,7 +4452,7 @@ func (x *ArchiveTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ArchiveTaskResponse.ProtoReflect.Descriptor instead. func (*ArchiveTaskResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{63} + return file_state_v1_state_proto_rawDescGZIP(), []int{66} } func (x *ArchiveTaskResponse) GetEventId() int64 { @@ -4233,7 +4473,7 @@ type RetryTaskRequest struct { func (x *RetryTaskRequest) Reset() { *x = RetryTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[64] + mi := &file_state_v1_state_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4245,7 +4485,7 @@ func (x *RetryTaskRequest) String() string { func (*RetryTaskRequest) ProtoMessage() {} func (x *RetryTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[64] + mi := &file_state_v1_state_proto_msgTypes[67] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4258,7 +4498,7 @@ func (x *RetryTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RetryTaskRequest.ProtoReflect.Descriptor instead. func (*RetryTaskRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{64} + return file_state_v1_state_proto_rawDescGZIP(), []int{67} } func (x *RetryTaskRequest) GetTaskId() int64 { @@ -4290,7 +4530,7 @@ type RetryTaskResponse struct { func (x *RetryTaskResponse) Reset() { *x = RetryTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[65] + mi := &file_state_v1_state_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4302,7 +4542,7 @@ func (x *RetryTaskResponse) String() string { func (*RetryTaskResponse) ProtoMessage() {} func (x *RetryTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[65] + mi := &file_state_v1_state_proto_msgTypes[68] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4315,7 +4555,7 @@ func (x *RetryTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RetryTaskResponse.ProtoReflect.Descriptor instead. func (*RetryTaskResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{65} + return file_state_v1_state_proto_rawDescGZIP(), []int{68} } type BeginRemediationRequest struct { @@ -4328,7 +4568,7 @@ type BeginRemediationRequest struct { func (x *BeginRemediationRequest) Reset() { *x = BeginRemediationRequest{} - mi := &file_state_v1_state_proto_msgTypes[66] + mi := &file_state_v1_state_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4340,7 +4580,7 @@ func (x *BeginRemediationRequest) String() string { func (*BeginRemediationRequest) ProtoMessage() {} func (x *BeginRemediationRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[66] + mi := &file_state_v1_state_proto_msgTypes[69] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4353,7 +4593,7 @@ func (x *BeginRemediationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BeginRemediationRequest.ProtoReflect.Descriptor instead. func (*BeginRemediationRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{66} + return file_state_v1_state_proto_rawDescGZIP(), []int{69} } func (x *BeginRemediationRequest) GetTaskId() int64 { @@ -4378,7 +4618,7 @@ type BeginRemediationResponse struct { func (x *BeginRemediationResponse) Reset() { *x = BeginRemediationResponse{} - mi := &file_state_v1_state_proto_msgTypes[67] + mi := &file_state_v1_state_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4390,7 +4630,7 @@ func (x *BeginRemediationResponse) String() string { func (*BeginRemediationResponse) ProtoMessage() {} func (x *BeginRemediationResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[67] + mi := &file_state_v1_state_proto_msgTypes[70] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4403,7 +4643,7 @@ func (x *BeginRemediationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BeginRemediationResponse.ProtoReflect.Descriptor instead. func (*BeginRemediationResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{67} + return file_state_v1_state_proto_rawDescGZIP(), []int{70} } type UpdateReviewPayloadRequest struct { @@ -4416,7 +4656,7 @@ type UpdateReviewPayloadRequest struct { func (x *UpdateReviewPayloadRequest) Reset() { *x = UpdateReviewPayloadRequest{} - mi := &file_state_v1_state_proto_msgTypes[68] + mi := &file_state_v1_state_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4428,7 +4668,7 @@ func (x *UpdateReviewPayloadRequest) String() string { func (*UpdateReviewPayloadRequest) ProtoMessage() {} func (x *UpdateReviewPayloadRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[68] + mi := &file_state_v1_state_proto_msgTypes[71] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4441,7 +4681,7 @@ func (x *UpdateReviewPayloadRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateReviewPayloadRequest.ProtoReflect.Descriptor instead. func (*UpdateReviewPayloadRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{68} + return file_state_v1_state_proto_rawDescGZIP(), []int{71} } func (x *UpdateReviewPayloadRequest) GetTaskId() int64 { @@ -4466,7 +4706,7 @@ type UpdateReviewPayloadResponse struct { func (x *UpdateReviewPayloadResponse) Reset() { *x = UpdateReviewPayloadResponse{} - mi := &file_state_v1_state_proto_msgTypes[69] + mi := &file_state_v1_state_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4478,7 +4718,7 @@ func (x *UpdateReviewPayloadResponse) String() string { func (*UpdateReviewPayloadResponse) ProtoMessage() {} func (x *UpdateReviewPayloadResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[69] + mi := &file_state_v1_state_proto_msgTypes[72] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4491,7 +4731,7 @@ func (x *UpdateReviewPayloadResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateReviewPayloadResponse.ProtoReflect.Descriptor instead. func (*UpdateReviewPayloadResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{69} + return file_state_v1_state_proto_rawDescGZIP(), []int{72} } type SetReviewCursorsRequest struct { @@ -4505,7 +4745,7 @@ type SetReviewCursorsRequest struct { func (x *SetReviewCursorsRequest) Reset() { *x = SetReviewCursorsRequest{} - mi := &file_state_v1_state_proto_msgTypes[70] + mi := &file_state_v1_state_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4517,7 +4757,7 @@ func (x *SetReviewCursorsRequest) String() string { func (*SetReviewCursorsRequest) ProtoMessage() {} func (x *SetReviewCursorsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[70] + mi := &file_state_v1_state_proto_msgTypes[73] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4530,7 +4770,7 @@ func (x *SetReviewCursorsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetReviewCursorsRequest.ProtoReflect.Descriptor instead. func (*SetReviewCursorsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{70} + return file_state_v1_state_proto_rawDescGZIP(), []int{73} } func (x *SetReviewCursorsRequest) GetTaskId() int64 { @@ -4562,7 +4802,7 @@ type SetReviewCursorsResponse struct { func (x *SetReviewCursorsResponse) Reset() { *x = SetReviewCursorsResponse{} - mi := &file_state_v1_state_proto_msgTypes[71] + mi := &file_state_v1_state_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4574,7 +4814,7 @@ func (x *SetReviewCursorsResponse) String() string { func (*SetReviewCursorsResponse) ProtoMessage() {} func (x *SetReviewCursorsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[71] + mi := &file_state_v1_state_proto_msgTypes[74] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4587,7 +4827,7 @@ func (x *SetReviewCursorsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetReviewCursorsResponse.ProtoReflect.Descriptor instead. func (*SetReviewCursorsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{71} + return file_state_v1_state_proto_rawDescGZIP(), []int{74} } type TaskByIssueRequest struct { @@ -4601,7 +4841,7 @@ type TaskByIssueRequest struct { func (x *TaskByIssueRequest) Reset() { *x = TaskByIssueRequest{} - mi := &file_state_v1_state_proto_msgTypes[72] + mi := &file_state_v1_state_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4613,7 +4853,7 @@ func (x *TaskByIssueRequest) String() string { func (*TaskByIssueRequest) ProtoMessage() {} func (x *TaskByIssueRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[72] + mi := &file_state_v1_state_proto_msgTypes[75] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4626,7 +4866,7 @@ func (x *TaskByIssueRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskByIssueRequest.ProtoReflect.Descriptor instead. func (*TaskByIssueRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{72} + return file_state_v1_state_proto_rawDescGZIP(), []int{75} } func (x *TaskByIssueRequest) GetOwner() string { @@ -4660,7 +4900,7 @@ type TaskByIssueResponse struct { func (x *TaskByIssueResponse) Reset() { *x = TaskByIssueResponse{} - mi := &file_state_v1_state_proto_msgTypes[73] + mi := &file_state_v1_state_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4672,7 +4912,7 @@ func (x *TaskByIssueResponse) String() string { func (*TaskByIssueResponse) ProtoMessage() {} func (x *TaskByIssueResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[73] + mi := &file_state_v1_state_proto_msgTypes[76] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4685,7 +4925,7 @@ func (x *TaskByIssueResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskByIssueResponse.ProtoReflect.Descriptor instead. func (*TaskByIssueResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{73} + return file_state_v1_state_proto_rawDescGZIP(), []int{76} } func (x *TaskByIssueResponse) GetTask() *Task { @@ -4713,7 +4953,7 @@ type OpenTaskByPRRequest struct { func (x *OpenTaskByPRRequest) Reset() { *x = OpenTaskByPRRequest{} - mi := &file_state_v1_state_proto_msgTypes[74] + mi := &file_state_v1_state_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4725,7 +4965,7 @@ func (x *OpenTaskByPRRequest) String() string { func (*OpenTaskByPRRequest) ProtoMessage() {} func (x *OpenTaskByPRRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[74] + mi := &file_state_v1_state_proto_msgTypes[77] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4738,7 +4978,7 @@ func (x *OpenTaskByPRRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenTaskByPRRequest.ProtoReflect.Descriptor instead. func (*OpenTaskByPRRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{74} + return file_state_v1_state_proto_rawDescGZIP(), []int{77} } func (x *OpenTaskByPRRequest) GetOwner() string { @@ -4772,7 +5012,7 @@ type OpenTaskByPRResponse struct { func (x *OpenTaskByPRResponse) Reset() { *x = OpenTaskByPRResponse{} - mi := &file_state_v1_state_proto_msgTypes[75] + mi := &file_state_v1_state_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4784,7 +5024,7 @@ func (x *OpenTaskByPRResponse) String() string { func (*OpenTaskByPRResponse) ProtoMessage() {} func (x *OpenTaskByPRResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[75] + mi := &file_state_v1_state_proto_msgTypes[78] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4797,7 +5037,7 @@ func (x *OpenTaskByPRResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenTaskByPRResponse.ProtoReflect.Descriptor instead. func (*OpenTaskByPRResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{75} + return file_state_v1_state_proto_rawDescGZIP(), []int{78} } func (x *OpenTaskByPRResponse) GetTask() *Task { @@ -4823,7 +5063,7 @@ type TaskByIDRequest struct { func (x *TaskByIDRequest) Reset() { *x = TaskByIDRequest{} - mi := &file_state_v1_state_proto_msgTypes[76] + mi := &file_state_v1_state_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4835,7 +5075,7 @@ func (x *TaskByIDRequest) String() string { func (*TaskByIDRequest) ProtoMessage() {} func (x *TaskByIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[76] + mi := &file_state_v1_state_proto_msgTypes[79] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4848,7 +5088,7 @@ func (x *TaskByIDRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskByIDRequest.ProtoReflect.Descriptor instead. func (*TaskByIDRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{76} + return file_state_v1_state_proto_rawDescGZIP(), []int{79} } func (x *TaskByIDRequest) GetTaskId() int64 { @@ -4868,7 +5108,7 @@ type TaskByIDResponse struct { func (x *TaskByIDResponse) Reset() { *x = TaskByIDResponse{} - mi := &file_state_v1_state_proto_msgTypes[77] + mi := &file_state_v1_state_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4880,7 +5120,7 @@ func (x *TaskByIDResponse) String() string { func (*TaskByIDResponse) ProtoMessage() {} func (x *TaskByIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[77] + mi := &file_state_v1_state_proto_msgTypes[80] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4893,7 +5133,7 @@ func (x *TaskByIDResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskByIDResponse.ProtoReflect.Descriptor instead. func (*TaskByIDResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{77} + return file_state_v1_state_proto_rawDescGZIP(), []int{80} } func (x *TaskByIDResponse) GetTask() *Task { @@ -4918,7 +5158,7 @@ type OpenPRsRequest struct { func (x *OpenPRsRequest) Reset() { *x = OpenPRsRequest{} - mi := &file_state_v1_state_proto_msgTypes[78] + mi := &file_state_v1_state_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4930,7 +5170,7 @@ func (x *OpenPRsRequest) String() string { func (*OpenPRsRequest) ProtoMessage() {} func (x *OpenPRsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[78] + mi := &file_state_v1_state_proto_msgTypes[81] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4943,7 +5183,7 @@ func (x *OpenPRsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenPRsRequest.ProtoReflect.Descriptor instead. func (*OpenPRsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{78} + return file_state_v1_state_proto_rawDescGZIP(), []int{81} } type OpenPRsResponse struct { @@ -4955,7 +5195,7 @@ type OpenPRsResponse struct { func (x *OpenPRsResponse) Reset() { *x = OpenPRsResponse{} - mi := &file_state_v1_state_proto_msgTypes[79] + mi := &file_state_v1_state_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4967,7 +5207,7 @@ func (x *OpenPRsResponse) String() string { func (*OpenPRsResponse) ProtoMessage() {} func (x *OpenPRsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[79] + mi := &file_state_v1_state_proto_msgTypes[82] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4980,7 +5220,7 @@ func (x *OpenPRsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenPRsResponse.ProtoReflect.Descriptor instead. func (*OpenPRsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{79} + return file_state_v1_state_proto_rawDescGZIP(), []int{82} } func (x *OpenPRsResponse) GetTasks() []*Task { @@ -4998,7 +5238,7 @@ type ClearTerminalTasksRequest struct { func (x *ClearTerminalTasksRequest) Reset() { *x = ClearTerminalTasksRequest{} - mi := &file_state_v1_state_proto_msgTypes[80] + mi := &file_state_v1_state_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5010,7 +5250,7 @@ func (x *ClearTerminalTasksRequest) String() string { func (*ClearTerminalTasksRequest) ProtoMessage() {} func (x *ClearTerminalTasksRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[80] + mi := &file_state_v1_state_proto_msgTypes[83] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5023,7 +5263,7 @@ func (x *ClearTerminalTasksRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ClearTerminalTasksRequest.ProtoReflect.Descriptor instead. func (*ClearTerminalTasksRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{80} + return file_state_v1_state_proto_rawDescGZIP(), []int{83} } type ClearTerminalTasksResponse struct { @@ -5035,7 +5275,7 @@ type ClearTerminalTasksResponse struct { func (x *ClearTerminalTasksResponse) Reset() { *x = ClearTerminalTasksResponse{} - mi := &file_state_v1_state_proto_msgTypes[81] + mi := &file_state_v1_state_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5047,7 +5287,7 @@ func (x *ClearTerminalTasksResponse) String() string { func (*ClearTerminalTasksResponse) ProtoMessage() {} func (x *ClearTerminalTasksResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[81] + mi := &file_state_v1_state_proto_msgTypes[84] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5060,7 +5300,7 @@ func (x *ClearTerminalTasksResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ClearTerminalTasksResponse.ProtoReflect.Descriptor instead. func (*ClearTerminalTasksResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{81} + return file_state_v1_state_proto_rawDescGZIP(), []int{84} } func (x *ClearTerminalTasksResponse) GetCount() int64 { @@ -5079,7 +5319,7 @@ type TasksRequest struct { func (x *TasksRequest) Reset() { *x = TasksRequest{} - mi := &file_state_v1_state_proto_msgTypes[82] + mi := &file_state_v1_state_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5091,7 +5331,7 @@ func (x *TasksRequest) String() string { func (*TasksRequest) ProtoMessage() {} func (x *TasksRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[82] + mi := &file_state_v1_state_proto_msgTypes[85] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5104,7 +5344,7 @@ func (x *TasksRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TasksRequest.ProtoReflect.Descriptor instead. func (*TasksRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{82} + return file_state_v1_state_proto_rawDescGZIP(), []int{85} } func (x *TasksRequest) GetLimit() int64 { @@ -5123,7 +5363,7 @@ type TasksResponse struct { func (x *TasksResponse) Reset() { *x = TasksResponse{} - mi := &file_state_v1_state_proto_msgTypes[83] + mi := &file_state_v1_state_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5135,7 +5375,7 @@ func (x *TasksResponse) String() string { func (*TasksResponse) ProtoMessage() {} func (x *TasksResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[83] + mi := &file_state_v1_state_proto_msgTypes[86] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5148,7 +5388,7 @@ func (x *TasksResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TasksResponse.ProtoReflect.Descriptor instead. func (*TasksResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{83} + return file_state_v1_state_proto_rawDescGZIP(), []int{86} } func (x *TasksResponse) GetTasks() []*Task { @@ -5166,7 +5406,7 @@ type StatusCountsRequest struct { func (x *StatusCountsRequest) Reset() { *x = StatusCountsRequest{} - mi := &file_state_v1_state_proto_msgTypes[84] + mi := &file_state_v1_state_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5178,7 +5418,7 @@ func (x *StatusCountsRequest) String() string { func (*StatusCountsRequest) ProtoMessage() {} func (x *StatusCountsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[84] + mi := &file_state_v1_state_proto_msgTypes[87] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5191,7 +5431,7 @@ func (x *StatusCountsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusCountsRequest.ProtoReflect.Descriptor instead. func (*StatusCountsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{84} + return file_state_v1_state_proto_rawDescGZIP(), []int{87} } type StatusCountsResponse struct { @@ -5203,7 +5443,7 @@ type StatusCountsResponse struct { func (x *StatusCountsResponse) Reset() { *x = StatusCountsResponse{} - mi := &file_state_v1_state_proto_msgTypes[85] + mi := &file_state_v1_state_proto_msgTypes[88] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5215,7 +5455,7 @@ func (x *StatusCountsResponse) String() string { func (*StatusCountsResponse) ProtoMessage() {} func (x *StatusCountsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[85] + mi := &file_state_v1_state_proto_msgTypes[88] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5228,7 +5468,7 @@ func (x *StatusCountsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusCountsResponse.ProtoReflect.Descriptor instead. func (*StatusCountsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{85} + return file_state_v1_state_proto_rawDescGZIP(), []int{88} } func (x *StatusCountsResponse) GetCounts() map[string]int64 { @@ -5247,7 +5487,7 @@ type InsertEventRequest struct { func (x *InsertEventRequest) Reset() { *x = InsertEventRequest{} - mi := &file_state_v1_state_proto_msgTypes[86] + mi := &file_state_v1_state_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5259,7 +5499,7 @@ func (x *InsertEventRequest) String() string { func (*InsertEventRequest) ProtoMessage() {} func (x *InsertEventRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[86] + mi := &file_state_v1_state_proto_msgTypes[89] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5272,7 +5512,7 @@ func (x *InsertEventRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertEventRequest.ProtoReflect.Descriptor instead. func (*InsertEventRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{86} + return file_state_v1_state_proto_rawDescGZIP(), []int{89} } func (x *InsertEventRequest) GetEvent() *Event { @@ -5291,7 +5531,7 @@ type InsertEventResponse struct { func (x *InsertEventResponse) Reset() { *x = InsertEventResponse{} - mi := &file_state_v1_state_proto_msgTypes[87] + mi := &file_state_v1_state_proto_msgTypes[90] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5303,7 +5543,7 @@ func (x *InsertEventResponse) String() string { func (*InsertEventResponse) ProtoMessage() {} func (x *InsertEventResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[87] + mi := &file_state_v1_state_proto_msgTypes[90] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5316,7 +5556,7 @@ func (x *InsertEventResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertEventResponse.ProtoReflect.Descriptor instead. func (*InsertEventResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{87} + return file_state_v1_state_proto_rawDescGZIP(), []int{90} } func (x *InsertEventResponse) GetId() int64 { @@ -5341,7 +5581,7 @@ type EventsSinceRequest struct { func (x *EventsSinceRequest) Reset() { *x = EventsSinceRequest{} - mi := &file_state_v1_state_proto_msgTypes[88] + mi := &file_state_v1_state_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5353,7 +5593,7 @@ func (x *EventsSinceRequest) String() string { func (*EventsSinceRequest) ProtoMessage() {} func (x *EventsSinceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[88] + mi := &file_state_v1_state_proto_msgTypes[91] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5366,7 +5606,7 @@ func (x *EventsSinceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EventsSinceRequest.ProtoReflect.Descriptor instead. func (*EventsSinceRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{88} + return file_state_v1_state_proto_rawDescGZIP(), []int{91} } func (x *EventsSinceRequest) GetSinceId() string { @@ -5392,7 +5632,7 @@ type EventsSinceResponse struct { func (x *EventsSinceResponse) Reset() { *x = EventsSinceResponse{} - mi := &file_state_v1_state_proto_msgTypes[89] + mi := &file_state_v1_state_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5404,7 +5644,7 @@ func (x *EventsSinceResponse) String() string { func (*EventsSinceResponse) ProtoMessage() {} func (x *EventsSinceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[89] + mi := &file_state_v1_state_proto_msgTypes[92] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5417,7 +5657,7 @@ func (x *EventsSinceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EventsSinceResponse.ProtoReflect.Descriptor instead. func (*EventsSinceResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{89} + return file_state_v1_state_proto_rawDescGZIP(), []int{92} } func (x *EventsSinceResponse) GetEvents() []*Event { @@ -5436,7 +5676,7 @@ type TaskEventsRequest struct { func (x *TaskEventsRequest) Reset() { *x = TaskEventsRequest{} - mi := &file_state_v1_state_proto_msgTypes[90] + mi := &file_state_v1_state_proto_msgTypes[93] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5448,7 +5688,7 @@ func (x *TaskEventsRequest) String() string { func (*TaskEventsRequest) ProtoMessage() {} func (x *TaskEventsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[90] + mi := &file_state_v1_state_proto_msgTypes[93] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5461,7 +5701,7 @@ func (x *TaskEventsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskEventsRequest.ProtoReflect.Descriptor instead. func (*TaskEventsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{90} + return file_state_v1_state_proto_rawDescGZIP(), []int{93} } func (x *TaskEventsRequest) GetTaskId() int64 { @@ -5480,7 +5720,7 @@ type TaskEventsResponse struct { func (x *TaskEventsResponse) Reset() { *x = TaskEventsResponse{} - mi := &file_state_v1_state_proto_msgTypes[91] + mi := &file_state_v1_state_proto_msgTypes[94] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5492,7 +5732,7 @@ func (x *TaskEventsResponse) String() string { func (*TaskEventsResponse) ProtoMessage() {} func (x *TaskEventsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[91] + mi := &file_state_v1_state_proto_msgTypes[94] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5505,7 +5745,7 @@ func (x *TaskEventsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskEventsResponse.ProtoReflect.Descriptor instead. func (*TaskEventsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{91} + return file_state_v1_state_proto_rawDescGZIP(), []int{94} } func (x *TaskEventsResponse) GetEvents() []*Event { @@ -5523,7 +5763,7 @@ type WorkflowStatsRequest struct { func (x *WorkflowStatsRequest) Reset() { *x = WorkflowStatsRequest{} - mi := &file_state_v1_state_proto_msgTypes[92] + mi := &file_state_v1_state_proto_msgTypes[95] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5535,7 +5775,7 @@ func (x *WorkflowStatsRequest) String() string { func (*WorkflowStatsRequest) ProtoMessage() {} func (x *WorkflowStatsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[92] + mi := &file_state_v1_state_proto_msgTypes[95] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5548,7 +5788,7 @@ func (x *WorkflowStatsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowStatsRequest.ProtoReflect.Descriptor instead. func (*WorkflowStatsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{92} + return file_state_v1_state_proto_rawDescGZIP(), []int{95} } type WorkflowStatsResponse struct { @@ -5560,7 +5800,7 @@ type WorkflowStatsResponse struct { func (x *WorkflowStatsResponse) Reset() { *x = WorkflowStatsResponse{} - mi := &file_state_v1_state_proto_msgTypes[93] + mi := &file_state_v1_state_proto_msgTypes[96] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5572,7 +5812,7 @@ func (x *WorkflowStatsResponse) String() string { func (*WorkflowStatsResponse) ProtoMessage() {} func (x *WorkflowStatsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[93] + mi := &file_state_v1_state_proto_msgTypes[96] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5585,7 +5825,7 @@ func (x *WorkflowStatsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowStatsResponse.ProtoReflect.Descriptor instead. func (*WorkflowStatsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{93} + return file_state_v1_state_proto_rawDescGZIP(), []int{96} } func (x *WorkflowStatsResponse) GetStats() []*WorkflowStat { @@ -5603,7 +5843,7 @@ type StageStatsRequest struct { func (x *StageStatsRequest) Reset() { *x = StageStatsRequest{} - mi := &file_state_v1_state_proto_msgTypes[94] + mi := &file_state_v1_state_proto_msgTypes[97] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5615,7 +5855,7 @@ func (x *StageStatsRequest) String() string { func (*StageStatsRequest) ProtoMessage() {} func (x *StageStatsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[94] + mi := &file_state_v1_state_proto_msgTypes[97] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5628,7 +5868,7 @@ func (x *StageStatsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StageStatsRequest.ProtoReflect.Descriptor instead. func (*StageStatsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{94} + return file_state_v1_state_proto_rawDescGZIP(), []int{97} } type StageStatsResponse struct { @@ -5640,7 +5880,7 @@ type StageStatsResponse struct { func (x *StageStatsResponse) Reset() { *x = StageStatsResponse{} - mi := &file_state_v1_state_proto_msgTypes[95] + mi := &file_state_v1_state_proto_msgTypes[98] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5652,7 +5892,7 @@ func (x *StageStatsResponse) String() string { func (*StageStatsResponse) ProtoMessage() {} func (x *StageStatsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[95] + mi := &file_state_v1_state_proto_msgTypes[98] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5665,7 +5905,7 @@ func (x *StageStatsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StageStatsResponse.ProtoReflect.Descriptor instead. func (*StageStatsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{95} + return file_state_v1_state_proto_rawDescGZIP(), []int{98} } func (x *StageStatsResponse) GetStats() []*StageStat { @@ -5684,7 +5924,7 @@ type TokensByDayRequest struct { func (x *TokensByDayRequest) Reset() { *x = TokensByDayRequest{} - mi := &file_state_v1_state_proto_msgTypes[96] + mi := &file_state_v1_state_proto_msgTypes[99] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5696,7 +5936,7 @@ func (x *TokensByDayRequest) String() string { func (*TokensByDayRequest) ProtoMessage() {} func (x *TokensByDayRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[96] + mi := &file_state_v1_state_proto_msgTypes[99] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5709,7 +5949,7 @@ func (x *TokensByDayRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TokensByDayRequest.ProtoReflect.Descriptor instead. func (*TokensByDayRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{96} + return file_state_v1_state_proto_rawDescGZIP(), []int{99} } func (x *TokensByDayRequest) GetDays() int64 { @@ -5728,7 +5968,7 @@ type TokensByDayResponse struct { func (x *TokensByDayResponse) Reset() { *x = TokensByDayResponse{} - mi := &file_state_v1_state_proto_msgTypes[97] + mi := &file_state_v1_state_proto_msgTypes[100] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5740,7 +5980,7 @@ func (x *TokensByDayResponse) String() string { func (*TokensByDayResponse) ProtoMessage() {} func (x *TokensByDayResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[97] + mi := &file_state_v1_state_proto_msgTypes[100] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5753,7 +5993,7 @@ func (x *TokensByDayResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TokensByDayResponse.ProtoReflect.Descriptor instead. func (*TokensByDayResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{97} + return file_state_v1_state_proto_rawDescGZIP(), []int{100} } func (x *TokensByDayResponse) GetTokens() []*DayTokens { @@ -5780,7 +6020,7 @@ type ConfigSnapshot struct { func (x *ConfigSnapshot) Reset() { *x = ConfigSnapshot{} - mi := &file_state_v1_state_proto_msgTypes[98] + mi := &file_state_v1_state_proto_msgTypes[101] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5792,7 +6032,7 @@ func (x *ConfigSnapshot) String() string { func (*ConfigSnapshot) ProtoMessage() {} func (x *ConfigSnapshot) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[98] + mi := &file_state_v1_state_proto_msgTypes[101] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5805,7 +6045,7 @@ func (x *ConfigSnapshot) ProtoReflect() protoreflect.Message { // Deprecated: Use ConfigSnapshot.ProtoReflect.Descriptor instead. func (*ConfigSnapshot) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{98} + return file_state_v1_state_proto_rawDescGZIP(), []int{101} } func (x *ConfigSnapshot) GetSchema() string { @@ -5838,7 +6078,7 @@ type PutConfigSnapshotRequest struct { func (x *PutConfigSnapshotRequest) Reset() { *x = PutConfigSnapshotRequest{} - mi := &file_state_v1_state_proto_msgTypes[99] + mi := &file_state_v1_state_proto_msgTypes[102] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5850,7 +6090,7 @@ func (x *PutConfigSnapshotRequest) String() string { func (*PutConfigSnapshotRequest) ProtoMessage() {} func (x *PutConfigSnapshotRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[99] + mi := &file_state_v1_state_proto_msgTypes[102] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5863,7 +6103,7 @@ func (x *PutConfigSnapshotRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutConfigSnapshotRequest.ProtoReflect.Descriptor instead. func (*PutConfigSnapshotRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{99} + return file_state_v1_state_proto_rawDescGZIP(), []int{102} } func (x *PutConfigSnapshotRequest) GetSnapshot() *ConfigSnapshot { @@ -5881,7 +6121,7 @@ type PutConfigSnapshotResponse struct { func (x *PutConfigSnapshotResponse) Reset() { *x = PutConfigSnapshotResponse{} - mi := &file_state_v1_state_proto_msgTypes[100] + mi := &file_state_v1_state_proto_msgTypes[103] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5893,7 +6133,7 @@ func (x *PutConfigSnapshotResponse) String() string { func (*PutConfigSnapshotResponse) ProtoMessage() {} func (x *PutConfigSnapshotResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[100] + mi := &file_state_v1_state_proto_msgTypes[103] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5906,7 +6146,7 @@ func (x *PutConfigSnapshotResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutConfigSnapshotResponse.ProtoReflect.Descriptor instead. func (*PutConfigSnapshotResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{100} + return file_state_v1_state_proto_rawDescGZIP(), []int{103} } type GetConfigSnapshotRequest struct { @@ -5917,7 +6157,7 @@ type GetConfigSnapshotRequest struct { func (x *GetConfigSnapshotRequest) Reset() { *x = GetConfigSnapshotRequest{} - mi := &file_state_v1_state_proto_msgTypes[101] + mi := &file_state_v1_state_proto_msgTypes[104] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5929,7 +6169,7 @@ func (x *GetConfigSnapshotRequest) String() string { func (*GetConfigSnapshotRequest) ProtoMessage() {} func (x *GetConfigSnapshotRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[101] + mi := &file_state_v1_state_proto_msgTypes[104] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5942,7 +6182,7 @@ func (x *GetConfigSnapshotRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetConfigSnapshotRequest.ProtoReflect.Descriptor instead. func (*GetConfigSnapshotRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{101} + return file_state_v1_state_proto_rawDescGZIP(), []int{104} } type GetConfigSnapshotResponse struct { @@ -5955,7 +6195,7 @@ type GetConfigSnapshotResponse struct { func (x *GetConfigSnapshotResponse) Reset() { *x = GetConfigSnapshotResponse{} - mi := &file_state_v1_state_proto_msgTypes[102] + mi := &file_state_v1_state_proto_msgTypes[105] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5967,7 +6207,7 @@ func (x *GetConfigSnapshotResponse) String() string { func (*GetConfigSnapshotResponse) ProtoMessage() {} func (x *GetConfigSnapshotResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[102] + mi := &file_state_v1_state_proto_msgTypes[105] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5980,7 +6220,7 @@ func (x *GetConfigSnapshotResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetConfigSnapshotResponse.ProtoReflect.Descriptor instead. func (*GetConfigSnapshotResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{102} + return file_state_v1_state_proto_rawDescGZIP(), []int{105} } func (x *GetConfigSnapshotResponse) GetSnapshot() *ConfigSnapshot { @@ -6017,7 +6257,7 @@ type ChannelStatus struct { func (x *ChannelStatus) Reset() { *x = ChannelStatus{} - mi := &file_state_v1_state_proto_msgTypes[103] + mi := &file_state_v1_state_proto_msgTypes[106] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6029,7 +6269,7 @@ func (x *ChannelStatus) String() string { func (*ChannelStatus) ProtoMessage() {} func (x *ChannelStatus) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[103] + mi := &file_state_v1_state_proto_msgTypes[106] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6042,7 +6282,7 @@ func (x *ChannelStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelStatus.ProtoReflect.Descriptor instead. func (*ChannelStatus) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{103} + return file_state_v1_state_proto_rawDescGZIP(), []int{106} } func (x *ChannelStatus) GetId() string { @@ -6103,7 +6343,7 @@ type PutChannelStatusRequest struct { func (x *PutChannelStatusRequest) Reset() { *x = PutChannelStatusRequest{} - mi := &file_state_v1_state_proto_msgTypes[104] + mi := &file_state_v1_state_proto_msgTypes[107] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6115,7 +6355,7 @@ func (x *PutChannelStatusRequest) String() string { func (*PutChannelStatusRequest) ProtoMessage() {} func (x *PutChannelStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[104] + mi := &file_state_v1_state_proto_msgTypes[107] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6128,7 +6368,7 @@ func (x *PutChannelStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutChannelStatusRequest.ProtoReflect.Descriptor instead. func (*PutChannelStatusRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{104} + return file_state_v1_state_proto_rawDescGZIP(), []int{107} } func (x *PutChannelStatusRequest) GetChannels() []*ChannelStatus { @@ -6146,7 +6386,7 @@ type PutChannelStatusResponse struct { func (x *PutChannelStatusResponse) Reset() { *x = PutChannelStatusResponse{} - mi := &file_state_v1_state_proto_msgTypes[105] + mi := &file_state_v1_state_proto_msgTypes[108] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6158,7 +6398,7 @@ func (x *PutChannelStatusResponse) String() string { func (*PutChannelStatusResponse) ProtoMessage() {} func (x *PutChannelStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[105] + mi := &file_state_v1_state_proto_msgTypes[108] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6171,7 +6411,7 @@ func (x *PutChannelStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutChannelStatusResponse.ProtoReflect.Descriptor instead. func (*PutChannelStatusResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{105} + return file_state_v1_state_proto_rawDescGZIP(), []int{108} } type ListChannelStatusRequest struct { @@ -6182,7 +6422,7 @@ type ListChannelStatusRequest struct { func (x *ListChannelStatusRequest) Reset() { *x = ListChannelStatusRequest{} - mi := &file_state_v1_state_proto_msgTypes[106] + mi := &file_state_v1_state_proto_msgTypes[109] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6194,7 +6434,7 @@ func (x *ListChannelStatusRequest) String() string { func (*ListChannelStatusRequest) ProtoMessage() {} func (x *ListChannelStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[106] + mi := &file_state_v1_state_proto_msgTypes[109] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6207,7 +6447,7 @@ func (x *ListChannelStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListChannelStatusRequest.ProtoReflect.Descriptor instead. func (*ListChannelStatusRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{106} + return file_state_v1_state_proto_rawDescGZIP(), []int{109} } type ListChannelStatusResponse struct { @@ -6219,7 +6459,7 @@ type ListChannelStatusResponse struct { func (x *ListChannelStatusResponse) Reset() { *x = ListChannelStatusResponse{} - mi := &file_state_v1_state_proto_msgTypes[107] + mi := &file_state_v1_state_proto_msgTypes[110] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6231,7 +6471,7 @@ func (x *ListChannelStatusResponse) String() string { func (*ListChannelStatusResponse) ProtoMessage() {} func (x *ListChannelStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[107] + mi := &file_state_v1_state_proto_msgTypes[110] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6244,7 +6484,7 @@ func (x *ListChannelStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListChannelStatusResponse.ProtoReflect.Descriptor instead. func (*ListChannelStatusResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{107} + return file_state_v1_state_proto_rawDescGZIP(), []int{110} } func (x *ListChannelStatusResponse) GetChannels() []*ChannelStatus { @@ -6273,7 +6513,7 @@ type ApplyStatus struct { func (x *ApplyStatus) Reset() { *x = ApplyStatus{} - mi := &file_state_v1_state_proto_msgTypes[108] + mi := &file_state_v1_state_proto_msgTypes[111] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6285,7 +6525,7 @@ func (x *ApplyStatus) String() string { func (*ApplyStatus) ProtoMessage() {} func (x *ApplyStatus) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[108] + mi := &file_state_v1_state_proto_msgTypes[111] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6298,7 +6538,7 @@ func (x *ApplyStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use ApplyStatus.ProtoReflect.Descriptor instead. func (*ApplyStatus) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{108} + return file_state_v1_state_proto_rawDescGZIP(), []int{111} } func (x *ApplyStatus) GetProcess() string { @@ -6345,7 +6585,7 @@ type PutApplyStatusRequest struct { func (x *PutApplyStatusRequest) Reset() { *x = PutApplyStatusRequest{} - mi := &file_state_v1_state_proto_msgTypes[109] + mi := &file_state_v1_state_proto_msgTypes[112] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6357,7 +6597,7 @@ func (x *PutApplyStatusRequest) String() string { func (*PutApplyStatusRequest) ProtoMessage() {} func (x *PutApplyStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[109] + mi := &file_state_v1_state_proto_msgTypes[112] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6370,7 +6610,7 @@ func (x *PutApplyStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutApplyStatusRequest.ProtoReflect.Descriptor instead. func (*PutApplyStatusRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{109} + return file_state_v1_state_proto_rawDescGZIP(), []int{112} } func (x *PutApplyStatusRequest) GetStatus() *ApplyStatus { @@ -6388,7 +6628,7 @@ type PutApplyStatusResponse struct { func (x *PutApplyStatusResponse) Reset() { *x = PutApplyStatusResponse{} - mi := &file_state_v1_state_proto_msgTypes[110] + mi := &file_state_v1_state_proto_msgTypes[113] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6400,7 +6640,7 @@ func (x *PutApplyStatusResponse) String() string { func (*PutApplyStatusResponse) ProtoMessage() {} func (x *PutApplyStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[110] + mi := &file_state_v1_state_proto_msgTypes[113] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6413,7 +6653,7 @@ func (x *PutApplyStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutApplyStatusResponse.ProtoReflect.Descriptor instead. func (*PutApplyStatusResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{110} + return file_state_v1_state_proto_rawDescGZIP(), []int{113} } type ListApplyStatusRequest struct { @@ -6424,7 +6664,7 @@ type ListApplyStatusRequest struct { func (x *ListApplyStatusRequest) Reset() { *x = ListApplyStatusRequest{} - mi := &file_state_v1_state_proto_msgTypes[111] + mi := &file_state_v1_state_proto_msgTypes[114] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6436,7 +6676,7 @@ func (x *ListApplyStatusRequest) String() string { func (*ListApplyStatusRequest) ProtoMessage() {} func (x *ListApplyStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[111] + mi := &file_state_v1_state_proto_msgTypes[114] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6449,7 +6689,7 @@ func (x *ListApplyStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListApplyStatusRequest.ProtoReflect.Descriptor instead. func (*ListApplyStatusRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{111} + return file_state_v1_state_proto_rawDescGZIP(), []int{114} } type ListApplyStatusResponse struct { @@ -6461,7 +6701,7 @@ type ListApplyStatusResponse struct { func (x *ListApplyStatusResponse) Reset() { *x = ListApplyStatusResponse{} - mi := &file_state_v1_state_proto_msgTypes[112] + mi := &file_state_v1_state_proto_msgTypes[115] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6473,7 +6713,7 @@ func (x *ListApplyStatusResponse) String() string { func (*ListApplyStatusResponse) ProtoMessage() {} func (x *ListApplyStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[112] + mi := &file_state_v1_state_proto_msgTypes[115] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6486,7 +6726,7 @@ func (x *ListApplyStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListApplyStatusResponse.ProtoReflect.Descriptor instead. func (*ListApplyStatusResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{112} + return file_state_v1_state_proto_rawDescGZIP(), []int{115} } func (x *ListApplyStatusResponse) GetStatuses() []*ApplyStatus { @@ -6513,7 +6753,7 @@ type TaskLogEntry struct { func (x *TaskLogEntry) Reset() { *x = TaskLogEntry{} - mi := &file_state_v1_state_proto_msgTypes[113] + mi := &file_state_v1_state_proto_msgTypes[116] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6525,7 +6765,7 @@ func (x *TaskLogEntry) String() string { func (*TaskLogEntry) ProtoMessage() {} func (x *TaskLogEntry) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[113] + mi := &file_state_v1_state_proto_msgTypes[116] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6538,7 +6778,7 @@ func (x *TaskLogEntry) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskLogEntry.ProtoReflect.Descriptor instead. func (*TaskLogEntry) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{113} + return file_state_v1_state_proto_rawDescGZIP(), []int{116} } func (x *TaskLogEntry) GetId() int64 { @@ -6603,7 +6843,7 @@ type ReadTaskLogRequest struct { func (x *ReadTaskLogRequest) Reset() { *x = ReadTaskLogRequest{} - mi := &file_state_v1_state_proto_msgTypes[114] + mi := &file_state_v1_state_proto_msgTypes[117] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6615,7 +6855,7 @@ func (x *ReadTaskLogRequest) String() string { func (*ReadTaskLogRequest) ProtoMessage() {} func (x *ReadTaskLogRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[114] + mi := &file_state_v1_state_proto_msgTypes[117] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6628,7 +6868,7 @@ func (x *ReadTaskLogRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReadTaskLogRequest.ProtoReflect.Descriptor instead. func (*ReadTaskLogRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{114} + return file_state_v1_state_proto_rawDescGZIP(), []int{117} } func (x *ReadTaskLogRequest) GetTaskId() int64 { @@ -6714,7 +6954,7 @@ type ReadTaskLogResponse struct { func (x *ReadTaskLogResponse) Reset() { *x = ReadTaskLogResponse{} - mi := &file_state_v1_state_proto_msgTypes[115] + mi := &file_state_v1_state_proto_msgTypes[118] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6726,7 +6966,7 @@ func (x *ReadTaskLogResponse) String() string { func (*ReadTaskLogResponse) ProtoMessage() {} func (x *ReadTaskLogResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[115] + mi := &file_state_v1_state_proto_msgTypes[118] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6739,7 +6979,7 @@ func (x *ReadTaskLogResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReadTaskLogResponse.ProtoReflect.Descriptor instead. func (*ReadTaskLogResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{115} + return file_state_v1_state_proto_rawDescGZIP(), []int{118} } func (x *ReadTaskLogResponse) GetEntries() []*TaskLogEntry { @@ -6798,7 +7038,7 @@ type StreamTaskLogContentRequest struct { func (x *StreamTaskLogContentRequest) Reset() { *x = StreamTaskLogContentRequest{} - mi := &file_state_v1_state_proto_msgTypes[116] + mi := &file_state_v1_state_proto_msgTypes[119] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6810,7 +7050,7 @@ func (x *StreamTaskLogContentRequest) String() string { func (*StreamTaskLogContentRequest) ProtoMessage() {} func (x *StreamTaskLogContentRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[116] + mi := &file_state_v1_state_proto_msgTypes[119] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6823,7 +7063,7 @@ func (x *StreamTaskLogContentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamTaskLogContentRequest.ProtoReflect.Descriptor instead. func (*StreamTaskLogContentRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{116} + return file_state_v1_state_proto_rawDescGZIP(), []int{119} } func (x *StreamTaskLogContentRequest) GetTaskId() int64 { @@ -6851,7 +7091,7 @@ type StreamTaskLogContentResponse struct { func (x *StreamTaskLogContentResponse) Reset() { *x = StreamTaskLogContentResponse{} - mi := &file_state_v1_state_proto_msgTypes[117] + mi := &file_state_v1_state_proto_msgTypes[120] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6863,7 +7103,7 @@ func (x *StreamTaskLogContentResponse) String() string { func (*StreamTaskLogContentResponse) ProtoMessage() {} func (x *StreamTaskLogContentResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[117] + mi := &file_state_v1_state_proto_msgTypes[120] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6876,7 +7116,7 @@ func (x *StreamTaskLogContentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamTaskLogContentResponse.ProtoReflect.Descriptor instead. func (*StreamTaskLogContentResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{117} + return file_state_v1_state_proto_rawDescGZIP(), []int{120} } func (x *StreamTaskLogContentResponse) GetChunk() []byte { @@ -6911,7 +7151,7 @@ type InsertCaptureRequest struct { func (x *InsertCaptureRequest) Reset() { *x = InsertCaptureRequest{} - mi := &file_state_v1_state_proto_msgTypes[118] + mi := &file_state_v1_state_proto_msgTypes[121] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6923,7 +7163,7 @@ func (x *InsertCaptureRequest) String() string { func (*InsertCaptureRequest) ProtoMessage() {} func (x *InsertCaptureRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[118] + mi := &file_state_v1_state_proto_msgTypes[121] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6936,7 +7176,7 @@ func (x *InsertCaptureRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertCaptureRequest.ProtoReflect.Descriptor instead. func (*InsertCaptureRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{118} + return file_state_v1_state_proto_rawDescGZIP(), []int{121} } func (x *InsertCaptureRequest) GetCapture() *CapturedEvent { @@ -6969,7 +7209,7 @@ type InsertCaptureResponse struct { func (x *InsertCaptureResponse) Reset() { *x = InsertCaptureResponse{} - mi := &file_state_v1_state_proto_msgTypes[119] + mi := &file_state_v1_state_proto_msgTypes[122] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6981,7 +7221,7 @@ func (x *InsertCaptureResponse) String() string { func (*InsertCaptureResponse) ProtoMessage() {} func (x *InsertCaptureResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[119] + mi := &file_state_v1_state_proto_msgTypes[122] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6994,7 +7234,7 @@ func (x *InsertCaptureResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertCaptureResponse.ProtoReflect.Descriptor instead. func (*InsertCaptureResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{119} + return file_state_v1_state_proto_rawDescGZIP(), []int{122} } func (x *InsertCaptureResponse) GetId() string { @@ -7013,7 +7253,7 @@ type StreamCapturesRequest struct { func (x *StreamCapturesRequest) Reset() { *x = StreamCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[120] + mi := &file_state_v1_state_proto_msgTypes[123] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7025,7 +7265,7 @@ func (x *StreamCapturesRequest) String() string { func (*StreamCapturesRequest) ProtoMessage() {} func (x *StreamCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[120] + mi := &file_state_v1_state_proto_msgTypes[123] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7038,7 +7278,7 @@ func (x *StreamCapturesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamCapturesRequest.ProtoReflect.Descriptor instead. func (*StreamCapturesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{120} + return file_state_v1_state_proto_rawDescGZIP(), []int{123} } func (x *StreamCapturesRequest) GetLimit() int64 { @@ -7058,7 +7298,7 @@ type StreamCapturesResponse struct { func (x *StreamCapturesResponse) Reset() { *x = StreamCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[121] + mi := &file_state_v1_state_proto_msgTypes[124] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7070,7 +7310,7 @@ func (x *StreamCapturesResponse) String() string { func (*StreamCapturesResponse) ProtoMessage() {} func (x *StreamCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[121] + mi := &file_state_v1_state_proto_msgTypes[124] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7083,7 +7323,7 @@ func (x *StreamCapturesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamCapturesResponse.ProtoReflect.Descriptor instead. func (*StreamCapturesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{121} + return file_state_v1_state_proto_rawDescGZIP(), []int{124} } func (x *StreamCapturesResponse) GetCapture() *CapturedEvent { @@ -7102,7 +7342,7 @@ type InsertMappingRequest struct { func (x *InsertMappingRequest) Reset() { *x = InsertMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[122] + mi := &file_state_v1_state_proto_msgTypes[125] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7114,7 +7354,7 @@ func (x *InsertMappingRequest) String() string { func (*InsertMappingRequest) ProtoMessage() {} func (x *InsertMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[122] + mi := &file_state_v1_state_proto_msgTypes[125] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7127,7 +7367,7 @@ func (x *InsertMappingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertMappingRequest.ProtoReflect.Descriptor instead. func (*InsertMappingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{122} + return file_state_v1_state_proto_rawDescGZIP(), []int{125} } func (x *InsertMappingRequest) GetMapping() *Mapping { @@ -7146,7 +7386,7 @@ type InsertMappingResponse struct { func (x *InsertMappingResponse) Reset() { *x = InsertMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[123] + mi := &file_state_v1_state_proto_msgTypes[126] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7158,7 +7398,7 @@ func (x *InsertMappingResponse) String() string { func (*InsertMappingResponse) ProtoMessage() {} func (x *InsertMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[123] + mi := &file_state_v1_state_proto_msgTypes[126] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7171,7 +7411,7 @@ func (x *InsertMappingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertMappingResponse.ProtoReflect.Descriptor instead. func (*InsertMappingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{123} + return file_state_v1_state_proto_rawDescGZIP(), []int{126} } func (x *InsertMappingResponse) GetId() string { @@ -7190,7 +7430,7 @@ type GetMappingRequest struct { func (x *GetMappingRequest) Reset() { *x = GetMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[124] + mi := &file_state_v1_state_proto_msgTypes[127] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7202,7 +7442,7 @@ func (x *GetMappingRequest) String() string { func (*GetMappingRequest) ProtoMessage() {} func (x *GetMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[124] + mi := &file_state_v1_state_proto_msgTypes[127] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7215,7 +7455,7 @@ func (x *GetMappingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMappingRequest.ProtoReflect.Descriptor instead. func (*GetMappingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{124} + return file_state_v1_state_proto_rawDescGZIP(), []int{127} } func (x *GetMappingRequest) GetId() string { @@ -7235,7 +7475,7 @@ type GetMappingResponse struct { func (x *GetMappingResponse) Reset() { *x = GetMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[125] + mi := &file_state_v1_state_proto_msgTypes[128] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7247,7 +7487,7 @@ func (x *GetMappingResponse) String() string { func (*GetMappingResponse) ProtoMessage() {} func (x *GetMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[125] + mi := &file_state_v1_state_proto_msgTypes[128] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7260,7 +7500,7 @@ func (x *GetMappingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMappingResponse.ProtoReflect.Descriptor instead. func (*GetMappingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{125} + return file_state_v1_state_proto_rawDescGZIP(), []int{128} } func (x *GetMappingResponse) GetMapping() *Mapping { @@ -7285,7 +7525,7 @@ type ListMappingsRequest struct { func (x *ListMappingsRequest) Reset() { *x = ListMappingsRequest{} - mi := &file_state_v1_state_proto_msgTypes[126] + mi := &file_state_v1_state_proto_msgTypes[129] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7297,7 +7537,7 @@ func (x *ListMappingsRequest) String() string { func (*ListMappingsRequest) ProtoMessage() {} func (x *ListMappingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[126] + mi := &file_state_v1_state_proto_msgTypes[129] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7310,7 +7550,7 @@ func (x *ListMappingsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMappingsRequest.ProtoReflect.Descriptor instead. func (*ListMappingsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{126} + return file_state_v1_state_proto_rawDescGZIP(), []int{129} } type ListMappingsResponse struct { @@ -7322,7 +7562,7 @@ type ListMappingsResponse struct { func (x *ListMappingsResponse) Reset() { *x = ListMappingsResponse{} - mi := &file_state_v1_state_proto_msgTypes[127] + mi := &file_state_v1_state_proto_msgTypes[130] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7334,7 +7574,7 @@ func (x *ListMappingsResponse) String() string { func (*ListMappingsResponse) ProtoMessage() {} func (x *ListMappingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[127] + mi := &file_state_v1_state_proto_msgTypes[130] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7347,7 +7587,7 @@ func (x *ListMappingsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMappingsResponse.ProtoReflect.Descriptor instead. func (*ListMappingsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{127} + return file_state_v1_state_proto_rawDescGZIP(), []int{130} } func (x *ListMappingsResponse) GetMappings() []*Mapping { @@ -7366,7 +7606,7 @@ type UpdateMappingRequest struct { func (x *UpdateMappingRequest) Reset() { *x = UpdateMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[128] + mi := &file_state_v1_state_proto_msgTypes[131] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7378,7 +7618,7 @@ func (x *UpdateMappingRequest) String() string { func (*UpdateMappingRequest) ProtoMessage() {} func (x *UpdateMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[128] + mi := &file_state_v1_state_proto_msgTypes[131] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7391,7 +7631,7 @@ func (x *UpdateMappingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateMappingRequest.ProtoReflect.Descriptor instead. func (*UpdateMappingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{128} + return file_state_v1_state_proto_rawDescGZIP(), []int{131} } func (x *UpdateMappingRequest) GetMapping() *Mapping { @@ -7409,7 +7649,7 @@ type UpdateMappingResponse struct { func (x *UpdateMappingResponse) Reset() { *x = UpdateMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[129] + mi := &file_state_v1_state_proto_msgTypes[132] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7421,7 +7661,7 @@ func (x *UpdateMappingResponse) String() string { func (*UpdateMappingResponse) ProtoMessage() {} func (x *UpdateMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[129] + mi := &file_state_v1_state_proto_msgTypes[132] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7434,7 +7674,7 @@ func (x *UpdateMappingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateMappingResponse.ProtoReflect.Descriptor instead. func (*UpdateMappingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{129} + return file_state_v1_state_proto_rawDescGZIP(), []int{132} } type DeleteMappingRequest struct { @@ -7446,7 +7686,7 @@ type DeleteMappingRequest struct { func (x *DeleteMappingRequest) Reset() { *x = DeleteMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[130] + mi := &file_state_v1_state_proto_msgTypes[133] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7458,7 +7698,7 @@ func (x *DeleteMappingRequest) String() string { func (*DeleteMappingRequest) ProtoMessage() {} func (x *DeleteMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[130] + mi := &file_state_v1_state_proto_msgTypes[133] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7471,7 +7711,7 @@ func (x *DeleteMappingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteMappingRequest.ProtoReflect.Descriptor instead. func (*DeleteMappingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{130} + return file_state_v1_state_proto_rawDescGZIP(), []int{133} } func (x *DeleteMappingRequest) GetId() string { @@ -7489,7 +7729,7 @@ type DeleteMappingResponse struct { func (x *DeleteMappingResponse) Reset() { *x = DeleteMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[131] + mi := &file_state_v1_state_proto_msgTypes[134] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7501,7 +7741,7 @@ func (x *DeleteMappingResponse) String() string { func (*DeleteMappingResponse) ProtoMessage() {} func (x *DeleteMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[131] + mi := &file_state_v1_state_proto_msgTypes[134] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7514,7 +7754,7 @@ func (x *DeleteMappingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteMappingResponse.ProtoReflect.Descriptor instead. func (*DeleteMappingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{131} + return file_state_v1_state_proto_rawDescGZIP(), []int{134} } type RecordMappingMatchRequest struct { @@ -7527,7 +7767,7 @@ type RecordMappingMatchRequest struct { func (x *RecordMappingMatchRequest) Reset() { *x = RecordMappingMatchRequest{} - mi := &file_state_v1_state_proto_msgTypes[132] + mi := &file_state_v1_state_proto_msgTypes[135] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7539,7 +7779,7 @@ func (x *RecordMappingMatchRequest) String() string { func (*RecordMappingMatchRequest) ProtoMessage() {} func (x *RecordMappingMatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[132] + mi := &file_state_v1_state_proto_msgTypes[135] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7552,7 +7792,7 @@ func (x *RecordMappingMatchRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordMappingMatchRequest.ProtoReflect.Descriptor instead. func (*RecordMappingMatchRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{132} + return file_state_v1_state_proto_rawDescGZIP(), []int{135} } func (x *RecordMappingMatchRequest) GetMappingId() string { @@ -7577,7 +7817,7 @@ type RecordMappingMatchResponse struct { func (x *RecordMappingMatchResponse) Reset() { *x = RecordMappingMatchResponse{} - mi := &file_state_v1_state_proto_msgTypes[133] + mi := &file_state_v1_state_proto_msgTypes[136] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7589,7 +7829,7 @@ func (x *RecordMappingMatchResponse) String() string { func (*RecordMappingMatchResponse) ProtoMessage() {} func (x *RecordMappingMatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[133] + mi := &file_state_v1_state_proto_msgTypes[136] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7602,7 +7842,7 @@ func (x *RecordMappingMatchResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordMappingMatchResponse.ProtoReflect.Descriptor instead. func (*RecordMappingMatchResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{133} + return file_state_v1_state_proto_rawDescGZIP(), []int{136} } type InsertEventTypeRequest struct { @@ -7614,7 +7854,7 @@ type InsertEventTypeRequest struct { func (x *InsertEventTypeRequest) Reset() { *x = InsertEventTypeRequest{} - mi := &file_state_v1_state_proto_msgTypes[134] + mi := &file_state_v1_state_proto_msgTypes[137] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7626,7 +7866,7 @@ func (x *InsertEventTypeRequest) String() string { func (*InsertEventTypeRequest) ProtoMessage() {} func (x *InsertEventTypeRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[134] + mi := &file_state_v1_state_proto_msgTypes[137] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7639,7 +7879,7 @@ func (x *InsertEventTypeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertEventTypeRequest.ProtoReflect.Descriptor instead. func (*InsertEventTypeRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{134} + return file_state_v1_state_proto_rawDescGZIP(), []int{137} } func (x *InsertEventTypeRequest) GetEventType() *EventType { @@ -7658,7 +7898,7 @@ type InsertEventTypeResponse struct { func (x *InsertEventTypeResponse) Reset() { *x = InsertEventTypeResponse{} - mi := &file_state_v1_state_proto_msgTypes[135] + mi := &file_state_v1_state_proto_msgTypes[138] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7670,7 +7910,7 @@ func (x *InsertEventTypeResponse) String() string { func (*InsertEventTypeResponse) ProtoMessage() {} func (x *InsertEventTypeResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[135] + mi := &file_state_v1_state_proto_msgTypes[138] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7683,7 +7923,7 @@ func (x *InsertEventTypeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertEventTypeResponse.ProtoReflect.Descriptor instead. func (*InsertEventTypeResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{135} + return file_state_v1_state_proto_rawDescGZIP(), []int{138} } func (x *InsertEventTypeResponse) GetId() string { @@ -7702,7 +7942,7 @@ type UpdateEventTypeRequest struct { func (x *UpdateEventTypeRequest) Reset() { *x = UpdateEventTypeRequest{} - mi := &file_state_v1_state_proto_msgTypes[136] + mi := &file_state_v1_state_proto_msgTypes[139] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7714,7 +7954,7 @@ func (x *UpdateEventTypeRequest) String() string { func (*UpdateEventTypeRequest) ProtoMessage() {} func (x *UpdateEventTypeRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[136] + mi := &file_state_v1_state_proto_msgTypes[139] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7727,7 +7967,7 @@ func (x *UpdateEventTypeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateEventTypeRequest.ProtoReflect.Descriptor instead. func (*UpdateEventTypeRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{136} + return file_state_v1_state_proto_rawDescGZIP(), []int{139} } func (x *UpdateEventTypeRequest) GetEventType() *EventType { @@ -7745,7 +7985,7 @@ type UpdateEventTypeResponse struct { func (x *UpdateEventTypeResponse) Reset() { *x = UpdateEventTypeResponse{} - mi := &file_state_v1_state_proto_msgTypes[137] + mi := &file_state_v1_state_proto_msgTypes[140] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7757,7 +7997,7 @@ func (x *UpdateEventTypeResponse) String() string { func (*UpdateEventTypeResponse) ProtoMessage() {} func (x *UpdateEventTypeResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[137] + mi := &file_state_v1_state_proto_msgTypes[140] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7770,7 +8010,7 @@ func (x *UpdateEventTypeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateEventTypeResponse.ProtoReflect.Descriptor instead. func (*UpdateEventTypeResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{137} + return file_state_v1_state_proto_rawDescGZIP(), []int{140} } type DeleteEventTypeRequest struct { @@ -7782,7 +8022,7 @@ type DeleteEventTypeRequest struct { func (x *DeleteEventTypeRequest) Reset() { *x = DeleteEventTypeRequest{} - mi := &file_state_v1_state_proto_msgTypes[138] + mi := &file_state_v1_state_proto_msgTypes[141] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7794,7 +8034,7 @@ func (x *DeleteEventTypeRequest) String() string { func (*DeleteEventTypeRequest) ProtoMessage() {} func (x *DeleteEventTypeRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[138] + mi := &file_state_v1_state_proto_msgTypes[141] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7807,7 +8047,7 @@ func (x *DeleteEventTypeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteEventTypeRequest.ProtoReflect.Descriptor instead. func (*DeleteEventTypeRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{138} + return file_state_v1_state_proto_rawDescGZIP(), []int{141} } func (x *DeleteEventTypeRequest) GetId() string { @@ -7825,7 +8065,7 @@ type DeleteEventTypeResponse struct { func (x *DeleteEventTypeResponse) Reset() { *x = DeleteEventTypeResponse{} - mi := &file_state_v1_state_proto_msgTypes[139] + mi := &file_state_v1_state_proto_msgTypes[142] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7837,7 +8077,7 @@ func (x *DeleteEventTypeResponse) String() string { func (*DeleteEventTypeResponse) ProtoMessage() {} func (x *DeleteEventTypeResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[139] + mi := &file_state_v1_state_proto_msgTypes[142] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7850,7 +8090,7 @@ func (x *DeleteEventTypeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteEventTypeResponse.ProtoReflect.Descriptor instead. func (*DeleteEventTypeResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{139} + return file_state_v1_state_proto_rawDescGZIP(), []int{142} } type ListEventTypesRequest struct { @@ -7861,7 +8101,7 @@ type ListEventTypesRequest struct { func (x *ListEventTypesRequest) Reset() { *x = ListEventTypesRequest{} - mi := &file_state_v1_state_proto_msgTypes[140] + mi := &file_state_v1_state_proto_msgTypes[143] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7873,7 +8113,7 @@ func (x *ListEventTypesRequest) String() string { func (*ListEventTypesRequest) ProtoMessage() {} func (x *ListEventTypesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[140] + mi := &file_state_v1_state_proto_msgTypes[143] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7886,7 +8126,7 @@ func (x *ListEventTypesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEventTypesRequest.ProtoReflect.Descriptor instead. func (*ListEventTypesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{140} + return file_state_v1_state_proto_rawDescGZIP(), []int{143} } type ListEventTypesResponse struct { @@ -7898,7 +8138,7 @@ type ListEventTypesResponse struct { func (x *ListEventTypesResponse) Reset() { *x = ListEventTypesResponse{} - mi := &file_state_v1_state_proto_msgTypes[141] + mi := &file_state_v1_state_proto_msgTypes[144] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7910,7 +8150,7 @@ func (x *ListEventTypesResponse) String() string { func (*ListEventTypesResponse) ProtoMessage() {} func (x *ListEventTypesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[141] + mi := &file_state_v1_state_proto_msgTypes[144] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7923,7 +8163,7 @@ func (x *ListEventTypesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEventTypesResponse.ProtoReflect.Descriptor instead. func (*ListEventTypesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{141} + return file_state_v1_state_proto_rawDescGZIP(), []int{144} } func (x *ListEventTypesResponse) GetEventTypes() []*EventType { @@ -7942,7 +8182,7 @@ type InsertBindingRequest struct { func (x *InsertBindingRequest) Reset() { *x = InsertBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[142] + mi := &file_state_v1_state_proto_msgTypes[145] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7954,7 +8194,7 @@ func (x *InsertBindingRequest) String() string { func (*InsertBindingRequest) ProtoMessage() {} func (x *InsertBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[142] + mi := &file_state_v1_state_proto_msgTypes[145] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7967,7 +8207,7 @@ func (x *InsertBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertBindingRequest.ProtoReflect.Descriptor instead. func (*InsertBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{142} + return file_state_v1_state_proto_rawDescGZIP(), []int{145} } func (x *InsertBindingRequest) GetBinding() *Binding { @@ -7986,7 +8226,7 @@ type InsertBindingResponse struct { func (x *InsertBindingResponse) Reset() { *x = InsertBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[143] + mi := &file_state_v1_state_proto_msgTypes[146] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7998,7 +8238,7 @@ func (x *InsertBindingResponse) String() string { func (*InsertBindingResponse) ProtoMessage() {} func (x *InsertBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[143] + mi := &file_state_v1_state_proto_msgTypes[146] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8011,7 +8251,7 @@ func (x *InsertBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertBindingResponse.ProtoReflect.Descriptor instead. func (*InsertBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{143} + return file_state_v1_state_proto_rawDescGZIP(), []int{146} } func (x *InsertBindingResponse) GetId() string { @@ -8030,7 +8270,7 @@ type GetBindingRequest struct { func (x *GetBindingRequest) Reset() { *x = GetBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[144] + mi := &file_state_v1_state_proto_msgTypes[147] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8042,7 +8282,7 @@ func (x *GetBindingRequest) String() string { func (*GetBindingRequest) ProtoMessage() {} func (x *GetBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[144] + mi := &file_state_v1_state_proto_msgTypes[147] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8055,7 +8295,7 @@ func (x *GetBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBindingRequest.ProtoReflect.Descriptor instead. func (*GetBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{144} + return file_state_v1_state_proto_rawDescGZIP(), []int{147} } func (x *GetBindingRequest) GetId() string { @@ -8075,7 +8315,7 @@ type GetBindingResponse struct { func (x *GetBindingResponse) Reset() { *x = GetBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[145] + mi := &file_state_v1_state_proto_msgTypes[148] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8087,7 +8327,7 @@ func (x *GetBindingResponse) String() string { func (*GetBindingResponse) ProtoMessage() {} func (x *GetBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[145] + mi := &file_state_v1_state_proto_msgTypes[148] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8100,7 +8340,7 @@ func (x *GetBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBindingResponse.ProtoReflect.Descriptor instead. func (*GetBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{145} + return file_state_v1_state_proto_rawDescGZIP(), []int{148} } func (x *GetBindingResponse) GetBinding() *Binding { @@ -8125,7 +8365,7 @@ type ListBindingsRequest struct { func (x *ListBindingsRequest) Reset() { *x = ListBindingsRequest{} - mi := &file_state_v1_state_proto_msgTypes[146] + mi := &file_state_v1_state_proto_msgTypes[149] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8137,7 +8377,7 @@ func (x *ListBindingsRequest) String() string { func (*ListBindingsRequest) ProtoMessage() {} func (x *ListBindingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[146] + mi := &file_state_v1_state_proto_msgTypes[149] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8150,7 +8390,7 @@ func (x *ListBindingsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListBindingsRequest.ProtoReflect.Descriptor instead. func (*ListBindingsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{146} + return file_state_v1_state_proto_rawDescGZIP(), []int{149} } type ListBindingsResponse struct { @@ -8162,7 +8402,7 @@ type ListBindingsResponse struct { func (x *ListBindingsResponse) Reset() { *x = ListBindingsResponse{} - mi := &file_state_v1_state_proto_msgTypes[147] + mi := &file_state_v1_state_proto_msgTypes[150] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8174,7 +8414,7 @@ func (x *ListBindingsResponse) String() string { func (*ListBindingsResponse) ProtoMessage() {} func (x *ListBindingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[147] + mi := &file_state_v1_state_proto_msgTypes[150] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8187,7 +8427,7 @@ func (x *ListBindingsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListBindingsResponse.ProtoReflect.Descriptor instead. func (*ListBindingsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{147} + return file_state_v1_state_proto_rawDescGZIP(), []int{150} } func (x *ListBindingsResponse) GetBindings() []*Binding { @@ -8206,7 +8446,7 @@ type UpdateBindingRequest struct { func (x *UpdateBindingRequest) Reset() { *x = UpdateBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[148] + mi := &file_state_v1_state_proto_msgTypes[151] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8218,7 +8458,7 @@ func (x *UpdateBindingRequest) String() string { func (*UpdateBindingRequest) ProtoMessage() {} func (x *UpdateBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[148] + mi := &file_state_v1_state_proto_msgTypes[151] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8231,7 +8471,7 @@ func (x *UpdateBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateBindingRequest.ProtoReflect.Descriptor instead. func (*UpdateBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{148} + return file_state_v1_state_proto_rawDescGZIP(), []int{151} } func (x *UpdateBindingRequest) GetBinding() *Binding { @@ -8249,7 +8489,7 @@ type UpdateBindingResponse struct { func (x *UpdateBindingResponse) Reset() { *x = UpdateBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[149] + mi := &file_state_v1_state_proto_msgTypes[152] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8261,7 +8501,7 @@ func (x *UpdateBindingResponse) String() string { func (*UpdateBindingResponse) ProtoMessage() {} func (x *UpdateBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[149] + mi := &file_state_v1_state_proto_msgTypes[152] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8274,7 +8514,7 @@ func (x *UpdateBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateBindingResponse.ProtoReflect.Descriptor instead. func (*UpdateBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{149} + return file_state_v1_state_proto_rawDescGZIP(), []int{152} } type DeleteBindingRequest struct { @@ -8286,7 +8526,7 @@ type DeleteBindingRequest struct { func (x *DeleteBindingRequest) Reset() { *x = DeleteBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[150] + mi := &file_state_v1_state_proto_msgTypes[153] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8298,7 +8538,7 @@ func (x *DeleteBindingRequest) String() string { func (*DeleteBindingRequest) ProtoMessage() {} func (x *DeleteBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[150] + mi := &file_state_v1_state_proto_msgTypes[153] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8311,7 +8551,7 @@ func (x *DeleteBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteBindingRequest.ProtoReflect.Descriptor instead. func (*DeleteBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{150} + return file_state_v1_state_proto_rawDescGZIP(), []int{153} } func (x *DeleteBindingRequest) GetId() string { @@ -8329,7 +8569,7 @@ type DeleteBindingResponse struct { func (x *DeleteBindingResponse) Reset() { *x = DeleteBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[151] + mi := &file_state_v1_state_proto_msgTypes[154] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8341,7 +8581,7 @@ func (x *DeleteBindingResponse) String() string { func (*DeleteBindingResponse) ProtoMessage() {} func (x *DeleteBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[151] + mi := &file_state_v1_state_proto_msgTypes[154] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8354,7 +8594,7 @@ func (x *DeleteBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteBindingResponse.ProtoReflect.Descriptor instead. func (*DeleteBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{151} + return file_state_v1_state_proto_rawDescGZIP(), []int{154} } type ApproveBindingRequest struct { @@ -8366,7 +8606,7 @@ type ApproveBindingRequest struct { func (x *ApproveBindingRequest) Reset() { *x = ApproveBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[152] + mi := &file_state_v1_state_proto_msgTypes[155] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8378,7 +8618,7 @@ func (x *ApproveBindingRequest) String() string { func (*ApproveBindingRequest) ProtoMessage() {} func (x *ApproveBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[152] + mi := &file_state_v1_state_proto_msgTypes[155] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8391,7 +8631,7 @@ func (x *ApproveBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ApproveBindingRequest.ProtoReflect.Descriptor instead. func (*ApproveBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{152} + return file_state_v1_state_proto_rawDescGZIP(), []int{155} } func (x *ApproveBindingRequest) GetId() string { @@ -8409,7 +8649,7 @@ type ApproveBindingResponse struct { func (x *ApproveBindingResponse) Reset() { *x = ApproveBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[153] + mi := &file_state_v1_state_proto_msgTypes[156] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8421,7 +8661,7 @@ func (x *ApproveBindingResponse) String() string { func (*ApproveBindingResponse) ProtoMessage() {} func (x *ApproveBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[153] + mi := &file_state_v1_state_proto_msgTypes[156] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8434,7 +8674,7 @@ func (x *ApproveBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ApproveBindingResponse.ProtoReflect.Descriptor instead. func (*ApproveBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{153} + return file_state_v1_state_proto_rawDescGZIP(), []int{156} } type InsertSourceRequest struct { @@ -8446,7 +8686,7 @@ type InsertSourceRequest struct { func (x *InsertSourceRequest) Reset() { *x = InsertSourceRequest{} - mi := &file_state_v1_state_proto_msgTypes[154] + mi := &file_state_v1_state_proto_msgTypes[157] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8458,7 +8698,7 @@ func (x *InsertSourceRequest) String() string { func (*InsertSourceRequest) ProtoMessage() {} func (x *InsertSourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[154] + mi := &file_state_v1_state_proto_msgTypes[157] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8471,7 +8711,7 @@ func (x *InsertSourceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertSourceRequest.ProtoReflect.Descriptor instead. func (*InsertSourceRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{154} + return file_state_v1_state_proto_rawDescGZIP(), []int{157} } func (x *InsertSourceRequest) GetSource() *Source { @@ -8489,7 +8729,7 @@ type InsertSourceResponse struct { func (x *InsertSourceResponse) Reset() { *x = InsertSourceResponse{} - mi := &file_state_v1_state_proto_msgTypes[155] + mi := &file_state_v1_state_proto_msgTypes[158] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8501,7 +8741,7 @@ func (x *InsertSourceResponse) String() string { func (*InsertSourceResponse) ProtoMessage() {} func (x *InsertSourceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[155] + mi := &file_state_v1_state_proto_msgTypes[158] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8514,7 +8754,7 @@ func (x *InsertSourceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertSourceResponse.ProtoReflect.Descriptor instead. func (*InsertSourceResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{155} + return file_state_v1_state_proto_rawDescGZIP(), []int{158} } type GetSourceRequest struct { @@ -8526,7 +8766,7 @@ type GetSourceRequest struct { func (x *GetSourceRequest) Reset() { *x = GetSourceRequest{} - mi := &file_state_v1_state_proto_msgTypes[156] + mi := &file_state_v1_state_proto_msgTypes[159] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8538,7 +8778,7 @@ func (x *GetSourceRequest) String() string { func (*GetSourceRequest) ProtoMessage() {} func (x *GetSourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[156] + mi := &file_state_v1_state_proto_msgTypes[159] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8551,7 +8791,7 @@ func (x *GetSourceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSourceRequest.ProtoReflect.Descriptor instead. func (*GetSourceRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{156} + return file_state_v1_state_proto_rawDescGZIP(), []int{159} } func (x *GetSourceRequest) GetPath() string { @@ -8571,7 +8811,7 @@ type GetSourceResponse struct { func (x *GetSourceResponse) Reset() { *x = GetSourceResponse{} - mi := &file_state_v1_state_proto_msgTypes[157] + mi := &file_state_v1_state_proto_msgTypes[160] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8583,7 +8823,7 @@ func (x *GetSourceResponse) String() string { func (*GetSourceResponse) ProtoMessage() {} func (x *GetSourceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[157] + mi := &file_state_v1_state_proto_msgTypes[160] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8596,7 +8836,7 @@ func (x *GetSourceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSourceResponse.ProtoReflect.Descriptor instead. func (*GetSourceResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{157} + return file_state_v1_state_proto_rawDescGZIP(), []int{160} } func (x *GetSourceResponse) GetSource() *Source { @@ -8621,7 +8861,7 @@ type ListSourcesRequest struct { func (x *ListSourcesRequest) Reset() { *x = ListSourcesRequest{} - mi := &file_state_v1_state_proto_msgTypes[158] + mi := &file_state_v1_state_proto_msgTypes[161] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8633,7 +8873,7 @@ func (x *ListSourcesRequest) String() string { func (*ListSourcesRequest) ProtoMessage() {} func (x *ListSourcesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[158] + mi := &file_state_v1_state_proto_msgTypes[161] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8646,7 +8886,7 @@ func (x *ListSourcesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListSourcesRequest.ProtoReflect.Descriptor instead. func (*ListSourcesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{158} + return file_state_v1_state_proto_rawDescGZIP(), []int{161} } type ListSourcesResponse struct { @@ -8658,7 +8898,7 @@ type ListSourcesResponse struct { func (x *ListSourcesResponse) Reset() { *x = ListSourcesResponse{} - mi := &file_state_v1_state_proto_msgTypes[159] + mi := &file_state_v1_state_proto_msgTypes[162] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8670,7 +8910,7 @@ func (x *ListSourcesResponse) String() string { func (*ListSourcesResponse) ProtoMessage() {} func (x *ListSourcesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[159] + mi := &file_state_v1_state_proto_msgTypes[162] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8683,7 +8923,7 @@ func (x *ListSourcesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListSourcesResponse.ProtoReflect.Descriptor instead. func (*ListSourcesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{159} + return file_state_v1_state_proto_rawDescGZIP(), []int{162} } func (x *ListSourcesResponse) GetSources() []*Source { @@ -8704,7 +8944,7 @@ type SetSourceSigningRequest struct { func (x *SetSourceSigningRequest) Reset() { *x = SetSourceSigningRequest{} - mi := &file_state_v1_state_proto_msgTypes[160] + mi := &file_state_v1_state_proto_msgTypes[163] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8716,7 +8956,7 @@ func (x *SetSourceSigningRequest) String() string { func (*SetSourceSigningRequest) ProtoMessage() {} func (x *SetSourceSigningRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[160] + mi := &file_state_v1_state_proto_msgTypes[163] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8729,7 +8969,7 @@ func (x *SetSourceSigningRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetSourceSigningRequest.ProtoReflect.Descriptor instead. func (*SetSourceSigningRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{160} + return file_state_v1_state_proto_rawDescGZIP(), []int{163} } func (x *SetSourceSigningRequest) GetPath() string { @@ -8761,7 +9001,7 @@ type SetSourceSigningResponse struct { func (x *SetSourceSigningResponse) Reset() { *x = SetSourceSigningResponse{} - mi := &file_state_v1_state_proto_msgTypes[161] + mi := &file_state_v1_state_proto_msgTypes[164] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8773,7 +9013,7 @@ func (x *SetSourceSigningResponse) String() string { func (*SetSourceSigningResponse) ProtoMessage() {} func (x *SetSourceSigningResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[161] + mi := &file_state_v1_state_proto_msgTypes[164] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8786,7 +9026,7 @@ func (x *SetSourceSigningResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetSourceSigningResponse.ProtoReflect.Descriptor instead. func (*SetSourceSigningResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{161} + return file_state_v1_state_proto_rawDescGZIP(), []int{164} } type SetSourceSecretRequest struct { @@ -8799,7 +9039,7 @@ type SetSourceSecretRequest struct { func (x *SetSourceSecretRequest) Reset() { *x = SetSourceSecretRequest{} - mi := &file_state_v1_state_proto_msgTypes[162] + mi := &file_state_v1_state_proto_msgTypes[165] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8811,7 +9051,7 @@ func (x *SetSourceSecretRequest) String() string { func (*SetSourceSecretRequest) ProtoMessage() {} func (x *SetSourceSecretRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[162] + mi := &file_state_v1_state_proto_msgTypes[165] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8824,7 +9064,7 @@ func (x *SetSourceSecretRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetSourceSecretRequest.ProtoReflect.Descriptor instead. func (*SetSourceSecretRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{162} + return file_state_v1_state_proto_rawDescGZIP(), []int{165} } func (x *SetSourceSecretRequest) GetPath() string { @@ -8849,7 +9089,7 @@ type SetSourceSecretResponse struct { func (x *SetSourceSecretResponse) Reset() { *x = SetSourceSecretResponse{} - mi := &file_state_v1_state_proto_msgTypes[163] + mi := &file_state_v1_state_proto_msgTypes[166] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8861,7 +9101,7 @@ func (x *SetSourceSecretResponse) String() string { func (*SetSourceSecretResponse) ProtoMessage() {} func (x *SetSourceSecretResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[163] + mi := &file_state_v1_state_proto_msgTypes[166] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8874,7 +9114,7 @@ func (x *SetSourceSecretResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetSourceSecretResponse.ProtoReflect.Descriptor instead. func (*SetSourceSecretResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{163} + return file_state_v1_state_proto_rawDescGZIP(), []int{166} } type ArmedBindingsForSourceRequest struct { @@ -8886,7 +9126,7 @@ type ArmedBindingsForSourceRequest struct { func (x *ArmedBindingsForSourceRequest) Reset() { *x = ArmedBindingsForSourceRequest{} - mi := &file_state_v1_state_proto_msgTypes[164] + mi := &file_state_v1_state_proto_msgTypes[167] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8898,7 +9138,7 @@ func (x *ArmedBindingsForSourceRequest) String() string { func (*ArmedBindingsForSourceRequest) ProtoMessage() {} func (x *ArmedBindingsForSourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[164] + mi := &file_state_v1_state_proto_msgTypes[167] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8911,7 +9151,7 @@ func (x *ArmedBindingsForSourceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ArmedBindingsForSourceRequest.ProtoReflect.Descriptor instead. func (*ArmedBindingsForSourceRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{164} + return file_state_v1_state_proto_rawDescGZIP(), []int{167} } func (x *ArmedBindingsForSourceRequest) GetSource() string { @@ -8930,7 +9170,7 @@ type ArmedBindingsForSourceResponse struct { func (x *ArmedBindingsForSourceResponse) Reset() { *x = ArmedBindingsForSourceResponse{} - mi := &file_state_v1_state_proto_msgTypes[165] + mi := &file_state_v1_state_proto_msgTypes[168] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8942,7 +9182,7 @@ func (x *ArmedBindingsForSourceResponse) String() string { func (*ArmedBindingsForSourceResponse) ProtoMessage() {} func (x *ArmedBindingsForSourceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[165] + mi := &file_state_v1_state_proto_msgTypes[168] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8955,7 +9195,7 @@ func (x *ArmedBindingsForSourceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ArmedBindingsForSourceResponse.ProtoReflect.Descriptor instead. func (*ArmedBindingsForSourceResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{165} + return file_state_v1_state_proto_rawDescGZIP(), []int{168} } func (x *ArmedBindingsForSourceResponse) GetBindings() []*Binding { @@ -8978,7 +9218,7 @@ type RecordDispatchRequest struct { func (x *RecordDispatchRequest) Reset() { *x = RecordDispatchRequest{} - mi := &file_state_v1_state_proto_msgTypes[166] + mi := &file_state_v1_state_proto_msgTypes[169] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8990,7 +9230,7 @@ func (x *RecordDispatchRequest) String() string { func (*RecordDispatchRequest) ProtoMessage() {} func (x *RecordDispatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[166] + mi := &file_state_v1_state_proto_msgTypes[169] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9003,7 +9243,7 @@ func (x *RecordDispatchRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDispatchRequest.ProtoReflect.Descriptor instead. func (*RecordDispatchRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{166} + return file_state_v1_state_proto_rawDescGZIP(), []int{169} } func (x *RecordDispatchRequest) GetBindingId() string { @@ -9042,7 +9282,7 @@ type RecordDispatchResponse struct { func (x *RecordDispatchResponse) Reset() { *x = RecordDispatchResponse{} - mi := &file_state_v1_state_proto_msgTypes[167] + mi := &file_state_v1_state_proto_msgTypes[170] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9054,7 +9294,7 @@ func (x *RecordDispatchResponse) String() string { func (*RecordDispatchResponse) ProtoMessage() {} func (x *RecordDispatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[167] + mi := &file_state_v1_state_proto_msgTypes[170] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9067,7 +9307,7 @@ func (x *RecordDispatchResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDispatchResponse.ProtoReflect.Descriptor instead. func (*RecordDispatchResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{167} + return file_state_v1_state_proto_rawDescGZIP(), []int{170} } type RecordPlaybookDispatchRequest struct { @@ -9082,7 +9322,7 @@ type RecordPlaybookDispatchRequest struct { func (x *RecordPlaybookDispatchRequest) Reset() { *x = RecordPlaybookDispatchRequest{} - mi := &file_state_v1_state_proto_msgTypes[168] + mi := &file_state_v1_state_proto_msgTypes[171] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9094,7 +9334,7 @@ func (x *RecordPlaybookDispatchRequest) String() string { func (*RecordPlaybookDispatchRequest) ProtoMessage() {} func (x *RecordPlaybookDispatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[168] + mi := &file_state_v1_state_proto_msgTypes[171] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9107,7 +9347,7 @@ func (x *RecordPlaybookDispatchRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordPlaybookDispatchRequest.ProtoReflect.Descriptor instead. func (*RecordPlaybookDispatchRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{168} + return file_state_v1_state_proto_rawDescGZIP(), []int{171} } func (x *RecordPlaybookDispatchRequest) GetPlaybookId() string { @@ -9146,7 +9386,7 @@ type RecordPlaybookDispatchResponse struct { func (x *RecordPlaybookDispatchResponse) Reset() { *x = RecordPlaybookDispatchResponse{} - mi := &file_state_v1_state_proto_msgTypes[169] + mi := &file_state_v1_state_proto_msgTypes[172] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9158,7 +9398,7 @@ func (x *RecordPlaybookDispatchResponse) String() string { func (*RecordPlaybookDispatchResponse) ProtoMessage() {} func (x *RecordPlaybookDispatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[169] + mi := &file_state_v1_state_proto_msgTypes[172] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9171,7 +9411,7 @@ func (x *RecordPlaybookDispatchResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordPlaybookDispatchResponse.ProtoReflect.Descriptor instead. func (*RecordPlaybookDispatchResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{169} + return file_state_v1_state_proto_rawDescGZIP(), []int{172} } type DeletePlaybookDispatchesRequest struct { @@ -9183,7 +9423,7 @@ type DeletePlaybookDispatchesRequest struct { func (x *DeletePlaybookDispatchesRequest) Reset() { *x = DeletePlaybookDispatchesRequest{} - mi := &file_state_v1_state_proto_msgTypes[170] + mi := &file_state_v1_state_proto_msgTypes[173] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9195,7 +9435,7 @@ func (x *DeletePlaybookDispatchesRequest) String() string { func (*DeletePlaybookDispatchesRequest) ProtoMessage() {} func (x *DeletePlaybookDispatchesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[170] + mi := &file_state_v1_state_proto_msgTypes[173] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9208,7 +9448,7 @@ func (x *DeletePlaybookDispatchesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePlaybookDispatchesRequest.ProtoReflect.Descriptor instead. func (*DeletePlaybookDispatchesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{170} + return file_state_v1_state_proto_rawDescGZIP(), []int{173} } func (x *DeletePlaybookDispatchesRequest) GetPlaybookId() string { @@ -9226,7 +9466,7 @@ type DeletePlaybookDispatchesResponse struct { func (x *DeletePlaybookDispatchesResponse) Reset() { *x = DeletePlaybookDispatchesResponse{} - mi := &file_state_v1_state_proto_msgTypes[171] + mi := &file_state_v1_state_proto_msgTypes[174] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9238,7 +9478,7 @@ func (x *DeletePlaybookDispatchesResponse) String() string { func (*DeletePlaybookDispatchesResponse) ProtoMessage() {} func (x *DeletePlaybookDispatchesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[171] + mi := &file_state_v1_state_proto_msgTypes[174] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9251,7 +9491,7 @@ func (x *DeletePlaybookDispatchesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePlaybookDispatchesResponse.ProtoReflect.Descriptor instead. func (*DeletePlaybookDispatchesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{171} + return file_state_v1_state_proto_rawDescGZIP(), []int{174} } type StreamUndispatchedCapturesRequest struct { @@ -9264,7 +9504,7 @@ type StreamUndispatchedCapturesRequest struct { func (x *StreamUndispatchedCapturesRequest) Reset() { *x = StreamUndispatchedCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[172] + mi := &file_state_v1_state_proto_msgTypes[175] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9276,7 +9516,7 @@ func (x *StreamUndispatchedCapturesRequest) String() string { func (*StreamUndispatchedCapturesRequest) ProtoMessage() {} func (x *StreamUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[172] + mi := &file_state_v1_state_proto_msgTypes[175] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9289,7 +9529,7 @@ func (x *StreamUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message // Deprecated: Use StreamUndispatchedCapturesRequest.ProtoReflect.Descriptor instead. func (*StreamUndispatchedCapturesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{172} + return file_state_v1_state_proto_rawDescGZIP(), []int{175} } func (x *StreamUndispatchedCapturesRequest) GetSources() []string { @@ -9316,7 +9556,7 @@ type StreamUndispatchedCapturesResponse struct { func (x *StreamUndispatchedCapturesResponse) Reset() { *x = StreamUndispatchedCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[173] + mi := &file_state_v1_state_proto_msgTypes[176] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9328,7 +9568,7 @@ func (x *StreamUndispatchedCapturesResponse) String() string { func (*StreamUndispatchedCapturesResponse) ProtoMessage() {} func (x *StreamUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[173] + mi := &file_state_v1_state_proto_msgTypes[176] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9341,7 +9581,7 @@ func (x *StreamUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message // Deprecated: Use StreamUndispatchedCapturesResponse.ProtoReflect.Descriptor instead. func (*StreamUndispatchedCapturesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{173} + return file_state_v1_state_proto_rawDescGZIP(), []int{176} } func (x *StreamUndispatchedCapturesResponse) GetCapture() *CapturedEvent { @@ -9368,7 +9608,7 @@ type EnqueueBindingTaskRequest struct { func (x *EnqueueBindingTaskRequest) Reset() { *x = EnqueueBindingTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[174] + mi := &file_state_v1_state_proto_msgTypes[177] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9380,7 +9620,7 @@ func (x *EnqueueBindingTaskRequest) String() string { func (*EnqueueBindingTaskRequest) ProtoMessage() {} func (x *EnqueueBindingTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[174] + mi := &file_state_v1_state_proto_msgTypes[177] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9393,7 +9633,7 @@ func (x *EnqueueBindingTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EnqueueBindingTaskRequest.ProtoReflect.Descriptor instead. func (*EnqueueBindingTaskRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{174} + return file_state_v1_state_proto_rawDescGZIP(), []int{177} } func (x *EnqueueBindingTaskRequest) GetOwner() string { @@ -9468,7 +9708,7 @@ type EnqueueBindingTaskResponse struct { func (x *EnqueueBindingTaskResponse) Reset() { *x = EnqueueBindingTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[175] + mi := &file_state_v1_state_proto_msgTypes[178] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9480,7 +9720,7 @@ func (x *EnqueueBindingTaskResponse) String() string { func (*EnqueueBindingTaskResponse) ProtoMessage() {} func (x *EnqueueBindingTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[175] + mi := &file_state_v1_state_proto_msgTypes[178] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9493,7 +9733,7 @@ func (x *EnqueueBindingTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EnqueueBindingTaskResponse.ProtoReflect.Descriptor instead. func (*EnqueueBindingTaskResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{175} + return file_state_v1_state_proto_rawDescGZIP(), []int{178} } func (x *EnqueueBindingTaskResponse) GetTask() *Task { @@ -9516,7 +9756,7 @@ type EnqueueCallTaskRequest struct { func (x *EnqueueCallTaskRequest) Reset() { *x = EnqueueCallTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[176] + mi := &file_state_v1_state_proto_msgTypes[179] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9528,7 +9768,7 @@ func (x *EnqueueCallTaskRequest) String() string { func (*EnqueueCallTaskRequest) ProtoMessage() {} func (x *EnqueueCallTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[176] + mi := &file_state_v1_state_proto_msgTypes[179] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9541,7 +9781,7 @@ func (x *EnqueueCallTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EnqueueCallTaskRequest.ProtoReflect.Descriptor instead. func (*EnqueueCallTaskRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{176} + return file_state_v1_state_proto_rawDescGZIP(), []int{179} } func (x *EnqueueCallTaskRequest) GetCallerTaskId() int64 { @@ -9575,7 +9815,7 @@ type EnqueueCallTaskResponse struct { func (x *EnqueueCallTaskResponse) Reset() { *x = EnqueueCallTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[177] + mi := &file_state_v1_state_proto_msgTypes[180] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9587,7 +9827,7 @@ func (x *EnqueueCallTaskResponse) String() string { func (*EnqueueCallTaskResponse) ProtoMessage() {} func (x *EnqueueCallTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[177] + mi := &file_state_v1_state_proto_msgTypes[180] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9600,7 +9840,7 @@ func (x *EnqueueCallTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EnqueueCallTaskResponse.ProtoReflect.Descriptor instead. func (*EnqueueCallTaskResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{177} + return file_state_v1_state_proto_rawDescGZIP(), []int{180} } func (x *EnqueueCallTaskResponse) GetTask() *Task { @@ -9627,7 +9867,7 @@ type WorkflowCallStatusRequest struct { func (x *WorkflowCallStatusRequest) Reset() { *x = WorkflowCallStatusRequest{} - mi := &file_state_v1_state_proto_msgTypes[178] + mi := &file_state_v1_state_proto_msgTypes[181] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9639,7 +9879,7 @@ func (x *WorkflowCallStatusRequest) String() string { func (*WorkflowCallStatusRequest) ProtoMessage() {} func (x *WorkflowCallStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[178] + mi := &file_state_v1_state_proto_msgTypes[181] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9652,7 +9892,7 @@ func (x *WorkflowCallStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowCallStatusRequest.ProtoReflect.Descriptor instead. func (*WorkflowCallStatusRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{178} + return file_state_v1_state_proto_rawDescGZIP(), []int{181} } func (x *WorkflowCallStatusRequest) GetCallerTaskId() int64 { @@ -9681,7 +9921,7 @@ type WorkflowCallStatusResponse struct { func (x *WorkflowCallStatusResponse) Reset() { *x = WorkflowCallStatusResponse{} - mi := &file_state_v1_state_proto_msgTypes[179] + mi := &file_state_v1_state_proto_msgTypes[182] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9693,7 +9933,7 @@ func (x *WorkflowCallStatusResponse) String() string { func (*WorkflowCallStatusResponse) ProtoMessage() {} func (x *WorkflowCallStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[179] + mi := &file_state_v1_state_proto_msgTypes[182] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9706,7 +9946,7 @@ func (x *WorkflowCallStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowCallStatusResponse.ProtoReflect.Descriptor instead. func (*WorkflowCallStatusResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{179} + return file_state_v1_state_proto_rawDescGZIP(), []int{182} } func (x *WorkflowCallStatusResponse) GetStatus() string { @@ -9738,7 +9978,7 @@ type InstalledPackage struct { func (x *InstalledPackage) Reset() { *x = InstalledPackage{} - mi := &file_state_v1_state_proto_msgTypes[180] + mi := &file_state_v1_state_proto_msgTypes[183] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9750,7 +9990,7 @@ func (x *InstalledPackage) String() string { func (*InstalledPackage) ProtoMessage() {} func (x *InstalledPackage) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[180] + mi := &file_state_v1_state_proto_msgTypes[183] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9763,7 +10003,7 @@ func (x *InstalledPackage) ProtoReflect() protoreflect.Message { // Deprecated: Use InstalledPackage.ProtoReflect.Descriptor instead. func (*InstalledPackage) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{180} + return file_state_v1_state_proto_rawDescGZIP(), []int{183} } func (x *InstalledPackage) GetOrgId() string { @@ -9827,7 +10067,7 @@ type InstallPackageRequest struct { func (x *InstallPackageRequest) Reset() { *x = InstallPackageRequest{} - mi := &file_state_v1_state_proto_msgTypes[181] + mi := &file_state_v1_state_proto_msgTypes[184] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9839,7 +10079,7 @@ func (x *InstallPackageRequest) String() string { func (*InstallPackageRequest) ProtoMessage() {} func (x *InstallPackageRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[181] + mi := &file_state_v1_state_proto_msgTypes[184] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9852,7 +10092,7 @@ func (x *InstallPackageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InstallPackageRequest.ProtoReflect.Descriptor instead. func (*InstallPackageRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{181} + return file_state_v1_state_proto_rawDescGZIP(), []int{184} } func (x *InstallPackageRequest) GetOrgId() string { @@ -9892,7 +10132,7 @@ type InstallPackageResponse struct { func (x *InstallPackageResponse) Reset() { *x = InstallPackageResponse{} - mi := &file_state_v1_state_proto_msgTypes[182] + mi := &file_state_v1_state_proto_msgTypes[185] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9904,7 +10144,7 @@ func (x *InstallPackageResponse) String() string { func (*InstallPackageResponse) ProtoMessage() {} func (x *InstallPackageResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[182] + mi := &file_state_v1_state_proto_msgTypes[185] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9917,7 +10157,7 @@ func (x *InstallPackageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InstallPackageResponse.ProtoReflect.Descriptor instead. func (*InstallPackageResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{182} + return file_state_v1_state_proto_rawDescGZIP(), []int{185} } func (x *InstallPackageResponse) GetPackage() *InstalledPackage { @@ -9937,7 +10177,7 @@ type GetInstalledPackageRequest struct { func (x *GetInstalledPackageRequest) Reset() { *x = GetInstalledPackageRequest{} - mi := &file_state_v1_state_proto_msgTypes[183] + mi := &file_state_v1_state_proto_msgTypes[186] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9949,7 +10189,7 @@ func (x *GetInstalledPackageRequest) String() string { func (*GetInstalledPackageRequest) ProtoMessage() {} func (x *GetInstalledPackageRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[183] + mi := &file_state_v1_state_proto_msgTypes[186] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9962,7 +10202,7 @@ func (x *GetInstalledPackageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetInstalledPackageRequest.ProtoReflect.Descriptor instead. func (*GetInstalledPackageRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{183} + return file_state_v1_state_proto_rawDescGZIP(), []int{186} } func (x *GetInstalledPackageRequest) GetOrgId() string { @@ -9988,7 +10228,7 @@ type GetInstalledPackageResponse struct { func (x *GetInstalledPackageResponse) Reset() { *x = GetInstalledPackageResponse{} - mi := &file_state_v1_state_proto_msgTypes[184] + mi := &file_state_v1_state_proto_msgTypes[187] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10000,7 +10240,7 @@ func (x *GetInstalledPackageResponse) String() string { func (*GetInstalledPackageResponse) ProtoMessage() {} func (x *GetInstalledPackageResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[184] + mi := &file_state_v1_state_proto_msgTypes[187] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10013,7 +10253,7 @@ func (x *GetInstalledPackageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetInstalledPackageResponse.ProtoReflect.Descriptor instead. func (*GetInstalledPackageResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{184} + return file_state_v1_state_proto_rawDescGZIP(), []int{187} } func (x *GetInstalledPackageResponse) GetPackage() *InstalledPackage { @@ -10032,7 +10272,7 @@ type ListInstalledPackagesRequest struct { func (x *ListInstalledPackagesRequest) Reset() { *x = ListInstalledPackagesRequest{} - mi := &file_state_v1_state_proto_msgTypes[185] + mi := &file_state_v1_state_proto_msgTypes[188] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10044,7 +10284,7 @@ func (x *ListInstalledPackagesRequest) String() string { func (*ListInstalledPackagesRequest) ProtoMessage() {} func (x *ListInstalledPackagesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[185] + mi := &file_state_v1_state_proto_msgTypes[188] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10057,7 +10297,7 @@ func (x *ListInstalledPackagesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListInstalledPackagesRequest.ProtoReflect.Descriptor instead. func (*ListInstalledPackagesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{185} + return file_state_v1_state_proto_rawDescGZIP(), []int{188} } func (x *ListInstalledPackagesRequest) GetOrgId() string { @@ -10076,7 +10316,7 @@ type ListInstalledPackagesResponse struct { func (x *ListInstalledPackagesResponse) Reset() { *x = ListInstalledPackagesResponse{} - mi := &file_state_v1_state_proto_msgTypes[186] + mi := &file_state_v1_state_proto_msgTypes[189] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10088,7 +10328,7 @@ func (x *ListInstalledPackagesResponse) String() string { func (*ListInstalledPackagesResponse) ProtoMessage() {} func (x *ListInstalledPackagesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[186] + mi := &file_state_v1_state_proto_msgTypes[189] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10101,7 +10341,7 @@ func (x *ListInstalledPackagesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListInstalledPackagesResponse.ProtoReflect.Descriptor instead. func (*ListInstalledPackagesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{186} + return file_state_v1_state_proto_rawDescGZIP(), []int{189} } func (x *ListInstalledPackagesResponse) GetPackages() []*InstalledPackage { @@ -10121,7 +10361,7 @@ type RemoveInstalledPackageRequest struct { func (x *RemoveInstalledPackageRequest) Reset() { *x = RemoveInstalledPackageRequest{} - mi := &file_state_v1_state_proto_msgTypes[187] + mi := &file_state_v1_state_proto_msgTypes[190] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10133,7 +10373,7 @@ func (x *RemoveInstalledPackageRequest) String() string { func (*RemoveInstalledPackageRequest) ProtoMessage() {} func (x *RemoveInstalledPackageRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[187] + mi := &file_state_v1_state_proto_msgTypes[190] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10146,7 +10386,7 @@ func (x *RemoveInstalledPackageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveInstalledPackageRequest.ProtoReflect.Descriptor instead. func (*RemoveInstalledPackageRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{187} + return file_state_v1_state_proto_rawDescGZIP(), []int{190} } func (x *RemoveInstalledPackageRequest) GetOrgId() string { @@ -10171,7 +10411,7 @@ type RemoveInstalledPackageResponse struct { func (x *RemoveInstalledPackageResponse) Reset() { *x = RemoveInstalledPackageResponse{} - mi := &file_state_v1_state_proto_msgTypes[188] + mi := &file_state_v1_state_proto_msgTypes[191] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10183,7 +10423,7 @@ func (x *RemoveInstalledPackageResponse) String() string { func (*RemoveInstalledPackageResponse) ProtoMessage() {} func (x *RemoveInstalledPackageResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[188] + mi := &file_state_v1_state_proto_msgTypes[191] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10196,7 +10436,7 @@ func (x *RemoveInstalledPackageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveInstalledPackageResponse.ProtoReflect.Descriptor instead. func (*RemoveInstalledPackageResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{188} + return file_state_v1_state_proto_rawDescGZIP(), []int{191} } type GetPrincipalRequest struct { @@ -10208,7 +10448,7 @@ type GetPrincipalRequest struct { func (x *GetPrincipalRequest) Reset() { *x = GetPrincipalRequest{} - mi := &file_state_v1_state_proto_msgTypes[189] + mi := &file_state_v1_state_proto_msgTypes[192] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10220,7 +10460,7 @@ func (x *GetPrincipalRequest) String() string { func (*GetPrincipalRequest) ProtoMessage() {} func (x *GetPrincipalRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[189] + mi := &file_state_v1_state_proto_msgTypes[192] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10233,7 +10473,7 @@ func (x *GetPrincipalRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrincipalRequest.ProtoReflect.Descriptor instead. func (*GetPrincipalRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{189} + return file_state_v1_state_proto_rawDescGZIP(), []int{192} } func (x *GetPrincipalRequest) GetIdentityId() string { @@ -10256,7 +10496,7 @@ type PrincipalMembership struct { func (x *PrincipalMembership) Reset() { *x = PrincipalMembership{} - mi := &file_state_v1_state_proto_msgTypes[190] + mi := &file_state_v1_state_proto_msgTypes[193] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10268,7 +10508,7 @@ func (x *PrincipalMembership) String() string { func (*PrincipalMembership) ProtoMessage() {} func (x *PrincipalMembership) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[190] + mi := &file_state_v1_state_proto_msgTypes[193] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10281,7 +10521,7 @@ func (x *PrincipalMembership) ProtoReflect() protoreflect.Message { // Deprecated: Use PrincipalMembership.ProtoReflect.Descriptor instead. func (*PrincipalMembership) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{190} + return file_state_v1_state_proto_rawDescGZIP(), []int{193} } func (x *PrincipalMembership) GetOrgId() string { @@ -10316,7 +10556,7 @@ type AccessPrincipal struct { func (x *AccessPrincipal) Reset() { *x = AccessPrincipal{} - mi := &file_state_v1_state_proto_msgTypes[191] + mi := &file_state_v1_state_proto_msgTypes[194] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10328,7 +10568,7 @@ func (x *AccessPrincipal) String() string { func (*AccessPrincipal) ProtoMessage() {} func (x *AccessPrincipal) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[191] + mi := &file_state_v1_state_proto_msgTypes[194] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10341,7 +10581,7 @@ func (x *AccessPrincipal) ProtoReflect() protoreflect.Message { // Deprecated: Use AccessPrincipal.ProtoReflect.Descriptor instead. func (*AccessPrincipal) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{191} + return file_state_v1_state_proto_rawDescGZIP(), []int{194} } func (x *AccessPrincipal) GetIdentityId() string { @@ -10374,7 +10614,7 @@ type GetPrincipalResponse struct { func (x *GetPrincipalResponse) Reset() { *x = GetPrincipalResponse{} - mi := &file_state_v1_state_proto_msgTypes[192] + mi := &file_state_v1_state_proto_msgTypes[195] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10386,7 +10626,7 @@ func (x *GetPrincipalResponse) String() string { func (*GetPrincipalResponse) ProtoMessage() {} func (x *GetPrincipalResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[192] + mi := &file_state_v1_state_proto_msgTypes[195] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10399,7 +10639,7 @@ func (x *GetPrincipalResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrincipalResponse.ProtoReflect.Descriptor instead. func (*GetPrincipalResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{192} + return file_state_v1_state_proto_rawDescGZIP(), []int{195} } func (x *GetPrincipalResponse) GetPrincipal() *AccessPrincipal { @@ -10426,7 +10666,7 @@ type AccessPolicy struct { func (x *AccessPolicy) Reset() { *x = AccessPolicy{} - mi := &file_state_v1_state_proto_msgTypes[193] + mi := &file_state_v1_state_proto_msgTypes[196] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10438,7 +10678,7 @@ func (x *AccessPolicy) String() string { func (*AccessPolicy) ProtoMessage() {} func (x *AccessPolicy) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[193] + mi := &file_state_v1_state_proto_msgTypes[196] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10451,7 +10691,7 @@ func (x *AccessPolicy) ProtoReflect() protoreflect.Message { // Deprecated: Use AccessPolicy.ProtoReflect.Descriptor instead. func (*AccessPolicy) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{193} + return file_state_v1_state_proto_rawDescGZIP(), []int{196} } func (x *AccessPolicy) GetPolicyId() string { @@ -10511,7 +10751,7 @@ type ListPoliciesRequest struct { func (x *ListPoliciesRequest) Reset() { *x = ListPoliciesRequest{} - mi := &file_state_v1_state_proto_msgTypes[194] + mi := &file_state_v1_state_proto_msgTypes[197] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10523,7 +10763,7 @@ func (x *ListPoliciesRequest) String() string { func (*ListPoliciesRequest) ProtoMessage() {} func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[194] + mi := &file_state_v1_state_proto_msgTypes[197] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10536,7 +10776,7 @@ func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPoliciesRequest.ProtoReflect.Descriptor instead. func (*ListPoliciesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{194} + return file_state_v1_state_proto_rawDescGZIP(), []int{197} } type ListPoliciesResponse struct { @@ -10548,7 +10788,7 @@ type ListPoliciesResponse struct { func (x *ListPoliciesResponse) Reset() { *x = ListPoliciesResponse{} - mi := &file_state_v1_state_proto_msgTypes[195] + mi := &file_state_v1_state_proto_msgTypes[198] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10560,7 +10800,7 @@ func (x *ListPoliciesResponse) String() string { func (*ListPoliciesResponse) ProtoMessage() {} func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[195] + mi := &file_state_v1_state_proto_msgTypes[198] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10573,7 +10813,7 @@ func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPoliciesResponse.ProtoReflect.Descriptor instead. func (*ListPoliciesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{195} + return file_state_v1_state_proto_rawDescGZIP(), []int{198} } func (x *ListPoliciesResponse) GetPolicies() []*AccessPolicy { @@ -10592,7 +10832,7 @@ type PutPolicyRequest struct { func (x *PutPolicyRequest) Reset() { *x = PutPolicyRequest{} - mi := &file_state_v1_state_proto_msgTypes[196] + mi := &file_state_v1_state_proto_msgTypes[199] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10604,7 +10844,7 @@ func (x *PutPolicyRequest) String() string { func (*PutPolicyRequest) ProtoMessage() {} func (x *PutPolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[196] + mi := &file_state_v1_state_proto_msgTypes[199] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10617,7 +10857,7 @@ func (x *PutPolicyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutPolicyRequest.ProtoReflect.Descriptor instead. func (*PutPolicyRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{196} + return file_state_v1_state_proto_rawDescGZIP(), []int{199} } func (x *PutPolicyRequest) GetPolicy() *AccessPolicy { @@ -10636,7 +10876,7 @@ type PutPolicyResponse struct { func (x *PutPolicyResponse) Reset() { *x = PutPolicyResponse{} - mi := &file_state_v1_state_proto_msgTypes[197] + mi := &file_state_v1_state_proto_msgTypes[200] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10648,7 +10888,7 @@ func (x *PutPolicyResponse) String() string { func (*PutPolicyResponse) ProtoMessage() {} func (x *PutPolicyResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[197] + mi := &file_state_v1_state_proto_msgTypes[200] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10661,7 +10901,7 @@ func (x *PutPolicyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutPolicyResponse.ProtoReflect.Descriptor instead. func (*PutPolicyResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{197} + return file_state_v1_state_proto_rawDescGZIP(), []int{200} } func (x *PutPolicyResponse) GetVersion() int64 { @@ -10680,7 +10920,7 @@ type DeletePolicyRequest struct { func (x *DeletePolicyRequest) Reset() { *x = DeletePolicyRequest{} - mi := &file_state_v1_state_proto_msgTypes[198] + mi := &file_state_v1_state_proto_msgTypes[201] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10692,7 +10932,7 @@ func (x *DeletePolicyRequest) String() string { func (*DeletePolicyRequest) ProtoMessage() {} func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[198] + mi := &file_state_v1_state_proto_msgTypes[201] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10705,7 +10945,7 @@ func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePolicyRequest.ProtoReflect.Descriptor instead. func (*DeletePolicyRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{198} + return file_state_v1_state_proto_rawDescGZIP(), []int{201} } func (x *DeletePolicyRequest) GetPolicy() *AccessPolicy { @@ -10723,7 +10963,7 @@ type DeletePolicyResponse struct { func (x *DeletePolicyResponse) Reset() { *x = DeletePolicyResponse{} - mi := &file_state_v1_state_proto_msgTypes[199] + mi := &file_state_v1_state_proto_msgTypes[202] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10735,7 +10975,7 @@ func (x *DeletePolicyResponse) String() string { func (*DeletePolicyResponse) ProtoMessage() {} func (x *DeletePolicyResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[199] + mi := &file_state_v1_state_proto_msgTypes[202] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10748,7 +10988,7 @@ func (x *DeletePolicyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePolicyResponse.ProtoReflect.Descriptor instead. func (*DeletePolicyResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{199} + return file_state_v1_state_proto_rawDescGZIP(), []int{202} } type EnsureShippedOrgPoliciesRequest struct { @@ -10760,7 +11000,7 @@ type EnsureShippedOrgPoliciesRequest struct { func (x *EnsureShippedOrgPoliciesRequest) Reset() { *x = EnsureShippedOrgPoliciesRequest{} - mi := &file_state_v1_state_proto_msgTypes[200] + mi := &file_state_v1_state_proto_msgTypes[203] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10772,7 +11012,7 @@ func (x *EnsureShippedOrgPoliciesRequest) String() string { func (*EnsureShippedOrgPoliciesRequest) ProtoMessage() {} func (x *EnsureShippedOrgPoliciesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[200] + mi := &file_state_v1_state_proto_msgTypes[203] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10785,7 +11025,7 @@ func (x *EnsureShippedOrgPoliciesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EnsureShippedOrgPoliciesRequest.ProtoReflect.Descriptor instead. func (*EnsureShippedOrgPoliciesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{200} + return file_state_v1_state_proto_rawDescGZIP(), []int{203} } func (x *EnsureShippedOrgPoliciesRequest) GetOrgId() string { @@ -10803,7 +11043,7 @@ type EnsureShippedOrgPoliciesResponse struct { func (x *EnsureShippedOrgPoliciesResponse) Reset() { *x = EnsureShippedOrgPoliciesResponse{} - mi := &file_state_v1_state_proto_msgTypes[201] + mi := &file_state_v1_state_proto_msgTypes[204] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10815,7 +11055,7 @@ func (x *EnsureShippedOrgPoliciesResponse) String() string { func (*EnsureShippedOrgPoliciesResponse) ProtoMessage() {} func (x *EnsureShippedOrgPoliciesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[201] + mi := &file_state_v1_state_proto_msgTypes[204] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10828,7 +11068,7 @@ func (x *EnsureShippedOrgPoliciesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EnsureShippedOrgPoliciesResponse.ProtoReflect.Descriptor instead. func (*EnsureShippedOrgPoliciesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{201} + return file_state_v1_state_proto_rawDescGZIP(), []int{204} } // AccessDenial mirrors internal/domain/access.Denial: one refusal with the @@ -10851,7 +11091,7 @@ type AccessDenial struct { func (x *AccessDenial) Reset() { *x = AccessDenial{} - mi := &file_state_v1_state_proto_msgTypes[202] + mi := &file_state_v1_state_proto_msgTypes[205] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10863,7 +11103,7 @@ func (x *AccessDenial) String() string { func (*AccessDenial) ProtoMessage() {} func (x *AccessDenial) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[202] + mi := &file_state_v1_state_proto_msgTypes[205] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10876,7 +11116,7 @@ func (x *AccessDenial) ProtoReflect() protoreflect.Message { // Deprecated: Use AccessDenial.ProtoReflect.Descriptor instead. func (*AccessDenial) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{202} + return file_state_v1_state_proto_rawDescGZIP(), []int{205} } func (x *AccessDenial) GetOrgId() string { @@ -10951,7 +11191,7 @@ type RecordDenialRequest struct { func (x *RecordDenialRequest) Reset() { *x = RecordDenialRequest{} - mi := &file_state_v1_state_proto_msgTypes[203] + mi := &file_state_v1_state_proto_msgTypes[206] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10963,7 +11203,7 @@ func (x *RecordDenialRequest) String() string { func (*RecordDenialRequest) ProtoMessage() {} func (x *RecordDenialRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[203] + mi := &file_state_v1_state_proto_msgTypes[206] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10976,7 +11216,7 @@ func (x *RecordDenialRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDenialRequest.ProtoReflect.Descriptor instead. func (*RecordDenialRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{203} + return file_state_v1_state_proto_rawDescGZIP(), []int{206} } func (x *RecordDenialRequest) GetDenial() *AccessDenial { @@ -10994,7 +11234,7 @@ type RecordDenialResponse struct { func (x *RecordDenialResponse) Reset() { *x = RecordDenialResponse{} - mi := &file_state_v1_state_proto_msgTypes[204] + mi := &file_state_v1_state_proto_msgTypes[207] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11006,7 +11246,7 @@ func (x *RecordDenialResponse) String() string { func (*RecordDenialResponse) ProtoMessage() {} func (x *RecordDenialResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[204] + mi := &file_state_v1_state_proto_msgTypes[207] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11019,7 +11259,7 @@ func (x *RecordDenialResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDenialResponse.ProtoReflect.Descriptor instead. func (*RecordDenialResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{204} + return file_state_v1_state_proto_rawDescGZIP(), []int{207} } type ListDenialsRequest struct { @@ -11032,7 +11272,7 @@ type ListDenialsRequest struct { func (x *ListDenialsRequest) Reset() { *x = ListDenialsRequest{} - mi := &file_state_v1_state_proto_msgTypes[205] + mi := &file_state_v1_state_proto_msgTypes[208] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11044,7 +11284,7 @@ func (x *ListDenialsRequest) String() string { func (*ListDenialsRequest) ProtoMessage() {} func (x *ListDenialsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[205] + mi := &file_state_v1_state_proto_msgTypes[208] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11057,7 +11297,7 @@ func (x *ListDenialsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDenialsRequest.ProtoReflect.Descriptor instead. func (*ListDenialsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{205} + return file_state_v1_state_proto_rawDescGZIP(), []int{208} } func (x *ListDenialsRequest) GetOrgId() string { @@ -11083,7 +11323,7 @@ type ListDenialsResponse struct { func (x *ListDenialsResponse) Reset() { *x = ListDenialsResponse{} - mi := &file_state_v1_state_proto_msgTypes[206] + mi := &file_state_v1_state_proto_msgTypes[209] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11095,7 +11335,7 @@ func (x *ListDenialsResponse) String() string { func (*ListDenialsResponse) ProtoMessage() {} func (x *ListDenialsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[206] + mi := &file_state_v1_state_proto_msgTypes[209] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11108,7 +11348,7 @@ func (x *ListDenialsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDenialsResponse.ProtoReflect.Descriptor instead. func (*ListDenialsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{206} + return file_state_v1_state_proto_rawDescGZIP(), []int{209} } func (x *ListDenialsResponse) GetDenials() []*AccessDenial { @@ -11198,7 +11438,7 @@ const file_state_v1_state_proto_rawDesc = "" + "\asubject\x18\x03 \x01(\tR\asubject\x12-\n" + "\x05audit\x18\x04 \x01(\v2\x17.state.v1.IdentityAuditR\x05audit\"M\n" + "\x1bBindIdentitySubjectResponse\x12.\n" + - "\bidentity\x18\x01 \x01(\v2\x12.state.v1.IdentityR\bidentity\"\xda\t\n" + + "\bidentity\x18\x01 \x01(\v2\x12.state.v1.IdentityR\bidentity\"\xde\t\n" + "\x04Task\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x14\n" + "\x05owner\x18\x02 \x01(\tR\x05owner\x12\x12\n" + @@ -11208,9 +11448,9 @@ const file_state_v1_state_proto_rawDesc = "" + "\x04body\x18\x06 \x01(\tR\x04body\x12\x16\n" + "\x06labels\x18\a \x01(\tR\x06labels\x12\x16\n" + "\x06status\x18\b \x01(\tR\x06status\x12\x1a\n" + - "\bworkflow\x18\t \x01(\tR\bworkflow\x12\x14\n" + + "\bworkflow\x18\t \x01(\tR\bworkflow\x12\x18\n" + "\x05stage\x18\n" + - " \x01(\tR\x05stage\x12\x16\n" + + " \x01(\tB\x02\x18\x01R\x05stage\x12\x16\n" + "\x06branch\x18\v \x01(\tR\x06branch\x12\x12\n" + "\x04plan\x18\f \x01(\tR\x04plan\x12\x14\n" + "\x05notes\x18\r \x01(\tR\x05notes\x12\x1b\n" + @@ -11432,7 +11672,29 @@ const file_state_v1_state_proto_rawDesc = "" + "\x06reason\x18\x02 \x01(\tR\x06reason\x12\x0e\n" + "\x02to\x18\x03 \x01(\tR\x02to\"G\n" + "\x17CancelExecutionResponse\x12,\n" + - "\x12cancelled_step_ids\x18\x01 \x03(\x03R\x10cancelledStepIds\"3\n" + + "\x12cancelled_step_ids\x18\x01 \x03(\x03R\x10cancelledStepIds\"\x80\x03\n" + + "\rStepExecution\x12\x0e\n" + + "\x02id\x18\x01 \x01(\x03R\x02id\x12!\n" + + "\fexecution_id\x18\x02 \x01(\x03R\vexecutionId\x12\x18\n" + + "\aattempt\x18\x03 \x01(\x03R\aattempt\x12\x1b\n" + + "\tparent_id\x18\x04 \x01(\x03R\bparentId\x12\x14\n" + + "\x05depth\x18\x05 \x01(\x05R\x05depth\x12\x12\n" + + "\x04kind\x18\x06 \x01(\tR\x04kind\x12\x12\n" + + "\x04name\x18\a \x01(\tR\x04name\x12\x16\n" + + "\x06status\x18\b \x01(\tR\x06status\x12\x16\n" + + "\x06detail\x18\t \x01(\tR\x06detail\x12\x1f\n" + + "\vtokens_used\x18\n" + + " \x01(\x03R\n" + + "tokensUsed\x129\n" + + "\n" + + "started_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12;\n" + + "\vfinished_at\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "finishedAt\"O\n" + + "\x10ListStepsRequest\x12!\n" + + "\fexecution_id\x18\x01 \x01(\x03R\vexecutionId\x12\x18\n" + + "\aattempt\x18\x02 \x01(\x03R\aattempt\"B\n" + + "\x11ListStepsResponse\x12-\n" + + "\x05steps\x18\x01 \x03(\v2\x17.state.v1.StepExecutionR\x05steps\"3\n" + "\rUpdateRequest\x12\"\n" + "\x04task\x18\x01 \x01(\v2\x0e.state.v1.TaskR\x04task\"\x10\n" + "\x0eUpdateResponse\"f\n" + @@ -11840,7 +12102,7 @@ const file_state_v1_state_proto_rawDesc = "" + "\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x14\n" + "\x05limit\x18\x02 \x01(\x05R\x05limit\"G\n" + "\x13ListDenialsResponse\x120\n" + - "\adenials\x18\x01 \x03(\v2\x16.state.v1.AccessDenialR\adenials2\xb5<\n" + + "\adenials\x18\x01 \x03(\v2\x16.state.v1.AccessDenialR\adenials2\xfb<\n" + "\x11StateStoreService\x12S\n" + "\x0eInstallPackage\x12\x1f.state.v1.InstallPackageRequest\x1a .state.v1.InstallPackageResponse\x12b\n" + "\x13GetInstalledPackage\x12$.state.v1.GetInstalledPackageRequest\x1a%.state.v1.GetInstalledPackageResponse\x12h\n" + @@ -11867,7 +12129,8 @@ const file_state_v1_state_proto_rawDesc = "" + "\tStartStep\x12\x1a.state.v1.StartStepRequest\x1a\x1b.state.v1.StartStepResponse\x12G\n" + "\n" + "FinishStep\x12\x1b.state.v1.FinishStepRequest\x1a\x1c.state.v1.FinishStepResponse\x12V\n" + - "\x0fCancelExecution\x12 .state.v1.CancelExecutionRequest\x1a!.state.v1.CancelExecutionResponse\x12>\n" + + "\x0fCancelExecution\x12 .state.v1.CancelExecutionRequest\x1a!.state.v1.CancelExecutionResponse\x12D\n" + + "\tListSteps\x12\x1a.state.v1.ListStepsRequest\x1a\x1b.state.v1.ListStepsResponse\x12>\n" + "\aRequeue\x12\x18.state.v1.RequeueRequest\x1a\x19.state.v1.RequeueResponse\x12A\n" + "\bParkTask\x12\x19.state.v1.ParkTaskRequest\x1a\x1a.state.v1.ParkTaskResponse\x12M\n" + "\fRecoverStale\x12\x1d.state.v1.RecoverStaleRequest\x1a\x1e.state.v1.RecoverStaleResponse\x12J\n" + @@ -11954,7 +12217,7 @@ func file_state_v1_state_proto_rawDescGZIP() []byte { return file_state_v1_state_proto_rawDescData } -var file_state_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 209) +var file_state_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 212) var file_state_v1_state_proto_goTypes = []any{ (*RegisterTaskGrantRequest)(nil), // 0: state.v1.RegisterTaskGrantRequest (*RegisterTaskGrantResponse)(nil), // 1: state.v1.RegisterTaskGrantResponse @@ -12010,166 +12273,169 @@ var file_state_v1_state_proto_goTypes = []any{ (*FinishStepResponse)(nil), // 51: state.v1.FinishStepResponse (*CancelExecutionRequest)(nil), // 52: state.v1.CancelExecutionRequest (*CancelExecutionResponse)(nil), // 53: state.v1.CancelExecutionResponse - (*UpdateRequest)(nil), // 54: state.v1.UpdateRequest - (*UpdateResponse)(nil), // 55: state.v1.UpdateResponse - (*RequeueRequest)(nil), // 56: state.v1.RequeueRequest - (*RequeueResponse)(nil), // 57: state.v1.RequeueResponse - (*ParkTaskRequest)(nil), // 58: state.v1.ParkTaskRequest - (*ParkTaskResponse)(nil), // 59: state.v1.ParkTaskResponse - (*RecoverStaleRequest)(nil), // 60: state.v1.RecoverStaleRequest - (*RecoverStaleResponse)(nil), // 61: state.v1.RecoverStaleResponse - (*ArchiveTaskRequest)(nil), // 62: state.v1.ArchiveTaskRequest - (*ArchiveTaskResponse)(nil), // 63: state.v1.ArchiveTaskResponse - (*RetryTaskRequest)(nil), // 64: state.v1.RetryTaskRequest - (*RetryTaskResponse)(nil), // 65: state.v1.RetryTaskResponse - (*BeginRemediationRequest)(nil), // 66: state.v1.BeginRemediationRequest - (*BeginRemediationResponse)(nil), // 67: state.v1.BeginRemediationResponse - (*UpdateReviewPayloadRequest)(nil), // 68: state.v1.UpdateReviewPayloadRequest - (*UpdateReviewPayloadResponse)(nil), // 69: state.v1.UpdateReviewPayloadResponse - (*SetReviewCursorsRequest)(nil), // 70: state.v1.SetReviewCursorsRequest - (*SetReviewCursorsResponse)(nil), // 71: state.v1.SetReviewCursorsResponse - (*TaskByIssueRequest)(nil), // 72: state.v1.TaskByIssueRequest - (*TaskByIssueResponse)(nil), // 73: state.v1.TaskByIssueResponse - (*OpenTaskByPRRequest)(nil), // 74: state.v1.OpenTaskByPRRequest - (*OpenTaskByPRResponse)(nil), // 75: state.v1.OpenTaskByPRResponse - (*TaskByIDRequest)(nil), // 76: state.v1.TaskByIDRequest - (*TaskByIDResponse)(nil), // 77: state.v1.TaskByIDResponse - (*OpenPRsRequest)(nil), // 78: state.v1.OpenPRsRequest - (*OpenPRsResponse)(nil), // 79: state.v1.OpenPRsResponse - (*ClearTerminalTasksRequest)(nil), // 80: state.v1.ClearTerminalTasksRequest - (*ClearTerminalTasksResponse)(nil), // 81: state.v1.ClearTerminalTasksResponse - (*TasksRequest)(nil), // 82: state.v1.TasksRequest - (*TasksResponse)(nil), // 83: state.v1.TasksResponse - (*StatusCountsRequest)(nil), // 84: state.v1.StatusCountsRequest - (*StatusCountsResponse)(nil), // 85: state.v1.StatusCountsResponse - (*InsertEventRequest)(nil), // 86: state.v1.InsertEventRequest - (*InsertEventResponse)(nil), // 87: state.v1.InsertEventResponse - (*EventsSinceRequest)(nil), // 88: state.v1.EventsSinceRequest - (*EventsSinceResponse)(nil), // 89: state.v1.EventsSinceResponse - (*TaskEventsRequest)(nil), // 90: state.v1.TaskEventsRequest - (*TaskEventsResponse)(nil), // 91: state.v1.TaskEventsResponse - (*WorkflowStatsRequest)(nil), // 92: state.v1.WorkflowStatsRequest - (*WorkflowStatsResponse)(nil), // 93: state.v1.WorkflowStatsResponse - (*StageStatsRequest)(nil), // 94: state.v1.StageStatsRequest - (*StageStatsResponse)(nil), // 95: state.v1.StageStatsResponse - (*TokensByDayRequest)(nil), // 96: state.v1.TokensByDayRequest - (*TokensByDayResponse)(nil), // 97: state.v1.TokensByDayResponse - (*ConfigSnapshot)(nil), // 98: state.v1.ConfigSnapshot - (*PutConfigSnapshotRequest)(nil), // 99: state.v1.PutConfigSnapshotRequest - (*PutConfigSnapshotResponse)(nil), // 100: state.v1.PutConfigSnapshotResponse - (*GetConfigSnapshotRequest)(nil), // 101: state.v1.GetConfigSnapshotRequest - (*GetConfigSnapshotResponse)(nil), // 102: state.v1.GetConfigSnapshotResponse - (*ChannelStatus)(nil), // 103: state.v1.ChannelStatus - (*PutChannelStatusRequest)(nil), // 104: state.v1.PutChannelStatusRequest - (*PutChannelStatusResponse)(nil), // 105: state.v1.PutChannelStatusResponse - (*ListChannelStatusRequest)(nil), // 106: state.v1.ListChannelStatusRequest - (*ListChannelStatusResponse)(nil), // 107: state.v1.ListChannelStatusResponse - (*ApplyStatus)(nil), // 108: state.v1.ApplyStatus - (*PutApplyStatusRequest)(nil), // 109: state.v1.PutApplyStatusRequest - (*PutApplyStatusResponse)(nil), // 110: state.v1.PutApplyStatusResponse - (*ListApplyStatusRequest)(nil), // 111: state.v1.ListApplyStatusRequest - (*ListApplyStatusResponse)(nil), // 112: state.v1.ListApplyStatusResponse - (*TaskLogEntry)(nil), // 113: state.v1.TaskLogEntry - (*ReadTaskLogRequest)(nil), // 114: state.v1.ReadTaskLogRequest - (*ReadTaskLogResponse)(nil), // 115: state.v1.ReadTaskLogResponse - (*StreamTaskLogContentRequest)(nil), // 116: state.v1.StreamTaskLogContentRequest - (*StreamTaskLogContentResponse)(nil), // 117: state.v1.StreamTaskLogContentResponse - (*InsertCaptureRequest)(nil), // 118: state.v1.InsertCaptureRequest - (*InsertCaptureResponse)(nil), // 119: state.v1.InsertCaptureResponse - (*StreamCapturesRequest)(nil), // 120: state.v1.StreamCapturesRequest - (*StreamCapturesResponse)(nil), // 121: state.v1.StreamCapturesResponse - (*InsertMappingRequest)(nil), // 122: state.v1.InsertMappingRequest - (*InsertMappingResponse)(nil), // 123: state.v1.InsertMappingResponse - (*GetMappingRequest)(nil), // 124: state.v1.GetMappingRequest - (*GetMappingResponse)(nil), // 125: state.v1.GetMappingResponse - (*ListMappingsRequest)(nil), // 126: state.v1.ListMappingsRequest - (*ListMappingsResponse)(nil), // 127: state.v1.ListMappingsResponse - (*UpdateMappingRequest)(nil), // 128: state.v1.UpdateMappingRequest - (*UpdateMappingResponse)(nil), // 129: state.v1.UpdateMappingResponse - (*DeleteMappingRequest)(nil), // 130: state.v1.DeleteMappingRequest - (*DeleteMappingResponse)(nil), // 131: state.v1.DeleteMappingResponse - (*RecordMappingMatchRequest)(nil), // 132: state.v1.RecordMappingMatchRequest - (*RecordMappingMatchResponse)(nil), // 133: state.v1.RecordMappingMatchResponse - (*InsertEventTypeRequest)(nil), // 134: state.v1.InsertEventTypeRequest - (*InsertEventTypeResponse)(nil), // 135: state.v1.InsertEventTypeResponse - (*UpdateEventTypeRequest)(nil), // 136: state.v1.UpdateEventTypeRequest - (*UpdateEventTypeResponse)(nil), // 137: state.v1.UpdateEventTypeResponse - (*DeleteEventTypeRequest)(nil), // 138: state.v1.DeleteEventTypeRequest - (*DeleteEventTypeResponse)(nil), // 139: state.v1.DeleteEventTypeResponse - (*ListEventTypesRequest)(nil), // 140: state.v1.ListEventTypesRequest - (*ListEventTypesResponse)(nil), // 141: state.v1.ListEventTypesResponse - (*InsertBindingRequest)(nil), // 142: state.v1.InsertBindingRequest - (*InsertBindingResponse)(nil), // 143: state.v1.InsertBindingResponse - (*GetBindingRequest)(nil), // 144: state.v1.GetBindingRequest - (*GetBindingResponse)(nil), // 145: state.v1.GetBindingResponse - (*ListBindingsRequest)(nil), // 146: state.v1.ListBindingsRequest - (*ListBindingsResponse)(nil), // 147: state.v1.ListBindingsResponse - (*UpdateBindingRequest)(nil), // 148: state.v1.UpdateBindingRequest - (*UpdateBindingResponse)(nil), // 149: state.v1.UpdateBindingResponse - (*DeleteBindingRequest)(nil), // 150: state.v1.DeleteBindingRequest - (*DeleteBindingResponse)(nil), // 151: state.v1.DeleteBindingResponse - (*ApproveBindingRequest)(nil), // 152: state.v1.ApproveBindingRequest - (*ApproveBindingResponse)(nil), // 153: state.v1.ApproveBindingResponse - (*InsertSourceRequest)(nil), // 154: state.v1.InsertSourceRequest - (*InsertSourceResponse)(nil), // 155: state.v1.InsertSourceResponse - (*GetSourceRequest)(nil), // 156: state.v1.GetSourceRequest - (*GetSourceResponse)(nil), // 157: state.v1.GetSourceResponse - (*ListSourcesRequest)(nil), // 158: state.v1.ListSourcesRequest - (*ListSourcesResponse)(nil), // 159: state.v1.ListSourcesResponse - (*SetSourceSigningRequest)(nil), // 160: state.v1.SetSourceSigningRequest - (*SetSourceSigningResponse)(nil), // 161: state.v1.SetSourceSigningResponse - (*SetSourceSecretRequest)(nil), // 162: state.v1.SetSourceSecretRequest - (*SetSourceSecretResponse)(nil), // 163: state.v1.SetSourceSecretResponse - (*ArmedBindingsForSourceRequest)(nil), // 164: state.v1.ArmedBindingsForSourceRequest - (*ArmedBindingsForSourceResponse)(nil), // 165: state.v1.ArmedBindingsForSourceResponse - (*RecordDispatchRequest)(nil), // 166: state.v1.RecordDispatchRequest - (*RecordDispatchResponse)(nil), // 167: state.v1.RecordDispatchResponse - (*RecordPlaybookDispatchRequest)(nil), // 168: state.v1.RecordPlaybookDispatchRequest - (*RecordPlaybookDispatchResponse)(nil), // 169: state.v1.RecordPlaybookDispatchResponse - (*DeletePlaybookDispatchesRequest)(nil), // 170: state.v1.DeletePlaybookDispatchesRequest - (*DeletePlaybookDispatchesResponse)(nil), // 171: state.v1.DeletePlaybookDispatchesResponse - (*StreamUndispatchedCapturesRequest)(nil), // 172: state.v1.StreamUndispatchedCapturesRequest - (*StreamUndispatchedCapturesResponse)(nil), // 173: state.v1.StreamUndispatchedCapturesResponse - (*EnqueueBindingTaskRequest)(nil), // 174: state.v1.EnqueueBindingTaskRequest - (*EnqueueBindingTaskResponse)(nil), // 175: state.v1.EnqueueBindingTaskResponse - (*EnqueueCallTaskRequest)(nil), // 176: state.v1.EnqueueCallTaskRequest - (*EnqueueCallTaskResponse)(nil), // 177: state.v1.EnqueueCallTaskResponse - (*WorkflowCallStatusRequest)(nil), // 178: state.v1.WorkflowCallStatusRequest - (*WorkflowCallStatusResponse)(nil), // 179: state.v1.WorkflowCallStatusResponse - (*InstalledPackage)(nil), // 180: state.v1.InstalledPackage - (*InstallPackageRequest)(nil), // 181: state.v1.InstallPackageRequest - (*InstallPackageResponse)(nil), // 182: state.v1.InstallPackageResponse - (*GetInstalledPackageRequest)(nil), // 183: state.v1.GetInstalledPackageRequest - (*GetInstalledPackageResponse)(nil), // 184: state.v1.GetInstalledPackageResponse - (*ListInstalledPackagesRequest)(nil), // 185: state.v1.ListInstalledPackagesRequest - (*ListInstalledPackagesResponse)(nil), // 186: state.v1.ListInstalledPackagesResponse - (*RemoveInstalledPackageRequest)(nil), // 187: state.v1.RemoveInstalledPackageRequest - (*RemoveInstalledPackageResponse)(nil), // 188: state.v1.RemoveInstalledPackageResponse - (*GetPrincipalRequest)(nil), // 189: state.v1.GetPrincipalRequest - (*PrincipalMembership)(nil), // 190: state.v1.PrincipalMembership - (*AccessPrincipal)(nil), // 191: state.v1.AccessPrincipal - (*GetPrincipalResponse)(nil), // 192: state.v1.GetPrincipalResponse - (*AccessPolicy)(nil), // 193: state.v1.AccessPolicy - (*ListPoliciesRequest)(nil), // 194: state.v1.ListPoliciesRequest - (*ListPoliciesResponse)(nil), // 195: state.v1.ListPoliciesResponse - (*PutPolicyRequest)(nil), // 196: state.v1.PutPolicyRequest - (*PutPolicyResponse)(nil), // 197: state.v1.PutPolicyResponse - (*DeletePolicyRequest)(nil), // 198: state.v1.DeletePolicyRequest - (*DeletePolicyResponse)(nil), // 199: state.v1.DeletePolicyResponse - (*EnsureShippedOrgPoliciesRequest)(nil), // 200: state.v1.EnsureShippedOrgPoliciesRequest - (*EnsureShippedOrgPoliciesResponse)(nil), // 201: state.v1.EnsureShippedOrgPoliciesResponse - (*AccessDenial)(nil), // 202: state.v1.AccessDenial - (*RecordDenialRequest)(nil), // 203: state.v1.RecordDenialRequest - (*RecordDenialResponse)(nil), // 204: state.v1.RecordDenialResponse - (*ListDenialsRequest)(nil), // 205: state.v1.ListDenialsRequest - (*ListDenialsResponse)(nil), // 206: state.v1.ListDenialsResponse - nil, // 207: state.v1.EventType.SchemaEntry - nil, // 208: state.v1.StatusCountsResponse.CountsEntry - (*timestamppb.Timestamp)(nil), // 209: google.protobuf.Timestamp + (*StepExecution)(nil), // 54: state.v1.StepExecution + (*ListStepsRequest)(nil), // 55: state.v1.ListStepsRequest + (*ListStepsResponse)(nil), // 56: state.v1.ListStepsResponse + (*UpdateRequest)(nil), // 57: state.v1.UpdateRequest + (*UpdateResponse)(nil), // 58: state.v1.UpdateResponse + (*RequeueRequest)(nil), // 59: state.v1.RequeueRequest + (*RequeueResponse)(nil), // 60: state.v1.RequeueResponse + (*ParkTaskRequest)(nil), // 61: state.v1.ParkTaskRequest + (*ParkTaskResponse)(nil), // 62: state.v1.ParkTaskResponse + (*RecoverStaleRequest)(nil), // 63: state.v1.RecoverStaleRequest + (*RecoverStaleResponse)(nil), // 64: state.v1.RecoverStaleResponse + (*ArchiveTaskRequest)(nil), // 65: state.v1.ArchiveTaskRequest + (*ArchiveTaskResponse)(nil), // 66: state.v1.ArchiveTaskResponse + (*RetryTaskRequest)(nil), // 67: state.v1.RetryTaskRequest + (*RetryTaskResponse)(nil), // 68: state.v1.RetryTaskResponse + (*BeginRemediationRequest)(nil), // 69: state.v1.BeginRemediationRequest + (*BeginRemediationResponse)(nil), // 70: state.v1.BeginRemediationResponse + (*UpdateReviewPayloadRequest)(nil), // 71: state.v1.UpdateReviewPayloadRequest + (*UpdateReviewPayloadResponse)(nil), // 72: state.v1.UpdateReviewPayloadResponse + (*SetReviewCursorsRequest)(nil), // 73: state.v1.SetReviewCursorsRequest + (*SetReviewCursorsResponse)(nil), // 74: state.v1.SetReviewCursorsResponse + (*TaskByIssueRequest)(nil), // 75: state.v1.TaskByIssueRequest + (*TaskByIssueResponse)(nil), // 76: state.v1.TaskByIssueResponse + (*OpenTaskByPRRequest)(nil), // 77: state.v1.OpenTaskByPRRequest + (*OpenTaskByPRResponse)(nil), // 78: state.v1.OpenTaskByPRResponse + (*TaskByIDRequest)(nil), // 79: state.v1.TaskByIDRequest + (*TaskByIDResponse)(nil), // 80: state.v1.TaskByIDResponse + (*OpenPRsRequest)(nil), // 81: state.v1.OpenPRsRequest + (*OpenPRsResponse)(nil), // 82: state.v1.OpenPRsResponse + (*ClearTerminalTasksRequest)(nil), // 83: state.v1.ClearTerminalTasksRequest + (*ClearTerminalTasksResponse)(nil), // 84: state.v1.ClearTerminalTasksResponse + (*TasksRequest)(nil), // 85: state.v1.TasksRequest + (*TasksResponse)(nil), // 86: state.v1.TasksResponse + (*StatusCountsRequest)(nil), // 87: state.v1.StatusCountsRequest + (*StatusCountsResponse)(nil), // 88: state.v1.StatusCountsResponse + (*InsertEventRequest)(nil), // 89: state.v1.InsertEventRequest + (*InsertEventResponse)(nil), // 90: state.v1.InsertEventResponse + (*EventsSinceRequest)(nil), // 91: state.v1.EventsSinceRequest + (*EventsSinceResponse)(nil), // 92: state.v1.EventsSinceResponse + (*TaskEventsRequest)(nil), // 93: state.v1.TaskEventsRequest + (*TaskEventsResponse)(nil), // 94: state.v1.TaskEventsResponse + (*WorkflowStatsRequest)(nil), // 95: state.v1.WorkflowStatsRequest + (*WorkflowStatsResponse)(nil), // 96: state.v1.WorkflowStatsResponse + (*StageStatsRequest)(nil), // 97: state.v1.StageStatsRequest + (*StageStatsResponse)(nil), // 98: state.v1.StageStatsResponse + (*TokensByDayRequest)(nil), // 99: state.v1.TokensByDayRequest + (*TokensByDayResponse)(nil), // 100: state.v1.TokensByDayResponse + (*ConfigSnapshot)(nil), // 101: state.v1.ConfigSnapshot + (*PutConfigSnapshotRequest)(nil), // 102: state.v1.PutConfigSnapshotRequest + (*PutConfigSnapshotResponse)(nil), // 103: state.v1.PutConfigSnapshotResponse + (*GetConfigSnapshotRequest)(nil), // 104: state.v1.GetConfigSnapshotRequest + (*GetConfigSnapshotResponse)(nil), // 105: state.v1.GetConfigSnapshotResponse + (*ChannelStatus)(nil), // 106: state.v1.ChannelStatus + (*PutChannelStatusRequest)(nil), // 107: state.v1.PutChannelStatusRequest + (*PutChannelStatusResponse)(nil), // 108: state.v1.PutChannelStatusResponse + (*ListChannelStatusRequest)(nil), // 109: state.v1.ListChannelStatusRequest + (*ListChannelStatusResponse)(nil), // 110: state.v1.ListChannelStatusResponse + (*ApplyStatus)(nil), // 111: state.v1.ApplyStatus + (*PutApplyStatusRequest)(nil), // 112: state.v1.PutApplyStatusRequest + (*PutApplyStatusResponse)(nil), // 113: state.v1.PutApplyStatusResponse + (*ListApplyStatusRequest)(nil), // 114: state.v1.ListApplyStatusRequest + (*ListApplyStatusResponse)(nil), // 115: state.v1.ListApplyStatusResponse + (*TaskLogEntry)(nil), // 116: state.v1.TaskLogEntry + (*ReadTaskLogRequest)(nil), // 117: state.v1.ReadTaskLogRequest + (*ReadTaskLogResponse)(nil), // 118: state.v1.ReadTaskLogResponse + (*StreamTaskLogContentRequest)(nil), // 119: state.v1.StreamTaskLogContentRequest + (*StreamTaskLogContentResponse)(nil), // 120: state.v1.StreamTaskLogContentResponse + (*InsertCaptureRequest)(nil), // 121: state.v1.InsertCaptureRequest + (*InsertCaptureResponse)(nil), // 122: state.v1.InsertCaptureResponse + (*StreamCapturesRequest)(nil), // 123: state.v1.StreamCapturesRequest + (*StreamCapturesResponse)(nil), // 124: state.v1.StreamCapturesResponse + (*InsertMappingRequest)(nil), // 125: state.v1.InsertMappingRequest + (*InsertMappingResponse)(nil), // 126: state.v1.InsertMappingResponse + (*GetMappingRequest)(nil), // 127: state.v1.GetMappingRequest + (*GetMappingResponse)(nil), // 128: state.v1.GetMappingResponse + (*ListMappingsRequest)(nil), // 129: state.v1.ListMappingsRequest + (*ListMappingsResponse)(nil), // 130: state.v1.ListMappingsResponse + (*UpdateMappingRequest)(nil), // 131: state.v1.UpdateMappingRequest + (*UpdateMappingResponse)(nil), // 132: state.v1.UpdateMappingResponse + (*DeleteMappingRequest)(nil), // 133: state.v1.DeleteMappingRequest + (*DeleteMappingResponse)(nil), // 134: state.v1.DeleteMappingResponse + (*RecordMappingMatchRequest)(nil), // 135: state.v1.RecordMappingMatchRequest + (*RecordMappingMatchResponse)(nil), // 136: state.v1.RecordMappingMatchResponse + (*InsertEventTypeRequest)(nil), // 137: state.v1.InsertEventTypeRequest + (*InsertEventTypeResponse)(nil), // 138: state.v1.InsertEventTypeResponse + (*UpdateEventTypeRequest)(nil), // 139: state.v1.UpdateEventTypeRequest + (*UpdateEventTypeResponse)(nil), // 140: state.v1.UpdateEventTypeResponse + (*DeleteEventTypeRequest)(nil), // 141: state.v1.DeleteEventTypeRequest + (*DeleteEventTypeResponse)(nil), // 142: state.v1.DeleteEventTypeResponse + (*ListEventTypesRequest)(nil), // 143: state.v1.ListEventTypesRequest + (*ListEventTypesResponse)(nil), // 144: state.v1.ListEventTypesResponse + (*InsertBindingRequest)(nil), // 145: state.v1.InsertBindingRequest + (*InsertBindingResponse)(nil), // 146: state.v1.InsertBindingResponse + (*GetBindingRequest)(nil), // 147: state.v1.GetBindingRequest + (*GetBindingResponse)(nil), // 148: state.v1.GetBindingResponse + (*ListBindingsRequest)(nil), // 149: state.v1.ListBindingsRequest + (*ListBindingsResponse)(nil), // 150: state.v1.ListBindingsResponse + (*UpdateBindingRequest)(nil), // 151: state.v1.UpdateBindingRequest + (*UpdateBindingResponse)(nil), // 152: state.v1.UpdateBindingResponse + (*DeleteBindingRequest)(nil), // 153: state.v1.DeleteBindingRequest + (*DeleteBindingResponse)(nil), // 154: state.v1.DeleteBindingResponse + (*ApproveBindingRequest)(nil), // 155: state.v1.ApproveBindingRequest + (*ApproveBindingResponse)(nil), // 156: state.v1.ApproveBindingResponse + (*InsertSourceRequest)(nil), // 157: state.v1.InsertSourceRequest + (*InsertSourceResponse)(nil), // 158: state.v1.InsertSourceResponse + (*GetSourceRequest)(nil), // 159: state.v1.GetSourceRequest + (*GetSourceResponse)(nil), // 160: state.v1.GetSourceResponse + (*ListSourcesRequest)(nil), // 161: state.v1.ListSourcesRequest + (*ListSourcesResponse)(nil), // 162: state.v1.ListSourcesResponse + (*SetSourceSigningRequest)(nil), // 163: state.v1.SetSourceSigningRequest + (*SetSourceSigningResponse)(nil), // 164: state.v1.SetSourceSigningResponse + (*SetSourceSecretRequest)(nil), // 165: state.v1.SetSourceSecretRequest + (*SetSourceSecretResponse)(nil), // 166: state.v1.SetSourceSecretResponse + (*ArmedBindingsForSourceRequest)(nil), // 167: state.v1.ArmedBindingsForSourceRequest + (*ArmedBindingsForSourceResponse)(nil), // 168: state.v1.ArmedBindingsForSourceResponse + (*RecordDispatchRequest)(nil), // 169: state.v1.RecordDispatchRequest + (*RecordDispatchResponse)(nil), // 170: state.v1.RecordDispatchResponse + (*RecordPlaybookDispatchRequest)(nil), // 171: state.v1.RecordPlaybookDispatchRequest + (*RecordPlaybookDispatchResponse)(nil), // 172: state.v1.RecordPlaybookDispatchResponse + (*DeletePlaybookDispatchesRequest)(nil), // 173: state.v1.DeletePlaybookDispatchesRequest + (*DeletePlaybookDispatchesResponse)(nil), // 174: state.v1.DeletePlaybookDispatchesResponse + (*StreamUndispatchedCapturesRequest)(nil), // 175: state.v1.StreamUndispatchedCapturesRequest + (*StreamUndispatchedCapturesResponse)(nil), // 176: state.v1.StreamUndispatchedCapturesResponse + (*EnqueueBindingTaskRequest)(nil), // 177: state.v1.EnqueueBindingTaskRequest + (*EnqueueBindingTaskResponse)(nil), // 178: state.v1.EnqueueBindingTaskResponse + (*EnqueueCallTaskRequest)(nil), // 179: state.v1.EnqueueCallTaskRequest + (*EnqueueCallTaskResponse)(nil), // 180: state.v1.EnqueueCallTaskResponse + (*WorkflowCallStatusRequest)(nil), // 181: state.v1.WorkflowCallStatusRequest + (*WorkflowCallStatusResponse)(nil), // 182: state.v1.WorkflowCallStatusResponse + (*InstalledPackage)(nil), // 183: state.v1.InstalledPackage + (*InstallPackageRequest)(nil), // 184: state.v1.InstallPackageRequest + (*InstallPackageResponse)(nil), // 185: state.v1.InstallPackageResponse + (*GetInstalledPackageRequest)(nil), // 186: state.v1.GetInstalledPackageRequest + (*GetInstalledPackageResponse)(nil), // 187: state.v1.GetInstalledPackageResponse + (*ListInstalledPackagesRequest)(nil), // 188: state.v1.ListInstalledPackagesRequest + (*ListInstalledPackagesResponse)(nil), // 189: state.v1.ListInstalledPackagesResponse + (*RemoveInstalledPackageRequest)(nil), // 190: state.v1.RemoveInstalledPackageRequest + (*RemoveInstalledPackageResponse)(nil), // 191: state.v1.RemoveInstalledPackageResponse + (*GetPrincipalRequest)(nil), // 192: state.v1.GetPrincipalRequest + (*PrincipalMembership)(nil), // 193: state.v1.PrincipalMembership + (*AccessPrincipal)(nil), // 194: state.v1.AccessPrincipal + (*GetPrincipalResponse)(nil), // 195: state.v1.GetPrincipalResponse + (*AccessPolicy)(nil), // 196: state.v1.AccessPolicy + (*ListPoliciesRequest)(nil), // 197: state.v1.ListPoliciesRequest + (*ListPoliciesResponse)(nil), // 198: state.v1.ListPoliciesResponse + (*PutPolicyRequest)(nil), // 199: state.v1.PutPolicyRequest + (*PutPolicyResponse)(nil), // 200: state.v1.PutPolicyResponse + (*DeletePolicyRequest)(nil), // 201: state.v1.DeletePolicyRequest + (*DeletePolicyResponse)(nil), // 202: state.v1.DeletePolicyResponse + (*EnsureShippedOrgPoliciesRequest)(nil), // 203: state.v1.EnsureShippedOrgPoliciesRequest + (*EnsureShippedOrgPoliciesResponse)(nil), // 204: state.v1.EnsureShippedOrgPoliciesResponse + (*AccessDenial)(nil), // 205: state.v1.AccessDenial + (*RecordDenialRequest)(nil), // 206: state.v1.RecordDenialRequest + (*RecordDenialResponse)(nil), // 207: state.v1.RecordDenialResponse + (*ListDenialsRequest)(nil), // 208: state.v1.ListDenialsRequest + (*ListDenialsResponse)(nil), // 209: state.v1.ListDenialsResponse + nil, // 210: state.v1.EventType.SchemaEntry + nil, // 211: state.v1.StatusCountsResponse.CountsEntry + (*timestamppb.Timestamp)(nil), // 212: google.protobuf.Timestamp } var file_state_v1_state_proto_depIdxs = []int32{ - 209, // 0: state.v1.Identity.created_at:type_name -> google.protobuf.Timestamp - 209, // 1: state.v1.Identity.updated_at:type_name -> google.protobuf.Timestamp + 212, // 0: state.v1.Identity.created_at:type_name -> google.protobuf.Timestamp + 212, // 1: state.v1.Identity.updated_at:type_name -> google.protobuf.Timestamp 4, // 2: state.v1.ListIdentitiesResponse.identities:type_name -> state.v1.Identity 4, // 3: state.v1.GetIdentityResponse.identity:type_name -> state.v1.Identity 5, // 4: state.v1.CreateIdentityRequest.audit:type_name -> state.v1.IdentityAudit @@ -12185,274 +12451,279 @@ var file_state_v1_state_proto_depIdxs = []int32{ 4, // 14: state.v1.ResolveIdentitySubjectResponse.identity:type_name -> state.v1.Identity 5, // 15: state.v1.BindIdentitySubjectRequest.audit:type_name -> state.v1.IdentityAudit 4, // 16: state.v1.BindIdentitySubjectResponse.identity:type_name -> state.v1.Identity - 209, // 17: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp - 209, // 18: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp - 209, // 19: state.v1.Event.at:type_name -> google.protobuf.Timestamp - 209, // 20: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp + 212, // 17: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp + 212, // 18: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp + 212, // 19: state.v1.Event.at:type_name -> google.protobuf.Timestamp + 212, // 20: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp 27, // 21: state.v1.EventType.header_conditions:type_name -> state.v1.EventTypeHeaderCondition 28, // 22: state.v1.EventType.payload_conditions:type_name -> state.v1.EventTypePayloadCondition - 207, // 23: state.v1.EventType.schema:type_name -> state.v1.EventType.SchemaEntry - 209, // 24: state.v1.EventType.created_at:type_name -> google.protobuf.Timestamp - 209, // 25: state.v1.EventType.updated_at:type_name -> google.protobuf.Timestamp + 210, // 23: state.v1.EventType.schema:type_name -> state.v1.EventType.SchemaEntry + 212, // 24: state.v1.EventType.created_at:type_name -> google.protobuf.Timestamp + 212, // 25: state.v1.EventType.updated_at:type_name -> google.protobuf.Timestamp 30, // 26: state.v1.Mapping.fields:type_name -> state.v1.MappingField - 209, // 27: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp - 209, // 28: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp - 209, // 29: state.v1.Mapping.last_matched_at:type_name -> google.protobuf.Timestamp + 212, // 27: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp + 212, // 28: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp + 212, // 29: state.v1.Mapping.last_matched_at:type_name -> google.protobuf.Timestamp 32, // 30: state.v1.Binding.matcher:type_name -> state.v1.BindingMatcher - 209, // 31: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp - 209, // 32: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp - 209, // 33: state.v1.Source.created_at:type_name -> google.protobuf.Timestamp - 209, // 34: state.v1.Source.updated_at:type_name -> google.protobuf.Timestamp + 212, // 31: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp + 212, // 32: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp + 212, // 33: state.v1.Source.created_at:type_name -> google.protobuf.Timestamp + 212, // 34: state.v1.Source.updated_at:type_name -> google.protobuf.Timestamp 24, // 35: state.v1.EnqueueChatTaskResponse.task:type_name -> state.v1.Task 24, // 36: state.v1.ClaimNextResponse.task:type_name -> state.v1.Task 24, // 37: state.v1.ClaimByIssueResponse.task:type_name -> state.v1.Task 25, // 38: state.v1.StartStepResponse.event:type_name -> state.v1.Event 25, // 39: state.v1.FinishStepResponse.event:type_name -> state.v1.Event - 24, // 40: state.v1.UpdateRequest.task:type_name -> state.v1.Task - 25, // 41: state.v1.ArchiveTaskRequest.audit:type_name -> state.v1.Event - 24, // 42: state.v1.TaskByIssueResponse.task:type_name -> state.v1.Task - 24, // 43: state.v1.OpenTaskByPRResponse.task:type_name -> state.v1.Task - 24, // 44: state.v1.TaskByIDResponse.task:type_name -> state.v1.Task - 24, // 45: state.v1.OpenPRsResponse.tasks:type_name -> state.v1.Task - 24, // 46: state.v1.TasksResponse.tasks:type_name -> state.v1.Task - 208, // 47: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry - 25, // 48: state.v1.InsertEventRequest.event:type_name -> state.v1.Event - 25, // 49: state.v1.EventsSinceResponse.events:type_name -> state.v1.Event - 25, // 50: state.v1.TaskEventsResponse.events:type_name -> state.v1.Event - 35, // 51: state.v1.WorkflowStatsResponse.stats:type_name -> state.v1.WorkflowStat - 36, // 52: state.v1.StageStatsResponse.stats:type_name -> state.v1.StageStat - 37, // 53: state.v1.TokensByDayResponse.tokens:type_name -> state.v1.DayTokens - 209, // 54: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp - 98, // 55: state.v1.PutConfigSnapshotRequest.snapshot:type_name -> state.v1.ConfigSnapshot - 98, // 56: state.v1.GetConfigSnapshotResponse.snapshot:type_name -> state.v1.ConfigSnapshot - 209, // 57: state.v1.ChannelStatus.observed_at:type_name -> google.protobuf.Timestamp - 103, // 58: state.v1.PutChannelStatusRequest.channels:type_name -> state.v1.ChannelStatus - 103, // 59: state.v1.ListChannelStatusResponse.channels:type_name -> state.v1.ChannelStatus - 209, // 60: state.v1.ApplyStatus.reported_at:type_name -> google.protobuf.Timestamp - 108, // 61: state.v1.PutApplyStatusRequest.status:type_name -> state.v1.ApplyStatus - 108, // 62: state.v1.ListApplyStatusResponse.statuses:type_name -> state.v1.ApplyStatus - 209, // 63: state.v1.TaskLogEntry.time:type_name -> google.protobuf.Timestamp - 209, // 64: state.v1.ReadTaskLogRequest.since:type_name -> google.protobuf.Timestamp - 209, // 65: state.v1.ReadTaskLogRequest.until:type_name -> google.protobuf.Timestamp - 113, // 66: state.v1.ReadTaskLogResponse.entries:type_name -> state.v1.TaskLogEntry - 26, // 67: state.v1.InsertCaptureRequest.capture:type_name -> state.v1.CapturedEvent - 26, // 68: state.v1.StreamCapturesResponse.capture:type_name -> state.v1.CapturedEvent - 31, // 69: state.v1.InsertMappingRequest.mapping:type_name -> state.v1.Mapping - 31, // 70: state.v1.GetMappingResponse.mapping:type_name -> state.v1.Mapping - 31, // 71: state.v1.ListMappingsResponse.mappings:type_name -> state.v1.Mapping - 31, // 72: state.v1.UpdateMappingRequest.mapping:type_name -> state.v1.Mapping - 29, // 73: state.v1.InsertEventTypeRequest.event_type:type_name -> state.v1.EventType - 29, // 74: state.v1.UpdateEventTypeRequest.event_type:type_name -> state.v1.EventType - 29, // 75: state.v1.ListEventTypesResponse.event_types:type_name -> state.v1.EventType - 33, // 76: state.v1.InsertBindingRequest.binding:type_name -> state.v1.Binding - 33, // 77: state.v1.GetBindingResponse.binding:type_name -> state.v1.Binding - 33, // 78: state.v1.ListBindingsResponse.bindings:type_name -> state.v1.Binding - 33, // 79: state.v1.UpdateBindingRequest.binding:type_name -> state.v1.Binding - 34, // 80: state.v1.InsertSourceRequest.source:type_name -> state.v1.Source - 34, // 81: state.v1.GetSourceResponse.source:type_name -> state.v1.Source - 34, // 82: state.v1.ListSourcesResponse.sources:type_name -> state.v1.Source - 33, // 83: state.v1.ArmedBindingsForSourceResponse.bindings:type_name -> state.v1.Binding - 26, // 84: state.v1.StreamUndispatchedCapturesResponse.capture:type_name -> state.v1.CapturedEvent - 24, // 85: state.v1.EnqueueBindingTaskResponse.task:type_name -> state.v1.Task - 24, // 86: state.v1.EnqueueCallTaskResponse.task:type_name -> state.v1.Task - 180, // 87: state.v1.InstallPackageResponse.package:type_name -> state.v1.InstalledPackage - 180, // 88: state.v1.GetInstalledPackageResponse.package:type_name -> state.v1.InstalledPackage - 180, // 89: state.v1.ListInstalledPackagesResponse.packages:type_name -> state.v1.InstalledPackage - 190, // 90: state.v1.AccessPrincipal.memberships:type_name -> state.v1.PrincipalMembership - 191, // 91: state.v1.GetPrincipalResponse.principal:type_name -> state.v1.AccessPrincipal - 193, // 92: state.v1.ListPoliciesResponse.policies:type_name -> state.v1.AccessPolicy - 193, // 93: state.v1.PutPolicyRequest.policy:type_name -> state.v1.AccessPolicy - 193, // 94: state.v1.DeletePolicyRequest.policy:type_name -> state.v1.AccessPolicy - 209, // 95: state.v1.AccessDenial.at:type_name -> google.protobuf.Timestamp - 202, // 96: state.v1.RecordDenialRequest.denial:type_name -> state.v1.AccessDenial - 202, // 97: state.v1.ListDenialsResponse.denials:type_name -> state.v1.AccessDenial - 181, // 98: state.v1.StateStoreService.InstallPackage:input_type -> state.v1.InstallPackageRequest - 183, // 99: state.v1.StateStoreService.GetInstalledPackage:input_type -> state.v1.GetInstalledPackageRequest - 185, // 100: state.v1.StateStoreService.ListInstalledPackages:input_type -> state.v1.ListInstalledPackagesRequest - 187, // 101: state.v1.StateStoreService.RemoveInstalledPackage:input_type -> state.v1.RemoveInstalledPackageRequest - 0, // 102: state.v1.StateStoreService.RegisterTaskGrant:input_type -> state.v1.RegisterTaskGrantRequest - 2, // 103: state.v1.StateStoreService.RevokeTaskGrant:input_type -> state.v1.RevokeTaskGrantRequest - 6, // 104: state.v1.StateStoreService.ListIdentities:input_type -> state.v1.ListIdentitiesRequest - 8, // 105: state.v1.StateStoreService.GetIdentity:input_type -> state.v1.GetIdentityRequest - 10, // 106: state.v1.StateStoreService.CreateIdentity:input_type -> state.v1.CreateIdentityRequest - 11, // 107: state.v1.StateStoreService.RenameIdentity:input_type -> state.v1.RenameIdentityRequest - 12, // 108: state.v1.StateStoreService.SuspendIdentity:input_type -> state.v1.SuspendIdentityRequest - 13, // 109: state.v1.StateStoreService.ReactivateIdentity:input_type -> state.v1.ReactivateIdentityRequest - 14, // 110: state.v1.StateStoreService.RetireIdentity:input_type -> state.v1.RetireIdentityRequest - 20, // 111: state.v1.StateStoreService.ResolveIdentitySubject:input_type -> state.v1.ResolveIdentitySubjectRequest - 22, // 112: state.v1.StateStoreService.BindIdentitySubject:input_type -> state.v1.BindIdentitySubjectRequest - 38, // 113: state.v1.StateStoreService.EnqueueIssue:input_type -> state.v1.EnqueueIssueRequest - 40, // 114: state.v1.StateStoreService.EnqueueChatTask:input_type -> state.v1.EnqueueChatTaskRequest - 42, // 115: state.v1.StateStoreService.ClaimNext:input_type -> state.v1.ClaimNextRequest - 44, // 116: state.v1.StateStoreService.ClaimByIssue:input_type -> state.v1.ClaimByIssueRequest - 46, // 117: state.v1.StateStoreService.Transition:input_type -> state.v1.TransitionRequest - 54, // 118: state.v1.StateStoreService.Update:input_type -> state.v1.UpdateRequest - 48, // 119: state.v1.StateStoreService.StartStep:input_type -> state.v1.StartStepRequest - 50, // 120: state.v1.StateStoreService.FinishStep:input_type -> state.v1.FinishStepRequest - 52, // 121: state.v1.StateStoreService.CancelExecution:input_type -> state.v1.CancelExecutionRequest - 56, // 122: state.v1.StateStoreService.Requeue:input_type -> state.v1.RequeueRequest - 58, // 123: state.v1.StateStoreService.ParkTask:input_type -> state.v1.ParkTaskRequest - 60, // 124: state.v1.StateStoreService.RecoverStale:input_type -> state.v1.RecoverStaleRequest - 62, // 125: state.v1.StateStoreService.ArchiveTask:input_type -> state.v1.ArchiveTaskRequest - 64, // 126: state.v1.StateStoreService.RetryTask:input_type -> state.v1.RetryTaskRequest - 66, // 127: state.v1.StateStoreService.BeginRemediation:input_type -> state.v1.BeginRemediationRequest - 68, // 128: state.v1.StateStoreService.UpdateReviewPayload:input_type -> state.v1.UpdateReviewPayloadRequest - 70, // 129: state.v1.StateStoreService.SetReviewCursors:input_type -> state.v1.SetReviewCursorsRequest - 72, // 130: state.v1.StateStoreService.TaskByIssue:input_type -> state.v1.TaskByIssueRequest - 74, // 131: state.v1.StateStoreService.OpenTaskByPR:input_type -> state.v1.OpenTaskByPRRequest - 76, // 132: state.v1.StateStoreService.TaskByID:input_type -> state.v1.TaskByIDRequest - 78, // 133: state.v1.StateStoreService.OpenPRs:input_type -> state.v1.OpenPRsRequest - 80, // 134: state.v1.StateStoreService.ClearTerminalTasks:input_type -> state.v1.ClearTerminalTasksRequest - 82, // 135: state.v1.StateStoreService.Tasks:input_type -> state.v1.TasksRequest - 84, // 136: state.v1.StateStoreService.StatusCounts:input_type -> state.v1.StatusCountsRequest - 86, // 137: state.v1.StateStoreService.InsertEvent:input_type -> state.v1.InsertEventRequest - 88, // 138: state.v1.StateStoreService.EventsSince:input_type -> state.v1.EventsSinceRequest - 90, // 139: state.v1.StateStoreService.TaskEvents:input_type -> state.v1.TaskEventsRequest - 92, // 140: state.v1.StateStoreService.WorkflowStats:input_type -> state.v1.WorkflowStatsRequest - 94, // 141: state.v1.StateStoreService.StageStats:input_type -> state.v1.StageStatsRequest - 96, // 142: state.v1.StateStoreService.TokensByDay:input_type -> state.v1.TokensByDayRequest - 99, // 143: state.v1.StateStoreService.PutConfigSnapshot:input_type -> state.v1.PutConfigSnapshotRequest - 101, // 144: state.v1.StateStoreService.GetConfigSnapshot:input_type -> state.v1.GetConfigSnapshotRequest - 104, // 145: state.v1.StateStoreService.PutChannelStatus:input_type -> state.v1.PutChannelStatusRequest - 106, // 146: state.v1.StateStoreService.ListChannelStatus:input_type -> state.v1.ListChannelStatusRequest - 109, // 147: state.v1.StateStoreService.PutApplyStatus:input_type -> state.v1.PutApplyStatusRequest - 111, // 148: state.v1.StateStoreService.ListApplyStatus:input_type -> state.v1.ListApplyStatusRequest - 114, // 149: state.v1.StateStoreService.ReadTaskLog:input_type -> state.v1.ReadTaskLogRequest - 116, // 150: state.v1.StateStoreService.StreamTaskLogContent:input_type -> state.v1.StreamTaskLogContentRequest - 118, // 151: state.v1.StateStoreService.InsertCapture:input_type -> state.v1.InsertCaptureRequest - 120, // 152: state.v1.StateStoreService.StreamCaptures:input_type -> state.v1.StreamCapturesRequest - 122, // 153: state.v1.StateStoreService.InsertMapping:input_type -> state.v1.InsertMappingRequest - 124, // 154: state.v1.StateStoreService.GetMapping:input_type -> state.v1.GetMappingRequest - 126, // 155: state.v1.StateStoreService.ListMappings:input_type -> state.v1.ListMappingsRequest - 128, // 156: state.v1.StateStoreService.UpdateMapping:input_type -> state.v1.UpdateMappingRequest - 130, // 157: state.v1.StateStoreService.DeleteMapping:input_type -> state.v1.DeleteMappingRequest - 132, // 158: state.v1.StateStoreService.RecordMappingMatch:input_type -> state.v1.RecordMappingMatchRequest - 134, // 159: state.v1.StateStoreService.InsertEventType:input_type -> state.v1.InsertEventTypeRequest - 136, // 160: state.v1.StateStoreService.UpdateEventType:input_type -> state.v1.UpdateEventTypeRequest - 138, // 161: state.v1.StateStoreService.DeleteEventType:input_type -> state.v1.DeleteEventTypeRequest - 140, // 162: state.v1.StateStoreService.ListEventTypes:input_type -> state.v1.ListEventTypesRequest - 142, // 163: state.v1.StateStoreService.InsertBinding:input_type -> state.v1.InsertBindingRequest - 144, // 164: state.v1.StateStoreService.GetBinding:input_type -> state.v1.GetBindingRequest - 146, // 165: state.v1.StateStoreService.ListBindings:input_type -> state.v1.ListBindingsRequest - 148, // 166: state.v1.StateStoreService.UpdateBinding:input_type -> state.v1.UpdateBindingRequest - 150, // 167: state.v1.StateStoreService.DeleteBinding:input_type -> state.v1.DeleteBindingRequest - 152, // 168: state.v1.StateStoreService.ApproveBinding:input_type -> state.v1.ApproveBindingRequest - 154, // 169: state.v1.StateStoreService.InsertSource:input_type -> state.v1.InsertSourceRequest - 156, // 170: state.v1.StateStoreService.GetSource:input_type -> state.v1.GetSourceRequest - 158, // 171: state.v1.StateStoreService.ListSources:input_type -> state.v1.ListSourcesRequest - 160, // 172: state.v1.StateStoreService.SetSourceSigning:input_type -> state.v1.SetSourceSigningRequest - 162, // 173: state.v1.StateStoreService.SetSourceSecret:input_type -> state.v1.SetSourceSecretRequest - 164, // 174: state.v1.StateStoreService.ArmedBindingsForSource:input_type -> state.v1.ArmedBindingsForSourceRequest - 166, // 175: state.v1.StateStoreService.RecordDispatch:input_type -> state.v1.RecordDispatchRequest - 168, // 176: state.v1.StateStoreService.RecordPlaybookDispatch:input_type -> state.v1.RecordPlaybookDispatchRequest - 170, // 177: state.v1.StateStoreService.DeletePlaybookDispatches:input_type -> state.v1.DeletePlaybookDispatchesRequest - 172, // 178: state.v1.StateStoreService.StreamUndispatchedCaptures:input_type -> state.v1.StreamUndispatchedCapturesRequest - 174, // 179: state.v1.StateStoreService.EnqueueBindingTask:input_type -> state.v1.EnqueueBindingTaskRequest - 176, // 180: state.v1.StateStoreService.EnqueueCallTask:input_type -> state.v1.EnqueueCallTaskRequest - 178, // 181: state.v1.StateStoreService.WorkflowCallStatus:input_type -> state.v1.WorkflowCallStatusRequest - 189, // 182: state.v1.StateStoreService.GetPrincipal:input_type -> state.v1.GetPrincipalRequest - 194, // 183: state.v1.StateStoreService.ListPolicies:input_type -> state.v1.ListPoliciesRequest - 196, // 184: state.v1.StateStoreService.PutPolicy:input_type -> state.v1.PutPolicyRequest - 198, // 185: state.v1.StateStoreService.DeletePolicy:input_type -> state.v1.DeletePolicyRequest - 200, // 186: state.v1.StateStoreService.EnsureShippedOrgPolicies:input_type -> state.v1.EnsureShippedOrgPoliciesRequest - 203, // 187: state.v1.StateStoreService.RecordDenial:input_type -> state.v1.RecordDenialRequest - 205, // 188: state.v1.StateStoreService.ListDenials:input_type -> state.v1.ListDenialsRequest - 182, // 189: state.v1.StateStoreService.InstallPackage:output_type -> state.v1.InstallPackageResponse - 184, // 190: state.v1.StateStoreService.GetInstalledPackage:output_type -> state.v1.GetInstalledPackageResponse - 186, // 191: state.v1.StateStoreService.ListInstalledPackages:output_type -> state.v1.ListInstalledPackagesResponse - 188, // 192: state.v1.StateStoreService.RemoveInstalledPackage:output_type -> state.v1.RemoveInstalledPackageResponse - 1, // 193: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse - 3, // 194: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse - 7, // 195: state.v1.StateStoreService.ListIdentities:output_type -> state.v1.ListIdentitiesResponse - 9, // 196: state.v1.StateStoreService.GetIdentity:output_type -> state.v1.GetIdentityResponse - 15, // 197: state.v1.StateStoreService.CreateIdentity:output_type -> state.v1.CreateIdentityResponse - 16, // 198: state.v1.StateStoreService.RenameIdentity:output_type -> state.v1.RenameIdentityResponse - 17, // 199: state.v1.StateStoreService.SuspendIdentity:output_type -> state.v1.SuspendIdentityResponse - 18, // 200: state.v1.StateStoreService.ReactivateIdentity:output_type -> state.v1.ReactivateIdentityResponse - 19, // 201: state.v1.StateStoreService.RetireIdentity:output_type -> state.v1.RetireIdentityResponse - 21, // 202: state.v1.StateStoreService.ResolveIdentitySubject:output_type -> state.v1.ResolveIdentitySubjectResponse - 23, // 203: state.v1.StateStoreService.BindIdentitySubject:output_type -> state.v1.BindIdentitySubjectResponse - 39, // 204: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse - 41, // 205: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse - 43, // 206: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse - 45, // 207: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse - 47, // 208: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse - 55, // 209: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse - 49, // 210: state.v1.StateStoreService.StartStep:output_type -> state.v1.StartStepResponse - 51, // 211: state.v1.StateStoreService.FinishStep:output_type -> state.v1.FinishStepResponse - 53, // 212: state.v1.StateStoreService.CancelExecution:output_type -> state.v1.CancelExecutionResponse - 57, // 213: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse - 59, // 214: state.v1.StateStoreService.ParkTask:output_type -> state.v1.ParkTaskResponse - 61, // 215: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse - 63, // 216: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse - 65, // 217: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse - 67, // 218: state.v1.StateStoreService.BeginRemediation:output_type -> state.v1.BeginRemediationResponse - 69, // 219: state.v1.StateStoreService.UpdateReviewPayload:output_type -> state.v1.UpdateReviewPayloadResponse - 71, // 220: state.v1.StateStoreService.SetReviewCursors:output_type -> state.v1.SetReviewCursorsResponse - 73, // 221: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse - 75, // 222: state.v1.StateStoreService.OpenTaskByPR:output_type -> state.v1.OpenTaskByPRResponse - 77, // 223: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse - 79, // 224: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse - 81, // 225: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse - 83, // 226: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse - 85, // 227: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse - 87, // 228: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse - 89, // 229: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse - 91, // 230: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse - 93, // 231: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse - 95, // 232: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse - 97, // 233: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse - 100, // 234: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse - 102, // 235: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse - 105, // 236: state.v1.StateStoreService.PutChannelStatus:output_type -> state.v1.PutChannelStatusResponse - 107, // 237: state.v1.StateStoreService.ListChannelStatus:output_type -> state.v1.ListChannelStatusResponse - 110, // 238: state.v1.StateStoreService.PutApplyStatus:output_type -> state.v1.PutApplyStatusResponse - 112, // 239: state.v1.StateStoreService.ListApplyStatus:output_type -> state.v1.ListApplyStatusResponse - 115, // 240: state.v1.StateStoreService.ReadTaskLog:output_type -> state.v1.ReadTaskLogResponse - 117, // 241: state.v1.StateStoreService.StreamTaskLogContent:output_type -> state.v1.StreamTaskLogContentResponse - 119, // 242: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse - 121, // 243: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse - 123, // 244: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse - 125, // 245: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse - 127, // 246: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse - 129, // 247: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse - 131, // 248: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse - 133, // 249: state.v1.StateStoreService.RecordMappingMatch:output_type -> state.v1.RecordMappingMatchResponse - 135, // 250: state.v1.StateStoreService.InsertEventType:output_type -> state.v1.InsertEventTypeResponse - 137, // 251: state.v1.StateStoreService.UpdateEventType:output_type -> state.v1.UpdateEventTypeResponse - 139, // 252: state.v1.StateStoreService.DeleteEventType:output_type -> state.v1.DeleteEventTypeResponse - 141, // 253: state.v1.StateStoreService.ListEventTypes:output_type -> state.v1.ListEventTypesResponse - 143, // 254: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse - 145, // 255: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse - 147, // 256: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse - 149, // 257: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse - 151, // 258: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse - 153, // 259: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse - 155, // 260: state.v1.StateStoreService.InsertSource:output_type -> state.v1.InsertSourceResponse - 157, // 261: state.v1.StateStoreService.GetSource:output_type -> state.v1.GetSourceResponse - 159, // 262: state.v1.StateStoreService.ListSources:output_type -> state.v1.ListSourcesResponse - 161, // 263: state.v1.StateStoreService.SetSourceSigning:output_type -> state.v1.SetSourceSigningResponse - 163, // 264: state.v1.StateStoreService.SetSourceSecret:output_type -> state.v1.SetSourceSecretResponse - 165, // 265: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse - 167, // 266: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse - 169, // 267: state.v1.StateStoreService.RecordPlaybookDispatch:output_type -> state.v1.RecordPlaybookDispatchResponse - 171, // 268: state.v1.StateStoreService.DeletePlaybookDispatches:output_type -> state.v1.DeletePlaybookDispatchesResponse - 173, // 269: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse - 175, // 270: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse - 177, // 271: state.v1.StateStoreService.EnqueueCallTask:output_type -> state.v1.EnqueueCallTaskResponse - 179, // 272: state.v1.StateStoreService.WorkflowCallStatus:output_type -> state.v1.WorkflowCallStatusResponse - 192, // 273: state.v1.StateStoreService.GetPrincipal:output_type -> state.v1.GetPrincipalResponse - 195, // 274: state.v1.StateStoreService.ListPolicies:output_type -> state.v1.ListPoliciesResponse - 197, // 275: state.v1.StateStoreService.PutPolicy:output_type -> state.v1.PutPolicyResponse - 199, // 276: state.v1.StateStoreService.DeletePolicy:output_type -> state.v1.DeletePolicyResponse - 201, // 277: state.v1.StateStoreService.EnsureShippedOrgPolicies:output_type -> state.v1.EnsureShippedOrgPoliciesResponse - 204, // 278: state.v1.StateStoreService.RecordDenial:output_type -> state.v1.RecordDenialResponse - 206, // 279: state.v1.StateStoreService.ListDenials:output_type -> state.v1.ListDenialsResponse - 189, // [189:280] is the sub-list for method output_type - 98, // [98:189] is the sub-list for method input_type - 98, // [98:98] is the sub-list for extension type_name - 98, // [98:98] is the sub-list for extension extendee - 0, // [0:98] is the sub-list for field type_name + 212, // 40: state.v1.StepExecution.started_at:type_name -> google.protobuf.Timestamp + 212, // 41: state.v1.StepExecution.finished_at:type_name -> google.protobuf.Timestamp + 54, // 42: state.v1.ListStepsResponse.steps:type_name -> state.v1.StepExecution + 24, // 43: state.v1.UpdateRequest.task:type_name -> state.v1.Task + 25, // 44: state.v1.ArchiveTaskRequest.audit:type_name -> state.v1.Event + 24, // 45: state.v1.TaskByIssueResponse.task:type_name -> state.v1.Task + 24, // 46: state.v1.OpenTaskByPRResponse.task:type_name -> state.v1.Task + 24, // 47: state.v1.TaskByIDResponse.task:type_name -> state.v1.Task + 24, // 48: state.v1.OpenPRsResponse.tasks:type_name -> state.v1.Task + 24, // 49: state.v1.TasksResponse.tasks:type_name -> state.v1.Task + 211, // 50: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry + 25, // 51: state.v1.InsertEventRequest.event:type_name -> state.v1.Event + 25, // 52: state.v1.EventsSinceResponse.events:type_name -> state.v1.Event + 25, // 53: state.v1.TaskEventsResponse.events:type_name -> state.v1.Event + 35, // 54: state.v1.WorkflowStatsResponse.stats:type_name -> state.v1.WorkflowStat + 36, // 55: state.v1.StageStatsResponse.stats:type_name -> state.v1.StageStat + 37, // 56: state.v1.TokensByDayResponse.tokens:type_name -> state.v1.DayTokens + 212, // 57: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp + 101, // 58: state.v1.PutConfigSnapshotRequest.snapshot:type_name -> state.v1.ConfigSnapshot + 101, // 59: state.v1.GetConfigSnapshotResponse.snapshot:type_name -> state.v1.ConfigSnapshot + 212, // 60: state.v1.ChannelStatus.observed_at:type_name -> google.protobuf.Timestamp + 106, // 61: state.v1.PutChannelStatusRequest.channels:type_name -> state.v1.ChannelStatus + 106, // 62: state.v1.ListChannelStatusResponse.channels:type_name -> state.v1.ChannelStatus + 212, // 63: state.v1.ApplyStatus.reported_at:type_name -> google.protobuf.Timestamp + 111, // 64: state.v1.PutApplyStatusRequest.status:type_name -> state.v1.ApplyStatus + 111, // 65: state.v1.ListApplyStatusResponse.statuses:type_name -> state.v1.ApplyStatus + 212, // 66: state.v1.TaskLogEntry.time:type_name -> google.protobuf.Timestamp + 212, // 67: state.v1.ReadTaskLogRequest.since:type_name -> google.protobuf.Timestamp + 212, // 68: state.v1.ReadTaskLogRequest.until:type_name -> google.protobuf.Timestamp + 116, // 69: state.v1.ReadTaskLogResponse.entries:type_name -> state.v1.TaskLogEntry + 26, // 70: state.v1.InsertCaptureRequest.capture:type_name -> state.v1.CapturedEvent + 26, // 71: state.v1.StreamCapturesResponse.capture:type_name -> state.v1.CapturedEvent + 31, // 72: state.v1.InsertMappingRequest.mapping:type_name -> state.v1.Mapping + 31, // 73: state.v1.GetMappingResponse.mapping:type_name -> state.v1.Mapping + 31, // 74: state.v1.ListMappingsResponse.mappings:type_name -> state.v1.Mapping + 31, // 75: state.v1.UpdateMappingRequest.mapping:type_name -> state.v1.Mapping + 29, // 76: state.v1.InsertEventTypeRequest.event_type:type_name -> state.v1.EventType + 29, // 77: state.v1.UpdateEventTypeRequest.event_type:type_name -> state.v1.EventType + 29, // 78: state.v1.ListEventTypesResponse.event_types:type_name -> state.v1.EventType + 33, // 79: state.v1.InsertBindingRequest.binding:type_name -> state.v1.Binding + 33, // 80: state.v1.GetBindingResponse.binding:type_name -> state.v1.Binding + 33, // 81: state.v1.ListBindingsResponse.bindings:type_name -> state.v1.Binding + 33, // 82: state.v1.UpdateBindingRequest.binding:type_name -> state.v1.Binding + 34, // 83: state.v1.InsertSourceRequest.source:type_name -> state.v1.Source + 34, // 84: state.v1.GetSourceResponse.source:type_name -> state.v1.Source + 34, // 85: state.v1.ListSourcesResponse.sources:type_name -> state.v1.Source + 33, // 86: state.v1.ArmedBindingsForSourceResponse.bindings:type_name -> state.v1.Binding + 26, // 87: state.v1.StreamUndispatchedCapturesResponse.capture:type_name -> state.v1.CapturedEvent + 24, // 88: state.v1.EnqueueBindingTaskResponse.task:type_name -> state.v1.Task + 24, // 89: state.v1.EnqueueCallTaskResponse.task:type_name -> state.v1.Task + 183, // 90: state.v1.InstallPackageResponse.package:type_name -> state.v1.InstalledPackage + 183, // 91: state.v1.GetInstalledPackageResponse.package:type_name -> state.v1.InstalledPackage + 183, // 92: state.v1.ListInstalledPackagesResponse.packages:type_name -> state.v1.InstalledPackage + 193, // 93: state.v1.AccessPrincipal.memberships:type_name -> state.v1.PrincipalMembership + 194, // 94: state.v1.GetPrincipalResponse.principal:type_name -> state.v1.AccessPrincipal + 196, // 95: state.v1.ListPoliciesResponse.policies:type_name -> state.v1.AccessPolicy + 196, // 96: state.v1.PutPolicyRequest.policy:type_name -> state.v1.AccessPolicy + 196, // 97: state.v1.DeletePolicyRequest.policy:type_name -> state.v1.AccessPolicy + 212, // 98: state.v1.AccessDenial.at:type_name -> google.protobuf.Timestamp + 205, // 99: state.v1.RecordDenialRequest.denial:type_name -> state.v1.AccessDenial + 205, // 100: state.v1.ListDenialsResponse.denials:type_name -> state.v1.AccessDenial + 184, // 101: state.v1.StateStoreService.InstallPackage:input_type -> state.v1.InstallPackageRequest + 186, // 102: state.v1.StateStoreService.GetInstalledPackage:input_type -> state.v1.GetInstalledPackageRequest + 188, // 103: state.v1.StateStoreService.ListInstalledPackages:input_type -> state.v1.ListInstalledPackagesRequest + 190, // 104: state.v1.StateStoreService.RemoveInstalledPackage:input_type -> state.v1.RemoveInstalledPackageRequest + 0, // 105: state.v1.StateStoreService.RegisterTaskGrant:input_type -> state.v1.RegisterTaskGrantRequest + 2, // 106: state.v1.StateStoreService.RevokeTaskGrant:input_type -> state.v1.RevokeTaskGrantRequest + 6, // 107: state.v1.StateStoreService.ListIdentities:input_type -> state.v1.ListIdentitiesRequest + 8, // 108: state.v1.StateStoreService.GetIdentity:input_type -> state.v1.GetIdentityRequest + 10, // 109: state.v1.StateStoreService.CreateIdentity:input_type -> state.v1.CreateIdentityRequest + 11, // 110: state.v1.StateStoreService.RenameIdentity:input_type -> state.v1.RenameIdentityRequest + 12, // 111: state.v1.StateStoreService.SuspendIdentity:input_type -> state.v1.SuspendIdentityRequest + 13, // 112: state.v1.StateStoreService.ReactivateIdentity:input_type -> state.v1.ReactivateIdentityRequest + 14, // 113: state.v1.StateStoreService.RetireIdentity:input_type -> state.v1.RetireIdentityRequest + 20, // 114: state.v1.StateStoreService.ResolveIdentitySubject:input_type -> state.v1.ResolveIdentitySubjectRequest + 22, // 115: state.v1.StateStoreService.BindIdentitySubject:input_type -> state.v1.BindIdentitySubjectRequest + 38, // 116: state.v1.StateStoreService.EnqueueIssue:input_type -> state.v1.EnqueueIssueRequest + 40, // 117: state.v1.StateStoreService.EnqueueChatTask:input_type -> state.v1.EnqueueChatTaskRequest + 42, // 118: state.v1.StateStoreService.ClaimNext:input_type -> state.v1.ClaimNextRequest + 44, // 119: state.v1.StateStoreService.ClaimByIssue:input_type -> state.v1.ClaimByIssueRequest + 46, // 120: state.v1.StateStoreService.Transition:input_type -> state.v1.TransitionRequest + 57, // 121: state.v1.StateStoreService.Update:input_type -> state.v1.UpdateRequest + 48, // 122: state.v1.StateStoreService.StartStep:input_type -> state.v1.StartStepRequest + 50, // 123: state.v1.StateStoreService.FinishStep:input_type -> state.v1.FinishStepRequest + 52, // 124: state.v1.StateStoreService.CancelExecution:input_type -> state.v1.CancelExecutionRequest + 55, // 125: state.v1.StateStoreService.ListSteps:input_type -> state.v1.ListStepsRequest + 59, // 126: state.v1.StateStoreService.Requeue:input_type -> state.v1.RequeueRequest + 61, // 127: state.v1.StateStoreService.ParkTask:input_type -> state.v1.ParkTaskRequest + 63, // 128: state.v1.StateStoreService.RecoverStale:input_type -> state.v1.RecoverStaleRequest + 65, // 129: state.v1.StateStoreService.ArchiveTask:input_type -> state.v1.ArchiveTaskRequest + 67, // 130: state.v1.StateStoreService.RetryTask:input_type -> state.v1.RetryTaskRequest + 69, // 131: state.v1.StateStoreService.BeginRemediation:input_type -> state.v1.BeginRemediationRequest + 71, // 132: state.v1.StateStoreService.UpdateReviewPayload:input_type -> state.v1.UpdateReviewPayloadRequest + 73, // 133: state.v1.StateStoreService.SetReviewCursors:input_type -> state.v1.SetReviewCursorsRequest + 75, // 134: state.v1.StateStoreService.TaskByIssue:input_type -> state.v1.TaskByIssueRequest + 77, // 135: state.v1.StateStoreService.OpenTaskByPR:input_type -> state.v1.OpenTaskByPRRequest + 79, // 136: state.v1.StateStoreService.TaskByID:input_type -> state.v1.TaskByIDRequest + 81, // 137: state.v1.StateStoreService.OpenPRs:input_type -> state.v1.OpenPRsRequest + 83, // 138: state.v1.StateStoreService.ClearTerminalTasks:input_type -> state.v1.ClearTerminalTasksRequest + 85, // 139: state.v1.StateStoreService.Tasks:input_type -> state.v1.TasksRequest + 87, // 140: state.v1.StateStoreService.StatusCounts:input_type -> state.v1.StatusCountsRequest + 89, // 141: state.v1.StateStoreService.InsertEvent:input_type -> state.v1.InsertEventRequest + 91, // 142: state.v1.StateStoreService.EventsSince:input_type -> state.v1.EventsSinceRequest + 93, // 143: state.v1.StateStoreService.TaskEvents:input_type -> state.v1.TaskEventsRequest + 95, // 144: state.v1.StateStoreService.WorkflowStats:input_type -> state.v1.WorkflowStatsRequest + 97, // 145: state.v1.StateStoreService.StageStats:input_type -> state.v1.StageStatsRequest + 99, // 146: state.v1.StateStoreService.TokensByDay:input_type -> state.v1.TokensByDayRequest + 102, // 147: state.v1.StateStoreService.PutConfigSnapshot:input_type -> state.v1.PutConfigSnapshotRequest + 104, // 148: state.v1.StateStoreService.GetConfigSnapshot:input_type -> state.v1.GetConfigSnapshotRequest + 107, // 149: state.v1.StateStoreService.PutChannelStatus:input_type -> state.v1.PutChannelStatusRequest + 109, // 150: state.v1.StateStoreService.ListChannelStatus:input_type -> state.v1.ListChannelStatusRequest + 112, // 151: state.v1.StateStoreService.PutApplyStatus:input_type -> state.v1.PutApplyStatusRequest + 114, // 152: state.v1.StateStoreService.ListApplyStatus:input_type -> state.v1.ListApplyStatusRequest + 117, // 153: state.v1.StateStoreService.ReadTaskLog:input_type -> state.v1.ReadTaskLogRequest + 119, // 154: state.v1.StateStoreService.StreamTaskLogContent:input_type -> state.v1.StreamTaskLogContentRequest + 121, // 155: state.v1.StateStoreService.InsertCapture:input_type -> state.v1.InsertCaptureRequest + 123, // 156: state.v1.StateStoreService.StreamCaptures:input_type -> state.v1.StreamCapturesRequest + 125, // 157: state.v1.StateStoreService.InsertMapping:input_type -> state.v1.InsertMappingRequest + 127, // 158: state.v1.StateStoreService.GetMapping:input_type -> state.v1.GetMappingRequest + 129, // 159: state.v1.StateStoreService.ListMappings:input_type -> state.v1.ListMappingsRequest + 131, // 160: state.v1.StateStoreService.UpdateMapping:input_type -> state.v1.UpdateMappingRequest + 133, // 161: state.v1.StateStoreService.DeleteMapping:input_type -> state.v1.DeleteMappingRequest + 135, // 162: state.v1.StateStoreService.RecordMappingMatch:input_type -> state.v1.RecordMappingMatchRequest + 137, // 163: state.v1.StateStoreService.InsertEventType:input_type -> state.v1.InsertEventTypeRequest + 139, // 164: state.v1.StateStoreService.UpdateEventType:input_type -> state.v1.UpdateEventTypeRequest + 141, // 165: state.v1.StateStoreService.DeleteEventType:input_type -> state.v1.DeleteEventTypeRequest + 143, // 166: state.v1.StateStoreService.ListEventTypes:input_type -> state.v1.ListEventTypesRequest + 145, // 167: state.v1.StateStoreService.InsertBinding:input_type -> state.v1.InsertBindingRequest + 147, // 168: state.v1.StateStoreService.GetBinding:input_type -> state.v1.GetBindingRequest + 149, // 169: state.v1.StateStoreService.ListBindings:input_type -> state.v1.ListBindingsRequest + 151, // 170: state.v1.StateStoreService.UpdateBinding:input_type -> state.v1.UpdateBindingRequest + 153, // 171: state.v1.StateStoreService.DeleteBinding:input_type -> state.v1.DeleteBindingRequest + 155, // 172: state.v1.StateStoreService.ApproveBinding:input_type -> state.v1.ApproveBindingRequest + 157, // 173: state.v1.StateStoreService.InsertSource:input_type -> state.v1.InsertSourceRequest + 159, // 174: state.v1.StateStoreService.GetSource:input_type -> state.v1.GetSourceRequest + 161, // 175: state.v1.StateStoreService.ListSources:input_type -> state.v1.ListSourcesRequest + 163, // 176: state.v1.StateStoreService.SetSourceSigning:input_type -> state.v1.SetSourceSigningRequest + 165, // 177: state.v1.StateStoreService.SetSourceSecret:input_type -> state.v1.SetSourceSecretRequest + 167, // 178: state.v1.StateStoreService.ArmedBindingsForSource:input_type -> state.v1.ArmedBindingsForSourceRequest + 169, // 179: state.v1.StateStoreService.RecordDispatch:input_type -> state.v1.RecordDispatchRequest + 171, // 180: state.v1.StateStoreService.RecordPlaybookDispatch:input_type -> state.v1.RecordPlaybookDispatchRequest + 173, // 181: state.v1.StateStoreService.DeletePlaybookDispatches:input_type -> state.v1.DeletePlaybookDispatchesRequest + 175, // 182: state.v1.StateStoreService.StreamUndispatchedCaptures:input_type -> state.v1.StreamUndispatchedCapturesRequest + 177, // 183: state.v1.StateStoreService.EnqueueBindingTask:input_type -> state.v1.EnqueueBindingTaskRequest + 179, // 184: state.v1.StateStoreService.EnqueueCallTask:input_type -> state.v1.EnqueueCallTaskRequest + 181, // 185: state.v1.StateStoreService.WorkflowCallStatus:input_type -> state.v1.WorkflowCallStatusRequest + 192, // 186: state.v1.StateStoreService.GetPrincipal:input_type -> state.v1.GetPrincipalRequest + 197, // 187: state.v1.StateStoreService.ListPolicies:input_type -> state.v1.ListPoliciesRequest + 199, // 188: state.v1.StateStoreService.PutPolicy:input_type -> state.v1.PutPolicyRequest + 201, // 189: state.v1.StateStoreService.DeletePolicy:input_type -> state.v1.DeletePolicyRequest + 203, // 190: state.v1.StateStoreService.EnsureShippedOrgPolicies:input_type -> state.v1.EnsureShippedOrgPoliciesRequest + 206, // 191: state.v1.StateStoreService.RecordDenial:input_type -> state.v1.RecordDenialRequest + 208, // 192: state.v1.StateStoreService.ListDenials:input_type -> state.v1.ListDenialsRequest + 185, // 193: state.v1.StateStoreService.InstallPackage:output_type -> state.v1.InstallPackageResponse + 187, // 194: state.v1.StateStoreService.GetInstalledPackage:output_type -> state.v1.GetInstalledPackageResponse + 189, // 195: state.v1.StateStoreService.ListInstalledPackages:output_type -> state.v1.ListInstalledPackagesResponse + 191, // 196: state.v1.StateStoreService.RemoveInstalledPackage:output_type -> state.v1.RemoveInstalledPackageResponse + 1, // 197: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse + 3, // 198: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse + 7, // 199: state.v1.StateStoreService.ListIdentities:output_type -> state.v1.ListIdentitiesResponse + 9, // 200: state.v1.StateStoreService.GetIdentity:output_type -> state.v1.GetIdentityResponse + 15, // 201: state.v1.StateStoreService.CreateIdentity:output_type -> state.v1.CreateIdentityResponse + 16, // 202: state.v1.StateStoreService.RenameIdentity:output_type -> state.v1.RenameIdentityResponse + 17, // 203: state.v1.StateStoreService.SuspendIdentity:output_type -> state.v1.SuspendIdentityResponse + 18, // 204: state.v1.StateStoreService.ReactivateIdentity:output_type -> state.v1.ReactivateIdentityResponse + 19, // 205: state.v1.StateStoreService.RetireIdentity:output_type -> state.v1.RetireIdentityResponse + 21, // 206: state.v1.StateStoreService.ResolveIdentitySubject:output_type -> state.v1.ResolveIdentitySubjectResponse + 23, // 207: state.v1.StateStoreService.BindIdentitySubject:output_type -> state.v1.BindIdentitySubjectResponse + 39, // 208: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse + 41, // 209: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse + 43, // 210: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse + 45, // 211: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse + 47, // 212: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse + 58, // 213: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse + 49, // 214: state.v1.StateStoreService.StartStep:output_type -> state.v1.StartStepResponse + 51, // 215: state.v1.StateStoreService.FinishStep:output_type -> state.v1.FinishStepResponse + 53, // 216: state.v1.StateStoreService.CancelExecution:output_type -> state.v1.CancelExecutionResponse + 56, // 217: state.v1.StateStoreService.ListSteps:output_type -> state.v1.ListStepsResponse + 60, // 218: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse + 62, // 219: state.v1.StateStoreService.ParkTask:output_type -> state.v1.ParkTaskResponse + 64, // 220: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse + 66, // 221: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse + 68, // 222: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse + 70, // 223: state.v1.StateStoreService.BeginRemediation:output_type -> state.v1.BeginRemediationResponse + 72, // 224: state.v1.StateStoreService.UpdateReviewPayload:output_type -> state.v1.UpdateReviewPayloadResponse + 74, // 225: state.v1.StateStoreService.SetReviewCursors:output_type -> state.v1.SetReviewCursorsResponse + 76, // 226: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse + 78, // 227: state.v1.StateStoreService.OpenTaskByPR:output_type -> state.v1.OpenTaskByPRResponse + 80, // 228: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse + 82, // 229: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse + 84, // 230: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse + 86, // 231: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse + 88, // 232: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse + 90, // 233: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse + 92, // 234: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse + 94, // 235: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse + 96, // 236: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse + 98, // 237: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse + 100, // 238: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse + 103, // 239: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse + 105, // 240: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse + 108, // 241: state.v1.StateStoreService.PutChannelStatus:output_type -> state.v1.PutChannelStatusResponse + 110, // 242: state.v1.StateStoreService.ListChannelStatus:output_type -> state.v1.ListChannelStatusResponse + 113, // 243: state.v1.StateStoreService.PutApplyStatus:output_type -> state.v1.PutApplyStatusResponse + 115, // 244: state.v1.StateStoreService.ListApplyStatus:output_type -> state.v1.ListApplyStatusResponse + 118, // 245: state.v1.StateStoreService.ReadTaskLog:output_type -> state.v1.ReadTaskLogResponse + 120, // 246: state.v1.StateStoreService.StreamTaskLogContent:output_type -> state.v1.StreamTaskLogContentResponse + 122, // 247: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse + 124, // 248: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse + 126, // 249: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse + 128, // 250: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse + 130, // 251: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse + 132, // 252: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse + 134, // 253: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse + 136, // 254: state.v1.StateStoreService.RecordMappingMatch:output_type -> state.v1.RecordMappingMatchResponse + 138, // 255: state.v1.StateStoreService.InsertEventType:output_type -> state.v1.InsertEventTypeResponse + 140, // 256: state.v1.StateStoreService.UpdateEventType:output_type -> state.v1.UpdateEventTypeResponse + 142, // 257: state.v1.StateStoreService.DeleteEventType:output_type -> state.v1.DeleteEventTypeResponse + 144, // 258: state.v1.StateStoreService.ListEventTypes:output_type -> state.v1.ListEventTypesResponse + 146, // 259: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse + 148, // 260: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse + 150, // 261: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse + 152, // 262: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse + 154, // 263: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse + 156, // 264: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse + 158, // 265: state.v1.StateStoreService.InsertSource:output_type -> state.v1.InsertSourceResponse + 160, // 266: state.v1.StateStoreService.GetSource:output_type -> state.v1.GetSourceResponse + 162, // 267: state.v1.StateStoreService.ListSources:output_type -> state.v1.ListSourcesResponse + 164, // 268: state.v1.StateStoreService.SetSourceSigning:output_type -> state.v1.SetSourceSigningResponse + 166, // 269: state.v1.StateStoreService.SetSourceSecret:output_type -> state.v1.SetSourceSecretResponse + 168, // 270: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse + 170, // 271: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse + 172, // 272: state.v1.StateStoreService.RecordPlaybookDispatch:output_type -> state.v1.RecordPlaybookDispatchResponse + 174, // 273: state.v1.StateStoreService.DeletePlaybookDispatches:output_type -> state.v1.DeletePlaybookDispatchesResponse + 176, // 274: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse + 178, // 275: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse + 180, // 276: state.v1.StateStoreService.EnqueueCallTask:output_type -> state.v1.EnqueueCallTaskResponse + 182, // 277: state.v1.StateStoreService.WorkflowCallStatus:output_type -> state.v1.WorkflowCallStatusResponse + 195, // 278: state.v1.StateStoreService.GetPrincipal:output_type -> state.v1.GetPrincipalResponse + 198, // 279: state.v1.StateStoreService.ListPolicies:output_type -> state.v1.ListPoliciesResponse + 200, // 280: state.v1.StateStoreService.PutPolicy:output_type -> state.v1.PutPolicyResponse + 202, // 281: state.v1.StateStoreService.DeletePolicy:output_type -> state.v1.DeletePolicyResponse + 204, // 282: state.v1.StateStoreService.EnsureShippedOrgPolicies:output_type -> state.v1.EnsureShippedOrgPoliciesResponse + 207, // 283: state.v1.StateStoreService.RecordDenial:output_type -> state.v1.RecordDenialResponse + 209, // 284: state.v1.StateStoreService.ListDenials:output_type -> state.v1.ListDenialsResponse + 193, // [193:285] is the sub-list for method output_type + 101, // [101:193] is the sub-list for method input_type + 101, // [101:101] is the sub-list for extension type_name + 101, // [101:101] is the sub-list for extension extendee + 0, // [0:101] is the sub-list for field type_name } func init() { file_state_v1_state_proto_init() } @@ -12466,7 +12737,7 @@ func file_state_v1_state_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_state_v1_state_proto_rawDesc), len(file_state_v1_state_proto_rawDesc)), NumEnums: 0, - NumMessages: 209, + NumMessages: 212, NumExtensions: 0, NumServices: 1, }, diff --git a/internal/contracts/state/v1/state_grpc.pb.go b/internal/contracts/state/v1/state_grpc.pb.go index 345599219..65af7ce0e 100644 --- a/internal/contracts/state/v1/state_grpc.pb.go +++ b/internal/contracts/state/v1/state_grpc.pb.go @@ -43,6 +43,7 @@ const ( StateStoreService_StartStep_FullMethodName = "/state.v1.StateStoreService/StartStep" StateStoreService_FinishStep_FullMethodName = "/state.v1.StateStoreService/FinishStep" StateStoreService_CancelExecution_FullMethodName = "/state.v1.StateStoreService/CancelExecution" + StateStoreService_ListSteps_FullMethodName = "/state.v1.StateStoreService/ListSteps" StateStoreService_Requeue_FullMethodName = "/state.v1.StateStoreService/Requeue" StateStoreService_ParkTask_FullMethodName = "/state.v1.StateStoreService/ParkTask" StateStoreService_RecoverStale_FullMethodName = "/state.v1.StateStoreService/RecoverStale" @@ -160,6 +161,9 @@ type StateStoreServiceClient interface { // task-scoped grant): a cancel is a dashboard, API and dispatch action // decided by the Authorizer, not a worker call. CancelExecution(ctx context.Context, in *CancelExecutionRequest, opts ...grpc.CallOption) (*CancelExecutionResponse, error) + // ListSteps is a dashboard/API/dispatch action (Authorizer: read on the + // run), not task-scoped-grant callable like StartStep/FinishStep. + ListSteps(ctx context.Context, in *ListStepsRequest, opts ...grpc.CallOption) (*ListStepsResponse, error) Requeue(ctx context.Context, in *RequeueRequest, opts ...grpc.CallOption) (*RequeueResponse, error) ParkTask(ctx context.Context, in *ParkTaskRequest, opts ...grpc.CallOption) (*ParkTaskResponse, error) RecoverStale(ctx context.Context, in *RecoverStaleRequest, opts ...grpc.CallOption) (*RecoverStaleResponse, error) @@ -533,6 +537,16 @@ func (c *stateStoreServiceClient) CancelExecution(ctx context.Context, in *Cance return out, nil } +func (c *stateStoreServiceClient) ListSteps(ctx context.Context, in *ListStepsRequest, opts ...grpc.CallOption) (*ListStepsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListStepsResponse) + err := c.cc.Invoke(ctx, StateStoreService_ListSteps_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *stateStoreServiceClient) Requeue(ctx context.Context, in *RequeueRequest, opts ...grpc.CallOption) (*RequeueResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RequeueResponse) @@ -1278,6 +1292,9 @@ type StateStoreServiceServer interface { // task-scoped grant): a cancel is a dashboard, API and dispatch action // decided by the Authorizer, not a worker call. CancelExecution(context.Context, *CancelExecutionRequest) (*CancelExecutionResponse, error) + // ListSteps is a dashboard/API/dispatch action (Authorizer: read on the + // run), not task-scoped-grant callable like StartStep/FinishStep. + ListSteps(context.Context, *ListStepsRequest) (*ListStepsResponse, error) Requeue(context.Context, *RequeueRequest) (*RequeueResponse, error) ParkTask(context.Context, *ParkTaskRequest) (*ParkTaskResponse, error) RecoverStale(context.Context, *RecoverStaleRequest) (*RecoverStaleResponse, error) @@ -1483,6 +1500,9 @@ func (UnimplementedStateStoreServiceServer) FinishStep(context.Context, *FinishS func (UnimplementedStateStoreServiceServer) CancelExecution(context.Context, *CancelExecutionRequest) (*CancelExecutionResponse, error) { return nil, status.Error(codes.Unimplemented, "method CancelExecution not implemented") } +func (UnimplementedStateStoreServiceServer) ListSteps(context.Context, *ListStepsRequest) (*ListStepsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListSteps not implemented") +} func (UnimplementedStateStoreServiceServer) Requeue(context.Context, *RequeueRequest) (*RequeueResponse, error) { return nil, status.Error(codes.Unimplemented, "method Requeue not implemented") } @@ -2137,6 +2157,24 @@ func _StateStoreService_CancelExecution_Handler(srv interface{}, ctx context.Con return interceptor(ctx, in, info, handler) } +func _StateStoreService_ListSteps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListStepsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StateStoreServiceServer).ListSteps(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: StateStoreService_ListSteps_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StateStoreServiceServer).ListSteps(ctx, req.(*ListStepsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _StateStoreService_Requeue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RequeueRequest) if err := dec(in); err != nil { @@ -3425,6 +3463,10 @@ var StateStoreService_ServiceDesc = grpc.ServiceDesc{ MethodName: "CancelExecution", Handler: _StateStoreService_CancelExecution_Handler, }, + { + MethodName: "ListSteps", + Handler: _StateStoreService_ListSteps_Handler, + }, { MethodName: "Requeue", Handler: _StateStoreService_Requeue_Handler, diff --git a/internal/domain/storecontract/storecontract.go b/internal/domain/storecontract/storecontract.go index 7f7387168..2d2eb8e5f 100644 --- a/internal/domain/storecontract/storecontract.go +++ b/internal/domain/storecontract/storecontract.go @@ -90,6 +90,15 @@ type ExecutionCanceller interface { CancelExecution(ctx context.Context, taskID int64, reason, to string) ([]int64, error) } +// StepReader lists one execution's recorded steps -- the dashboard run +// detail's read (docs/prds/execution-tree-state-machine.md). Separate from +// StepRecorder: this is a dashboard/API/dispatch action (Authorizer: read on +// the run), never task-scoped-grant callable the way StartStep/FinishStep +// are. +type StepReader interface { + ListSteps(ctx context.Context, executionID int64, attempt int) ([]task.StepExecution, error) +} + // TaskArchiver removes one terminal task's local record with an optimistic // status guard. It is separate from the already broad lifecycle contract so // consumers that only run tasks do not acquire an operator-only capability. diff --git a/internal/domain/taskactions/service.go b/internal/domain/taskactions/service.go index 197eb5324..8914c3e95 100644 --- a/internal/domain/taskactions/service.go +++ b/internal/domain/taskactions/service.go @@ -20,10 +20,10 @@ var ( // Task is the state needed to authorize and apply an operator action. type Task struct { - ID int64 - Owner, Repo, Identity, Status, Stage, ParkReason string - IssueNumber, RetryCount int - ForgeBacked bool + ID int64 + Owner, Repo, Identity, Status, ParkReason string + IssueNumber, RetryCount int + ForgeBacked bool // Attempt is the run the operator acted on. It is stamped onto the event // this action records so an intervention is attributable to the run it // changed course -- without it a retry or a stop is indistinguishable @@ -256,7 +256,7 @@ func (s Service) applyRetry(ctx context.Context, task *Task, actor Actor, o outc } err := s.Store.RetryTask(ctx, task.ID, "parked", "") o.event.Kind, o.event.Detail = events.KindTaskRetried, actor.describe("retried") - o.event.Data = map[string]any{"retry_count": task.RetryCount + 1, "previous_stage": task.Stage, "previous_reason": task.ParkReason} + o.event.Data = map[string]any{"retry_count": task.RetryCount + 1, "previous_reason": task.ParkReason} return o, err } diff --git a/internal/domain/workflow/changes_test.go b/internal/domain/workflow/changes_test.go index 29bcd62b1..1337c41f7 100644 --- a/internal/domain/workflow/changes_test.go +++ b/internal/domain/workflow/changes_test.go @@ -161,8 +161,9 @@ func captureTaskContext(t *testing.T, trees Trees, store Store) *TaskContext { return &TaskContext{ Task: &Task{ ID: 11, Attempt: 2, Owner: "acme", Repo: "widget", IssueNumber: 7, - Stage: "commit-push", Branch: "feat/7-widget", + Branch: "feat/7-widget", }, + Stage: "commit-push", Repo: config.Repo{Owner: "acme", Name: "widget", Base: "main"}, Trees: trees, Store: store, @@ -278,7 +279,7 @@ func TestStageCommitCapturesTheChangedFiles(t *testing.T) { trees := &capturingTrees{commitAllChanged: true, stats: sampleStats()} store := &recordingStore{} tc := captureTaskContext(t, trees, store) - tc.Task.Stage = "commit-repro" + tc.Stage = "commit-repro" if err := StageCommit("commit-repro", func(*TaskContext) string { return "msg" }).Run(context.Background(), tc); err != nil { t.Fatalf("StageCommit.Run() = %v, want nil", err) @@ -430,7 +431,7 @@ func TestOpenPRCapturesThePullRequestNumber(t *testing.T) { forgeClient := &fakeForge{} tc := captureTaskContext(t, trees, store) tc.Forge = forgeClient - tc.Task.Stage = "open-pr" + tc.Stage = "open-pr" tc.Task.Title = "widget fails" if err := OpenPR(context.Background(), tc, "body"); err != nil { diff --git a/internal/domain/workflow/steps.go b/internal/domain/workflow/steps.go index 5a3674a0e..4818f6773 100644 --- a/internal/domain/workflow/steps.go +++ b/internal/domain/workflow/steps.go @@ -71,7 +71,7 @@ func (tc *TaskContext) captureChanges(ctx context.Context, after string) task.Ch // Durable, never bus-only: the worktree this was measured from is gone by // the time anyone reads it, so a capture that only reached the live feed // would be lost with the process. - if err := tc.EmitDurable(ctx, events.KindChangesCaptured, tc.Task.Stage, "", changeCaptureData(tc, after, stats)); err != nil { + if err := tc.EmitDurable(ctx, events.KindChangesCaptured, tc.Stage, "", changeCaptureData(tc, after, stats)); err != nil { tc.Log.Warn("change capture not persisted", "captured_after", after, "err", err) } return stats diff --git a/internal/domain/workflow/task/step.go b/internal/domain/workflow/task/step.go index 79b863c94..b649a5f1d 100644 --- a/internal/domain/workflow/task/step.go +++ b/internal/domain/workflow/task/step.go @@ -1,6 +1,10 @@ package task -import "github.com/samcharles93/archie-core/internal/taskstate" +import ( + "time" + + "github.com/samcharles93/archie-core/internal/taskstate" +) // The step-execution vocabulary of docs/prds/execution-tree-state-machine.md: // one stage run, or one agent or workflow.call step an execution's tree @@ -57,3 +61,22 @@ type StepFinish struct { // the agent runtime records its own calls' usage. TokensUsed int64 } + +// StepExecution is one recorded step: ListSteps' read, the dashboard run +// detail's authoritative source (docs/prds/execution-tree-state-machine.md; +// replaces folding stage_start/stage_finish events, which tasks.stage used to +// back). ParentID is 0 for a stage at the tree's root. +type StepExecution struct { + ID int64 + ExecutionID int64 + Attempt int + ParentID int64 + Depth int + Kind string + Name string + Status taskstate.StepStatus + Detail string + TokensUsed int64 + StartedAt time.Time + FinishedAt time.Time +} diff --git a/internal/domain/workflow/task/task.go b/internal/domain/workflow/task/task.go index 1805902db..b5caa5f7e 100644 --- a/internal/domain/workflow/task/task.go +++ b/internal/domain/workflow/task/task.go @@ -53,7 +53,6 @@ type Task struct { WorkflowDefinitionVersion int64 `json:"workflow_definition_version"` WorkflowDefinitionDigest string `json:"workflow_definition_digest"` WorkflowDefinitionYAML string `json:"workflow_definition_yaml"` - Stage string `json:"stage"` Branch string `json:"branch"` Plan string `json:"plan"` Notes string `json:"notes"` diff --git a/internal/domain/workflow/workflow.go b/internal/domain/workflow/workflow.go index 339e1bc36..5e766b9ce 100644 --- a/internal/domain/workflow/workflow.go +++ b/internal/domain/workflow/workflow.go @@ -109,6 +109,11 @@ type TaskContext struct { // Dir/Branch are set by the prepare step. Dir string Branch string + // Stage is the name of the stage currently running, kept here (not + // persisted on Task -- docs/prds/execution-tree-state-machine.md drops + // tasks.stage in favour of the durable StepExecution record StartStep + // writes) purely so park/finish can tag the event they emit with it. + Stage string // BuildSummary is the builder agent's finish summary -- the PR body. BuildSummary string // BuildNoChanges is set when the builder returned StatusPassed but @@ -302,7 +307,7 @@ func Run(ctx context.Context, wf Workflow, tc *TaskContext) { log := tc.Log.With("workflow", wf.Name, "repo", tc.Repo.FullName(), "issue", t.IssueNumber) for _, stage := range wf.Stages { - t.Stage = stage.Name + tc.Stage = stage.Name _ = tc.Store.Update(ctx, t) // Every stage is a StepExecution (docs/prds/execution-tree-state-machine.md): // the store records pending -> running and writes the stage_start event @@ -407,7 +412,7 @@ func finish(ctx context.Context, tc *TaskContext, log *slog.Logger) { } _ = tc.Store.Update(ctx, t) _ = tc.Store.Transition(ctx, t.ID, StatusRunning, tc.Outcome.Status, tc.Outcome.Detail) - tc.Emit(events.KindOutcome, t.Stage, tc.Outcome.Detail, map[string]any{"status": tc.Outcome.Status}) + tc.Emit(events.KindOutcome, tc.Stage, tc.Outcome.Detail, map[string]any{"status": tc.Outcome.Status}) log.Info("workflow finished", "status", tc.Outcome.Status) } @@ -416,12 +421,12 @@ func park(ctx context.Context, tc *TaskContext, reason string) { t.ParkReason = reason _ = tc.Store.Update(ctx, t) _ = tc.Store.Transition(ctx, t.ID, StatusRunning, StatusParked, reason) - tc.Emit(events.KindParked, t.Stage, reason, nil) + tc.Emit(events.KindParked, tc.Stage, reason, nil) // The run's own log is the surface an operator downloads to answer "why did // this park?", and the event above lands on the timeline, which the log // never carries. This is the one place a park's reason is final, so it is // the one place that records it -- the stage names itself in the reason. - tc.Log.Error("task parked", "stage", t.Stage, "reason", reason) + tc.Log.Error("task parked", "stage", tc.Stage, "reason", reason) } func clip(s string, n int) string { diff --git a/internal/gateway/gateway.go b/internal/gateway/gateway.go index 8bf633581..c5e62b328 100644 --- a/internal/gateway/gateway.go +++ b/internal/gateway/gateway.go @@ -712,8 +712,8 @@ func formatTasks(tasks []ChatTaskSummary, now time.Time) string { } fmt.Fprintf(&b, "%s #%d %s%s", icon, t.ID, t.Title, reportLineBreak) fmt.Fprintf(&b, " %s", label) - if stage := workflowStage(t.Workflow, t.Stage); stage != "" { - fmt.Fprintf(&b, " · %s", stage) + if t.Workflow != "" { + fmt.Fprintf(&b, " · %s", t.Workflow) } if t.Attempt > 1 { fmt.Fprintf(&b, " · attempt %d", t.Attempt) @@ -729,22 +729,6 @@ func formatTasks(tasks []ChatTaskSummary, now time.Time) string { return strings.TrimSpace(b.String()) } -// workflowStage joins a task's workflow and stage for display, degrading -// gracefully when either is unknown (e.g. a task that hasn't started its -// first stage yet). -func workflowStage(workflow, stage string) string { - switch { - case workflow == "" && stage == "": - return "" - case stage == "": - return workflow - case workflow == "": - return stage - default: - return workflow + "/" + stage - } -} - type taskStateDisplay struct { icon string label string diff --git a/internal/gateway/gateway_test.go b/internal/gateway/gateway_test.go index d7d52d18f..683646b51 100644 --- a/internal/gateway/gateway_test.go +++ b/internal/gateway/gateway_test.go @@ -250,11 +250,11 @@ func TestFormatTasks(t *testing.T) { want string }{ { - name: "running task shows workflow/stage and age", + name: "running task shows workflow and age", tasks: []ChatTaskSummary{ - {ID: 42, Title: "Fix login bug", Status: taskstate.Running, Workflow: "tdd", Stage: "implement", UpdatedAt: now.Add(-3 * time.Minute)}, + {ID: 42, Title: "Fix login bug", Status: taskstate.Running, Workflow: "tdd", UpdatedAt: now.Add(-3 * time.Minute)}, }, - want: "🗂 Archie tasks\n\n▶ #42 Fix login bug \n Running · tdd/implement · updated 3m ago", + want: "🗂 Archie tasks\n\n▶ #42 Fix login bug \n Running · tdd · updated 3m ago", }, { // The criterion this command was built for: a bare "Running: 1" @@ -262,10 +262,10 @@ func TestFormatTasks(t *testing.T) { // failure loop, and each task's own age is what tells them apart. name: "a stuck running task does not read like one making progress", tasks: []ChatTaskSummary{ - {ID: 5, Title: "Wedged", Status: taskstate.Running, Workflow: "tdd", Stage: "implement", UpdatedAt: now.Add(-47 * time.Minute)}, - {ID: 6, Title: "Working", Status: taskstate.Running, Workflow: "tdd", Stage: "implement", UpdatedAt: now.Add(-20 * time.Second)}, + {ID: 5, Title: "Wedged", Status: taskstate.Running, Workflow: "tdd", UpdatedAt: now.Add(-47 * time.Minute)}, + {ID: 6, Title: "Working", Status: taskstate.Running, Workflow: "tdd", UpdatedAt: now.Add(-20 * time.Second)}, }, - want: "🗂 Archie tasks\n\n▶ #5 Wedged \n Running · tdd/implement · updated 47m ago\n\n▶ #6 Working \n Running · tdd/implement · updated just now", + want: "🗂 Archie tasks\n\n▶ #5 Wedged \n Running · tdd · updated 47m ago\n\n▶ #6 Working \n Running · tdd · updated just now", }, { name: "parked task shows its reason", diff --git a/internal/gateway/task_tools.go b/internal/gateway/task_tools.go index 243284c98..85495cefa 100644 --- a/internal/gateway/task_tools.go +++ b/internal/gateway/task_tools.go @@ -35,7 +35,6 @@ type ChatTaskSummary struct { Title string `json:"title"` Status string `json:"status"` Workflow string `json:"workflow,omitempty"` - Stage string `json:"stage,omitempty"` PRNumber int `json:"pr_number,omitempty"` // Attempt is the task's current retry attempt. 0 or 1 means it has never // been retried; the /tasks command only surfaces this once it is diff --git a/internal/infrastructure/postgres/migrations/0018_drop_tasks_stage.sql b/internal/infrastructure/postgres/migrations/0018_drop_tasks_stage.sql new file mode 100644 index 000000000..31d007cf0 --- /dev/null +++ b/internal/infrastructure/postgres/migrations/0018_drop_tasks_stage.sql @@ -0,0 +1,13 @@ +-- tasks.stage was the one mutable column recording "which stage is this task +-- on", overwritten as workflow.Run advanced and carrying no history: a failed +-- attempt could not say which step failed or what ran before it without +-- replaying the event stream (docs/prds/execution-tree-state-machine.md, +-- "Problem"). step_executions (0017) is now the durable per-step record the +-- dashboard's run detail reads (ListSteps), so this column has no remaining +-- reader. + +-- +goose Up +ALTER TABLE tasks DROP COLUMN stage; + +-- +goose Down +ALTER TABLE tasks ADD COLUMN stage text NOT NULL DEFAULT ''; diff --git a/internal/infrastructure/postgres/postgresdb/call_tasks.sql.go b/internal/infrastructure/postgres/postgresdb/call_tasks.sql.go index 5800758a0..634148908 100644 --- a/internal/infrastructure/postgres/postgresdb/call_tasks.sql.go +++ b/internal/infrastructure/postgres/postgresdb/call_tasks.sql.go @@ -24,7 +24,7 @@ func (q *Queries) CallStatusDetail(ctx context.Context, taskID int64) (string, e const enqueueCallTask = `-- name: EnqueueCallTask :one WITH caller AS ( - SELECT t.id, t.owner, t.repo, t.issue_number, t.title, t.body, t.labels, t.status, t.workflow, t.stage, t.branch, t.plan, t.notes, t.pr_number, t.tokens_used, t.iterations, t.attempt, t.park_reason, t.watch_comment_id, t.park_class, t.remediation_rounds, t.retry_count, t.source, t.identity, t.binding_id, t.binding_version, t.review_payload, t.workflow_definition_version, t.workflow_definition_digest, t.workflow_definition_yaml, t.created_at, t.updated_at, t.review_cursor, t.inputs, t.org_id, t.workspace_id, t.call_parent_task_id, t.call_depth FROM tasks t WHERE t.id = $1 FOR UPDATE + SELECT t.id, t.owner, t.repo, t.issue_number, t.title, t.body, t.labels, t.status, t.workflow, t.branch, t.plan, t.notes, t.pr_number, t.tokens_used, t.iterations, t.attempt, t.park_reason, t.watch_comment_id, t.park_class, t.remediation_rounds, t.retry_count, t.source, t.identity, t.binding_id, t.binding_version, t.review_payload, t.workflow_definition_version, t.workflow_definition_digest, t.workflow_definition_yaml, t.created_at, t.updated_at, t.review_cursor, t.inputs, t.org_id, t.workspace_id, t.call_parent_task_id, t.call_depth FROM tasks t WHERE t.id = $1 FOR UPDATE ) INSERT INTO tasks (owner, repo, issue_number, title, body, labels, workflow, source, identity, org_id, workspace_id, inputs, call_parent_task_id, call_depth) SELECT @@ -41,7 +41,7 @@ SELECT caller.id, caller.call_depth + 1 FROM caller WHERE caller.status = 'running' AND caller.call_depth + 1 <= $7::int -RETURNING id, owner, repo, issue_number, title, body, labels, status, workflow, stage, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth +RETURNING id, owner, repo, issue_number, title, body, labels, status, workflow, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth ` type EnqueueCallTaskParams struct { @@ -84,7 +84,6 @@ func (q *Queries) EnqueueCallTask(ctx context.Context, arg EnqueueCallTaskParams &i.Labels, &i.Status, &i.Workflow, - &i.Stage, &i.Branch, &i.Plan, &i.Notes, diff --git a/internal/infrastructure/postgres/postgresdb/models.go b/internal/infrastructure/postgres/postgresdb/models.go index dccce791e..64fe37b17 100644 --- a/internal/infrastructure/postgres/postgresdb/models.go +++ b/internal/infrastructure/postgres/postgresdb/models.go @@ -348,7 +348,6 @@ type Task struct { Labels string Status string Workflow string - Stage string Branch string Plan string Notes string diff --git a/internal/infrastructure/postgres/postgresdb/steps.sql.go b/internal/infrastructure/postgres/postgresdb/steps.sql.go index 296994dbf..d558f4570 100644 --- a/internal/infrastructure/postgres/postgresdb/steps.sql.go +++ b/internal/infrastructure/postgres/postgresdb/steps.sql.go @@ -157,6 +157,69 @@ func (q *Queries) InterruptAttemptSteps(ctx context.Context, arg InterruptAttemp return items, nil } +const listStepExecutions = `-- name: ListStepExecutions :many +SELECT id, execution_id, attempt, parent_id, depth, kind, name, status, detail, tokens_used, started_at, finished_at +FROM step_executions +WHERE execution_id = $1::bigint AND ($2::bigint = 0 OR attempt = $2::bigint) +ORDER BY attempt, id +` + +type ListStepExecutionsParams struct { + ExecutionID int64 + Attempt int64 +} + +type ListStepExecutionsRow struct { + ID int64 + ExecutionID int64 + Attempt int64 + ParentID pgtype.Int8 + Depth int32 + Kind string + Name string + Status string + Detail string + TokensUsed int64 + StartedAt pgtype.Timestamptz + FinishedAt pgtype.Timestamptz +} + +// attempt = 0 lists every attempt of the execution, oldest first; the index +// (execution_id, attempt, id) makes both this and the single-attempt form a +// straight index scan. +func (q *Queries) ListStepExecutions(ctx context.Context, arg ListStepExecutionsParams) ([]ListStepExecutionsRow, error) { + rows, err := q.db.Query(ctx, listStepExecutions, arg.ExecutionID, arg.Attempt) + if err != nil { + return nil, err + } + defer rows.Close() + var items []ListStepExecutionsRow + for rows.Next() { + var i ListStepExecutionsRow + if err := rows.Scan( + &i.ID, + &i.ExecutionID, + &i.Attempt, + &i.ParentID, + &i.Depth, + &i.Kind, + &i.Name, + &i.Status, + &i.Detail, + &i.TokensUsed, + &i.StartedAt, + &i.FinishedAt, + ); err != nil { + return nil, err + } + items = append(items, i) + } + if err := rows.Err(); err != nil { + return nil, err + } + return items, nil +} + const lockExecutionForStep = `-- name: LockExecutionForStep :one SELECT id, status, org_id, workspace_id, owner, repo, issue_number, workflow, attempt diff --git a/internal/infrastructure/postgres/postgresdb/tasks.sql.go b/internal/infrastructure/postgres/postgresdb/tasks.sql.go index 3954a3b0d..098f43fb1 100644 --- a/internal/infrastructure/postgres/postgresdb/tasks.sql.go +++ b/internal/infrastructure/postgres/postgresdb/tasks.sql.go @@ -28,7 +28,7 @@ func (q *Queries) ArchiveTaskDelete(ctx context.Context, arg ArchiveTaskDeletePa } const beginRemediationTask = `-- name: BeginRemediationTask :execrows -UPDATE tasks SET status = 'queued', workflow = 'remediate', stage = '', park_reason = '', park_class = 'needs_human', review_payload = $2, updated_at = now() +UPDATE tasks SET status = 'queued', workflow = 'remediate', park_reason = '', park_class = 'needs_human', review_payload = $2, updated_at = now() WHERE id = $1 AND status = 'pr_open' ` @@ -48,7 +48,7 @@ func (q *Queries) BeginRemediationTask(ctx context.Context, arg BeginRemediation const claimByIssue = `-- name: ClaimByIssue :one UPDATE tasks SET status = 'running', attempt = attempt + 1, updated_at = now() WHERE owner = $1 AND repo = $2 AND issue_number = $3 AND status = 'queued' -RETURNING id, owner, repo, issue_number, title, body, labels, status, workflow, stage, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth +RETURNING id, owner, repo, issue_number, title, body, labels, status, workflow, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth ` type ClaimByIssueParams struct { @@ -70,7 +70,6 @@ func (q *Queries) ClaimByIssue(ctx context.Context, arg ClaimByIssueParams) (Tas &i.Labels, &i.Status, &i.Workflow, - &i.Stage, &i.Branch, &i.Plan, &i.Notes, @@ -113,7 +112,7 @@ WHERE id = ( FOR UPDATE SKIP LOCKED LIMIT 1 ) -RETURNING id, owner, repo, issue_number, title, body, labels, status, workflow, stage, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth +RETURNING id, owner, repo, issue_number, title, body, labels, status, workflow, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth ` // FOR UPDATE SKIP LOCKED replaces the SQLite single-writer assumption: two @@ -132,7 +131,6 @@ func (q *Queries) ClaimNextTask(ctx context.Context) (Task, error) { &i.Labels, &i.Status, &i.Workflow, - &i.Stage, &i.Branch, &i.Plan, &i.Notes, @@ -270,7 +268,7 @@ VALUES ( 'default' ) ) -RETURNING id, owner, repo, issue_number, title, body, labels, status, workflow, stage, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth +RETURNING id, owner, repo, issue_number, title, body, labels, status, workflow, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth ` type InsertChatTaskParams struct { @@ -308,7 +306,6 @@ func (q *Queries) InsertChatTask(ctx context.Context, arg InsertChatTaskParams) &i.Labels, &i.Status, &i.Workflow, - &i.Stage, &i.Branch, &i.Plan, &i.Notes, @@ -415,7 +412,7 @@ func (q *Queries) ListOpenPRs(ctx context.Context) ([]ListOpenPRsRow, error) { } const listTaskSummaries = `-- name: ListTaskSummaries :many -SELECT id, owner, repo, issue_number, title, status, workflow, stage, +SELECT id, owner, repo, issue_number, title, status, workflow, pr_number, tokens_used, iterations, attempt, park_reason, retry_count, created_at, updated_at, plan, source, identity, binding_id, binding_version FROM tasks ORDER BY updated_at DESC LIMIT $1 @@ -429,7 +426,6 @@ type ListTaskSummariesRow struct { Title string Status string Workflow string - Stage string PrNumber int64 TokensUsed int64 Iterations int64 @@ -465,7 +461,6 @@ func (q *Queries) ListTaskSummaries(ctx context.Context, limit int32) ([]ListTas &i.Title, &i.Status, &i.Workflow, - &i.Stage, &i.PrNumber, &i.TokensUsed, &i.Iterations, @@ -545,7 +540,7 @@ func (q *Queries) RecoverStaleTasks(ctx context.Context) (int64, error) { const requeueTask = `-- name: RequeueTask :execrows UPDATE tasks SET status = 'queued', workflow = CASE WHEN $1::text = '' THEN workflow ELSE $1::text END, - stage = '', park_reason = '', park_class = 'needs_human', updated_at = now() + park_reason = '', park_class = 'needs_human', updated_at = now() WHERE id = $2 AND status = $3 ` @@ -566,7 +561,7 @@ func (q *Queries) RequeueTask(ctx context.Context, arg RequeueTaskParams) (int64 const retryTask = `-- name: RetryTask :execrows UPDATE tasks SET status = 'queued', retry_count = retry_count + 1, workflow = CASE WHEN $1::text = '' THEN workflow ELSE $1::text END, - stage = '', park_reason = '', park_class = 'needs_human', updated_at = now() + park_reason = '', park_class = 'needs_human', updated_at = now() WHERE id = $2 AND status = $3 ` @@ -625,7 +620,7 @@ func (q *Queries) StampTaskBinding(ctx context.Context, arg StampTaskBindingPara } const taskByID = `-- name: TaskByID :one -SELECT id, owner, repo, issue_number, title, body, labels, status, workflow, stage, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth FROM tasks WHERE id = $1 +SELECT id, owner, repo, issue_number, title, body, labels, status, workflow, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth FROM tasks WHERE id = $1 ` func (q *Queries) TaskByID(ctx context.Context, id int64) (Task, error) { @@ -641,7 +636,6 @@ func (q *Queries) TaskByID(ctx context.Context, id int64) (Task, error) { &i.Labels, &i.Status, &i.Workflow, - &i.Stage, &i.Branch, &i.Plan, &i.Notes, @@ -675,7 +669,7 @@ func (q *Queries) TaskByID(ctx context.Context, id int64) (Task, error) { } const taskByIssue = `-- name: TaskByIssue :one -SELECT id, owner, repo, issue_number, title, body, labels, status, workflow, stage, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth FROM tasks WHERE owner = $1 AND repo = $2 AND issue_number = $3 +SELECT id, owner, repo, issue_number, title, body, labels, status, workflow, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth FROM tasks WHERE owner = $1 AND repo = $2 AND issue_number = $3 ` type TaskByIssueParams struct { @@ -697,7 +691,6 @@ func (q *Queries) TaskByIssue(ctx context.Context, arg TaskByIssueParams) (Task, &i.Labels, &i.Status, &i.Workflow, - &i.Stage, &i.Branch, &i.Plan, &i.Notes, @@ -731,7 +724,7 @@ func (q *Queries) TaskByIssue(ctx context.Context, arg TaskByIssueParams) (Task, } const taskByPR = `-- name: TaskByPR :one -SELECT id, owner, repo, issue_number, title, body, labels, status, workflow, stage, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth FROM tasks WHERE owner = $1 AND repo = $2 AND pr_number = $3 AND status = $4 +SELECT id, owner, repo, issue_number, title, body, labels, status, workflow, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth FROM tasks WHERE owner = $1 AND repo = $2 AND pr_number = $3 AND status = $4 ` type TaskByPRParams struct { @@ -762,7 +755,6 @@ func (q *Queries) TaskByPR(ctx context.Context, arg TaskByPRParams) (Task, error &i.Labels, &i.Status, &i.Workflow, - &i.Stage, &i.Branch, &i.Plan, &i.Notes, @@ -847,11 +839,11 @@ func (q *Queries) UpdateReviewPayloadTask(ctx context.Context, arg UpdateReviewP } const updateTask = `-- name: UpdateTask :exec -UPDATE tasks SET workflow = $2, stage = $3, branch = $4, plan = $5, notes = $6, - pr_number = $7, tokens_used = $8, iterations = $9, park_reason = $10, - watch_comment_id = $11, retry_count = $12, remediation_rounds = $13, - review_payload = $14, workflow_definition_version = $15, - workflow_definition_digest = $16, workflow_definition_yaml = $17, +UPDATE tasks SET workflow = $2, branch = $3, plan = $4, notes = $5, + pr_number = $6, tokens_used = $7, iterations = $8, park_reason = $9, + watch_comment_id = $10, retry_count = $11, remediation_rounds = $12, + review_payload = $13, workflow_definition_version = $14, + workflow_definition_digest = $15, workflow_definition_yaml = $16, updated_at = now() WHERE id = $1 ` @@ -859,7 +851,6 @@ WHERE id = $1 type UpdateTaskParams struct { ID int64 Workflow string - Stage string Branch string Plan string Notes string @@ -880,7 +871,6 @@ func (q *Queries) UpdateTask(ctx context.Context, arg UpdateTaskParams) error { _, err := q.db.Exec(ctx, updateTask, arg.ID, arg.Workflow, - arg.Stage, arg.Branch, arg.Plan, arg.Notes, diff --git a/internal/infrastructure/postgres/queries/steps.sql b/internal/infrastructure/postgres/queries/steps.sql index 0d65260a2..6d6dd5c5a 100644 --- a/internal/infrastructure/postgres/queries/steps.sql +++ b/internal/infrastructure/postgres/queries/steps.sql @@ -61,3 +61,12 @@ UPDATE step_executions SET status = 'interrupted', finished_at = now() WHERE execution_id = $1 AND attempt = $2 AND status = 'running' RETURNING id, name; + +-- name: ListStepExecutions :many +-- attempt = 0 lists every attempt of the execution, oldest first; the index +-- (execution_id, attempt, id) makes both this and the single-attempt form a +-- straight index scan. +SELECT id, execution_id, attempt, parent_id, depth, kind, name, status, detail, tokens_used, started_at, finished_at +FROM step_executions +WHERE execution_id = @execution_id::bigint AND (@attempt::bigint = 0 OR attempt = @attempt::bigint) +ORDER BY attempt, id; diff --git a/internal/infrastructure/postgres/queries/tasks.sql b/internal/infrastructure/postgres/queries/tasks.sql index f69218714..8a4c05e46 100644 --- a/internal/infrastructure/postgres/queries/tasks.sql +++ b/internal/infrastructure/postgres/queries/tasks.sql @@ -29,7 +29,7 @@ SELECT * FROM tasks WHERE owner = $1 AND repo = $2 AND pr_number = $3 AND status -- The dashboard's list. This projection is deliberately narrow: Plan gates -- the "Decision required" panel and Source labels the row, and widening it -- back would send rows without them. -SELECT id, owner, repo, issue_number, title, status, workflow, stage, +SELECT id, owner, repo, issue_number, title, status, workflow, pr_number, tokens_used, iterations, attempt, park_reason, retry_count, created_at, updated_at, plan, source, identity, binding_id, binding_version FROM tasks ORDER BY updated_at DESC LIMIT $1; @@ -65,11 +65,11 @@ RETURNING *; UPDATE tasks SET binding_id = $2, binding_version = $3, inputs = $4 WHERE id = $1; -- name: UpdateTask :exec -UPDATE tasks SET workflow = $2, stage = $3, branch = $4, plan = $5, notes = $6, - pr_number = $7, tokens_used = $8, iterations = $9, park_reason = $10, - watch_comment_id = $11, retry_count = $12, remediation_rounds = $13, - review_payload = $14, workflow_definition_version = $15, - workflow_definition_digest = $16, workflow_definition_yaml = $17, +UPDATE tasks SET workflow = $2, branch = $3, plan = $4, notes = $5, + pr_number = $6, tokens_used = $7, iterations = $8, park_reason = $9, + watch_comment_id = $10, retry_count = $11, remediation_rounds = $12, + review_payload = $13, workflow_definition_version = $14, + workflow_definition_digest = $15, workflow_definition_yaml = $16, updated_at = now() WHERE id = $1; @@ -129,7 +129,7 @@ WHERE owner = $1 AND repo = $2 AND issue_number = $3 AND status = 'queued' RETURNING *; -- name: BeginRemediationTask :execrows -UPDATE tasks SET status = 'queued', workflow = 'remediate', stage = '', park_reason = '', park_class = 'needs_human', review_payload = $2, updated_at = now() +UPDATE tasks SET status = 'queued', workflow = 'remediate', park_reason = '', park_class = 'needs_human', review_payload = $2, updated_at = now() WHERE id = $1 AND status = 'pr_open'; -- name: UpdateReviewPayloadTask :execrows @@ -143,13 +143,13 @@ WHERE id = $1 AND status = 'pr_open'; -- name: RequeueTask :execrows UPDATE tasks SET status = 'queued', workflow = CASE WHEN @workflow::text = '' THEN workflow ELSE @workflow::text END, - stage = '', park_reason = '', park_class = 'needs_human', updated_at = now() + park_reason = '', park_class = 'needs_human', updated_at = now() WHERE id = @id AND status = @from_status; -- name: RetryTask :execrows UPDATE tasks SET status = 'queued', retry_count = retry_count + 1, workflow = CASE WHEN @workflow::text = '' THEN workflow ELSE @workflow::text END, - stage = '', park_reason = '', park_class = 'needs_human', updated_at = now() + park_reason = '', park_class = 'needs_human', updated_at = now() WHERE id = @id AND status = @from_status; -- name: ArchiveTaskDelete :execrows diff --git a/internal/infrastructure/postgres/steps.go b/internal/infrastructure/postgres/steps.go index b80bf7fae..43698ecf7 100644 --- a/internal/infrastructure/postgres/steps.go +++ b/internal/infrastructure/postgres/steps.go @@ -224,6 +224,41 @@ func stepEventData(to taskstate.StepStatus, durationMS int64, detail string) map return data } +// ListSteps reads one execution's recorded steps, every attempt oldest first +// when attempt is 0, or just the one it names. It is the dashboard run +// detail's authoritative source (docs/prds/execution-tree-state-machine.md), +// replacing the fold over stage_start/stage_finish events tasks.stage used to +// back -- unlike StartStep/FinishStep, this is a plain read with no +// transition to guard, so it takes no transaction. +func (s *Store) ListSteps(ctx context.Context, executionID int64, attempt int) ([]task.StepExecution, error) { + rows, err := s.queries().ListStepExecutions(ctx, postgresdb.ListStepExecutionsParams{ + ExecutionID: executionID, Attempt: int64(attempt), + }) + if err != nil { + return nil, err + } + steps := make([]task.StepExecution, len(rows)) + for i, r := range rows { + steps[i] = task.StepExecution{ + ID: r.ID, ExecutionID: r.ExecutionID, Attempt: int(r.Attempt), + ParentID: nullableInt64(r.ParentID), Depth: int(r.Depth), + Kind: r.Kind, Name: r.Name, Status: taskstate.StepStatus(r.Status), + Detail: r.Detail, TokensUsed: r.TokensUsed, + StartedAt: r.StartedAt.Time, FinishedAt: r.FinishedAt.Time, + } + } + return steps, nil +} + +// nullableInt64 reads a pgtype.Int8 the way stepParentID wrote it: absent +// means 0, a stage at the tree's root. +func nullableInt64(v pgtype.Int8) int64 { + if !v.Valid { + return 0 + } + return v.Int64 +} + // stepParentID encodes the nullable parent id an insert takes: 0 means "no // parent" -- a stage at the tree's root -- which the column stores as NULL // rather than as a reference to a row that does not exist. diff --git a/internal/infrastructure/postgres/steps_test.go b/internal/infrastructure/postgres/steps_test.go index 167a52ab5..5ed7a7b9c 100644 --- a/internal/infrastructure/postgres/steps_test.go +++ b/internal/infrastructure/postgres/steps_test.go @@ -237,6 +237,71 @@ func TestFinishStepRefusesStaleAndForeign(t *testing.T) { } } +// TestListStepsOrdersByAttemptThenID is the dashboard run detail's +// authoritative read (docs/prds/execution-tree-state-machine.md): every +// attempt in one call when attempt is 0, one attempt's steps when it names +// one, both ordered oldest first. +func TestListStepsOrdersByAttemptThenID(t *testing.T) { + s := storeFor(t) + execution := runningExecution(t, s) + + firstStepID, _, err := s.StartStep(t.Context(), task.StepStart{ + ExecutionID: execution.ID, Attempt: execution.Attempt, Kind: task.StepKindStage, Name: "plan", + }) + if err != nil { + t.Fatalf("StartStep: %v", err) + } + if _, err := s.FinishStep(t.Context(), task.StepFinish{ + StepID: firstStepID, ExecutionID: execution.ID, + From: taskstate.StepRunning, To: taskstate.StepSucceeded, Detail: "planned", TokensUsed: 42, + }); err != nil { + t.Fatalf("FinishStep: %v", err) + } + secondStepID, _, err := s.StartStep(t.Context(), task.StepStart{ + ExecutionID: execution.ID, Attempt: execution.Attempt, Kind: task.StepKindStage, Name: "implement", + }) + if err != nil { + t.Fatalf("StartStep: %v", err) + } + + steps, err := s.ListSteps(t.Context(), execution.ID, execution.Attempt) + if err != nil { + t.Fatalf("ListSteps: %v", err) + } + if len(steps) != 2 { + t.Fatalf("ListSteps len = %d, want 2", len(steps)) + } + if steps[0].ID != firstStepID || steps[0].Name != "plan" || steps[0].Status != taskstate.StepSucceeded || + steps[0].Detail != "planned" || steps[0].TokensUsed != 42 || steps[0].StartedAt.IsZero() || steps[0].FinishedAt.IsZero() { + t.Fatalf("steps[0] = %+v, want the finished plan step", steps[0]) + } + if steps[1].ID != secondStepID || steps[1].Name != "implement" || steps[1].Status != taskstate.StepRunning || + steps[1].StartedAt.IsZero() || !steps[1].FinishedAt.IsZero() { + t.Fatalf("steps[1] = %+v, want the still-running implement step", steps[1]) + } + + // attempt 0 lists every attempt; there is only one here, so the result is + // the same, proving the "list everything" branch is reachable and correct + // rather than coincidentally equal to a hardcoded attempt. + all, err := s.ListSteps(t.Context(), execution.ID, 0) + if err != nil { + t.Fatalf("ListSteps(attempt=0): %v", err) + } + if len(all) != 2 { + t.Fatalf("ListSteps(attempt=0) len = %d, want 2", len(all)) + } + + // A different execution's steps never appear, however queried. + other := runningExecution(t, s) + otherSteps, err := s.ListSteps(t.Context(), other.ID, 0) + if err != nil { + t.Fatalf("ListSteps other execution: %v", err) + } + if len(otherSteps) != 0 { + t.Fatalf("ListSteps other execution = %+v, want none", otherSteps) + } +} + // A late FinishStep for a step another path already finished is stale, the // PRD's named wire behaviour: errors.Is matches on the client too. func TestFinishStepOffTablePairIsIllegalOverTheTable(t *testing.T) { diff --git a/internal/infrastructure/postgres/store.go b/internal/infrastructure/postgres/store.go index 41c7af997..57401dbee 100644 --- a/internal/infrastructure/postgres/store.go +++ b/internal/infrastructure/postgres/store.go @@ -93,7 +93,6 @@ func taskFromRow(t postgresdb.Task) *workflow.Task { WorkflowDefinitionVersion: t.WorkflowDefinitionVersion, WorkflowDefinitionDigest: t.WorkflowDefinitionDigest, WorkflowDefinitionYAML: t.WorkflowDefinitionYaml, - Stage: t.Stage, Branch: t.Branch, Plan: t.Plan, Notes: t.Notes, @@ -282,7 +281,6 @@ func (s *Store) Update(ctx context.Context, t *workflow.Task) error { return s.queries().UpdateTask(ctx, postgresdb.UpdateTaskParams{ ID: t.ID, Workflow: t.Workflow, - Stage: t.Stage, Branch: t.Branch, Plan: t.Plan, Notes: t.Notes, @@ -527,7 +525,7 @@ func (s *Store) Tasks(ctx context.Context, limit int) ([]workflow.Task, error) { for _, r := range rows { tasks = append(tasks, workflow.Task{ ID: r.ID, Owner: r.Owner, Repo: r.Repo, IssueNumber: int(r.IssueNumber), - Title: r.Title, Status: r.Status, Workflow: r.Workflow, Stage: r.Stage, + Title: r.Title, Status: r.Status, Workflow: r.Workflow, PRNumber: int(r.PrNumber), TokensUsed: int(r.TokensUsed), Iterations: int(r.Iterations), Attempt: int(r.Attempt), ParkReason: r.ParkReason, RetryCount: int(r.RetryCount), CreatedAt: r.CreatedAt, UpdatedAt: r.UpdatedAt, Plan: r.Plan, Source: r.Source, diff --git a/internal/infrastructure/staterpc/client.go b/internal/infrastructure/staterpc/client.go index 63935bc60..8fd699fd1 100644 --- a/internal/infrastructure/staterpc/client.go +++ b/internal/infrastructure/staterpc/client.go @@ -155,6 +155,18 @@ func (c *Client) FinishStep(ctx context.Context, s task.StepFinish) (events.Even return event, nil } +func (c *Client) ListSteps(ctx context.Context, executionID int64, attempt int) ([]task.StepExecution, error) { + r, err := c.client.ListSteps(ctx, &pb.ListStepsRequest{ExecutionId: executionID, Attempt: int64(attempt)}) + if err != nil { + return nil, unmapError(err) + } + steps := make([]task.StepExecution, len(r.Steps)) + for i, s := range r.Steps { + steps[i] = stepExecutionValue(s) + } + return steps, nil +} + func (c *Client) Update(ctx context.Context, t *task.Task) error { _, err := c.client.Update(ctx, &pb.UpdateRequest{Task: taskProto(t)}) return unmapError(err) diff --git a/internal/infrastructure/staterpc/server.go b/internal/infrastructure/staterpc/server.go index 2b18b0736..3c77a7add 100644 --- a/internal/infrastructure/staterpc/server.go +++ b/internal/infrastructure/staterpc/server.go @@ -106,6 +106,11 @@ type Deps struct { // an operator action's guarded write over the execution and its steps. // Optional: nil answers the RPC with codes.Unavailable. Canceller storecontract.ExecutionCanceller + // StepReader lists an execution's recorded steps for the dashboard/API + // (docs/prds/execution-tree-state-machine.md): a plain read, never + // task-scoped-grant callable. Optional: nil answers ListSteps with + // codes.Unavailable. + StepReader storecontract.StepReader // PlaybookDispatcher is the side-effecting-action idempotency ledger // (docs/prds/eda-playbook-engine.md gap 2). Optional: nil disables the // two playbook dispatch RPCs with codes.Unavailable. @@ -247,6 +252,17 @@ func (s *server) FinishStep(ctx context.Context, r *pb.FinishStepRequest) (*pb.F return &pb.FinishStepResponse{Event: eventProto(event)}, nil } +func (s *server) ListSteps(ctx context.Context, r *pb.ListStepsRequest) (*pb.ListStepsResponse, error) { + if s.deps.StepReader == nil { + return nil, status.Error(codes.Unavailable, "step reader unavailable") + } + steps, err := s.deps.StepReader.ListSteps(ctx, r.ExecutionId, int(r.Attempt)) + if err != nil { + return nil, s.logErr("ListSteps", err) + } + return &pb.ListStepsResponse{Steps: mapValues(steps, stepExecutionProto)}, nil +} + func (s *server) Update(ctx context.Context, r *pb.UpdateRequest) (*pb.UpdateResponse, error) { if r.Task == nil { return nil, status.Error(codes.InvalidArgument, "task is required") diff --git a/internal/infrastructure/staterpc/values.go b/internal/infrastructure/staterpc/values.go index 7f12b8179..2f9f8f9dc 100644 --- a/internal/infrastructure/staterpc/values.go +++ b/internal/infrastructure/staterpc/values.go @@ -22,6 +22,7 @@ import ( "github.com/samcharles93/archie-core/internal/domain/workflow/task" "github.com/samcharles93/archie-core/internal/events" "github.com/samcharles93/archie-core/internal/logging" + "github.com/samcharles93/archie-core/internal/taskstate" ) func timestamp(t time.Time) *timestamppb.Timestamp { @@ -65,7 +66,7 @@ func taskProto(t *task.Task) *pb.Task { //nolint:dupl // mirror-image field-by-f return &pb.Task{ Id: t.ID, Owner: t.Owner, Repo: t.Repo, IssueNumber: int64(t.IssueNumber), Title: t.Title, Body: t.Body, Labels: t.Labels, Status: t.Status, - Workflow: t.Workflow, Stage: t.Stage, Branch: t.Branch, Plan: t.Plan, Notes: t.Notes, + Workflow: t.Workflow, Branch: t.Branch, Plan: t.Plan, Notes: t.Notes, PrNumber: int64(t.PRNumber), TokensUsed: int64(t.TokensUsed), Iterations: int64(t.Iterations), Attempt: int64(t.Attempt), ParkReason: t.ParkReason, RetryCount: int64(t.RetryCount), WatchCommentId: t.WatchCommentID, Source: t.Source, Identity: t.Identity, @@ -92,7 +93,7 @@ func taskValue(t *pb.Task) *task.Task { //nolint:dupl // see taskProto above return &task.Task{ ID: t.Id, Owner: t.Owner, Repo: t.Repo, IssueNumber: int(t.IssueNumber), Title: t.Title, Body: t.Body, Labels: t.Labels, Status: t.Status, - Workflow: t.Workflow, Stage: t.Stage, Branch: t.Branch, Plan: t.Plan, Notes: t.Notes, + Workflow: t.Workflow, Branch: t.Branch, Plan: t.Plan, Notes: t.Notes, PRNumber: int(t.PrNumber), TokensUsed: int(t.TokensUsed), Iterations: int(t.Iterations), Attempt: int(t.Attempt), ParkReason: t.ParkReason, RetryCount: int(t.RetryCount), WatchCommentID: t.WatchCommentId, Source: t.Source, Identity: t.Identity, @@ -306,6 +307,27 @@ func workflowStatValue(w *pb.WorkflowStat) storecontract.WorkflowStat { } } +func stepExecutionProto(s task.StepExecution) *pb.StepExecution { + return &pb.StepExecution{ + Id: s.ID, ExecutionId: s.ExecutionID, Attempt: int64(s.Attempt), + ParentId: s.ParentID, Depth: int32(s.Depth), Kind: s.Kind, Name: s.Name, + Status: string(s.Status), Detail: s.Detail, TokensUsed: s.TokensUsed, + StartedAt: timestamp(s.StartedAt), FinishedAt: timestamp(s.FinishedAt), + } +} + +func stepExecutionValue(s *pb.StepExecution) task.StepExecution { + if s == nil { + return task.StepExecution{} + } + return task.StepExecution{ + ID: s.Id, ExecutionID: s.ExecutionId, Attempt: int(s.Attempt), + ParentID: s.ParentId, Depth: int(s.Depth), Kind: s.Kind, Name: s.Name, + Status: taskstate.StepStatus(s.Status), Detail: s.Detail, TokensUsed: s.TokensUsed, + StartedAt: timeValue(s.StartedAt), FinishedAt: timeValue(s.FinishedAt), + } +} + func stageStatProto(s storecontract.StageStat) *pb.StageStat { return &pb.StageStat{Workflow: s.Workflow, Stage: s.Stage, Runs: int64(s.Runs), AvgMs: int64(s.AvgMs), Errors: int64(s.Errors)} } diff --git a/internal/infrastructure/taskactions/store.go b/internal/infrastructure/taskactions/store.go index 08178b2ac..b182acd99 100644 --- a/internal/infrastructure/taskactions/store.go +++ b/internal/infrastructure/taskactions/store.go @@ -17,7 +17,7 @@ func (s Store) TaskByID(ctx context.Context, id int64) (*taskactions.Task, error if err != nil || t == nil { return nil, err } - return &taskactions.Task{ID: t.ID, Owner: t.Owner, Repo: t.Repo, Identity: t.Identity, Status: t.Status, Stage: t.Stage, ParkReason: t.ParkReason, IssueNumber: t.IssueNumber, RetryCount: t.RetryCount, Attempt: t.Attempt, ForgeBacked: t.IsForgeBacked()}, nil + return &taskactions.Task{ID: t.ID, Owner: t.Owner, Repo: t.Repo, Identity: t.Identity, Status: t.Status, ParkReason: t.ParkReason, IssueNumber: t.IssueNumber, RetryCount: t.RetryCount, Attempt: t.Attempt, ForgeBacked: t.IsForgeBacked()}, nil } // CancelExecution delegates to the store's one cancel path diff --git a/internal/webui/api_tasks_attempts.go b/internal/webui/api_tasks_attempts.go index 1882307dd..e8893319a 100644 --- a/internal/webui/api_tasks_attempts.go +++ b/internal/webui/api_tasks_attempts.go @@ -9,6 +9,7 @@ import ( "github.com/samcharles93/archie-core/internal/domain/workflow/task" "github.com/samcharles93/archie-core/internal/events" + "github.com/samcharles93/archie-core/internal/taskstate" ) // Stage/attempt statuses the attempt rail reports. They are one vocabulary @@ -66,7 +67,12 @@ type taskStageView struct { } // handleTaskAttempts serves the stage rail: one task's attempts, each with the -// stages it recorded. +// stages it recorded. Attempt bounds, event counts and which attempt numbers +// exist still come from the task's events (an attempt can carry events with +// no step, e.g. agent calls, so events remain the complete attempt index); +// the stages themselves are step_executions, the authoritative record +// (docs/prds/execution-tree-state-machine.md), not a fold over +// stage_start/stage_finish events. func (s *Server) handleTaskAttempts(w http.ResponseWriter, r *http.Request) { t, ok := s.taskByPathID(w, r) if !ok { @@ -77,7 +83,15 @@ func (s *Server) handleTaskAttempts(w http.ResponseWriter, r *http.Request) { http.Error(w, err.Error(), http.StatusInternalServerError) return } - attempts, unattributed := attemptsFromEvents(evs, t.Status, t.Attempt) + var steps []task.StepExecution + if s.Steps != nil { + steps, err = s.Steps.ListSteps(r.Context(), t.ID, 0) + if err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } + } + attempts, unattributed := attemptsFromEvents(evs, steps, t.Status, t.Attempt) writeJSON(w, taskAttemptsView{ TaskID: t.ID, CurrentAttempt: t.Attempt, @@ -143,7 +157,7 @@ func (s *Server) taskAttemptTarget(w http.ResponseWriter, r *http.Request) (*tas // unattributed -- every row written before the column existed and every // deliberately task-agnostic producer carries it -- so grouping them would // present unrelated activity as attempt zero's rail. -func attemptsFromEvents(evs []events.Event, taskStatus string, currentAttempt int) ([]taskAttemptView, int) { +func attemptsFromEvents(evs []events.Event, steps []task.StepExecution, taskStatus string, currentAttempt int) ([]taskAttemptView, int) { grouped := make(map[int][]events.Event) numbers := make([]int, 0, 4) unattributed := 0 @@ -161,21 +175,34 @@ func attemptsFromEvents(evs []events.Event, taskStatus string, currentAttempt in attempts := make([]taskAttemptView, 0, len(numbers)) for _, number := range numbers { - attempts = append(attempts, attemptRail(number, grouped[number], taskStatus, currentAttempt)) + attempts = append(attempts, attemptRail(number, grouped[number], stepsForAttempt(steps, number), taskStatus, currentAttempt)) } return attempts, unattributed } -// attemptRail derives one attempt's status, bounds and stages from its events. -func attemptRail(number int, evs []events.Event, taskStatus string, currentAttempt int) taskAttemptView { +// stepsForAttempt filters ListSteps' full-execution result to one attempt's +// steps, in the order the query already returns them (attempt, id). +func stepsForAttempt(steps []task.StepExecution, attempt int) []task.StepExecution { + var out []task.StepExecution + for _, s := range steps { + if s.Attempt == attempt { + out = append(out, s) + } + } + return out +} + +// attemptRail derives one attempt's status and bounds from its events, and +// its stages from its recorded StepExecutions. +func attemptRail(number int, evs []events.Event, steps []task.StepExecution, taskStatus string, currentAttempt int) taskAttemptView { // The task's own record is the only honest source for "is this still - // happening": an unpaired start on any other attempt ended without + // happening": a step still running on any other attempt ended without // finishing -- parked, retried, crashed or restarted -- so it is reported // as interrupted rather than left looking permanently in flight. inFlight := number == currentAttempt && taskStatus == task.StatusRunning first, last := attemptBounds(evs) - stages := foldStages(evs, inFlight) + stages := stageViewsFromSteps(steps, inFlight) attempt := taskAttemptView{ Attempt: number, Status: attemptStatus(stages, inFlight), @@ -215,34 +242,57 @@ func attemptBounds(evs []events.Event) (first, last time.Time) { return first, last } -// foldStages builds an attempt's ordered stage occurrences. A stage start is -// folded as an OPEN stage (status empty) until a matching finish closes it; -// resolving what is left needs the task's own record, so an open stage is -// running only while the daemon is executing this attempt and interrupted -// otherwise. -func foldStages(evs []events.Event, inFlight bool) []taskStageView { +// stageViewsFromSteps builds an attempt's ordered stage occurrences directly +// from its recorded StepExecutions -- the authoritative record +// (docs/prds/execution-tree-state-machine.md), not a fold over +// stage_start/stage_finish events. Only kind "stage" steps are shown: agent +// and call steps are the tree's own detail, not this rail's. +func stageViewsFromSteps(steps []task.StepExecution, inFlight bool) []taskStageView { stages := []taskStageView{} - for _, e := range evs { - switch e.Kind { - case events.KindStageStart: - started := e.At - stages = append(stages, taskStageView{Name: e.Stage, Seq: len(stages), StartedAt: &started}) - case events.KindStageFinish: - stages = finishStage(stages, e) - } - } - for i := range stages { - if stages[i].Status != "" { + for _, s := range steps { + if s.Kind != task.StepKindStage { continue } - stages[i].Status = attemptStatusInterrupted - if inFlight { - stages[i].Status = attemptStatusRunning + view := taskStageView{Name: s.Name, Seq: len(stages), Status: mapStepStatus(s.Status, inFlight)} + if s.Status == taskstate.StepFailed { + view.Error = s.Detail } + if !s.StartedAt.IsZero() { + started := s.StartedAt + view.StartedAt = &started + } + if !s.FinishedAt.IsZero() { + duration := s.FinishedAt.Sub(s.StartedAt).Milliseconds() + view.DurationMS = &duration + } + stages = append(stages, view) } return stages } +// mapStepStatus reads the rail's status vocabulary off a step's own recorded +// status. A step still recorded running past this attempt -- the daemon +// crashed or restarted without marking it -- reads interrupted rather than +// running: RecoverStale is what corrects the row itself, and until it runs +// this is the honest read of a stale one. +func mapStepStatus(status taskstate.StepStatus, inFlight bool) string { + switch status { + case taskstate.StepSucceeded: + return attemptStatusOK + case taskstate.StepFailed: + return attemptStatusFailed + case taskstate.StepCancelled, taskstate.StepInterrupted: + return attemptStatusInterrupted + case taskstate.StepRunning: + if inFlight { + return attemptStatusRunning + } + return attemptStatusInterrupted + default: + return attemptStatusUnknown + } +} + // attemptStatus reads one status off an attempt's stages. The task's own record // outranks the events: an attempt the daemon is executing right now is running // whatever its events have recorded so far -- including the ones that have @@ -267,72 +317,6 @@ func attemptStatus(stages []taskStageView, inFlight bool) string { } } -// finishStage applies one stage_finish event, closing the earliest still-open -// stage of the same name. A finish with no matching start still yields the -// stage -- with no start time rather than an invented one -- because the stage -// demonstrably ran and dropping it would hide a failure. -func finishStage(stages []taskStageView, e events.Event) []taskStageView { - status, errText := stageOutcome(e.Data) - recorded, hasRecorded := durationMillis(e.Data["duration_ms"]) - - idx := -1 - for i := range stages { - if stages[i].Name == e.Stage && stages[i].Status == "" { - idx = i - break - } - } - if idx < 0 { - stages = append(stages, taskStageView{Name: e.Stage, Seq: len(stages)}) - idx = len(stages) - 1 - } - stages[idx].Status = status - stages[idx].Error = errText - switch { - case hasRecorded: - // The producer's own measurement of the stage body, preferred over the - // gap between two event timestamps. - stages[idx].DurationMS = &recorded - case stages[idx].StartedAt != nil && !e.At.IsZero(): - span := e.At.Sub(*stages[idx].StartedAt).Milliseconds() - stages[idx].DurationMS = &span - } - return stages -} - -// stageOutcome reads a stage_finish event's own verdict. An interrupted finish -// is interrupted even though it also carries the cancellation error text; a -// non-empty error is a failure; anything else is ok. There is no exit code -// anywhere in this system, so no stage is ever badged as passing -- the status -// reports how the stage ended, not how well it went. -func stageOutcome(data map[string]any) (status, errText string) { - errText, _ = data["error"].(string) - if interrupted, _ := data["interrupted"].(bool); interrupted { - return attemptStatusInterrupted, errText - } - if errText != "" { - return attemptStatusFailed, errText - } - return attemptStatusOK, "" -} - -// durationMillis reads a millisecond duration a producer recorded in an event's -// data. A value that crossed JSON is float64 and one built in this process is -// an integer, so both spellings are accepted; anything else is reported as "not -// recorded" rather than as zero. -func durationMillis(v any) (int64, bool) { - switch n := v.(type) { - case int: - return int64(n), true - case int64: - return n, true - case float64: - return int64(n), true - default: - return 0, false - } -} - func anyStageStatus(stages []taskStageView, status string) bool { for _, s := range stages { if s.Status == status { diff --git a/internal/webui/api_tasks_attempts_test.go b/internal/webui/api_tasks_attempts_test.go index 7e7aa168f..39be10cb9 100644 --- a/internal/webui/api_tasks_attempts_test.go +++ b/internal/webui/api_tasks_attempts_test.go @@ -1,6 +1,7 @@ package webui import ( + "context" "encoding/json" "fmt" "net/http" @@ -11,19 +12,29 @@ import ( "time" "github.com/samcharles93/archie-core/internal/domain/workflow" + "github.com/samcharles93/archie-core/internal/domain/workflow/task" "github.com/samcharles93/archie-core/internal/events" + "github.com/samcharles93/archie-core/internal/taskstate" ) +// stepWriter is StepRecorder, asserted against srv.Store here rather than +// widened onto storecontract.TaskStore: the dashboard never writes a step +// itself, only reads them (Server.Steps, storecontract.StepReader), and this +// test needs real rows to exercise the read against. +type stepWriter interface { + StartStep(ctx context.Context, s task.StepStart) (int64, events.Event, error) + FinishStep(ctx context.Context, s task.StepFinish) (events.Event, error) +} + // railBase is the fixed clock the rail fixtures hang off, so every timestamp // and duration asserted below is a literal rather than a tolerance. var railBase = time.Date(2026, 9, 18, 7, 0, 0, 0, time.UTC) -func stageStartEvent(taskID int64, attempt int, stage string, at time.Time) events.Event { - return events.Event{Kind: events.KindStageStart, TaskID: taskID, Attempt: attempt, Stage: stage, At: at} -} - -func stageFinishEvent(taskID int64, attempt int, stage string, at time.Time, data map[string]any) events.Event { - return events.Event{Kind: events.KindStageFinish, TaskID: taskID, Attempt: attempt, Stage: stage, At: at, Data: data} +// attemptEvent stands in for the events that still drive attempt bounds and +// counts (attemptsFromEvents), independent of the stage rail those events +// used to also back. +func attemptEvent(taskID int64, attempt int, at time.Time) events.Event { + return events.Event{Kind: events.KindAgentFinish, TaskID: taskID, Attempt: attempt, At: at} } func insertTaskEvent(t *testing.T, srv *Server, ev events.Event) { @@ -33,6 +44,16 @@ func insertTaskEvent(t *testing.T, srv *Server, ev events.Event) { } } +// stageStep is a fixture StepExecution the pure-function test builds by +// hand -- no store round trip, since stageViewsFromSteps operates on +// task.StepExecution values directly. +func stageStep(name string, attempt int, status taskstate.StepStatus, startedAt, finishedAt time.Time, detail string) task.StepExecution { + return task.StepExecution{ + Attempt: attempt, Kind: task.StepKindStage, Name: name, Status: status, + StartedAt: startedAt, FinishedAt: finishedAt, Detail: detail, + } +} + // getTaskAPI issues one task-detail request through the real mux. A route that // is not registered falls through to the SPA asset handler and answers 200 with // an HTML page, so using the mux makes a missing registration fail the shape @@ -91,26 +112,6 @@ func twoAttemptTask(t *testing.T, srv *Server) *workflow.Task { // summarizeAttemptRail renders a folded rail as one line per attempt so a table // case states the derivation it expects without a struct literal per stage: // "attempt:status[name:status:duration[#error][@nostart],...] duration". -func summarizeAttemptRail(attempts []taskAttemptView) string { - lines := make([]string, 0, len(attempts)) - for _, a := range attempts { - stages := make([]string, 0, len(a.Stages)) - for _, s := range a.Stages { - stage := s.Name + ":" + s.Status + ":" + durationToken(s.DurationMS) - if s.StartedAt == nil { - stage += "@nostart" - } - if s.Error != "" { - stage += "#" + s.Error - } - stages = append(stages, stage) - } - line := strconv.Itoa(a.Attempt) + ":" + a.Status + "[" + strings.Join(stages, ",") + "] " + durationToken(a.DurationMS) - lines = append(lines, line) - } - return strings.Join(lines, " | ") -} - func durationToken(ms *int64) string { if ms == nil { return "?" @@ -118,161 +119,158 @@ func durationToken(ms *int64) string { return strconv.FormatInt(*ms, 10) } -// TestAttemptsFromEventsDerivesEveryRailRule is the table behind R1: every -// status rule the attempt rail depends on, one case each, plus the cases that -// would otherwise be answered by inventing data (a finish with no start, an -// event set with no stage information, events carrying no attempt at all). -func TestAttemptsFromEventsDerivesEveryRailRule(t *testing.T) { +// summarizeStages renders a stage list the same way summarizeAttemptRail's +// inner loop does, for a test that exercises stageViewsFromSteps alone. +func summarizeStages(stages []taskStageView) string { + tokens := make([]string, 0, len(stages)) + for _, s := range stages { + token := s.Name + ":" + s.Status + ":" + durationToken(s.DurationMS) + if s.StartedAt == nil { + token += "@nostart" + } + if s.Error != "" { + token += "#" + s.Error + } + tokens = append(tokens, token) + } + return strings.Join(tokens, ",") +} + +// TestStageViewsFromStepsDerivesEveryRailRule is the table behind R1: every +// status rule the rail depends on, sourced from StepExecutions -- the +// authoritative record (docs/prds/execution-tree-state-machine.md) -- rather +// than a fold over stage_start/stage_finish events. +func TestStageViewsFromStepsDerivesEveryRailRule(t *testing.T) { + at := railBase.Add + + tests := []struct { + name string + steps []task.StepExecution + inFlight bool + want string + }{ + { + name: "a succeeded step is ok and reports its measured span", + steps: []task.StepExecution{stageStep("prepare", 1, taskstate.StepSucceeded, at(0), at(time.Second), "")}, + want: "prepare:ok:1000", + }, + { + name: "a failed step fails and carries its detail as the error", + steps: []task.StepExecution{stageStep("implement", 1, taskstate.StepFailed, at(0), at(2*time.Second), "builder exited 1")}, + want: "implement:failed:2000#builder exited 1", + }, + { + name: "a cancelled step reads interrupted", + steps: []task.StepExecution{stageStep("implement", 1, taskstate.StepCancelled, at(0), at(time.Second), "stopped by operator")}, + want: "implement:interrupted:1000", + }, + { + name: "an interrupted step reads interrupted", + steps: []task.StepExecution{stageStep("implement", 1, taskstate.StepInterrupted, at(0), at(time.Second), "")}, + want: "implement:interrupted:1000", + }, + { + name: "a running step on the task's current in-flight attempt is running", + steps: []task.StepExecution{stageStep("implement", 2, taskstate.StepRunning, at(0), time.Time{}, "")}, + inFlight: true, + want: "implement:running:?", + }, + { + name: "a running step past the task's live attempt is stale, read as interrupted", + steps: []task.StepExecution{stageStep("implement", 1, taskstate.StepRunning, at(0), time.Time{}, "")}, + inFlight: false, + want: "implement:interrupted:?", + }, + { + name: "a pending step (never observed in practice) reads unknown rather than a false verdict", + steps: []task.StepExecution{stageStep("implement", 1, taskstate.StepPending, time.Time{}, time.Time{}, "")}, + want: "implement:unknown:?@nostart", + }, + { + name: "a repeated stage name yields one rail entry per occurrence", + steps: []task.StepExecution{ + stageStep("implement", 1, taskstate.StepSucceeded, at(0), at(time.Second), ""), + {Attempt: 1, Kind: task.StepKindStage, Name: "implement", Status: taskstate.StepRunning, StartedAt: at(2 * time.Second)}, + }, + inFlight: true, + want: "implement:ok:1000,implement:running:?", + }, + { + name: "an agent or call step is not part of the stage rail", + steps: []task.StepExecution{ + stageStep("implement", 1, taskstate.StepSucceeded, at(0), at(time.Second), ""), + {Attempt: 1, Kind: task.StepKindAgent, Name: "implement", Status: taskstate.StepSucceeded, StartedAt: at(0), FinishedAt: at(time.Second)}, + {Attempt: 1, Kind: task.StepKindCall, Name: "callee", Status: taskstate.StepSucceeded, StartedAt: at(0), FinishedAt: at(time.Second)}, + }, + want: "implement:ok:1000", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := summarizeStages(stageViewsFromSteps(tt.steps, tt.inFlight)); got != tt.want { + t.Errorf("stages = %q, want %q", got, tt.want) + } + }) + } +} + +// TestAttemptsFromEventsIndexesAttemptsFromEventsAndUnattributedCount pins +// what attemptsFromEvents still owns now that stage derivation moved to +// steps: which attempt numbers exist, and the unattributed-event count -- +// both read from the task's events, since an attempt can carry events (agent +// calls, say) with no recorded step at all. +func TestAttemptsFromEventsIndexesAttemptsFromEventsAndUnattributedCount(t *testing.T) { at := railBase.Add - duration := func(ms int64) map[string]any { return map[string]any{"duration_ms": ms} } tests := []struct { name string taskStatus string currentAttempt int evs []events.Event - want string + steps []task.StepExecution + wantAttempts []int wantUnattributed int }{ { - name: "a finished stage is ok and the attempt reports its measured span", - taskStatus: workflow.StatusParked, currentAttempt: 1, - evs: []events.Event{ - stageStartEvent(1, 1, "prepare", at(0)), - stageFinishEvent(1, 1, "prepare", at(time.Second), duration(1000)), - }, - want: "1:ok[prepare:ok:1000] 1000", - }, - { - name: "a failed stage fails the attempt and carries the error text", - taskStatus: workflow.StatusParked, currentAttempt: 1, - evs: []events.Event{ - stageStartEvent(1, 1, "implement", at(0)), - stageFinishEvent(1, 1, "implement", at(2*time.Second), map[string]any{ - "duration_ms": int64(2000), - "error": "stage implement: builder exited 1", - }), - }, - want: "1:failed[implement:failed:2000#stage implement: builder exited 1] 2000", - }, - { - name: "an interrupted stage reads interrupted even though the error text is recorded", - taskStatus: workflow.StatusParked, currentAttempt: 1, - evs: []events.Event{ - stageStartEvent(1, 1, "implement", at(0)), - stageFinishEvent(1, 1, "implement", at(time.Second), map[string]any{ - "duration_ms": int64(1000), - "error": "context canceled", - "interrupted": true, - }), - }, - want: "1:interrupted[implement:interrupted:1000#context canceled] 1000", - }, - { - name: "a failed stage outranks an interrupted one", - taskStatus: workflow.StatusParked, currentAttempt: 1, - evs: []events.Event{ - stageStartEvent(1, 1, "a", at(0)), - stageFinishEvent(1, 1, "a", at(time.Second), map[string]any{"duration_ms": int64(1000), "error": "boom"}), - stageStartEvent(1, 1, "b", at(2*time.Second)), - stageFinishEvent(1, 1, "b", at(3*time.Second), map[string]any{ - "duration_ms": int64(1000), "error": "canceled", "interrupted": true, - }), - }, - want: "1:failed[a:failed:1000#boom,b:interrupted:1000#canceled] 3000", - }, - { - name: "an unpaired start on the task's current in-flight attempt is running", + name: "a later attempt does not absorb the earlier attempt's steps", taskStatus: workflow.StatusRunning, currentAttempt: 2, - evs: []events.Event{stageStartEvent(1, 2, "implement", at(0))}, - want: "2:running[implement:running:?] ?", - }, - { - name: "an unpaired start on a superseded attempt is interrupted", - taskStatus: workflow.StatusRunning, currentAttempt: 2, - evs: []events.Event{stageStartEvent(1, 1, "implement", at(0))}, - want: "1:interrupted[implement:interrupted:?] 0", - }, - { - name: "an unpaired start on a parked task's own attempt is interrupted", - taskStatus: workflow.StatusParked, currentAttempt: 1, - evs: []events.Event{stageStartEvent(1, 1, "implement", at(0))}, - want: "1:interrupted[implement:interrupted:?] 0", - }, - { - name: "a finish with no start yields the stage without an invented start time", - taskStatus: workflow.StatusParked, currentAttempt: 1, - evs: []events.Event{ - stageFinishEvent(1, 1, "commit", at(0), duration(4000)), - }, - want: "1:ok[commit:ok:4000@nostart] 0", - }, - { - name: "a finish without a recorded duration derives it from its own start", - taskStatus: workflow.StatusParked, currentAttempt: 1, - evs: []events.Event{ - stageStartEvent(1, 1, "prepare", at(0)), - stageFinishEvent(1, 1, "prepare", at(10*time.Second), nil), - }, - want: "1:ok[prepare:ok:10000] 10000", - }, - { - name: "a repeated stage name yields one rail entry per occurrence", - taskStatus: workflow.StatusRunning, currentAttempt: 1, - evs: []events.Event{ - stageStartEvent(1, 1, "implement", at(0)), - stageFinishEvent(1, 1, "implement", at(time.Second), duration(1000)), - stageStartEvent(1, 1, "implement", at(2*time.Second)), - }, - want: "1:running[implement:ok:1000,implement:running:?] ?", - }, - { - name: "a later attempt does not absorb the earlier attempt's stages", - taskStatus: workflow.StatusRunning, currentAttempt: 2, - evs: []events.Event{ - stageStartEvent(1, 1, "prepare", at(0)), - stageFinishEvent(1, 1, "prepare", at(time.Second), duration(1000)), - stageStartEvent(1, 2, "implement", at(2*time.Second)), - }, - want: "1:ok[prepare:ok:1000] 1000 | 2:running[implement:running:?] ?", + evs: []events.Event{attemptEvent(1, 1, at(0)), attemptEvent(1, 2, at(time.Second))}, + steps: []task.StepExecution{stageStep("prepare", 1, taskstate.StepSucceeded, at(0), at(time.Second), "")}, + wantAttempts: []int{1, 2}, }, { name: "events carrying no attempt are counted, never grouped", taskStatus: workflow.StatusQueued, currentAttempt: 0, - evs: []events.Event{ - {Kind: events.KindStageStart, TaskID: 1, Stage: "prepare", At: at(0)}, - {Kind: events.KindStageFinish, TaskID: 1, Stage: "prepare", At: at(time.Second), Data: duration(1000)}, - }, + evs: []events.Event{{Kind: events.KindAgentFinish, TaskID: 1, At: at(0)}, {Kind: events.KindAgentFinish, TaskID: 1, At: at(time.Second)}}, wantUnattributed: 2, }, { name: "a task with no events has no attempts and nothing unattributed", taskStatus: workflow.StatusQueued, currentAttempt: 0, - want: "", }, { - name: "an attempt whose events carry no stage information is unknown", + name: "an attempt with events but no recorded step still appears, with no stages", taskStatus: workflow.StatusParked, currentAttempt: 1, - evs: []events.Event{ - {Kind: events.KindAgentFinish, TaskID: 1, Attempt: 1, At: at(0), Data: map[string]any{"status": "ok"}}, - }, - want: "1:unknown[] ?", - }, - { - name: "the task's own record keeps the current attempt running with no stage events", - taskStatus: workflow.StatusRunning, currentAttempt: 1, - evs: []events.Event{ - {Kind: events.KindAgentFinish, TaskID: 1, Attempt: 1, At: at(0), Data: map[string]any{"status": "ok"}}, - }, - want: "1:running[] ?", + evs: []events.Event{attemptEvent(1, 1, at(0))}, + wantAttempts: []int{1}, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - attempts, unattributed := attemptsFromEvents(tt.evs, tt.taskStatus, tt.currentAttempt) - if got := summarizeAttemptRail(attempts); got != tt.want { - t.Errorf("rail = %q, want %q", got, tt.want) + attempts, unattributed := attemptsFromEvents(tt.evs, tt.steps, tt.taskStatus, tt.currentAttempt) + var got []int + for _, a := range attempts { + got = append(got, a.Attempt) + } + if len(got) != len(tt.wantAttempts) { + t.Fatalf("attempts = %v, want %v", got, tt.wantAttempts) + } + for i, want := range tt.wantAttempts { + if got[i] != want { + t.Errorf("attempts = %v, want %v", got, tt.wantAttempts) + } } if unattributed != tt.wantUnattributed { t.Errorf("unattributed = %d, want %d", unattributed, tt.wantUnattributed) @@ -287,17 +285,67 @@ func TestAttemptsFromEventsDerivesEveryRailRule(t *testing.T) { // attempt 2's stages. func TestHandleTaskAttemptsRendersBothAttemptsOfARetry(t *testing.T) { srv := newTestServer(t) - current := twoAttemptTask(t, srv) - at := railBase.Add + ctx := t.Context() + steps, ok := srv.Store.(stepWriter) + if !ok { + t.Fatal("test store does not implement stepWriter") + } - insertTaskEvent(t, srv, stageStartEvent(current.ID, 1, "prepare", at(0))) - insertTaskEvent(t, srv, stageFinishEvent(current.ID, 1, "prepare", at(1200*time.Millisecond), - map[string]any{"duration_ms": int64(1200)})) - insertTaskEvent(t, srv, stageStartEvent(current.ID, 1, "implement", at(1323*time.Millisecond))) - insertTaskEvent(t, srv, stageFinishEvent(current.ID, 1, "implement", at(231323*time.Millisecond), - map[string]any{"duration_ms": int64(230000), "error": "stage implement: builder exited 1"})) - insertTaskEvent(t, srv, stageStartEvent(current.ID, 2, "implement", at(time.Hour))) + // Not twoAttemptTask: StartStep guards on the execution's own current + // attempt (a step named for a superseded attempt is a stale transition + // by design -- steps.go, "a caller naming one the execution no longer + // runs is describing a run that is over"), so attempt 1's steps have to + // be recorded while the task is actually on attempt 1, before the retry + // that moves it to attempt 2. + if _, err := srv.Store.EnqueueIssue(ctx, "acme", "widget", 1, "task", "", "", ""); err != nil { + t.Fatal(err) + } + claimed1, err := srv.Store.ClaimNext(ctx) + if err != nil || claimed1 == nil || claimed1.Attempt != 1 { + t.Fatalf("ClaimNext = (%+v, %v), want attempt 1", claimed1, err) + } + prepareID, _, err := steps.StartStep(ctx, task.StepStart{ExecutionID: claimed1.ID, Attempt: 1, Kind: task.StepKindStage, Name: "prepare"}) + if err != nil { + t.Fatalf("StartStep prepare: %v", err) + } + if _, err := steps.FinishStep(ctx, task.StepFinish{ + StepID: prepareID, ExecutionID: claimed1.ID, From: taskstate.StepRunning, To: taskstate.StepSucceeded, + }); err != nil { + t.Fatalf("FinishStep prepare: %v", err) + } + implementID, _, err := steps.StartStep(ctx, task.StepStart{ExecutionID: claimed1.ID, Attempt: 1, Kind: task.StepKindStage, Name: "implement"}) + if err != nil { + t.Fatalf("StartStep implement: %v", err) + } + if _, err := steps.FinishStep(ctx, task.StepFinish{ + StepID: implementID, ExecutionID: claimed1.ID, From: taskstate.StepRunning, To: taskstate.StepFailed, + Detail: "stage implement: builder exited 1", + }); err != nil { + t.Fatalf("FinishStep implement: %v", err) + } + + if err := srv.Store.Transition(ctx, claimed1.ID, workflow.StatusRunning, workflow.StatusParked, "stage implement: builder exited 1"); err != nil { + t.Fatal(err) + } + if err := srv.Store.RetryTask(ctx, claimed1.ID, workflow.StatusParked, ""); err != nil { + t.Fatal(err) + } + current, err := srv.Store.ClaimNext(ctx) + if err != nil || current == nil || current.Attempt != 2 { + t.Fatalf("second ClaimNext = (%+v, %v), want attempt 2", current, err) + } + if _, _, err := steps.StartStep(ctx, task.StepStart{ExecutionID: current.ID, Attempt: 2, Kind: task.StepKindStage, Name: "implement"}); err != nil { + t.Fatalf("StartStep attempt 2 implement: %v", err) + } + + // No hand-inserted events: StartStep/FinishStep already write + // stage_start/stage_finish events in the same transaction as the step + // row (steps.go), which is what attemptBounds and event_count read -- + // attempt 1 gets exactly the 4 those two StartStep+FinishStep pairs + // produce, attempt 2 the 1 its lone StartStep produces. Their + // timestamps are the store's own clock, so bounds are checked for + // presence and order below rather than against a literal railBase time. w := getTaskAPI(t, srv, taskRoute(current.ID, "/attempts")) if w.Code != http.StatusOK { t.Fatalf("status = %d, body %s", w.Code, w.Body) @@ -345,14 +393,13 @@ func TestHandleTaskAttemptsRendersBothAttemptsOfARetry(t *testing.T) { if first.EventCount != 4 { t.Errorf("attempt 1 event_count = %d, want 4", first.EventCount) } - if first.StartedAt == nil || !first.StartedAt.Equal(at(0)) { - t.Errorf("attempt 1 started_at = %v, want %v", first.StartedAt, at(0)) + // StartStep/FinishStep stamp their events with the store's own clock, so + // only presence, order and non-negativity are checked here. + if first.StartedAt == nil || first.FinishedAt == nil || first.FinishedAt.Before(*first.StartedAt) { + t.Errorf("attempt 1 bounds = started %v finished %v, want finished not before started", first.StartedAt, first.FinishedAt) } - if first.FinishedAt == nil || !first.FinishedAt.Equal(at(231323*time.Millisecond)) { - t.Errorf("attempt 1 finished_at = %v, want %v", first.FinishedAt, at(231323*time.Millisecond)) - } - if first.DurationMS == nil || *first.DurationMS != 231323 { - t.Errorf("attempt 1 duration_ms = %v, want 231323", first.DurationMS) + if first.DurationMS == nil || *first.DurationMS < 0 { + t.Errorf("attempt 1 duration_ms = %v, want a non-negative measured span", first.DurationMS) } if len(first.Stages) != 2 { t.Fatalf("attempt 1 stages = %d, want 2 (%s)", len(first.Stages), w.Body) @@ -361,11 +408,12 @@ func TestHandleTaskAttemptsRendersBothAttemptsOfARetry(t *testing.T) { if prepare.Name != "prepare" || prepare.Seq != 0 || prepare.Status != "ok" || prepare.Error != "" { t.Errorf("stage 0 = %+v, want prepare/0/ok with no error", prepare) } - if prepare.DurationMS == nil || *prepare.DurationMS != 1200 { - t.Errorf("stage 0 duration_ms = %v, want 1200", prepare.DurationMS) - } - if prepare.StartedAt == nil || !prepare.StartedAt.Equal(at(0)) { - t.Errorf("stage 0 started_at = %v, want %v", prepare.StartedAt, at(0)) + // StartStep/FinishStep stamp started_at/finished_at with the store's own + // clock (now()), not a caller-supplied time, so only their presence and + // non-negativity are checked here -- railBase no longer applies to a step + // row the way it did to a hand-inserted event. + if prepare.StartedAt == nil || prepare.DurationMS == nil || *prepare.DurationMS < 0 { + t.Errorf("stage 0 = %+v, want a recorded start and a non-negative duration", prepare) } implement := first.Stages[1] if implement.Name != "implement" || implement.Seq != 1 || implement.Status != "failed" { @@ -374,8 +422,8 @@ func TestHandleTaskAttemptsRendersBothAttemptsOfARetry(t *testing.T) { if implement.Error != "stage implement: builder exited 1" { t.Errorf("stage 1 error = %q, want the recorded error text", implement.Error) } - if implement.DurationMS == nil || *implement.DurationMS != 230000 { - t.Errorf("stage 1 duration_ms = %v, want 230000", implement.DurationMS) + if implement.DurationMS == nil || *implement.DurationMS < 0 { + t.Errorf("stage 1 duration_ms = %v, want a non-negative measured duration", implement.DurationMS) } second := body.Attempts[1] @@ -431,9 +479,8 @@ func TestHandleTaskAttemptsSeparatesUnattributedEventsFromAFirstRun(t *testing.T if err != nil { t.Fatal(err) } - insertTaskEvent(t, srv, stageStartEvent(task.ID, 0, "prepare", railBase)) - insertTaskEvent(t, srv, stageFinishEvent(task.ID, 0, "prepare", railBase.Add(time.Second), - map[string]any{"duration_ms": int64(1000)})) + insertTaskEvent(t, srv, attemptEvent(task.ID, 0, railBase)) + insertTaskEvent(t, srv, attemptEvent(task.ID, 0, railBase.Add(time.Second))) w := getTaskAPI(t, srv, taskRoute(task.ID, "/attempts")) if w.Code != http.StatusOK { diff --git a/internal/webui/server.go b/internal/webui/server.go index ece780979..483a16fd3 100644 --- a/internal/webui/server.go +++ b/internal/webui/server.go @@ -26,6 +26,14 @@ type Server struct { Store storecontract.TaskStore Log *slog.Logger + // Steps lists one execution's recorded StepExecutions + // (docs/prds/execution-tree-state-machine.md): the run detail's + // authoritative source, GET /api/tasks/{id}/attempts. Nil degrades the + // route to reporting no steps rather than folding stage_start/ + // stage_finish events, which tasks.stage used to back and no longer + // exists to fall back to. + Steps storecontract.StepReader + // ConfigSource supplies the configuration projection GET /api/config // renders. Composition sets it to RemoteConfigView in a process that // only displays configuration; unset means this process builds the view diff --git a/internal/webui/webui_test.go b/internal/webui/webui_test.go index 9f1db8ac9..24da69774 100644 --- a/internal/webui/webui_test.go +++ b/internal/webui/webui_test.go @@ -35,7 +35,7 @@ func newTestServer(t *testing.T) *Server { t.Helper() s := pgstore.Open(t) t.Cleanup(func() { _ = s.Close() }) - srv := &Server{Store: s, Log: slog.New(slog.DiscardHandler)} + srv := &Server{Store: s, Steps: s, Log: slog.New(slog.DiscardHandler)} // Composition always gives the dashboard a Gateway contract; task // actions travel through it now, so a test server without one could // only ever answer 503. diff --git a/proto/state/v1/state.proto b/proto/state/v1/state.proto index ace40c102..2f8525a05 100644 --- a/proto/state/v1/state.proto +++ b/proto/state/v1/state.proto @@ -48,6 +48,9 @@ service StateStoreService { // task-scoped grant): a cancel is a dashboard, API and dispatch action // decided by the Authorizer, not a worker call. rpc CancelExecution(CancelExecutionRequest) returns (CancelExecutionResponse); + // ListSteps is a dashboard/API/dispatch action (Authorizer: read on the + // run), not task-scoped-grant callable like StartStep/FinishStep. + rpc ListSteps(ListStepsRequest) returns (ListStepsResponse); rpc Requeue(RequeueRequest) returns (RequeueResponse); rpc ParkTask(ParkTaskRequest) returns (ParkTaskResponse); rpc RecoverStale(RecoverStaleRequest) returns (RecoverStaleResponse); @@ -262,7 +265,11 @@ message Task { string labels = 7; string status = 8; string workflow = 9; - string stage = 10; + // Retired: the per-task "current stage" column was overwritten as + // workflow.Run advanced and carried no history. step_executions is the + // durable per-step record now (docs/prds/execution-tree-state-machine.md); + // ListSteps is its read. + string stage = 10 [deprecated = true]; string branch = 11; string plan = 12; string notes = 13; @@ -576,6 +583,32 @@ message CancelExecutionResponse { repeated int64 cancelled_step_ids = 1; } +// StepExecution mirrors internal/domain/workflow/task.StepExecution. +message StepExecution { + int64 id = 1; + int64 execution_id = 2; + int64 attempt = 3; + // parent_id is 0 for a stage at the tree's root. + int64 parent_id = 4; + int32 depth = 5; + string kind = 6; + string name = 7; + string status = 8; + string detail = 9; + int64 tokens_used = 10; + google.protobuf.Timestamp started_at = 11; + google.protobuf.Timestamp finished_at = 12; +} + +message ListStepsRequest { + int64 execution_id = 1; + // attempt selects one attempt's steps; 0 lists every attempt of the + // execution, oldest first -- the dashboard's run-detail rail renders every + // attempt from a single call rather than one per attempt. + int64 attempt = 2; +} +message ListStepsResponse { repeated StepExecution steps = 1; } + message UpdateRequest { Task task = 1; } message UpdateResponse {}