From bbec2617e1c0a83d91b5f80b0e5facadb3f4cdff Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Tue, 22 Sep 2026 08:04:44 +1000 Subject: [PATCH] feat(state): carry channel lifecycle from the Messaging Service to the dashboard archie-core-8cda.6.8's carrier. The service now records channel lifecycle and has nowhere to put it: /api/channels answered with nothing because webui.Server.Channels had no production source, and reload answered 501 for the same reason. This adds the surface the register decided on, following the split archie-core-ymut established for config snapshots -- a pair of administrative RPCs whose writer is one process and whose reader is the UI -- and wires both ends. Wire and store: PutChannelStatus / ListChannelStatus, with ChannelStatus carrying id, name, state, detail, configured, reload_supported and observed_at. The store holds one row per channel and replaces the reported set, so a channel the reporter no longer mentions is deleted rather than left standing as a stale "running"; an empty report clears the table, because hosting no channels is a fact worth reporting. A row without an id is refused: it could never be replaced or removed by a later report. Writer: the service publishes on every lifecycle transition through a coalescing signal -- a burst of transitions is one write, since a reader only wants the latest state of every channel -- plus a start-up report and a final report after shutdown, so a stopped service leaves the store honest. A failed write is logged and retried on the next signal; the dashboard losing channel state is worth a warning and never worth failing a channel start over. Reader: webui.Server.Channels becomes a source rather than a concrete manager, and webui.RemoteChannelStatus reads the store the way RemoteConfigView reads the config snapshot. A store it cannot reach reports nothing rather than a stale "running", and a state the reader does not recognise is carried through rather than dropped. The contract's own index gains the group in the same change that adds the RPCs -- a surface the grouped table does not list is one nobody finds -- and the count moves to 51. The register records why the surface is the State Store rather than a resource kind, and why reload gets its own surface rather than a field here: reading status must not be able to retrigger an action, a transient request is not distinguishable from state once anything polls it, and it would invert the writer/reader relationship the precedent establishes. Verified: task check exit 0. New coverage: the store's replace-the-set semantics and its refusal of an id-less row, the reader's mapping including an unknown state, and the publisher's start-up, transition and final reports. --- docs/architecture/migration-decisions.md | 24 +- docs/prds/state-store-contract.md | 5 +- internal/app/archied/state_store.go | 3 + .../app/archiemessaging/channel_status.go | 57 +- .../channel_status_publish_test.go | 98 ++ internal/app/archiemessaging/compose.go | 42 +- internal/app/archiemessaging/run.go | 16 +- internal/app/archieui/compose.go | 7 + internal/contracts/state/v1/state.pb.go | 1032 +++++++++++------ internal/contracts/state/v1/state_grpc.pb.go | 88 ++ .../domain/storecontract/storecontract.go | 31 + internal/infrastructure/staterpc/client.go | 21 + internal/infrastructure/staterpc/server.go | 47 +- internal/infrastructure/staterpc/values.go | 39 + internal/store/channel_status.go | 106 ++ internal/store/channel_status_test.go | 79 ++ internal/store/interface.go | 5 + internal/store/store.go | 2 +- internal/webui/api_config.go | 42 + internal/webui/api_config_test.go | 8 +- internal/webui/channel_status_test.go | 61 + internal/webui/server.go | 10 +- proto/state/v1/state.proto | 28 + 23 files changed, 1445 insertions(+), 406 deletions(-) create mode 100644 internal/app/archiemessaging/channel_status_publish_test.go create mode 100644 internal/store/channel_status.go create mode 100644 internal/store/channel_status_test.go create mode 100644 internal/webui/channel_status_test.go diff --git a/docs/architecture/migration-decisions.md b/docs/architecture/migration-decisions.md index 7c3c793e7..0e4a4a660 100644 --- a/docs/architecture/migration-decisions.md +++ b/docs/architecture/migration-decisions.md @@ -348,12 +348,24 @@ What that decides, so the implementation need not invent it: change that adds the RPCs -- the table is the contract's own index, and a surface it does not list is a surface nobody finds. -**Left open here, deliberately.** Reload runs the other way -- the UI asks the -service to reload a channel -- and the config-snapshot precedent only describes a -writer-to-reader direction. Two candidates: a second surface carrying a request -the service observes and clears, or a field on the same surface the service -watches. Deciding it now would be choosing a lifetime for a request queue by -analogy with a status report; they are not the same object. +**Reload gets its own surface, with its own lifetime (decided 2026-09-22).** Reload +runs the other way -- the UI asks the service to reload a channel -- and the two +candidates were a request surface the service observes and clears, or a field on +the status surface the service watches. It is the first. The reasoning, recorded +because it would look arbitrary later: + +- A request queue and a status report do not share a lifetime, so they should not + share a surface. A pending request is transient and has an outcome; a channel's + state is durable and has a current value. +- A "please reload" field on the status resource makes READING status capable of + RETRIGGERING an action, and makes a transient request indistinguishable from + state the moment anything polls it. +- It would also invert the writer/reader relationship the precedent establishes: + the service would have to clear a field on an object whose whole contract is + that the service reports it. + +So the status surface stays writer-is-service, and the request carrier is its own +object with its own states. `archie-core-8cda.6.9`'s component self-report is the **same shape**: a process reporting something about itself for the UI to read. Whether it shares this diff --git a/docs/prds/state-store-contract.md b/docs/prds/state-store-contract.md index 6b5c4868e..959a72ee9 100644 --- a/docs/prds/state-store-contract.md +++ b/docs/prds/state-store-contract.md @@ -259,11 +259,14 @@ Methods are named after the store methods so the mapping is unambiguous. `workfl | BindingTaskCreator | `EnqueueBindingTask` | | Config snapshot | `PutConfigSnapshot`, `GetConfigSnapshot` | | Apply status | `PutApplyStatus`, `ListApplyStatus` | +| Channel status | `PutChannelStatus`, `ListChannelStatus` | | Task log | `ReadTaskLog`, `StreamTaskLogContent` | -That is **49 unique contract RPCs** across one service (the `TaskEvents.Close` method is dropped). +That is **51 unique contract RPCs** across one service (the `TaskEvents.Close` method is dropped). `Close()` is **excluded** from the wire (it is server lifecycle, not a client call) — see §11. +The channel-status pair follows the config snapshot's split for the same reason: the writer is the process that HOSTS the channels -- the Messaging Service, which alone observes whether a channel is starting, running or failed -- and the reader is the UI process. Both RPCs are administrative, so a task-scoped grant reaches neither. A channel's state is runtime state rather than a settings document, which is why it is not a `ControlPlaneService` resource kind: a failed channel is not a document anybody edits. Asking for a reload travels on its own surface rather than through this one; see `docs/architecture/migration-decisions.md`, "Channel state to the dashboard". + The config-snapshot pair was added by `archie-core-ymut` (see `docs/architecture/migration-decisions.md`, "Dashboard configuration page"). It is the one surface whose writer is the daemon and whose reader is the UI process, and both RPCs are diff --git a/internal/app/archied/state_store.go b/internal/app/archied/state_store.go index c206353e8..60da24e9e 100644 --- a/internal/app/archied/state_store.go +++ b/internal/app/archied/state_store.go @@ -362,6 +362,9 @@ func (b *boot) stateStoreDeps(grants *staterpc.TaskGrants) staterpc.Deps { if as, ok := b.st.(storecontract.ApplyStatusStore); ok { deps.ApplyStatus = as } + if cs, ok := b.st.(storecontract.ChannelStatusStore); ok { + deps.ChannelStatus = cs + } return deps } diff --git a/internal/app/archiemessaging/channel_status.go b/internal/app/archiemessaging/channel_status.go index 3dbf25924..a2a562934 100644 --- a/internal/app/archiemessaging/channel_status.go +++ b/internal/app/archiemessaging/channel_status.go @@ -1,8 +1,12 @@ package archiemessaging import ( + "context" + "time" + "github.com/samcharles93/archie-core/internal/channels" "github.com/samcharles93/archie-core/internal/channels/status" + "github.com/samcharles93/archie-core/internal/domain/storecontract" ) // channelDescriptors declares the operator-facing identity of each composed @@ -38,8 +42,57 @@ func channelDescriptors(instances []channelInstance) []status.Descriptor { // ReportStarting and ReportRunning on whichever lifecycle they are handed. func (s *Service) lifecycleFor(id string) channels.Lifecycle { return channels.Lifecycle{ - Starting: func() { s.status.MarkStarting(id) }, - Running: func() { s.status.MarkRunning(id) }, + Starting: func() { s.status.MarkStarting(id); s.signalPublish() }, + Running: func() { s.status.MarkRunning(id); s.signalPublish() }, + } +} + +// signalPublish asks the publisher to report the current set. The signal +// coalesces: a burst of transitions is one write, because a reader only ever +// wants the latest state of every channel. +func (s *Service) signalPublish() { + if s.statusWriter == nil { + return + } + select { + case s.publish <- struct{}{}: + default: + } +} + +// publishStatus writes the current set, or deletes it when the service hosts no +// channels -- an empty report is a report, and leaving the previous set standing +// would show channels that are gone. +func (s *Service) publishStatus(ctx context.Context) error { + reported := s.ChannelStatus() + rows := make([]storecontract.ChannelStatus, 0, len(reported)) + for _, channel := range reported { + rows = append(rows, storecontract.ChannelStatus{ + ID: channel.ID, + Name: channel.Name, + State: string(channel.State), + Detail: channel.Detail, + Configured: channel.Configured, + ReloadSupported: channel.ReloadSupported, + ObservedAt: time.Now(), + }) + } + return s.statusWriter.PutChannelStatus(ctx, rows) +} + +// publishLoop reports channel state until ctx ends. A failed write is logged and +// retried on the next signal: the dashboard losing channel state is worth a +// warning, and never worth failing a channel start over. +func (s *Service) publishLoop(ctx context.Context) { + for { + select { + case <-ctx.Done(): + return + case <-s.publish: + if err := s.publishStatus(ctx); err != nil && ctx.Err() == nil { + s.log.Warn("publishing channel status failed", "err", err) + } + } } } diff --git a/internal/app/archiemessaging/channel_status_publish_test.go b/internal/app/archiemessaging/channel_status_publish_test.go new file mode 100644 index 000000000..8aa7f9c7e --- /dev/null +++ b/internal/app/archiemessaging/channel_status_publish_test.go @@ -0,0 +1,98 @@ +package archiemessaging + +import ( + "context" + "fmt" + "log/slog" + "sync" + "testing" + "time" + + "github.com/samcharles93/archie-core/internal/config" + "github.com/samcharles93/archie-core/internal/domain/messaging" + "github.com/samcharles93/archie-core/internal/domain/storecontract" +) + +// recordingChannelStatusStore records every report the service publishes. +type recordingChannelStatusStore struct { + mu sync.Mutex + writes [][]storecontract.ChannelStatus +} + +func (s *recordingChannelStatusStore) PutChannelStatus(_ context.Context, channels []storecontract.ChannelStatus) error { + s.mu.Lock() + defer s.mu.Unlock() + s.writes = append(s.writes, append([]storecontract.ChannelStatus(nil), channels...)) + return nil +} + +func (s *recordingChannelStatusStore) ChannelStatus(context.Context) ([]storecontract.ChannelStatus, error) { + return nil, nil +} + +// waitForPublishedState polls the recorded reports until one carries the channel +// in want, so the assertion races the publisher rather than the clock. +func waitForPublishedState(t *testing.T, store *recordingChannelStatusStore, id, want string) { + t.Helper() + deadline := time.Now().Add(5 * time.Second) + for time.Now().Before(deadline) { + store.mu.Lock() + for _, write := range store.writes { + for _, channel := range write { + if channel.ID == id && channel.State == want { + store.mu.Unlock() + return + } + } + } + store.mu.Unlock() + time.Sleep(10 * time.Millisecond) + } + store.mu.Lock() + defer store.mu.Unlock() + t.Fatalf("no report carried %s as %q; reports were %+v", id, want, store.writes) +} + +// TestServicePublishesChannelStatus is the point of archie-core-8cda.6.8: the +// report has to reach the store the dashboard reads, not stay in this process. +// Without this the surface exists and no operator ever sees it. +func TestServicePublishesChannelStatus(t *testing.T) { + writer := &recordingChannelStatusStore{} + srv, err := compose(t.Context(), deps{ + ChannelStatus: writer, + Config: ResolvedConfig{ + Options: Options{ShutdownTimeout: 2 * time.Second}, + WebhookAddr: fmt.Sprintf("127.0.0.1:%d", freePort(t)), + Webhook: config.WebhookRoute{Path: "/smoke"}, + }, + Log: slog.Default(), + Chat: &recordingChatContract{routes: make(chan messaging.Inbound, 1), reply: "ok"}, + }) + if err != nil { + t.Fatalf("compose: %v", err) + } + + ctx, cancel := context.WithCancel(t.Context()) + defer cancel() + started := make(chan error, 1) + go func() { started <- srv.Start(ctx) }() + + // The start-up report and the channel's own "starting" coalesce by design -- + // signals coalesce, because a reader only ever wants the latest state of every + // channel -- so the first published state is either "configured" or "starting" + // depending on which side wins. What must hold is that the transitions reach + // the store, and that the last word is the truth. + waitForPublishedState(t, writer, "webhook", "running") + + srv.Stop() + select { + case err := <-started: + if err != nil { + t.Fatalf("srv.Start returned %v, want a clean stop", err) + } + case <-time.After(3 * time.Second): + t.Fatal("srv.Start did not return after Stop") + } + // The final report is what leaves the store honest about a stopped service. + waitForPublishedState(t, writer, "webhook", "stopped") +} diff --git a/internal/app/archiemessaging/compose.go b/internal/app/archiemessaging/compose.go index 4e781d02b..6c5f198db 100644 --- a/internal/app/archiemessaging/compose.go +++ b/internal/app/archiemessaging/compose.go @@ -16,15 +16,19 @@ import ( "github.com/samcharles93/archie-core/internal/config" "github.com/samcharles93/archie-core/internal/domain/health" "github.com/samcharles93/archie-core/internal/domain/messaging" + "github.com/samcharles93/archie-core/internal/domain/storecontract" "github.com/samcharles93/archie-core/internal/secret" ) type deps struct { - Config ResolvedConfig - Log *slog.Logger - Chat messaging.ChatContract - Health *health.Registry - Settings *messaging.SettingsCommand + // ChannelStatus is where the service publishes channel lifecycle for the + // dashboard. Optional: nil leaves the report in-process only. + ChannelStatus storecontract.ChannelStatusStore + Config ResolvedConfig + Log *slog.Logger + Chat messaging.ChatContract + Health *health.Registry + Settings *messaging.SettingsCommand } type channelInstance struct { @@ -38,7 +42,14 @@ type Service struct { // status owns channel lifecycle facts, one entry per composed channel. It is // the single writer channels report through (see lifecycleFor), and the // producer a dashboard surface reads. - status *status.Manager + status *status.Manager + // statusWriter publishes that report where the dashboard reads it. Nil means + // this composition has no store to publish to, which is the honest state for a + // test or a process run without one. + statusWriter storecontract.ChannelStatusStore + // publish coalesces a burst of transitions into one write: a reader only ever + // wants the latest state of every channel. + publish chan struct{} cfg ResolvedConfig log *slog.Logger chat messaging.ChatContract @@ -95,6 +106,8 @@ func compose(ctx context.Context, d deps) (*Service, error) { } srv.status = status.NewManager(channelDescriptors(srv.channels)) + srv.statusWriter = d.ChannelStatus + srv.publish = make(chan struct{}, 1) return srv, nil } @@ -161,6 +174,13 @@ func (s *Service) Start(ctx context.Context) error { s.log.Info("messaging service started", "gateway_target", s.cfg.Options.Gateway.Target, "channels", len(s.channels)) + if s.statusWriter != nil { + go s.publishLoop(ctx) + // Report the composed set before any channel reports itself, so a dashboard + // opened during startup shows configured channels rather than none. + s.signalPublish() + } + var wg sync.WaitGroup for _, ch := range s.channels { c := ch @@ -191,6 +211,16 @@ func (s *Service) Start(ctx context.Context) error { } wg.Wait() + + if s.statusWriter != nil { + // The final report carries the stopped states the loop above recorded. + // Its own context, because ctx is already cancelled. + finalCtx, cancel := context.WithTimeout(context.WithoutCancel(ctx), s.cfg.Options.ShutdownTimeout) + defer cancel() + if err := s.publishStatus(finalCtx); err != nil { + s.log.Warn("publishing final channel status failed", "err", err) + } + } return nil } diff --git a/internal/app/archiemessaging/run.go b/internal/app/archiemessaging/run.go index 7c3eb3384..9257dedaa 100644 --- a/internal/app/archiemessaging/run.go +++ b/internal/app/archiemessaging/run.go @@ -8,6 +8,7 @@ import ( "github.com/samcharles93/archie-core/internal/config" "github.com/samcharles93/archie-core/internal/domain/applystatus" "github.com/samcharles93/archie-core/internal/domain/messaging" + "github.com/samcharles93/archie-core/internal/domain/storecontract" "github.com/samcharles93/archie-core/internal/infrastructure/controlplanerpc" "github.com/samcharles93/archie-core/internal/infrastructure/gatewayrpc" "github.com/samcharles93/archie-core/internal/infrastructure/staterpc" @@ -32,6 +33,9 @@ func Run(ctx context.Context, o Options) error { health := newReadinessRegistry(cfg.Options, chat) var settings *messaging.SettingsCommand var closeStateStore func() + // channelStatusStore is the same client, held where compose can reach it: the + // channel report is published to the store this process already dials. + var channelStatusStore storecontract.ChannelStatusStore if cfg.Options.StateStore.Target != "" { stateStore, closeClient, dialErr := staterpc.Dial(cfg.Options.StateStore.Target, cfg.Options.StateStore.Token) if dialErr != nil { @@ -59,14 +63,16 @@ func Run(ctx context.Context, o Options) error { return fmt.Errorf("resolve database webhook secret: %w", settingsErr) } settings = messaging.NewSettingsCommand(messagingControlPlane{client: stateStore.ControlPlane()}).WithIdentities(stateStore) + channelStatusStore = stateStore } srv, err := compose(ctx, deps{ - Config: cfg, - Log: log, - Chat: chat, - Health: health, - Settings: settings, + ChannelStatus: channelStatusStore, + Config: cfg, + Log: log, + Chat: chat, + Health: health, + Settings: settings, }) if err != nil { return err diff --git a/internal/app/archieui/compose.go b/internal/app/archieui/compose.go index c80ba1b9f..37ca0124c 100644 --- a/internal/app/archieui/compose.go +++ b/internal/app/archieui/compose.go @@ -75,6 +75,13 @@ func compose(d deps) *webui.Server { if snapshots, ok := d.Store.(storecontract.ConfigSnapshotStore); ok { srv.ConfigSource = webui.RemoteConfigView(snapshots) } + // 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 + // (archie-core-8cda.6.8). + if channels, ok := d.Store.(storecontract.ChannelStatusStore); ok { + srv.Channels = webui.RemoteChannelStatus(channels) + } // Mappings and bindings are ratified State Store contracts, and the same // client already carries them: withholding them would degrade two pages // that have an owner, which is a different thing from the intake surfaces diff --git a/internal/contracts/state/v1/state.pb.go b/internal/contracts/state/v1/state.pb.go index c22a2c161..0029bb2fc 100644 --- a/internal/contracts/state/v1/state.pb.go +++ b/internal/contracts/state/v1/state.pb.go @@ -4559,6 +4559,263 @@ func (x *GetConfigSnapshotResponse) GetFound() bool { return false } +// ChannelStatus is one channel's runtime state, as the process hosting it +// observes it. ReloadSupported is a capability declaration, not a request: the +// service reports it, so a reader may offer a reload action -- but asking for one +// travels on its own surface, because a transient request and a durable state do +// not share a lifetime. +type ChannelStatus struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` + Detail string `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail,omitempty"` + Configured bool `protobuf:"varint,5,opt,name=configured,proto3" json:"configured,omitempty"` + ReloadSupported bool `protobuf:"varint,6,opt,name=reload_supported,json=reloadSupported,proto3" json:"reload_supported,omitempty"` + ObservedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=observed_at,json=observedAt,proto3" json:"observed_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChannelStatus) Reset() { + *x = ChannelStatus{} + mi := &file_state_v1_state_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ChannelStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChannelStatus) ProtoMessage() {} + +func (x *ChannelStatus) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[81] + 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 ChannelStatus.ProtoReflect.Descriptor instead. +func (*ChannelStatus) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{81} +} + +func (x *ChannelStatus) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ChannelStatus) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ChannelStatus) GetState() string { + if x != nil { + return x.State + } + return "" +} + +func (x *ChannelStatus) GetDetail() string { + if x != nil { + return x.Detail + } + return "" +} + +func (x *ChannelStatus) GetConfigured() bool { + if x != nil { + return x.Configured + } + return false +} + +func (x *ChannelStatus) GetReloadSupported() bool { + if x != nil { + return x.ReloadSupported + } + return false +} + +func (x *ChannelStatus) GetObservedAt() *timestamppb.Timestamp { + if x != nil { + return x.ObservedAt + } + return nil +} + +type PutChannelStatusRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Channels []*ChannelStatus `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PutChannelStatusRequest) Reset() { + *x = PutChannelStatusRequest{} + mi := &file_state_v1_state_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PutChannelStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PutChannelStatusRequest) ProtoMessage() {} + +func (x *PutChannelStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[82] + 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 PutChannelStatusRequest.ProtoReflect.Descriptor instead. +func (*PutChannelStatusRequest) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{82} +} + +func (x *PutChannelStatusRequest) GetChannels() []*ChannelStatus { + if x != nil { + return x.Channels + } + return nil +} + +type PutChannelStatusResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PutChannelStatusResponse) Reset() { + *x = PutChannelStatusResponse{} + mi := &file_state_v1_state_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PutChannelStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PutChannelStatusResponse) ProtoMessage() {} + +func (x *PutChannelStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[83] + 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 PutChannelStatusResponse.ProtoReflect.Descriptor instead. +func (*PutChannelStatusResponse) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{83} +} + +type ListChannelStatusRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListChannelStatusRequest) Reset() { + *x = ListChannelStatusRequest{} + mi := &file_state_v1_state_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListChannelStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListChannelStatusRequest) ProtoMessage() {} + +func (x *ListChannelStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[84] + 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 ListChannelStatusRequest.ProtoReflect.Descriptor instead. +func (*ListChannelStatusRequest) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{84} +} + +type ListChannelStatusResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Channels []*ChannelStatus `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListChannelStatusResponse) Reset() { + *x = ListChannelStatusResponse{} + mi := &file_state_v1_state_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListChannelStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListChannelStatusResponse) ProtoMessage() {} + +func (x *ListChannelStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[85] + 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 ListChannelStatusResponse.ProtoReflect.Descriptor instead. +func (*ListChannelStatusResponse) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{85} +} + +func (x *ListChannelStatusResponse) GetChannels() []*ChannelStatus { + if x != nil { + return x.Channels + } + return nil +} + // ApplyStatus is one process's report about one control-plane resource kind. // applied_version is the version that process is running; error is set when it // could not apply what the store returned, and leaves applied_version at the @@ -4578,7 +4835,7 @@ type ApplyStatus struct { func (x *ApplyStatus) Reset() { *x = ApplyStatus{} - mi := &file_state_v1_state_proto_msgTypes[81] + mi := &file_state_v1_state_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4590,7 +4847,7 @@ func (x *ApplyStatus) String() string { func (*ApplyStatus) ProtoMessage() {} func (x *ApplyStatus) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[81] + mi := &file_state_v1_state_proto_msgTypes[86] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4603,7 +4860,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{81} + return file_state_v1_state_proto_rawDescGZIP(), []int{86} } func (x *ApplyStatus) GetProcess() string { @@ -4650,7 +4907,7 @@ type PutApplyStatusRequest struct { func (x *PutApplyStatusRequest) Reset() { *x = PutApplyStatusRequest{} - mi := &file_state_v1_state_proto_msgTypes[82] + mi := &file_state_v1_state_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4662,7 +4919,7 @@ func (x *PutApplyStatusRequest) String() string { func (*PutApplyStatusRequest) ProtoMessage() {} func (x *PutApplyStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[82] + mi := &file_state_v1_state_proto_msgTypes[87] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4675,7 +4932,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{82} + return file_state_v1_state_proto_rawDescGZIP(), []int{87} } func (x *PutApplyStatusRequest) GetStatus() *ApplyStatus { @@ -4693,7 +4950,7 @@ type PutApplyStatusResponse struct { func (x *PutApplyStatusResponse) Reset() { *x = PutApplyStatusResponse{} - mi := &file_state_v1_state_proto_msgTypes[83] + mi := &file_state_v1_state_proto_msgTypes[88] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4705,7 +4962,7 @@ func (x *PutApplyStatusResponse) String() string { func (*PutApplyStatusResponse) ProtoMessage() {} func (x *PutApplyStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[83] + mi := &file_state_v1_state_proto_msgTypes[88] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4718,7 +4975,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{83} + return file_state_v1_state_proto_rawDescGZIP(), []int{88} } type ListApplyStatusRequest struct { @@ -4729,7 +4986,7 @@ type ListApplyStatusRequest struct { func (x *ListApplyStatusRequest) Reset() { *x = ListApplyStatusRequest{} - mi := &file_state_v1_state_proto_msgTypes[84] + mi := &file_state_v1_state_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4741,7 +4998,7 @@ func (x *ListApplyStatusRequest) String() string { func (*ListApplyStatusRequest) ProtoMessage() {} func (x *ListApplyStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[84] + mi := &file_state_v1_state_proto_msgTypes[89] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4754,7 +5011,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{84} + return file_state_v1_state_proto_rawDescGZIP(), []int{89} } type ListApplyStatusResponse struct { @@ -4766,7 +5023,7 @@ type ListApplyStatusResponse struct { func (x *ListApplyStatusResponse) Reset() { *x = ListApplyStatusResponse{} - mi := &file_state_v1_state_proto_msgTypes[85] + mi := &file_state_v1_state_proto_msgTypes[90] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4778,7 +5035,7 @@ func (x *ListApplyStatusResponse) String() string { func (*ListApplyStatusResponse) ProtoMessage() {} func (x *ListApplyStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[85] + mi := &file_state_v1_state_proto_msgTypes[90] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4791,7 +5048,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{85} + return file_state_v1_state_proto_rawDescGZIP(), []int{90} } func (x *ListApplyStatusResponse) GetStatuses() []*ApplyStatus { @@ -4818,7 +5075,7 @@ type TaskLogEntry struct { func (x *TaskLogEntry) Reset() { *x = TaskLogEntry{} - mi := &file_state_v1_state_proto_msgTypes[86] + mi := &file_state_v1_state_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4830,7 +5087,7 @@ func (x *TaskLogEntry) String() string { func (*TaskLogEntry) ProtoMessage() {} func (x *TaskLogEntry) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[86] + mi := &file_state_v1_state_proto_msgTypes[91] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4843,7 +5100,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{86} + return file_state_v1_state_proto_rawDescGZIP(), []int{91} } func (x *TaskLogEntry) GetId() int64 { @@ -4908,7 +5165,7 @@ type ReadTaskLogRequest struct { func (x *ReadTaskLogRequest) Reset() { *x = ReadTaskLogRequest{} - mi := &file_state_v1_state_proto_msgTypes[87] + mi := &file_state_v1_state_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4920,7 +5177,7 @@ func (x *ReadTaskLogRequest) String() string { func (*ReadTaskLogRequest) ProtoMessage() {} func (x *ReadTaskLogRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[87] + mi := &file_state_v1_state_proto_msgTypes[92] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4933,7 +5190,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{87} + return file_state_v1_state_proto_rawDescGZIP(), []int{92} } func (x *ReadTaskLogRequest) GetTaskId() int64 { @@ -5019,7 +5276,7 @@ type ReadTaskLogResponse struct { func (x *ReadTaskLogResponse) Reset() { *x = ReadTaskLogResponse{} - mi := &file_state_v1_state_proto_msgTypes[88] + mi := &file_state_v1_state_proto_msgTypes[93] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5031,7 +5288,7 @@ func (x *ReadTaskLogResponse) String() string { func (*ReadTaskLogResponse) ProtoMessage() {} func (x *ReadTaskLogResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[88] + mi := &file_state_v1_state_proto_msgTypes[93] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5044,7 +5301,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{88} + return file_state_v1_state_proto_rawDescGZIP(), []int{93} } func (x *ReadTaskLogResponse) GetEntries() []*TaskLogEntry { @@ -5103,7 +5360,7 @@ type StreamTaskLogContentRequest struct { func (x *StreamTaskLogContentRequest) Reset() { *x = StreamTaskLogContentRequest{} - mi := &file_state_v1_state_proto_msgTypes[89] + mi := &file_state_v1_state_proto_msgTypes[94] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5115,7 +5372,7 @@ func (x *StreamTaskLogContentRequest) String() string { func (*StreamTaskLogContentRequest) ProtoMessage() {} func (x *StreamTaskLogContentRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[89] + mi := &file_state_v1_state_proto_msgTypes[94] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5128,7 +5385,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{89} + return file_state_v1_state_proto_rawDescGZIP(), []int{94} } func (x *StreamTaskLogContentRequest) GetTaskId() int64 { @@ -5156,7 +5413,7 @@ type StreamTaskLogContentResponse struct { func (x *StreamTaskLogContentResponse) Reset() { *x = StreamTaskLogContentResponse{} - mi := &file_state_v1_state_proto_msgTypes[90] + mi := &file_state_v1_state_proto_msgTypes[95] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5168,7 +5425,7 @@ func (x *StreamTaskLogContentResponse) String() string { func (*StreamTaskLogContentResponse) ProtoMessage() {} func (x *StreamTaskLogContentResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[90] + mi := &file_state_v1_state_proto_msgTypes[95] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5181,7 +5438,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{90} + return file_state_v1_state_proto_rawDescGZIP(), []int{95} } func (x *StreamTaskLogContentResponse) GetChunk() []byte { @@ -5216,7 +5473,7 @@ type InsertCaptureRequest struct { func (x *InsertCaptureRequest) Reset() { *x = InsertCaptureRequest{} - mi := &file_state_v1_state_proto_msgTypes[91] + mi := &file_state_v1_state_proto_msgTypes[96] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5228,7 +5485,7 @@ func (x *InsertCaptureRequest) String() string { func (*InsertCaptureRequest) ProtoMessage() {} func (x *InsertCaptureRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[91] + mi := &file_state_v1_state_proto_msgTypes[96] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5241,7 +5498,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{91} + return file_state_v1_state_proto_rawDescGZIP(), []int{96} } func (x *InsertCaptureRequest) GetCapture() *CapturedEvent { @@ -5274,7 +5531,7 @@ type InsertCaptureResponse struct { func (x *InsertCaptureResponse) Reset() { *x = InsertCaptureResponse{} - mi := &file_state_v1_state_proto_msgTypes[92] + mi := &file_state_v1_state_proto_msgTypes[97] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5286,7 +5543,7 @@ func (x *InsertCaptureResponse) String() string { func (*InsertCaptureResponse) ProtoMessage() {} func (x *InsertCaptureResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[92] + mi := &file_state_v1_state_proto_msgTypes[97] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5299,7 +5556,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{92} + return file_state_v1_state_proto_rawDescGZIP(), []int{97} } func (x *InsertCaptureResponse) GetId() int64 { @@ -5318,7 +5575,7 @@ type ListCapturesRequest struct { func (x *ListCapturesRequest) Reset() { *x = ListCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[93] + mi := &file_state_v1_state_proto_msgTypes[98] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5330,7 +5587,7 @@ func (x *ListCapturesRequest) String() string { func (*ListCapturesRequest) ProtoMessage() {} func (x *ListCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[93] + mi := &file_state_v1_state_proto_msgTypes[98] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5343,7 +5600,7 @@ func (x *ListCapturesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListCapturesRequest.ProtoReflect.Descriptor instead. func (*ListCapturesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{93} + return file_state_v1_state_proto_rawDescGZIP(), []int{98} } func (x *ListCapturesRequest) GetLimit() int64 { @@ -5362,7 +5619,7 @@ type ListCapturesResponse struct { func (x *ListCapturesResponse) Reset() { *x = ListCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[94] + mi := &file_state_v1_state_proto_msgTypes[99] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5374,7 +5631,7 @@ func (x *ListCapturesResponse) String() string { func (*ListCapturesResponse) ProtoMessage() {} func (x *ListCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[94] + mi := &file_state_v1_state_proto_msgTypes[99] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5387,7 +5644,7 @@ func (x *ListCapturesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListCapturesResponse.ProtoReflect.Descriptor instead. func (*ListCapturesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{94} + return file_state_v1_state_proto_rawDescGZIP(), []int{99} } func (x *ListCapturesResponse) GetCaptures() []*CapturedEvent { @@ -5406,7 +5663,7 @@ type StreamCapturesRequest struct { func (x *StreamCapturesRequest) Reset() { *x = StreamCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[95] + mi := &file_state_v1_state_proto_msgTypes[100] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5418,7 +5675,7 @@ func (x *StreamCapturesRequest) String() string { func (*StreamCapturesRequest) ProtoMessage() {} func (x *StreamCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[95] + mi := &file_state_v1_state_proto_msgTypes[100] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5431,7 +5688,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{95} + return file_state_v1_state_proto_rawDescGZIP(), []int{100} } func (x *StreamCapturesRequest) GetLimit() int64 { @@ -5451,7 +5708,7 @@ type StreamCapturesResponse struct { func (x *StreamCapturesResponse) Reset() { *x = StreamCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[96] + mi := &file_state_v1_state_proto_msgTypes[101] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5463,7 +5720,7 @@ func (x *StreamCapturesResponse) String() string { func (*StreamCapturesResponse) ProtoMessage() {} func (x *StreamCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[96] + mi := &file_state_v1_state_proto_msgTypes[101] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5476,7 +5733,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{96} + return file_state_v1_state_proto_rawDescGZIP(), []int{101} } func (x *StreamCapturesResponse) GetCapture() *CapturedEvent { @@ -5495,7 +5752,7 @@ type InsertMappingRequest struct { func (x *InsertMappingRequest) Reset() { *x = InsertMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[97] + mi := &file_state_v1_state_proto_msgTypes[102] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5507,7 +5764,7 @@ func (x *InsertMappingRequest) String() string { func (*InsertMappingRequest) ProtoMessage() {} func (x *InsertMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[97] + mi := &file_state_v1_state_proto_msgTypes[102] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5520,7 +5777,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{97} + return file_state_v1_state_proto_rawDescGZIP(), []int{102} } func (x *InsertMappingRequest) GetMapping() *Mapping { @@ -5539,7 +5796,7 @@ type InsertMappingResponse struct { func (x *InsertMappingResponse) Reset() { *x = InsertMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[98] + mi := &file_state_v1_state_proto_msgTypes[103] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5551,7 +5808,7 @@ func (x *InsertMappingResponse) String() string { func (*InsertMappingResponse) ProtoMessage() {} func (x *InsertMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[98] + mi := &file_state_v1_state_proto_msgTypes[103] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5564,7 +5821,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{98} + return file_state_v1_state_proto_rawDescGZIP(), []int{103} } func (x *InsertMappingResponse) GetId() int64 { @@ -5583,7 +5840,7 @@ type GetMappingRequest struct { func (x *GetMappingRequest) Reset() { *x = GetMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[99] + mi := &file_state_v1_state_proto_msgTypes[104] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5595,7 +5852,7 @@ func (x *GetMappingRequest) String() string { func (*GetMappingRequest) ProtoMessage() {} func (x *GetMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[99] + mi := &file_state_v1_state_proto_msgTypes[104] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5608,7 +5865,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{99} + return file_state_v1_state_proto_rawDescGZIP(), []int{104} } func (x *GetMappingRequest) GetId() int64 { @@ -5628,7 +5885,7 @@ type GetMappingResponse struct { func (x *GetMappingResponse) Reset() { *x = GetMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[100] + mi := &file_state_v1_state_proto_msgTypes[105] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5640,7 +5897,7 @@ func (x *GetMappingResponse) String() string { func (*GetMappingResponse) ProtoMessage() {} func (x *GetMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[100] + mi := &file_state_v1_state_proto_msgTypes[105] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5653,7 +5910,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{100} + return file_state_v1_state_proto_rawDescGZIP(), []int{105} } func (x *GetMappingResponse) GetMapping() *Mapping { @@ -5678,7 +5935,7 @@ type ListMappingsRequest struct { func (x *ListMappingsRequest) Reset() { *x = ListMappingsRequest{} - mi := &file_state_v1_state_proto_msgTypes[101] + mi := &file_state_v1_state_proto_msgTypes[106] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5690,7 +5947,7 @@ func (x *ListMappingsRequest) String() string { func (*ListMappingsRequest) ProtoMessage() {} func (x *ListMappingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[101] + mi := &file_state_v1_state_proto_msgTypes[106] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5703,7 +5960,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{101} + return file_state_v1_state_proto_rawDescGZIP(), []int{106} } type ListMappingsResponse struct { @@ -5715,7 +5972,7 @@ type ListMappingsResponse struct { func (x *ListMappingsResponse) Reset() { *x = ListMappingsResponse{} - mi := &file_state_v1_state_proto_msgTypes[102] + mi := &file_state_v1_state_proto_msgTypes[107] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5727,7 +5984,7 @@ func (x *ListMappingsResponse) String() string { func (*ListMappingsResponse) ProtoMessage() {} func (x *ListMappingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[102] + mi := &file_state_v1_state_proto_msgTypes[107] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5740,7 +5997,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{102} + return file_state_v1_state_proto_rawDescGZIP(), []int{107} } func (x *ListMappingsResponse) GetMappings() []*Mapping { @@ -5759,7 +6016,7 @@ type UpdateMappingRequest struct { func (x *UpdateMappingRequest) Reset() { *x = UpdateMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[103] + mi := &file_state_v1_state_proto_msgTypes[108] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5771,7 +6028,7 @@ func (x *UpdateMappingRequest) String() string { func (*UpdateMappingRequest) ProtoMessage() {} func (x *UpdateMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[103] + mi := &file_state_v1_state_proto_msgTypes[108] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5784,7 +6041,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{103} + return file_state_v1_state_proto_rawDescGZIP(), []int{108} } func (x *UpdateMappingRequest) GetMapping() *Mapping { @@ -5802,7 +6059,7 @@ type UpdateMappingResponse struct { func (x *UpdateMappingResponse) Reset() { *x = UpdateMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[104] + mi := &file_state_v1_state_proto_msgTypes[109] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5814,7 +6071,7 @@ func (x *UpdateMappingResponse) String() string { func (*UpdateMappingResponse) ProtoMessage() {} func (x *UpdateMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[104] + mi := &file_state_v1_state_proto_msgTypes[109] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5827,7 +6084,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{104} + return file_state_v1_state_proto_rawDescGZIP(), []int{109} } type DeleteMappingRequest struct { @@ -5839,7 +6096,7 @@ type DeleteMappingRequest struct { func (x *DeleteMappingRequest) Reset() { *x = DeleteMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[105] + mi := &file_state_v1_state_proto_msgTypes[110] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5851,7 +6108,7 @@ func (x *DeleteMappingRequest) String() string { func (*DeleteMappingRequest) ProtoMessage() {} func (x *DeleteMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[105] + mi := &file_state_v1_state_proto_msgTypes[110] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5864,7 +6121,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{105} + return file_state_v1_state_proto_rawDescGZIP(), []int{110} } func (x *DeleteMappingRequest) GetId() int64 { @@ -5882,7 +6139,7 @@ type DeleteMappingResponse struct { func (x *DeleteMappingResponse) Reset() { *x = DeleteMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[106] + mi := &file_state_v1_state_proto_msgTypes[111] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5894,7 +6151,7 @@ func (x *DeleteMappingResponse) String() string { func (*DeleteMappingResponse) ProtoMessage() {} func (x *DeleteMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[106] + mi := &file_state_v1_state_proto_msgTypes[111] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5907,7 +6164,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{106} + return file_state_v1_state_proto_rawDescGZIP(), []int{111} } type InsertBindingRequest struct { @@ -5919,7 +6176,7 @@ type InsertBindingRequest struct { func (x *InsertBindingRequest) Reset() { *x = InsertBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[107] + mi := &file_state_v1_state_proto_msgTypes[112] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5931,7 +6188,7 @@ func (x *InsertBindingRequest) String() string { func (*InsertBindingRequest) ProtoMessage() {} func (x *InsertBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[107] + mi := &file_state_v1_state_proto_msgTypes[112] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5944,7 +6201,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{107} + return file_state_v1_state_proto_rawDescGZIP(), []int{112} } func (x *InsertBindingRequest) GetBinding() *Binding { @@ -5963,7 +6220,7 @@ type InsertBindingResponse struct { func (x *InsertBindingResponse) Reset() { *x = InsertBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[108] + mi := &file_state_v1_state_proto_msgTypes[113] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5975,7 +6232,7 @@ func (x *InsertBindingResponse) String() string { func (*InsertBindingResponse) ProtoMessage() {} func (x *InsertBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[108] + mi := &file_state_v1_state_proto_msgTypes[113] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5988,7 +6245,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{108} + return file_state_v1_state_proto_rawDescGZIP(), []int{113} } func (x *InsertBindingResponse) GetId() int64 { @@ -6007,7 +6264,7 @@ type GetBindingRequest struct { func (x *GetBindingRequest) Reset() { *x = GetBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[109] + mi := &file_state_v1_state_proto_msgTypes[114] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6019,7 +6276,7 @@ func (x *GetBindingRequest) String() string { func (*GetBindingRequest) ProtoMessage() {} func (x *GetBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[109] + mi := &file_state_v1_state_proto_msgTypes[114] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6032,7 +6289,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{109} + return file_state_v1_state_proto_rawDescGZIP(), []int{114} } func (x *GetBindingRequest) GetId() int64 { @@ -6052,7 +6309,7 @@ type GetBindingResponse struct { func (x *GetBindingResponse) Reset() { *x = GetBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[110] + mi := &file_state_v1_state_proto_msgTypes[115] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6064,7 +6321,7 @@ func (x *GetBindingResponse) String() string { func (*GetBindingResponse) ProtoMessage() {} func (x *GetBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[110] + mi := &file_state_v1_state_proto_msgTypes[115] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6077,7 +6334,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{110} + return file_state_v1_state_proto_rawDescGZIP(), []int{115} } func (x *GetBindingResponse) GetBinding() *Binding { @@ -6102,7 +6359,7 @@ type ListBindingsRequest struct { func (x *ListBindingsRequest) Reset() { *x = ListBindingsRequest{} - mi := &file_state_v1_state_proto_msgTypes[111] + mi := &file_state_v1_state_proto_msgTypes[116] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6114,7 +6371,7 @@ func (x *ListBindingsRequest) String() string { func (*ListBindingsRequest) ProtoMessage() {} func (x *ListBindingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[111] + mi := &file_state_v1_state_proto_msgTypes[116] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6127,7 +6384,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{111} + return file_state_v1_state_proto_rawDescGZIP(), []int{116} } type ListBindingsResponse struct { @@ -6139,7 +6396,7 @@ type ListBindingsResponse struct { func (x *ListBindingsResponse) Reset() { *x = ListBindingsResponse{} - mi := &file_state_v1_state_proto_msgTypes[112] + mi := &file_state_v1_state_proto_msgTypes[117] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6151,7 +6408,7 @@ func (x *ListBindingsResponse) String() string { func (*ListBindingsResponse) ProtoMessage() {} func (x *ListBindingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[112] + mi := &file_state_v1_state_proto_msgTypes[117] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6164,7 +6421,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{112} + return file_state_v1_state_proto_rawDescGZIP(), []int{117} } func (x *ListBindingsResponse) GetBindings() []*Binding { @@ -6183,7 +6440,7 @@ type UpdateBindingRequest struct { func (x *UpdateBindingRequest) Reset() { *x = UpdateBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[113] + mi := &file_state_v1_state_proto_msgTypes[118] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6195,7 +6452,7 @@ func (x *UpdateBindingRequest) String() string { func (*UpdateBindingRequest) ProtoMessage() {} func (x *UpdateBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[113] + mi := &file_state_v1_state_proto_msgTypes[118] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6208,7 +6465,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{113} + return file_state_v1_state_proto_rawDescGZIP(), []int{118} } func (x *UpdateBindingRequest) GetBinding() *Binding { @@ -6226,7 +6483,7 @@ type UpdateBindingResponse struct { func (x *UpdateBindingResponse) Reset() { *x = UpdateBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[114] + mi := &file_state_v1_state_proto_msgTypes[119] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6238,7 +6495,7 @@ func (x *UpdateBindingResponse) String() string { func (*UpdateBindingResponse) ProtoMessage() {} func (x *UpdateBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[114] + mi := &file_state_v1_state_proto_msgTypes[119] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6251,7 +6508,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{114} + return file_state_v1_state_proto_rawDescGZIP(), []int{119} } type DeleteBindingRequest struct { @@ -6263,7 +6520,7 @@ type DeleteBindingRequest struct { func (x *DeleteBindingRequest) Reset() { *x = DeleteBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[115] + mi := &file_state_v1_state_proto_msgTypes[120] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6275,7 +6532,7 @@ func (x *DeleteBindingRequest) String() string { func (*DeleteBindingRequest) ProtoMessage() {} func (x *DeleteBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[115] + mi := &file_state_v1_state_proto_msgTypes[120] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6288,7 +6545,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{115} + return file_state_v1_state_proto_rawDescGZIP(), []int{120} } func (x *DeleteBindingRequest) GetId() int64 { @@ -6306,7 +6563,7 @@ type DeleteBindingResponse struct { func (x *DeleteBindingResponse) Reset() { *x = DeleteBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[116] + mi := &file_state_v1_state_proto_msgTypes[121] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6318,7 +6575,7 @@ func (x *DeleteBindingResponse) String() string { func (*DeleteBindingResponse) ProtoMessage() {} func (x *DeleteBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[116] + mi := &file_state_v1_state_proto_msgTypes[121] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6331,7 +6588,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{116} + return file_state_v1_state_proto_rawDescGZIP(), []int{121} } type ApproveBindingRequest struct { @@ -6343,7 +6600,7 @@ type ApproveBindingRequest struct { func (x *ApproveBindingRequest) Reset() { *x = ApproveBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[117] + mi := &file_state_v1_state_proto_msgTypes[122] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6355,7 +6612,7 @@ func (x *ApproveBindingRequest) String() string { func (*ApproveBindingRequest) ProtoMessage() {} func (x *ApproveBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[117] + mi := &file_state_v1_state_proto_msgTypes[122] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6368,7 +6625,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{117} + return file_state_v1_state_proto_rawDescGZIP(), []int{122} } func (x *ApproveBindingRequest) GetId() int64 { @@ -6386,7 +6643,7 @@ type ApproveBindingResponse struct { func (x *ApproveBindingResponse) Reset() { *x = ApproveBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[118] + mi := &file_state_v1_state_proto_msgTypes[123] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6398,7 +6655,7 @@ func (x *ApproveBindingResponse) String() string { func (*ApproveBindingResponse) ProtoMessage() {} func (x *ApproveBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[118] + mi := &file_state_v1_state_proto_msgTypes[123] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6411,7 +6668,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{118} + return file_state_v1_state_proto_rawDescGZIP(), []int{123} } type ArmedBindingsForSourceRequest struct { @@ -6423,7 +6680,7 @@ type ArmedBindingsForSourceRequest struct { func (x *ArmedBindingsForSourceRequest) Reset() { *x = ArmedBindingsForSourceRequest{} - mi := &file_state_v1_state_proto_msgTypes[119] + mi := &file_state_v1_state_proto_msgTypes[124] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6435,7 +6692,7 @@ func (x *ArmedBindingsForSourceRequest) String() string { func (*ArmedBindingsForSourceRequest) ProtoMessage() {} func (x *ArmedBindingsForSourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[119] + mi := &file_state_v1_state_proto_msgTypes[124] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6448,7 +6705,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{119} + return file_state_v1_state_proto_rawDescGZIP(), []int{124} } func (x *ArmedBindingsForSourceRequest) GetSource() string { @@ -6467,7 +6724,7 @@ type ArmedBindingsForSourceResponse struct { func (x *ArmedBindingsForSourceResponse) Reset() { *x = ArmedBindingsForSourceResponse{} - mi := &file_state_v1_state_proto_msgTypes[120] + mi := &file_state_v1_state_proto_msgTypes[125] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6479,7 +6736,7 @@ func (x *ArmedBindingsForSourceResponse) String() string { func (*ArmedBindingsForSourceResponse) ProtoMessage() {} func (x *ArmedBindingsForSourceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[120] + mi := &file_state_v1_state_proto_msgTypes[125] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6492,7 +6749,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{120} + return file_state_v1_state_proto_rawDescGZIP(), []int{125} } func (x *ArmedBindingsForSourceResponse) GetBindings() []*Binding { @@ -6514,7 +6771,7 @@ type RecordDispatchRequest struct { func (x *RecordDispatchRequest) Reset() { *x = RecordDispatchRequest{} - mi := &file_state_v1_state_proto_msgTypes[121] + mi := &file_state_v1_state_proto_msgTypes[126] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6526,7 +6783,7 @@ func (x *RecordDispatchRequest) String() string { func (*RecordDispatchRequest) ProtoMessage() {} func (x *RecordDispatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[121] + mi := &file_state_v1_state_proto_msgTypes[126] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6539,7 +6796,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{121} + return file_state_v1_state_proto_rawDescGZIP(), []int{126} } func (x *RecordDispatchRequest) GetBindingId() int64 { @@ -6578,7 +6835,7 @@ type RecordDispatchResponse struct { func (x *RecordDispatchResponse) Reset() { *x = RecordDispatchResponse{} - mi := &file_state_v1_state_proto_msgTypes[122] + mi := &file_state_v1_state_proto_msgTypes[127] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6590,7 +6847,7 @@ func (x *RecordDispatchResponse) String() string { func (*RecordDispatchResponse) ProtoMessage() {} func (x *RecordDispatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[122] + mi := &file_state_v1_state_proto_msgTypes[127] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6603,7 +6860,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{122} + return file_state_v1_state_proto_rawDescGZIP(), []int{127} } type RecordPlaybookDispatchRequest struct { @@ -6618,7 +6875,7 @@ type RecordPlaybookDispatchRequest struct { func (x *RecordPlaybookDispatchRequest) Reset() { *x = RecordPlaybookDispatchRequest{} - mi := &file_state_v1_state_proto_msgTypes[123] + mi := &file_state_v1_state_proto_msgTypes[128] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6630,7 +6887,7 @@ func (x *RecordPlaybookDispatchRequest) String() string { func (*RecordPlaybookDispatchRequest) ProtoMessage() {} func (x *RecordPlaybookDispatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[123] + mi := &file_state_v1_state_proto_msgTypes[128] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6643,7 +6900,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{123} + return file_state_v1_state_proto_rawDescGZIP(), []int{128} } func (x *RecordPlaybookDispatchRequest) GetPlaybookId() string { @@ -6682,7 +6939,7 @@ type RecordPlaybookDispatchResponse struct { func (x *RecordPlaybookDispatchResponse) Reset() { *x = RecordPlaybookDispatchResponse{} - mi := &file_state_v1_state_proto_msgTypes[124] + mi := &file_state_v1_state_proto_msgTypes[129] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6694,7 +6951,7 @@ func (x *RecordPlaybookDispatchResponse) String() string { func (*RecordPlaybookDispatchResponse) ProtoMessage() {} func (x *RecordPlaybookDispatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[124] + mi := &file_state_v1_state_proto_msgTypes[129] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6707,7 +6964,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{124} + return file_state_v1_state_proto_rawDescGZIP(), []int{129} } type DeletePlaybookDispatchesRequest struct { @@ -6719,7 +6976,7 @@ type DeletePlaybookDispatchesRequest struct { func (x *DeletePlaybookDispatchesRequest) Reset() { *x = DeletePlaybookDispatchesRequest{} - mi := &file_state_v1_state_proto_msgTypes[125] + mi := &file_state_v1_state_proto_msgTypes[130] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6731,7 +6988,7 @@ func (x *DeletePlaybookDispatchesRequest) String() string { func (*DeletePlaybookDispatchesRequest) ProtoMessage() {} func (x *DeletePlaybookDispatchesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[125] + mi := &file_state_v1_state_proto_msgTypes[130] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6744,7 +7001,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{125} + return file_state_v1_state_proto_rawDescGZIP(), []int{130} } func (x *DeletePlaybookDispatchesRequest) GetPlaybookId() string { @@ -6762,7 +7019,7 @@ type DeletePlaybookDispatchesResponse struct { func (x *DeletePlaybookDispatchesResponse) Reset() { *x = DeletePlaybookDispatchesResponse{} - mi := &file_state_v1_state_proto_msgTypes[126] + mi := &file_state_v1_state_proto_msgTypes[131] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6774,7 +7031,7 @@ func (x *DeletePlaybookDispatchesResponse) String() string { func (*DeletePlaybookDispatchesResponse) ProtoMessage() {} func (x *DeletePlaybookDispatchesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[126] + mi := &file_state_v1_state_proto_msgTypes[131] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6787,7 +7044,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{126} + return file_state_v1_state_proto_rawDescGZIP(), []int{131} } type ListUndispatchedCapturesRequest struct { @@ -6800,7 +7057,7 @@ type ListUndispatchedCapturesRequest struct { func (x *ListUndispatchedCapturesRequest) Reset() { *x = ListUndispatchedCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[127] + mi := &file_state_v1_state_proto_msgTypes[132] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6812,7 +7069,7 @@ func (x *ListUndispatchedCapturesRequest) String() string { func (*ListUndispatchedCapturesRequest) ProtoMessage() {} func (x *ListUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[127] + mi := &file_state_v1_state_proto_msgTypes[132] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6825,7 +7082,7 @@ func (x *ListUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListUndispatchedCapturesRequest.ProtoReflect.Descriptor instead. func (*ListUndispatchedCapturesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{127} + return file_state_v1_state_proto_rawDescGZIP(), []int{132} } func (x *ListUndispatchedCapturesRequest) GetSources() []string { @@ -6851,7 +7108,7 @@ type ListUndispatchedCapturesResponse struct { func (x *ListUndispatchedCapturesResponse) Reset() { *x = ListUndispatchedCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[128] + mi := &file_state_v1_state_proto_msgTypes[133] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6863,7 +7120,7 @@ func (x *ListUndispatchedCapturesResponse) String() string { func (*ListUndispatchedCapturesResponse) ProtoMessage() {} func (x *ListUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[128] + mi := &file_state_v1_state_proto_msgTypes[133] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6876,7 +7133,7 @@ func (x *ListUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListUndispatchedCapturesResponse.ProtoReflect.Descriptor instead. func (*ListUndispatchedCapturesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{128} + return file_state_v1_state_proto_rawDescGZIP(), []int{133} } func (x *ListUndispatchedCapturesResponse) GetCaptures() []*CapturedEvent { @@ -6896,7 +7153,7 @@ type StreamUndispatchedCapturesRequest struct { func (x *StreamUndispatchedCapturesRequest) Reset() { *x = StreamUndispatchedCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[129] + mi := &file_state_v1_state_proto_msgTypes[134] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6908,7 +7165,7 @@ func (x *StreamUndispatchedCapturesRequest) String() string { func (*StreamUndispatchedCapturesRequest) ProtoMessage() {} func (x *StreamUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[129] + mi := &file_state_v1_state_proto_msgTypes[134] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6921,7 +7178,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{129} + return file_state_v1_state_proto_rawDescGZIP(), []int{134} } func (x *StreamUndispatchedCapturesRequest) GetSources() []string { @@ -6948,7 +7205,7 @@ type StreamUndispatchedCapturesResponse struct { func (x *StreamUndispatchedCapturesResponse) Reset() { *x = StreamUndispatchedCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[130] + mi := &file_state_v1_state_proto_msgTypes[135] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6960,7 +7217,7 @@ func (x *StreamUndispatchedCapturesResponse) String() string { func (*StreamUndispatchedCapturesResponse) ProtoMessage() {} func (x *StreamUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[130] + mi := &file_state_v1_state_proto_msgTypes[135] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6973,7 +7230,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{130} + return file_state_v1_state_proto_rawDescGZIP(), []int{135} } func (x *StreamUndispatchedCapturesResponse) GetCapture() *CapturedEvent { @@ -6999,7 +7256,7 @@ type EnqueueBindingTaskRequest struct { func (x *EnqueueBindingTaskRequest) Reset() { *x = EnqueueBindingTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[131] + mi := &file_state_v1_state_proto_msgTypes[136] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7011,7 +7268,7 @@ func (x *EnqueueBindingTaskRequest) String() string { func (*EnqueueBindingTaskRequest) ProtoMessage() {} func (x *EnqueueBindingTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[131] + mi := &file_state_v1_state_proto_msgTypes[136] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7024,7 +7281,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{131} + return file_state_v1_state_proto_rawDescGZIP(), []int{136} } func (x *EnqueueBindingTaskRequest) GetOwner() string { @@ -7092,7 +7349,7 @@ type EnqueueBindingTaskResponse struct { func (x *EnqueueBindingTaskResponse) Reset() { *x = EnqueueBindingTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[132] + mi := &file_state_v1_state_proto_msgTypes[137] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7104,7 +7361,7 @@ func (x *EnqueueBindingTaskResponse) String() string { func (*EnqueueBindingTaskResponse) ProtoMessage() {} func (x *EnqueueBindingTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[132] + mi := &file_state_v1_state_proto_msgTypes[137] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7117,7 +7374,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{132} + return file_state_v1_state_proto_rawDescGZIP(), []int{137} } func (x *EnqueueBindingTaskResponse) GetTask() *Task { @@ -7442,7 +7699,24 @@ const file_state_v1_state_proto_rawDesc = "" + "\x18GetConfigSnapshotRequest\"g\n" + "\x19GetConfigSnapshotResponse\x124\n" + "\bsnapshot\x18\x01 \x01(\v2\x18.state.v1.ConfigSnapshotR\bsnapshot\x12\x14\n" + - "\x05found\x18\x02 \x01(\bR\x05found\"\xb7\x01\n" + + "\x05found\x18\x02 \x01(\bR\x05found\"\xe9\x01\n" + + "\rChannelStatus\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" + + "\x05state\x18\x03 \x01(\tR\x05state\x12\x16\n" + + "\x06detail\x18\x04 \x01(\tR\x06detail\x12\x1e\n" + + "\n" + + "configured\x18\x05 \x01(\bR\n" + + "configured\x12)\n" + + "\x10reload_supported\x18\x06 \x01(\bR\x0freloadSupported\x12;\n" + + "\vobserved_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "observedAt\"N\n" + + "\x17PutChannelStatusRequest\x123\n" + + "\bchannels\x18\x01 \x03(\v2\x17.state.v1.ChannelStatusR\bchannels\"\x1a\n" + + "\x18PutChannelStatusResponse\"\x1a\n" + + "\x18ListChannelStatusRequest\"P\n" + + "\x19ListChannelStatusResponse\x123\n" + + "\bchannels\x18\x01 \x03(\v2\x17.state.v1.ChannelStatusR\bchannels\"\xb7\x01\n" + "\vApplyStatus\x12\x18\n" + "\aprocess\x18\x01 \x01(\tR\aprocess\x12\x12\n" + "\x04kind\x18\x02 \x01(\tR\x04kind\x12'\n" + @@ -7587,7 +7861,7 @@ const file_state_v1_state_proto_rawDesc = "" + "binding_id\x18\a \x01(\x03R\tbindingId\x12'\n" + "\x0fbinding_version\x18\b \x01(\x03R\x0ebindingVersion\"@\n" + "\x1aEnqueueBindingTaskResponse\x12\"\n" + - "\x04task\x18\x01 \x01(\v2\x0e.state.v1.TaskR\x04task2\xd7&\n" + + "\x04task\x18\x01 \x01(\v2\x0e.state.v1.TaskR\x04task2\x90(\n" + "\x11StateStoreService\x12\\\n" + "\x11RegisterTaskGrant\x12\".state.v1.RegisterTaskGrantRequest\x1a#.state.v1.RegisterTaskGrantResponse\x12V\n" + "\x0fRevokeTaskGrant\x12 .state.v1.RevokeTaskGrantRequest\x1a!.state.v1.RevokeTaskGrantResponse\x12S\n" + @@ -7625,7 +7899,9 @@ const file_state_v1_state_proto_rawDesc = "" + "StageStats\x12\x1b.state.v1.StageStatsRequest\x1a\x1c.state.v1.StageStatsResponse\x12J\n" + "\vTokensByDay\x12\x1c.state.v1.TokensByDayRequest\x1a\x1d.state.v1.TokensByDayResponse\x12\\\n" + "\x11PutConfigSnapshot\x12\".state.v1.PutConfigSnapshotRequest\x1a#.state.v1.PutConfigSnapshotResponse\x12\\\n" + - "\x11GetConfigSnapshot\x12\".state.v1.GetConfigSnapshotRequest\x1a#.state.v1.GetConfigSnapshotResponse\x12S\n" + + "\x11GetConfigSnapshot\x12\".state.v1.GetConfigSnapshotRequest\x1a#.state.v1.GetConfigSnapshotResponse\x12Y\n" + + "\x10PutChannelStatus\x12!.state.v1.PutChannelStatusRequest\x1a\".state.v1.PutChannelStatusResponse\x12\\\n" + + "\x11ListChannelStatus\x12\".state.v1.ListChannelStatusRequest\x1a#.state.v1.ListChannelStatusResponse\x12S\n" + "\x0ePutApplyStatus\x12\x1f.state.v1.PutApplyStatusRequest\x1a .state.v1.PutApplyStatusResponse\x12V\n" + "\x0fListApplyStatus\x12 .state.v1.ListApplyStatusRequest\x1a!.state.v1.ListApplyStatusResponse\x12J\n" + "\vReadTaskLog\x12\x1c.state.v1.ReadTaskLogRequest\x1a\x1d.state.v1.ReadTaskLogResponse\x12g\n" + @@ -7668,7 +7944,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, 134) +var file_state_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 139) var file_state_v1_state_proto_goTypes = []any{ (*RegisterTaskGrantRequest)(nil), // 0: state.v1.RegisterTaskGrantRequest (*RegisterTaskGrantResponse)(nil), // 1: state.v1.RegisterTaskGrantResponse @@ -7751,64 +8027,69 @@ var file_state_v1_state_proto_goTypes = []any{ (*PutConfigSnapshotResponse)(nil), // 78: state.v1.PutConfigSnapshotResponse (*GetConfigSnapshotRequest)(nil), // 79: state.v1.GetConfigSnapshotRequest (*GetConfigSnapshotResponse)(nil), // 80: state.v1.GetConfigSnapshotResponse - (*ApplyStatus)(nil), // 81: state.v1.ApplyStatus - (*PutApplyStatusRequest)(nil), // 82: state.v1.PutApplyStatusRequest - (*PutApplyStatusResponse)(nil), // 83: state.v1.PutApplyStatusResponse - (*ListApplyStatusRequest)(nil), // 84: state.v1.ListApplyStatusRequest - (*ListApplyStatusResponse)(nil), // 85: state.v1.ListApplyStatusResponse - (*TaskLogEntry)(nil), // 86: state.v1.TaskLogEntry - (*ReadTaskLogRequest)(nil), // 87: state.v1.ReadTaskLogRequest - (*ReadTaskLogResponse)(nil), // 88: state.v1.ReadTaskLogResponse - (*StreamTaskLogContentRequest)(nil), // 89: state.v1.StreamTaskLogContentRequest - (*StreamTaskLogContentResponse)(nil), // 90: state.v1.StreamTaskLogContentResponse - (*InsertCaptureRequest)(nil), // 91: state.v1.InsertCaptureRequest - (*InsertCaptureResponse)(nil), // 92: state.v1.InsertCaptureResponse - (*ListCapturesRequest)(nil), // 93: state.v1.ListCapturesRequest - (*ListCapturesResponse)(nil), // 94: state.v1.ListCapturesResponse - (*StreamCapturesRequest)(nil), // 95: state.v1.StreamCapturesRequest - (*StreamCapturesResponse)(nil), // 96: state.v1.StreamCapturesResponse - (*InsertMappingRequest)(nil), // 97: state.v1.InsertMappingRequest - (*InsertMappingResponse)(nil), // 98: state.v1.InsertMappingResponse - (*GetMappingRequest)(nil), // 99: state.v1.GetMappingRequest - (*GetMappingResponse)(nil), // 100: state.v1.GetMappingResponse - (*ListMappingsRequest)(nil), // 101: state.v1.ListMappingsRequest - (*ListMappingsResponse)(nil), // 102: state.v1.ListMappingsResponse - (*UpdateMappingRequest)(nil), // 103: state.v1.UpdateMappingRequest - (*UpdateMappingResponse)(nil), // 104: state.v1.UpdateMappingResponse - (*DeleteMappingRequest)(nil), // 105: state.v1.DeleteMappingRequest - (*DeleteMappingResponse)(nil), // 106: state.v1.DeleteMappingResponse - (*InsertBindingRequest)(nil), // 107: state.v1.InsertBindingRequest - (*InsertBindingResponse)(nil), // 108: state.v1.InsertBindingResponse - (*GetBindingRequest)(nil), // 109: state.v1.GetBindingRequest - (*GetBindingResponse)(nil), // 110: state.v1.GetBindingResponse - (*ListBindingsRequest)(nil), // 111: state.v1.ListBindingsRequest - (*ListBindingsResponse)(nil), // 112: state.v1.ListBindingsResponse - (*UpdateBindingRequest)(nil), // 113: state.v1.UpdateBindingRequest - (*UpdateBindingResponse)(nil), // 114: state.v1.UpdateBindingResponse - (*DeleteBindingRequest)(nil), // 115: state.v1.DeleteBindingRequest - (*DeleteBindingResponse)(nil), // 116: state.v1.DeleteBindingResponse - (*ApproveBindingRequest)(nil), // 117: state.v1.ApproveBindingRequest - (*ApproveBindingResponse)(nil), // 118: state.v1.ApproveBindingResponse - (*ArmedBindingsForSourceRequest)(nil), // 119: state.v1.ArmedBindingsForSourceRequest - (*ArmedBindingsForSourceResponse)(nil), // 120: state.v1.ArmedBindingsForSourceResponse - (*RecordDispatchRequest)(nil), // 121: state.v1.RecordDispatchRequest - (*RecordDispatchResponse)(nil), // 122: state.v1.RecordDispatchResponse - (*RecordPlaybookDispatchRequest)(nil), // 123: state.v1.RecordPlaybookDispatchRequest - (*RecordPlaybookDispatchResponse)(nil), // 124: state.v1.RecordPlaybookDispatchResponse - (*DeletePlaybookDispatchesRequest)(nil), // 125: state.v1.DeletePlaybookDispatchesRequest - (*DeletePlaybookDispatchesResponse)(nil), // 126: state.v1.DeletePlaybookDispatchesResponse - (*ListUndispatchedCapturesRequest)(nil), // 127: state.v1.ListUndispatchedCapturesRequest - (*ListUndispatchedCapturesResponse)(nil), // 128: state.v1.ListUndispatchedCapturesResponse - (*StreamUndispatchedCapturesRequest)(nil), // 129: state.v1.StreamUndispatchedCapturesRequest - (*StreamUndispatchedCapturesResponse)(nil), // 130: state.v1.StreamUndispatchedCapturesResponse - (*EnqueueBindingTaskRequest)(nil), // 131: state.v1.EnqueueBindingTaskRequest - (*EnqueueBindingTaskResponse)(nil), // 132: state.v1.EnqueueBindingTaskResponse - nil, // 133: state.v1.StatusCountsResponse.CountsEntry - (*timestamppb.Timestamp)(nil), // 134: google.protobuf.Timestamp + (*ChannelStatus)(nil), // 81: state.v1.ChannelStatus + (*PutChannelStatusRequest)(nil), // 82: state.v1.PutChannelStatusRequest + (*PutChannelStatusResponse)(nil), // 83: state.v1.PutChannelStatusResponse + (*ListChannelStatusRequest)(nil), // 84: state.v1.ListChannelStatusRequest + (*ListChannelStatusResponse)(nil), // 85: state.v1.ListChannelStatusResponse + (*ApplyStatus)(nil), // 86: state.v1.ApplyStatus + (*PutApplyStatusRequest)(nil), // 87: state.v1.PutApplyStatusRequest + (*PutApplyStatusResponse)(nil), // 88: state.v1.PutApplyStatusResponse + (*ListApplyStatusRequest)(nil), // 89: state.v1.ListApplyStatusRequest + (*ListApplyStatusResponse)(nil), // 90: state.v1.ListApplyStatusResponse + (*TaskLogEntry)(nil), // 91: state.v1.TaskLogEntry + (*ReadTaskLogRequest)(nil), // 92: state.v1.ReadTaskLogRequest + (*ReadTaskLogResponse)(nil), // 93: state.v1.ReadTaskLogResponse + (*StreamTaskLogContentRequest)(nil), // 94: state.v1.StreamTaskLogContentRequest + (*StreamTaskLogContentResponse)(nil), // 95: state.v1.StreamTaskLogContentResponse + (*InsertCaptureRequest)(nil), // 96: state.v1.InsertCaptureRequest + (*InsertCaptureResponse)(nil), // 97: state.v1.InsertCaptureResponse + (*ListCapturesRequest)(nil), // 98: state.v1.ListCapturesRequest + (*ListCapturesResponse)(nil), // 99: state.v1.ListCapturesResponse + (*StreamCapturesRequest)(nil), // 100: state.v1.StreamCapturesRequest + (*StreamCapturesResponse)(nil), // 101: state.v1.StreamCapturesResponse + (*InsertMappingRequest)(nil), // 102: state.v1.InsertMappingRequest + (*InsertMappingResponse)(nil), // 103: state.v1.InsertMappingResponse + (*GetMappingRequest)(nil), // 104: state.v1.GetMappingRequest + (*GetMappingResponse)(nil), // 105: state.v1.GetMappingResponse + (*ListMappingsRequest)(nil), // 106: state.v1.ListMappingsRequest + (*ListMappingsResponse)(nil), // 107: state.v1.ListMappingsResponse + (*UpdateMappingRequest)(nil), // 108: state.v1.UpdateMappingRequest + (*UpdateMappingResponse)(nil), // 109: state.v1.UpdateMappingResponse + (*DeleteMappingRequest)(nil), // 110: state.v1.DeleteMappingRequest + (*DeleteMappingResponse)(nil), // 111: state.v1.DeleteMappingResponse + (*InsertBindingRequest)(nil), // 112: state.v1.InsertBindingRequest + (*InsertBindingResponse)(nil), // 113: state.v1.InsertBindingResponse + (*GetBindingRequest)(nil), // 114: state.v1.GetBindingRequest + (*GetBindingResponse)(nil), // 115: state.v1.GetBindingResponse + (*ListBindingsRequest)(nil), // 116: state.v1.ListBindingsRequest + (*ListBindingsResponse)(nil), // 117: state.v1.ListBindingsResponse + (*UpdateBindingRequest)(nil), // 118: state.v1.UpdateBindingRequest + (*UpdateBindingResponse)(nil), // 119: state.v1.UpdateBindingResponse + (*DeleteBindingRequest)(nil), // 120: state.v1.DeleteBindingRequest + (*DeleteBindingResponse)(nil), // 121: state.v1.DeleteBindingResponse + (*ApproveBindingRequest)(nil), // 122: state.v1.ApproveBindingRequest + (*ApproveBindingResponse)(nil), // 123: state.v1.ApproveBindingResponse + (*ArmedBindingsForSourceRequest)(nil), // 124: state.v1.ArmedBindingsForSourceRequest + (*ArmedBindingsForSourceResponse)(nil), // 125: state.v1.ArmedBindingsForSourceResponse + (*RecordDispatchRequest)(nil), // 126: state.v1.RecordDispatchRequest + (*RecordDispatchResponse)(nil), // 127: state.v1.RecordDispatchResponse + (*RecordPlaybookDispatchRequest)(nil), // 128: state.v1.RecordPlaybookDispatchRequest + (*RecordPlaybookDispatchResponse)(nil), // 129: state.v1.RecordPlaybookDispatchResponse + (*DeletePlaybookDispatchesRequest)(nil), // 130: state.v1.DeletePlaybookDispatchesRequest + (*DeletePlaybookDispatchesResponse)(nil), // 131: state.v1.DeletePlaybookDispatchesResponse + (*ListUndispatchedCapturesRequest)(nil), // 132: state.v1.ListUndispatchedCapturesRequest + (*ListUndispatchedCapturesResponse)(nil), // 133: state.v1.ListUndispatchedCapturesResponse + (*StreamUndispatchedCapturesRequest)(nil), // 134: state.v1.StreamUndispatchedCapturesRequest + (*StreamUndispatchedCapturesResponse)(nil), // 135: state.v1.StreamUndispatchedCapturesResponse + (*EnqueueBindingTaskRequest)(nil), // 136: state.v1.EnqueueBindingTaskRequest + (*EnqueueBindingTaskResponse)(nil), // 137: state.v1.EnqueueBindingTaskResponse + nil, // 138: state.v1.StatusCountsResponse.CountsEntry + (*timestamppb.Timestamp)(nil), // 139: google.protobuf.Timestamp } var file_state_v1_state_proto_depIdxs = []int32{ - 134, // 0: state.v1.Identity.created_at:type_name -> google.protobuf.Timestamp - 134, // 1: state.v1.Identity.updated_at:type_name -> google.protobuf.Timestamp + 139, // 0: state.v1.Identity.created_at:type_name -> google.protobuf.Timestamp + 139, // 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 @@ -7821,16 +8102,16 @@ var file_state_v1_state_proto_depIdxs = []int32{ 4, // 11: state.v1.SuspendIdentityResponse.identity:type_name -> state.v1.Identity 4, // 12: state.v1.ReactivateIdentityResponse.identity:type_name -> state.v1.Identity 4, // 13: state.v1.RetireIdentityResponse.identity:type_name -> state.v1.Identity - 134, // 14: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp - 134, // 15: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp - 134, // 16: state.v1.Event.at:type_name -> google.protobuf.Timestamp - 134, // 17: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp + 139, // 14: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp + 139, // 15: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp + 139, // 16: state.v1.Event.at:type_name -> google.protobuf.Timestamp + 139, // 17: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp 23, // 18: state.v1.Mapping.fields:type_name -> state.v1.MappingField - 134, // 19: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp - 134, // 20: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp + 139, // 19: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp + 139, // 20: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp 25, // 21: state.v1.Binding.matcher:type_name -> state.v1.BindingMatcher - 134, // 22: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp - 134, // 23: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp + 139, // 22: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp + 139, // 23: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp 20, // 24: state.v1.EnqueueChatTaskResponse.task:type_name -> state.v1.Task 20, // 25: state.v1.ClaimNextResponse.task:type_name -> state.v1.Task 20, // 26: state.v1.ClaimByIssueResponse.task:type_name -> state.v1.Task @@ -7841,161 +8122,168 @@ var file_state_v1_state_proto_depIdxs = []int32{ 20, // 31: state.v1.TaskByIDResponse.task:type_name -> state.v1.Task 20, // 32: state.v1.OpenPRsResponse.tasks:type_name -> state.v1.Task 20, // 33: state.v1.TasksResponse.tasks:type_name -> state.v1.Task - 133, // 34: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry + 138, // 34: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry 21, // 35: state.v1.InsertEventRequest.event:type_name -> state.v1.Event 21, // 36: state.v1.EventsSinceResponse.events:type_name -> state.v1.Event 21, // 37: state.v1.TaskEventsResponse.events:type_name -> state.v1.Event 27, // 38: state.v1.WorkflowStatsResponse.stats:type_name -> state.v1.WorkflowStat 28, // 39: state.v1.StageStatsResponse.stats:type_name -> state.v1.StageStat 29, // 40: state.v1.TokensByDayResponse.tokens:type_name -> state.v1.DayTokens - 134, // 41: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp + 139, // 41: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp 76, // 42: state.v1.PutConfigSnapshotRequest.snapshot:type_name -> state.v1.ConfigSnapshot 76, // 43: state.v1.GetConfigSnapshotResponse.snapshot:type_name -> state.v1.ConfigSnapshot - 134, // 44: state.v1.ApplyStatus.reported_at:type_name -> google.protobuf.Timestamp - 81, // 45: state.v1.PutApplyStatusRequest.status:type_name -> state.v1.ApplyStatus - 81, // 46: state.v1.ListApplyStatusResponse.statuses:type_name -> state.v1.ApplyStatus - 134, // 47: state.v1.TaskLogEntry.time:type_name -> google.protobuf.Timestamp - 134, // 48: state.v1.ReadTaskLogRequest.since:type_name -> google.protobuf.Timestamp - 134, // 49: state.v1.ReadTaskLogRequest.until:type_name -> google.protobuf.Timestamp - 86, // 50: state.v1.ReadTaskLogResponse.entries:type_name -> state.v1.TaskLogEntry - 22, // 51: state.v1.InsertCaptureRequest.capture:type_name -> state.v1.CapturedEvent - 22, // 52: state.v1.ListCapturesResponse.captures:type_name -> state.v1.CapturedEvent - 22, // 53: state.v1.StreamCapturesResponse.capture:type_name -> state.v1.CapturedEvent - 24, // 54: state.v1.InsertMappingRequest.mapping:type_name -> state.v1.Mapping - 24, // 55: state.v1.GetMappingResponse.mapping:type_name -> state.v1.Mapping - 24, // 56: state.v1.ListMappingsResponse.mappings:type_name -> state.v1.Mapping - 24, // 57: state.v1.UpdateMappingRequest.mapping:type_name -> state.v1.Mapping - 26, // 58: state.v1.InsertBindingRequest.binding:type_name -> state.v1.Binding - 26, // 59: state.v1.GetBindingResponse.binding:type_name -> state.v1.Binding - 26, // 60: state.v1.ListBindingsResponse.bindings:type_name -> state.v1.Binding - 26, // 61: state.v1.UpdateBindingRequest.binding:type_name -> state.v1.Binding - 26, // 62: state.v1.ArmedBindingsForSourceResponse.bindings:type_name -> state.v1.Binding - 22, // 63: state.v1.ListUndispatchedCapturesResponse.captures:type_name -> state.v1.CapturedEvent - 22, // 64: state.v1.StreamUndispatchedCapturesResponse.capture:type_name -> state.v1.CapturedEvent - 20, // 65: state.v1.EnqueueBindingTaskResponse.task:type_name -> state.v1.Task - 0, // 66: state.v1.StateStoreService.RegisterTaskGrant:input_type -> state.v1.RegisterTaskGrantRequest - 2, // 67: state.v1.StateStoreService.RevokeTaskGrant:input_type -> state.v1.RevokeTaskGrantRequest - 6, // 68: state.v1.StateStoreService.ListIdentities:input_type -> state.v1.ListIdentitiesRequest - 8, // 69: state.v1.StateStoreService.GetIdentity:input_type -> state.v1.GetIdentityRequest - 10, // 70: state.v1.StateStoreService.CreateIdentity:input_type -> state.v1.CreateIdentityRequest - 11, // 71: state.v1.StateStoreService.RenameIdentity:input_type -> state.v1.RenameIdentityRequest - 12, // 72: state.v1.StateStoreService.SuspendIdentity:input_type -> state.v1.SuspendIdentityRequest - 13, // 73: state.v1.StateStoreService.ReactivateIdentity:input_type -> state.v1.ReactivateIdentityRequest - 14, // 74: state.v1.StateStoreService.RetireIdentity:input_type -> state.v1.RetireIdentityRequest - 30, // 75: state.v1.StateStoreService.EnqueueIssue:input_type -> state.v1.EnqueueIssueRequest - 32, // 76: state.v1.StateStoreService.EnqueueChatTask:input_type -> state.v1.EnqueueChatTaskRequest - 34, // 77: state.v1.StateStoreService.ClaimNext:input_type -> state.v1.ClaimNextRequest - 36, // 78: state.v1.StateStoreService.ClaimByIssue:input_type -> state.v1.ClaimByIssueRequest - 38, // 79: state.v1.StateStoreService.Transition:input_type -> state.v1.TransitionRequest - 40, // 80: state.v1.StateStoreService.Update:input_type -> state.v1.UpdateRequest - 42, // 81: state.v1.StateStoreService.Requeue:input_type -> state.v1.RequeueRequest - 44, // 82: state.v1.StateStoreService.RecoverStale:input_type -> state.v1.RecoverStaleRequest - 46, // 83: state.v1.StateStoreService.ArchiveTask:input_type -> state.v1.ArchiveTaskRequest - 48, // 84: state.v1.StateStoreService.RetryTask:input_type -> state.v1.RetryTaskRequest - 50, // 85: state.v1.StateStoreService.TaskByIssue:input_type -> state.v1.TaskByIssueRequest - 52, // 86: state.v1.StateStoreService.OpenTaskByPR:input_type -> state.v1.OpenTaskByPRRequest - 54, // 87: state.v1.StateStoreService.TaskByID:input_type -> state.v1.TaskByIDRequest - 56, // 88: state.v1.StateStoreService.OpenPRs:input_type -> state.v1.OpenPRsRequest - 58, // 89: state.v1.StateStoreService.ClearTerminalTasks:input_type -> state.v1.ClearTerminalTasksRequest - 60, // 90: state.v1.StateStoreService.Tasks:input_type -> state.v1.TasksRequest - 62, // 91: state.v1.StateStoreService.StatusCounts:input_type -> state.v1.StatusCountsRequest - 64, // 92: state.v1.StateStoreService.InsertEvent:input_type -> state.v1.InsertEventRequest - 66, // 93: state.v1.StateStoreService.EventsSince:input_type -> state.v1.EventsSinceRequest - 68, // 94: state.v1.StateStoreService.TaskEvents:input_type -> state.v1.TaskEventsRequest - 70, // 95: state.v1.StateStoreService.WorkflowStats:input_type -> state.v1.WorkflowStatsRequest - 72, // 96: state.v1.StateStoreService.StageStats:input_type -> state.v1.StageStatsRequest - 74, // 97: state.v1.StateStoreService.TokensByDay:input_type -> state.v1.TokensByDayRequest - 77, // 98: state.v1.StateStoreService.PutConfigSnapshot:input_type -> state.v1.PutConfigSnapshotRequest - 79, // 99: state.v1.StateStoreService.GetConfigSnapshot:input_type -> state.v1.GetConfigSnapshotRequest - 82, // 100: state.v1.StateStoreService.PutApplyStatus:input_type -> state.v1.PutApplyStatusRequest - 84, // 101: state.v1.StateStoreService.ListApplyStatus:input_type -> state.v1.ListApplyStatusRequest - 87, // 102: state.v1.StateStoreService.ReadTaskLog:input_type -> state.v1.ReadTaskLogRequest - 89, // 103: state.v1.StateStoreService.StreamTaskLogContent:input_type -> state.v1.StreamTaskLogContentRequest - 91, // 104: state.v1.StateStoreService.InsertCapture:input_type -> state.v1.InsertCaptureRequest - 93, // 105: state.v1.StateStoreService.ListCaptures:input_type -> state.v1.ListCapturesRequest - 95, // 106: state.v1.StateStoreService.StreamCaptures:input_type -> state.v1.StreamCapturesRequest - 97, // 107: state.v1.StateStoreService.InsertMapping:input_type -> state.v1.InsertMappingRequest - 99, // 108: state.v1.StateStoreService.GetMapping:input_type -> state.v1.GetMappingRequest - 101, // 109: state.v1.StateStoreService.ListMappings:input_type -> state.v1.ListMappingsRequest - 103, // 110: state.v1.StateStoreService.UpdateMapping:input_type -> state.v1.UpdateMappingRequest - 105, // 111: state.v1.StateStoreService.DeleteMapping:input_type -> state.v1.DeleteMappingRequest - 107, // 112: state.v1.StateStoreService.InsertBinding:input_type -> state.v1.InsertBindingRequest - 109, // 113: state.v1.StateStoreService.GetBinding:input_type -> state.v1.GetBindingRequest - 111, // 114: state.v1.StateStoreService.ListBindings:input_type -> state.v1.ListBindingsRequest - 113, // 115: state.v1.StateStoreService.UpdateBinding:input_type -> state.v1.UpdateBindingRequest - 115, // 116: state.v1.StateStoreService.DeleteBinding:input_type -> state.v1.DeleteBindingRequest - 117, // 117: state.v1.StateStoreService.ApproveBinding:input_type -> state.v1.ApproveBindingRequest - 119, // 118: state.v1.StateStoreService.ArmedBindingsForSource:input_type -> state.v1.ArmedBindingsForSourceRequest - 121, // 119: state.v1.StateStoreService.RecordDispatch:input_type -> state.v1.RecordDispatchRequest - 123, // 120: state.v1.StateStoreService.RecordPlaybookDispatch:input_type -> state.v1.RecordPlaybookDispatchRequest - 125, // 121: state.v1.StateStoreService.DeletePlaybookDispatches:input_type -> state.v1.DeletePlaybookDispatchesRequest - 127, // 122: state.v1.StateStoreService.ListUndispatchedCaptures:input_type -> state.v1.ListUndispatchedCapturesRequest - 129, // 123: state.v1.StateStoreService.StreamUndispatchedCaptures:input_type -> state.v1.StreamUndispatchedCapturesRequest - 131, // 124: state.v1.StateStoreService.EnqueueBindingTask:input_type -> state.v1.EnqueueBindingTaskRequest - 1, // 125: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse - 3, // 126: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse - 7, // 127: state.v1.StateStoreService.ListIdentities:output_type -> state.v1.ListIdentitiesResponse - 9, // 128: state.v1.StateStoreService.GetIdentity:output_type -> state.v1.GetIdentityResponse - 15, // 129: state.v1.StateStoreService.CreateIdentity:output_type -> state.v1.CreateIdentityResponse - 16, // 130: state.v1.StateStoreService.RenameIdentity:output_type -> state.v1.RenameIdentityResponse - 17, // 131: state.v1.StateStoreService.SuspendIdentity:output_type -> state.v1.SuspendIdentityResponse - 18, // 132: state.v1.StateStoreService.ReactivateIdentity:output_type -> state.v1.ReactivateIdentityResponse - 19, // 133: state.v1.StateStoreService.RetireIdentity:output_type -> state.v1.RetireIdentityResponse - 31, // 134: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse - 33, // 135: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse - 35, // 136: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse - 37, // 137: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse - 39, // 138: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse - 41, // 139: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse - 43, // 140: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse - 45, // 141: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse - 47, // 142: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse - 49, // 143: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse - 51, // 144: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse - 53, // 145: state.v1.StateStoreService.OpenTaskByPR:output_type -> state.v1.OpenTaskByPRResponse - 55, // 146: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse - 57, // 147: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse - 59, // 148: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse - 61, // 149: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse - 63, // 150: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse - 65, // 151: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse - 67, // 152: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse - 69, // 153: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse - 71, // 154: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse - 73, // 155: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse - 75, // 156: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse - 78, // 157: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse - 80, // 158: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse - 83, // 159: state.v1.StateStoreService.PutApplyStatus:output_type -> state.v1.PutApplyStatusResponse - 85, // 160: state.v1.StateStoreService.ListApplyStatus:output_type -> state.v1.ListApplyStatusResponse - 88, // 161: state.v1.StateStoreService.ReadTaskLog:output_type -> state.v1.ReadTaskLogResponse - 90, // 162: state.v1.StateStoreService.StreamTaskLogContent:output_type -> state.v1.StreamTaskLogContentResponse - 92, // 163: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse - 94, // 164: state.v1.StateStoreService.ListCaptures:output_type -> state.v1.ListCapturesResponse - 96, // 165: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse - 98, // 166: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse - 100, // 167: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse - 102, // 168: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse - 104, // 169: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse - 106, // 170: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse - 108, // 171: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse - 110, // 172: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse - 112, // 173: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse - 114, // 174: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse - 116, // 175: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse - 118, // 176: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse - 120, // 177: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse - 122, // 178: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse - 124, // 179: state.v1.StateStoreService.RecordPlaybookDispatch:output_type -> state.v1.RecordPlaybookDispatchResponse - 126, // 180: state.v1.StateStoreService.DeletePlaybookDispatches:output_type -> state.v1.DeletePlaybookDispatchesResponse - 128, // 181: state.v1.StateStoreService.ListUndispatchedCaptures:output_type -> state.v1.ListUndispatchedCapturesResponse - 130, // 182: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse - 132, // 183: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse - 125, // [125:184] is the sub-list for method output_type - 66, // [66:125] is the sub-list for method input_type - 66, // [66:66] is the sub-list for extension type_name - 66, // [66:66] is the sub-list for extension extendee - 0, // [0:66] is the sub-list for field type_name + 139, // 44: state.v1.ChannelStatus.observed_at:type_name -> google.protobuf.Timestamp + 81, // 45: state.v1.PutChannelStatusRequest.channels:type_name -> state.v1.ChannelStatus + 81, // 46: state.v1.ListChannelStatusResponse.channels:type_name -> state.v1.ChannelStatus + 139, // 47: state.v1.ApplyStatus.reported_at:type_name -> google.protobuf.Timestamp + 86, // 48: state.v1.PutApplyStatusRequest.status:type_name -> state.v1.ApplyStatus + 86, // 49: state.v1.ListApplyStatusResponse.statuses:type_name -> state.v1.ApplyStatus + 139, // 50: state.v1.TaskLogEntry.time:type_name -> google.protobuf.Timestamp + 139, // 51: state.v1.ReadTaskLogRequest.since:type_name -> google.protobuf.Timestamp + 139, // 52: state.v1.ReadTaskLogRequest.until:type_name -> google.protobuf.Timestamp + 91, // 53: state.v1.ReadTaskLogResponse.entries:type_name -> state.v1.TaskLogEntry + 22, // 54: state.v1.InsertCaptureRequest.capture:type_name -> state.v1.CapturedEvent + 22, // 55: state.v1.ListCapturesResponse.captures:type_name -> state.v1.CapturedEvent + 22, // 56: state.v1.StreamCapturesResponse.capture:type_name -> state.v1.CapturedEvent + 24, // 57: state.v1.InsertMappingRequest.mapping:type_name -> state.v1.Mapping + 24, // 58: state.v1.GetMappingResponse.mapping:type_name -> state.v1.Mapping + 24, // 59: state.v1.ListMappingsResponse.mappings:type_name -> state.v1.Mapping + 24, // 60: state.v1.UpdateMappingRequest.mapping:type_name -> state.v1.Mapping + 26, // 61: state.v1.InsertBindingRequest.binding:type_name -> state.v1.Binding + 26, // 62: state.v1.GetBindingResponse.binding:type_name -> state.v1.Binding + 26, // 63: state.v1.ListBindingsResponse.bindings:type_name -> state.v1.Binding + 26, // 64: state.v1.UpdateBindingRequest.binding:type_name -> state.v1.Binding + 26, // 65: state.v1.ArmedBindingsForSourceResponse.bindings:type_name -> state.v1.Binding + 22, // 66: state.v1.ListUndispatchedCapturesResponse.captures:type_name -> state.v1.CapturedEvent + 22, // 67: state.v1.StreamUndispatchedCapturesResponse.capture:type_name -> state.v1.CapturedEvent + 20, // 68: state.v1.EnqueueBindingTaskResponse.task:type_name -> state.v1.Task + 0, // 69: state.v1.StateStoreService.RegisterTaskGrant:input_type -> state.v1.RegisterTaskGrantRequest + 2, // 70: state.v1.StateStoreService.RevokeTaskGrant:input_type -> state.v1.RevokeTaskGrantRequest + 6, // 71: state.v1.StateStoreService.ListIdentities:input_type -> state.v1.ListIdentitiesRequest + 8, // 72: state.v1.StateStoreService.GetIdentity:input_type -> state.v1.GetIdentityRequest + 10, // 73: state.v1.StateStoreService.CreateIdentity:input_type -> state.v1.CreateIdentityRequest + 11, // 74: state.v1.StateStoreService.RenameIdentity:input_type -> state.v1.RenameIdentityRequest + 12, // 75: state.v1.StateStoreService.SuspendIdentity:input_type -> state.v1.SuspendIdentityRequest + 13, // 76: state.v1.StateStoreService.ReactivateIdentity:input_type -> state.v1.ReactivateIdentityRequest + 14, // 77: state.v1.StateStoreService.RetireIdentity:input_type -> state.v1.RetireIdentityRequest + 30, // 78: state.v1.StateStoreService.EnqueueIssue:input_type -> state.v1.EnqueueIssueRequest + 32, // 79: state.v1.StateStoreService.EnqueueChatTask:input_type -> state.v1.EnqueueChatTaskRequest + 34, // 80: state.v1.StateStoreService.ClaimNext:input_type -> state.v1.ClaimNextRequest + 36, // 81: state.v1.StateStoreService.ClaimByIssue:input_type -> state.v1.ClaimByIssueRequest + 38, // 82: state.v1.StateStoreService.Transition:input_type -> state.v1.TransitionRequest + 40, // 83: state.v1.StateStoreService.Update:input_type -> state.v1.UpdateRequest + 42, // 84: state.v1.StateStoreService.Requeue:input_type -> state.v1.RequeueRequest + 44, // 85: state.v1.StateStoreService.RecoverStale:input_type -> state.v1.RecoverStaleRequest + 46, // 86: state.v1.StateStoreService.ArchiveTask:input_type -> state.v1.ArchiveTaskRequest + 48, // 87: state.v1.StateStoreService.RetryTask:input_type -> state.v1.RetryTaskRequest + 50, // 88: state.v1.StateStoreService.TaskByIssue:input_type -> state.v1.TaskByIssueRequest + 52, // 89: state.v1.StateStoreService.OpenTaskByPR:input_type -> state.v1.OpenTaskByPRRequest + 54, // 90: state.v1.StateStoreService.TaskByID:input_type -> state.v1.TaskByIDRequest + 56, // 91: state.v1.StateStoreService.OpenPRs:input_type -> state.v1.OpenPRsRequest + 58, // 92: state.v1.StateStoreService.ClearTerminalTasks:input_type -> state.v1.ClearTerminalTasksRequest + 60, // 93: state.v1.StateStoreService.Tasks:input_type -> state.v1.TasksRequest + 62, // 94: state.v1.StateStoreService.StatusCounts:input_type -> state.v1.StatusCountsRequest + 64, // 95: state.v1.StateStoreService.InsertEvent:input_type -> state.v1.InsertEventRequest + 66, // 96: state.v1.StateStoreService.EventsSince:input_type -> state.v1.EventsSinceRequest + 68, // 97: state.v1.StateStoreService.TaskEvents:input_type -> state.v1.TaskEventsRequest + 70, // 98: state.v1.StateStoreService.WorkflowStats:input_type -> state.v1.WorkflowStatsRequest + 72, // 99: state.v1.StateStoreService.StageStats:input_type -> state.v1.StageStatsRequest + 74, // 100: state.v1.StateStoreService.TokensByDay:input_type -> state.v1.TokensByDayRequest + 77, // 101: state.v1.StateStoreService.PutConfigSnapshot:input_type -> state.v1.PutConfigSnapshotRequest + 79, // 102: state.v1.StateStoreService.GetConfigSnapshot:input_type -> state.v1.GetConfigSnapshotRequest + 82, // 103: state.v1.StateStoreService.PutChannelStatus:input_type -> state.v1.PutChannelStatusRequest + 84, // 104: state.v1.StateStoreService.ListChannelStatus:input_type -> state.v1.ListChannelStatusRequest + 87, // 105: state.v1.StateStoreService.PutApplyStatus:input_type -> state.v1.PutApplyStatusRequest + 89, // 106: state.v1.StateStoreService.ListApplyStatus:input_type -> state.v1.ListApplyStatusRequest + 92, // 107: state.v1.StateStoreService.ReadTaskLog:input_type -> state.v1.ReadTaskLogRequest + 94, // 108: state.v1.StateStoreService.StreamTaskLogContent:input_type -> state.v1.StreamTaskLogContentRequest + 96, // 109: state.v1.StateStoreService.InsertCapture:input_type -> state.v1.InsertCaptureRequest + 98, // 110: state.v1.StateStoreService.ListCaptures:input_type -> state.v1.ListCapturesRequest + 100, // 111: state.v1.StateStoreService.StreamCaptures:input_type -> state.v1.StreamCapturesRequest + 102, // 112: state.v1.StateStoreService.InsertMapping:input_type -> state.v1.InsertMappingRequest + 104, // 113: state.v1.StateStoreService.GetMapping:input_type -> state.v1.GetMappingRequest + 106, // 114: state.v1.StateStoreService.ListMappings:input_type -> state.v1.ListMappingsRequest + 108, // 115: state.v1.StateStoreService.UpdateMapping:input_type -> state.v1.UpdateMappingRequest + 110, // 116: state.v1.StateStoreService.DeleteMapping:input_type -> state.v1.DeleteMappingRequest + 112, // 117: state.v1.StateStoreService.InsertBinding:input_type -> state.v1.InsertBindingRequest + 114, // 118: state.v1.StateStoreService.GetBinding:input_type -> state.v1.GetBindingRequest + 116, // 119: state.v1.StateStoreService.ListBindings:input_type -> state.v1.ListBindingsRequest + 118, // 120: state.v1.StateStoreService.UpdateBinding:input_type -> state.v1.UpdateBindingRequest + 120, // 121: state.v1.StateStoreService.DeleteBinding:input_type -> state.v1.DeleteBindingRequest + 122, // 122: state.v1.StateStoreService.ApproveBinding:input_type -> state.v1.ApproveBindingRequest + 124, // 123: state.v1.StateStoreService.ArmedBindingsForSource:input_type -> state.v1.ArmedBindingsForSourceRequest + 126, // 124: state.v1.StateStoreService.RecordDispatch:input_type -> state.v1.RecordDispatchRequest + 128, // 125: state.v1.StateStoreService.RecordPlaybookDispatch:input_type -> state.v1.RecordPlaybookDispatchRequest + 130, // 126: state.v1.StateStoreService.DeletePlaybookDispatches:input_type -> state.v1.DeletePlaybookDispatchesRequest + 132, // 127: state.v1.StateStoreService.ListUndispatchedCaptures:input_type -> state.v1.ListUndispatchedCapturesRequest + 134, // 128: state.v1.StateStoreService.StreamUndispatchedCaptures:input_type -> state.v1.StreamUndispatchedCapturesRequest + 136, // 129: state.v1.StateStoreService.EnqueueBindingTask:input_type -> state.v1.EnqueueBindingTaskRequest + 1, // 130: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse + 3, // 131: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse + 7, // 132: state.v1.StateStoreService.ListIdentities:output_type -> state.v1.ListIdentitiesResponse + 9, // 133: state.v1.StateStoreService.GetIdentity:output_type -> state.v1.GetIdentityResponse + 15, // 134: state.v1.StateStoreService.CreateIdentity:output_type -> state.v1.CreateIdentityResponse + 16, // 135: state.v1.StateStoreService.RenameIdentity:output_type -> state.v1.RenameIdentityResponse + 17, // 136: state.v1.StateStoreService.SuspendIdentity:output_type -> state.v1.SuspendIdentityResponse + 18, // 137: state.v1.StateStoreService.ReactivateIdentity:output_type -> state.v1.ReactivateIdentityResponse + 19, // 138: state.v1.StateStoreService.RetireIdentity:output_type -> state.v1.RetireIdentityResponse + 31, // 139: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse + 33, // 140: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse + 35, // 141: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse + 37, // 142: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse + 39, // 143: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse + 41, // 144: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse + 43, // 145: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse + 45, // 146: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse + 47, // 147: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse + 49, // 148: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse + 51, // 149: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse + 53, // 150: state.v1.StateStoreService.OpenTaskByPR:output_type -> state.v1.OpenTaskByPRResponse + 55, // 151: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse + 57, // 152: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse + 59, // 153: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse + 61, // 154: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse + 63, // 155: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse + 65, // 156: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse + 67, // 157: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse + 69, // 158: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse + 71, // 159: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse + 73, // 160: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse + 75, // 161: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse + 78, // 162: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse + 80, // 163: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse + 83, // 164: state.v1.StateStoreService.PutChannelStatus:output_type -> state.v1.PutChannelStatusResponse + 85, // 165: state.v1.StateStoreService.ListChannelStatus:output_type -> state.v1.ListChannelStatusResponse + 88, // 166: state.v1.StateStoreService.PutApplyStatus:output_type -> state.v1.PutApplyStatusResponse + 90, // 167: state.v1.StateStoreService.ListApplyStatus:output_type -> state.v1.ListApplyStatusResponse + 93, // 168: state.v1.StateStoreService.ReadTaskLog:output_type -> state.v1.ReadTaskLogResponse + 95, // 169: state.v1.StateStoreService.StreamTaskLogContent:output_type -> state.v1.StreamTaskLogContentResponse + 97, // 170: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse + 99, // 171: state.v1.StateStoreService.ListCaptures:output_type -> state.v1.ListCapturesResponse + 101, // 172: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse + 103, // 173: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse + 105, // 174: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse + 107, // 175: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse + 109, // 176: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse + 111, // 177: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse + 113, // 178: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse + 115, // 179: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse + 117, // 180: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse + 119, // 181: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse + 121, // 182: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse + 123, // 183: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse + 125, // 184: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse + 127, // 185: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse + 129, // 186: state.v1.StateStoreService.RecordPlaybookDispatch:output_type -> state.v1.RecordPlaybookDispatchResponse + 131, // 187: state.v1.StateStoreService.DeletePlaybookDispatches:output_type -> state.v1.DeletePlaybookDispatchesResponse + 133, // 188: state.v1.StateStoreService.ListUndispatchedCaptures:output_type -> state.v1.ListUndispatchedCapturesResponse + 135, // 189: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse + 137, // 190: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse + 130, // [130:191] is the sub-list for method output_type + 69, // [69:130] is the sub-list for method input_type + 69, // [69:69] is the sub-list for extension type_name + 69, // [69:69] is the sub-list for extension extendee + 0, // [0:69] is the sub-list for field type_name } func init() { file_state_v1_state_proto_init() } @@ -8009,7 +8297,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: 134, + NumMessages: 139, 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 d9220146d..0b2e4b138 100644 --- a/internal/contracts/state/v1/state_grpc.pb.go +++ b/internal/contracts/state/v1/state_grpc.pb.go @@ -53,6 +53,8 @@ const ( StateStoreService_TokensByDay_FullMethodName = "/state.v1.StateStoreService/TokensByDay" StateStoreService_PutConfigSnapshot_FullMethodName = "/state.v1.StateStoreService/PutConfigSnapshot" StateStoreService_GetConfigSnapshot_FullMethodName = "/state.v1.StateStoreService/GetConfigSnapshot" + StateStoreService_PutChannelStatus_FullMethodName = "/state.v1.StateStoreService/PutChannelStatus" + StateStoreService_ListChannelStatus_FullMethodName = "/state.v1.StateStoreService/ListChannelStatus" StateStoreService_PutApplyStatus_FullMethodName = "/state.v1.StateStoreService/PutApplyStatus" StateStoreService_ListApplyStatus_FullMethodName = "/state.v1.StateStoreService/ListApplyStatus" StateStoreService_ReadTaskLog_FullMethodName = "/state.v1.StateStoreService/ReadTaskLog" @@ -137,6 +139,14 @@ type StateStoreServiceClient interface { // configuration page"). PutConfigSnapshot(ctx context.Context, in *PutConfigSnapshotRequest, opts ...grpc.CallOption) (*PutConfigSnapshotResponse, error) GetConfigSnapshot(ctx context.Context, in *GetConfigSnapshotRequest, opts ...grpc.CallOption) (*GetConfigSnapshotResponse, error) + // Channel status is what the process HOSTING the channels observes about them: + // one row per channel, written by the Messaging Service and read by the UI + // process. Administrative like the config snapshot, and for the same reason -- + // a task-scoped grant reaches neither, so authorizesTaskScopedCall admits only + // the administrative token. It is runtime state rather than a settings + // document, which is why it is not a ControlPlaneService resource kind. + PutChannelStatus(ctx context.Context, in *PutChannelStatusRequest, opts ...grpc.CallOption) (*PutChannelStatusResponse, error) + ListChannelStatus(ctx context.Context, in *ListChannelStatusRequest, opts ...grpc.CallOption) (*ListChannelStatusResponse, error) // Apply status: which version of a control-plane resource each process is // running, and why it could not. Every process that applies a resource // publishes; the UI process reads (docs/prds/control-plane-apply-status.md). @@ -545,6 +555,26 @@ func (c *stateStoreServiceClient) GetConfigSnapshot(ctx context.Context, in *Get return out, nil } +func (c *stateStoreServiceClient) PutChannelStatus(ctx context.Context, in *PutChannelStatusRequest, opts ...grpc.CallOption) (*PutChannelStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PutChannelStatusResponse) + err := c.cc.Invoke(ctx, StateStoreService_PutChannelStatus_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *stateStoreServiceClient) ListChannelStatus(ctx context.Context, in *ListChannelStatusRequest, opts ...grpc.CallOption) (*ListChannelStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListChannelStatusResponse) + err := c.cc.Invoke(ctx, StateStoreService_ListChannelStatus_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *stateStoreServiceClient) PutApplyStatus(ctx context.Context, in *PutApplyStatusRequest, opts ...grpc.CallOption) (*PutApplyStatusResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PutApplyStatusResponse) @@ -881,6 +911,14 @@ type StateStoreServiceServer interface { // configuration page"). PutConfigSnapshot(context.Context, *PutConfigSnapshotRequest) (*PutConfigSnapshotResponse, error) GetConfigSnapshot(context.Context, *GetConfigSnapshotRequest) (*GetConfigSnapshotResponse, error) + // Channel status is what the process HOSTING the channels observes about them: + // one row per channel, written by the Messaging Service and read by the UI + // process. Administrative like the config snapshot, and for the same reason -- + // a task-scoped grant reaches neither, so authorizesTaskScopedCall admits only + // the administrative token. It is runtime state rather than a settings + // document, which is why it is not a ControlPlaneService resource kind. + PutChannelStatus(context.Context, *PutChannelStatusRequest) (*PutChannelStatusResponse, error) + ListChannelStatus(context.Context, *ListChannelStatusRequest) (*ListChannelStatusResponse, error) // Apply status: which version of a control-plane resource each process is // running, and why it could not. Every process that applies a resource // publishes; the UI process reads (docs/prds/control-plane-apply-status.md). @@ -1051,6 +1089,12 @@ func (UnimplementedStateStoreServiceServer) PutConfigSnapshot(context.Context, * func (UnimplementedStateStoreServiceServer) GetConfigSnapshot(context.Context, *GetConfigSnapshotRequest) (*GetConfigSnapshotResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetConfigSnapshot not implemented") } +func (UnimplementedStateStoreServiceServer) PutChannelStatus(context.Context, *PutChannelStatusRequest) (*PutChannelStatusResponse, error) { + return nil, status.Error(codes.Unimplemented, "method PutChannelStatus not implemented") +} +func (UnimplementedStateStoreServiceServer) ListChannelStatus(context.Context, *ListChannelStatusRequest) (*ListChannelStatusResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListChannelStatus not implemented") +} func (UnimplementedStateStoreServiceServer) PutApplyStatus(context.Context, *PutApplyStatusRequest) (*PutApplyStatusResponse, error) { return nil, status.Error(codes.Unimplemented, "method PutApplyStatus not implemented") } @@ -1759,6 +1803,42 @@ func _StateStoreService_GetConfigSnapshot_Handler(srv interface{}, ctx context.C return interceptor(ctx, in, info, handler) } +func _StateStoreService_PutChannelStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PutChannelStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StateStoreServiceServer).PutChannelStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: StateStoreService_PutChannelStatus_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StateStoreServiceServer).PutChannelStatus(ctx, req.(*PutChannelStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _StateStoreService_ListChannelStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListChannelStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StateStoreServiceServer).ListChannelStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: StateStoreService_ListChannelStatus_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StateStoreServiceServer).ListChannelStatus(ctx, req.(*ListChannelStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _StateStoreService_PutApplyStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PutApplyStatusRequest) if err := dec(in); err != nil { @@ -2331,6 +2411,14 @@ var StateStoreService_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetConfigSnapshot", Handler: _StateStoreService_GetConfigSnapshot_Handler, }, + { + MethodName: "PutChannelStatus", + Handler: _StateStoreService_PutChannelStatus_Handler, + }, + { + MethodName: "ListChannelStatus", + Handler: _StateStoreService_ListChannelStatus_Handler, + }, { MethodName: "PutApplyStatus", Handler: _StateStoreService_PutApplyStatus_Handler, diff --git a/internal/domain/storecontract/storecontract.go b/internal/domain/storecontract/storecontract.go index 80bd22c04..1956cee8a 100644 --- a/internal/domain/storecontract/storecontract.go +++ b/internal/domain/storecontract/storecontract.go @@ -109,6 +109,23 @@ type ConfigSnapshotStore interface { ConfigSnapshot(ctx context.Context) (ConfigSnapshot, bool, error) } +// ChannelStatusStore holds channel runtime state as the process HOSTING the +// channels observes it. Same split as ConfigSnapshotStore and for the same +// reason: the writer is the Messaging Service, the reader is the UI process, and +// a task-scoped credential must reach neither. +// +// It is runtime state rather than a settings document -- a channel that is +// failed is not a document anybody edits -- which is why it is not a +// ControlPlaneService resource kind. +// See docs/architecture/migration-decisions.md, "Channel state to the dashboard". +type ChannelStatusStore interface { + // PutChannelStatus records the reporting process's whole set: a channel it no + // longer reports is removed rather than left behind, because a stale "running" + // row is a lie the dashboard would show indefinitely. + PutChannelStatus(ctx context.Context, channels []ChannelStatus) error + ChannelStatus(ctx context.Context) ([]ChannelStatus, error) +} + // ApplyStatusStore holds which version of each control-plane resource each // process is running. Same split as ConfigSnapshotStore and for the same // reason: the writers are the processes that apply a resource, the reader is @@ -240,6 +257,20 @@ type ConfigSnapshot struct { PublishedAt time.Time } +// ChannelStatus is one channel's runtime state as the process hosting it +// reports it. ReloadSupported is a capability declaration rather than a request: +// asking for a reload travels on its own surface, because a transient request and +// a durable state do not share a lifetime. +type ChannelStatus struct { + ID string + Name string + State string + Detail string + Configured bool + ReloadSupported bool + ObservedAt time.Time +} + // ApplyStatus is one process's report about one control-plane resource kind. // // AppliedVersion is the version that process is running. Error is set when the diff --git a/internal/infrastructure/staterpc/client.go b/internal/infrastructure/staterpc/client.go index ca277eed5..57a23cb0c 100644 --- a/internal/infrastructure/staterpc/client.go +++ b/internal/infrastructure/staterpc/client.go @@ -51,6 +51,7 @@ var ( _ storecontract.BindingTaskCreator = (*Client)(nil) _ storecontract.PlaybookDispatcher = (*Client)(nil) _ storecontract.ConfigSnapshotStore = (*Client)(nil) + _ storecontract.ChannelStatusStore = (*Client)(nil) _ storecontract.ApplyStatusStore = (*Client)(nil) _ identity.Repository = (*Client)(nil) ) @@ -291,6 +292,26 @@ func (c *Client) ConfigSnapshot(ctx context.Context) (storecontract.ConfigSnapsh return configSnapshotValue(reply.Snapshot), true, nil } +// PutChannelStatus publishes the channel state the hosting process observes. +// Administrative, like the config snapshot pair: the server admits it on the +// administrative token only, so a task-scoped grant cannot reach it. +func (c *Client) PutChannelStatus(ctx context.Context, channels []storecontract.ChannelStatus) error { + _, err := c.client.PutChannelStatus(ctx, &pb.PutChannelStatusRequest{Channels: channelStatusesProto(channels)}) + if err != nil { + return unmapError(err) + } + return nil +} + +// ChannelStatus reads every reported channel. +func (c *Client) ChannelStatus(ctx context.Context) ([]storecontract.ChannelStatus, error) { + reply, err := c.client.ListChannelStatus(ctx, &pb.ListChannelStatusRequest{}) + if err != nil { + return nil, unmapError(err) + } + return channelStatusesValue(reply.Channels), nil +} + // PutApplyStatus reports what this process applied for one resource kind. // Administrative, like the config snapshot pair: a task-scoped grant cannot // reach it. diff --git a/internal/infrastructure/staterpc/server.go b/internal/infrastructure/staterpc/server.go index e18caee03..8de0358f7 100644 --- a/internal/infrastructure/staterpc/server.go +++ b/internal/infrastructure/staterpc/server.go @@ -31,6 +31,7 @@ import ( var ( errCaptureUnavailable = status.Error(codes.Unavailable, "capture store unavailable") errConfigSnapshotsUnavailable = status.Error(codes.Unavailable, "config snapshot store unavailable") + errChannelStatusUnavailable = status.Error(codes.Unavailable, "channel status store unavailable") errApplyStatusUnavailable = status.Error(codes.Unavailable, "apply status store unavailable") errMappingUnavailable = status.Error(codes.Unavailable, "mapping store unavailable") errBindingUnavailable = status.Error(codes.Unavailable, "binding store unavailable") @@ -59,12 +60,16 @@ const taskLogChunkBytes = 256 << 10 // codes.Unavailable) exactly as their daemon-side consumers already treat a // nil Mappings/Bindings/BindingDispatcher/BindingTaskCreator as "disabled". type Deps struct { - ControlPlane controlpb.ControlPlaneServiceServer - Identities identity.Repository - Grants *TaskGrants - Tasks storecontract.TaskStore - Captures storecontract.CaptureStore - ConfigSnapshots storecontract.ConfigSnapshotStore + ControlPlane controlpb.ControlPlaneServiceServer + Identities identity.Repository + Grants *TaskGrants + Tasks storecontract.TaskStore + Captures storecontract.CaptureStore + ConfigSnapshots storecontract.ConfigSnapshotStore + // ChannelStatus is the channel runtime state the process hosting the channels + // reports. Optional: nil disables the pair with codes.Unavailable, which is + // the honest answer for a store service no messaging process is writing to. + ChannelStatus storecontract.ChannelStatusStore ApplyStatus storecontract.ApplyStatusStore Mappings storecontract.MappingStore Bindings storecontract.BindingStore @@ -389,6 +394,36 @@ func (s *server) GetConfigSnapshot(ctx context.Context, _ *pb.GetConfigSnapshotR return &pb.GetConfigSnapshotResponse{Snapshot: configSnapshotProto(snapshot), Found: true}, nil } +func (s *server) channelStatuses() (storecontract.ChannelStatusStore, error) { + if s.deps.ChannelStatus == nil { + return nil, errChannelStatusUnavailable + } + return s.deps.ChannelStatus, nil +} + +func (s *server) PutChannelStatus(ctx context.Context, r *pb.PutChannelStatusRequest) (*pb.PutChannelStatusResponse, error) { + cs, err := s.channelStatuses() + if err != nil { + return nil, err + } + if err := cs.PutChannelStatus(ctx, channelStatusesValue(r.Channels)); err != nil { + return nil, s.logErr("PutChannelStatus", err) + } + return &pb.PutChannelStatusResponse{}, nil +} + +func (s *server) ListChannelStatus(ctx context.Context, _ *pb.ListChannelStatusRequest) (*pb.ListChannelStatusResponse, error) { + cs, err := s.channelStatuses() + if err != nil { + return nil, err + } + channels, err := cs.ChannelStatus(ctx) + if err != nil { + return nil, s.logErr("ListChannelStatus", err) + } + return &pb.ListChannelStatusResponse{Channels: channelStatusesProto(channels)}, nil +} + func (s *server) InsertCapture(ctx context.Context, r *pb.InsertCaptureRequest) (*pb.InsertCaptureResponse, error) { cs, err := s.capture() if err != nil { diff --git a/internal/infrastructure/staterpc/values.go b/internal/infrastructure/staterpc/values.go index 126293661..7a28c2325 100644 --- a/internal/infrastructure/staterpc/values.go +++ b/internal/infrastructure/staterpc/values.go @@ -407,6 +407,45 @@ func configSnapshotValue(snapshot *pb.ConfigSnapshot) storecontract.ConfigSnapsh } } +// channelStatusesProto and channelStatusesValue carry the channel runtime state +// the hosting process reports. The state is a string rather than an enum on the +// wire: the vocabulary belongs to internal/channels/status, and a reader that +// does not know a state it receives must show it rather than reject the report. +func channelStatusesProto(channels []storecontract.ChannelStatus) []*pb.ChannelStatus { + out := make([]*pb.ChannelStatus, 0, len(channels)) + for _, channel := range channels { + out = append(out, &pb.ChannelStatus{ + Id: channel.ID, + Name: channel.Name, + State: channel.State, + Detail: channel.Detail, + Configured: channel.Configured, + ReloadSupported: channel.ReloadSupported, + ObservedAt: timestamp(channel.ObservedAt), + }) + } + return out +} + +func channelStatusesValue(channels []*pb.ChannelStatus) []storecontract.ChannelStatus { + out := make([]storecontract.ChannelStatus, 0, len(channels)) + for _, channel := range channels { + if channel == nil { + continue + } + out = append(out, storecontract.ChannelStatus{ + ID: channel.Id, + Name: channel.Name, + State: channel.State, + Detail: channel.Detail, + Configured: channel.Configured, + ReloadSupported: channel.ReloadSupported, + ObservedAt: timeValue(channel.ObservedAt), + }) + } + return out +} + func applyStatusProto(status storecontract.ApplyStatus) *pb.ApplyStatus { return &pb.ApplyStatus{ Process: status.Process, diff --git a/internal/store/channel_status.go b/internal/store/channel_status.go new file mode 100644 index 000000000..c5473990b --- /dev/null +++ b/internal/store/channel_status.go @@ -0,0 +1,106 @@ +package store + +import ( + "context" + "fmt" + "time" +) + +const channelStatusSchema = ` +CREATE TABLE IF NOT EXISTS channel_status ( + id TEXT PRIMARY KEY, + name TEXT NOT NULL DEFAULT '', + state TEXT NOT NULL DEFAULT '', + detail TEXT NOT NULL DEFAULT '', + configured INTEGER NOT NULL DEFAULT 0, + reload_supported INTEGER NOT NULL DEFAULT 0, + observed_at TEXT NOT NULL +); +` + +// PutChannelStatus records the reporting process's whole set, in one +// transaction: rows it no longer reports are deleted, so a channel that stopped +// or was removed does not linger as a stale "running" the dashboard would show +// indefinitely. +func (s *Store) PutChannelStatus(ctx context.Context, channels []ChannelStatus) error { + tx, err := s.db.BeginTx(ctx, nil) + if err != nil { + return fmt.Errorf("store: put channel status: begin: %w", err) + } + defer func() { _ = tx.Rollback() }() + + reported := make([]any, 0, len(channels)+1) + placeholders := make([]byte, 0, len(channels)*2) + for index, channel := range channels { + if channel.ID == "" { + return fmt.Errorf("store: put channel status: a channel needs an id") + } + if index > 0 { + placeholders = append(placeholders, ',') + } + placeholders = append(placeholders, '?') + reported = append(reported, channel.ID) + + observed := channel.ObservedAt + if observed.IsZero() { + observed = time.Now() + } + if _, err := tx.ExecContext(ctx, ` + INSERT INTO channel_status (id, name, state, detail, configured, reload_supported, observed_at) + VALUES (?, ?, ?, ?, ?, ?, ?) + ON CONFLICT(id) DO UPDATE SET + name=excluded.name, + state=excluded.state, + detail=excluded.detail, + configured=excluded.configured, + reload_supported=excluded.reload_supported, + observed_at=excluded.observed_at`, + channel.ID, channel.Name, channel.State, channel.Detail, + channel.Configured, channel.ReloadSupported, observed.UTC().Format(configSnapshotTimeLayout)); err != nil { + return fmt.Errorf("store: put channel status %s: %w", channel.ID, err) + } + } + + // An empty report is a real report -- the process hosts no channels -- and it + // clears the table rather than leaving the previous set standing. + query := `DELETE FROM channel_status` + if len(reported) > 0 { + query += ` WHERE id NOT IN (` + string(placeholders) + `)` + } + if _, err := tx.ExecContext(ctx, query, reported...); err != nil { + return fmt.Errorf("store: put channel status: prune: %w", err) + } + return tx.Commit() +} + +// ChannelStatus returns every reported channel, ordered by id so a reader and a +// test see the same order twice. +func (s *Store) ChannelStatus(ctx context.Context) ([]ChannelStatus, error) { + rows, err := s.db.QueryContext(ctx, ` + SELECT id, name, state, detail, configured, reload_supported, observed_at + FROM channel_status ORDER BY id`) + if err != nil { + return nil, fmt.Errorf("store: list channel status: %w", err) + } + defer func() { _ = rows.Close() }() + + var channels []ChannelStatus + for rows.Next() { + var ( + channel ChannelStatus + observed string + ) + if err := rows.Scan(&channel.ID, &channel.Name, &channel.State, &channel.Detail, + &channel.Configured, &channel.ReloadSupported, &observed); err != nil { + return nil, fmt.Errorf("store: scan channel status: %w", err) + } + if at, err := time.Parse(configSnapshotTimeLayout, observed); err == nil { + channel.ObservedAt = at + } + channels = append(channels, channel) + } + if err := rows.Err(); err != nil { + return nil, fmt.Errorf("store: list channel status: %w", err) + } + return channels, nil +} diff --git a/internal/store/channel_status_test.go b/internal/store/channel_status_test.go new file mode 100644 index 000000000..94fb5b1a1 --- /dev/null +++ b/internal/store/channel_status_test.go @@ -0,0 +1,79 @@ +package store + +import ( + "testing" + "time" +) + +// TestChannelStatusReplacesTheReportedSet: the process hosting the channels owns +// the set it reports, so a channel it stops reporting must disappear. Leaving it +// behind would show a stale "running" for a channel that is gone, which is worse +// than showing nothing. +func TestChannelStatusReplacesTheReportedSet(t *testing.T) { + st := openTest(t) + ctx := t.Context() + + if rows, err := st.ChannelStatus(ctx); err != nil || len(rows) != 0 { + t.Fatalf("ChannelStatus on an empty store = (%+v, %v), want (none, nil)", rows, err) + } + + observed := time.Date(2026, 9, 22, 8, 0, 0, 0, time.UTC) + first := []ChannelStatus{ + {ID: "telegram", Name: "telegram", State: "running", Configured: true, ReloadSupported: true, ObservedAt: observed}, + {ID: "webhook", Name: "webhook", State: "failed", Detail: "listen: address in use", Configured: true, ObservedAt: observed}, + } + if err := st.PutChannelStatus(ctx, first); err != nil { + t.Fatalf("PutChannelStatus: %v", err) + } + rows, err := st.ChannelStatus(ctx) + if err != nil { + t.Fatalf("ChannelStatus: %v", err) + } + if len(rows) != 2 { + t.Fatalf("rows = %+v, want both channels", rows) + } + // Ordered by id, so a reader and this test see the same list twice. + if rows[0].ID != "telegram" || rows[1].ID != "webhook" { + t.Errorf("rows = %+v, want telegram then webhook", rows) + } + if rows[1].Detail != "listen: address in use" || rows[1].State != "failed" { + t.Errorf("webhook row = %+v, want the failure it reported", rows[1]) + } + if !rows[0].ReloadSupported || !rows[0].Configured { + t.Errorf("telegram row = %+v, want its declared capabilities", rows[0]) + } + if !rows[0].ObservedAt.Equal(observed) { + t.Errorf("ObservedAt = %v, want %v", rows[0].ObservedAt, observed) + } + + // The reporter no longer mentions webhook: its row goes. + if err := st.PutChannelStatus(ctx, first[:1]); err != nil { + t.Fatalf("PutChannelStatus: %v", err) + } + rows, err = st.ChannelStatus(ctx) + if err != nil { + t.Fatalf("ChannelStatus: %v", err) + } + if len(rows) != 1 || rows[0].ID != "telegram" { + t.Fatalf("rows = %+v, want only telegram after the shorter report", rows) + } + + // An empty report is a report: a process that hosts no channels clears the set + // rather than leaving the previous one standing. + if err := st.PutChannelStatus(ctx, nil); err != nil { + t.Fatalf("PutChannelStatus(empty): %v", err) + } + if rows, err := st.ChannelStatus(ctx); err != nil || len(rows) != 0 { + t.Fatalf("rows after an empty report = (%+v, %v), want none", rows, err) + } +} + +// TestChannelStatusRequiresAnID: a row without an id cannot be replaced or +// removed by a later report, so it is refused at the producer rather than +// inserted as an orphan the reporter can never clear. +func TestChannelStatusRequiresAnID(t *testing.T) { + st := openTest(t) + if err := st.PutChannelStatus(t.Context(), []ChannelStatus{{State: "running"}}); err == nil { + t.Fatal("PutChannelStatus with no id = nil, want a refusal") + } +} diff --git a/internal/store/interface.go b/internal/store/interface.go index 93765b69d..3e3b7574a 100644 --- a/internal/store/interface.go +++ b/internal/store/interface.go @@ -28,6 +28,7 @@ type ( TaskLogStore = storecontract.TaskLogStore CaptureStore = storecontract.CaptureStore ConfigSnapshotStore = storecontract.ConfigSnapshotStore + ChannelStatusStore = storecontract.ChannelStatusStore ApplyStatusStore = storecontract.ApplyStatusStore MappingStore = storecontract.MappingStore BindingStore = storecontract.BindingStore @@ -36,6 +37,7 @@ type ( PlaybookDispatcher = storecontract.PlaybookDispatcher CapturedEvent = storecontract.CapturedEvent ConfigSnapshot = storecontract.ConfigSnapshot + ChannelStatus = storecontract.ChannelStatus ApplyStatus = storecontract.ApplyStatus WorkflowStat = storecontract.WorkflowStat StageStat = storecontract.StageStat @@ -54,6 +56,9 @@ var ( // Compile-time check: *Store satisfies TaskStore. var _ TaskStore = (*Store)(nil) +// Compile-time check: *Store satisfies ChannelStatusStore. +var _ ChannelStatusStore = (*Store)(nil) + // Compile-time check: *Store satisfies workflow.Store. var _ workflow.Store = (*Store)(nil) diff --git a/internal/store/store.go b/internal/store/store.go index 3118bf6fa..b1cf5c79b 100644 --- a/internal/store/store.go +++ b/internal/store/store.go @@ -57,7 +57,7 @@ func Open(ctx context.Context, path string, opts ...OpenOption) (*Store, error) return nil, err } db.SetMaxOpenConns(1) - if _, err := db.ExecContext(ctx, schema+eventsSchema+capturesSchema+mappingsSchema+bindingsSchema+playbookDispatchesSchema+configSnapshotSchema+applyStatusSchema+resourcesSchema+identitiesSchema); err != nil { + if _, err := db.ExecContext(ctx, schema+eventsSchema+capturesSchema+mappingsSchema+bindingsSchema+playbookDispatchesSchema+configSnapshotSchema+channelStatusSchema+applyStatusSchema+resourcesSchema+identitiesSchema); err != nil { return nil, errors.Join(fmt.Errorf("store: init schema: %w", err), db.Close()) } if err := migrateTasks(ctx, db); err != nil { diff --git a/internal/webui/api_config.go b/internal/webui/api_config.go index a9cd55f54..a6aeb9c38 100644 --- a/internal/webui/api_config.go +++ b/internal/webui/api_config.go @@ -418,6 +418,48 @@ func chatChannelConfigured(chat config.ChatConfig) bool { // RemoteConfigView reads the projection the configuration owner published. // The reading process cannot edit it: it has no update path, and the page is // told so rather than offering a control that would 503. +// ChannelStatusSource reports the live state of each configured channel. +type ChannelStatusSource interface { + Snapshot() []status.Status +} + +// RemoteChannelStatus reads channel state from the State Store, where the +// process hosting the channels publishes it. It is the reader half of the same +// split RemoteConfigView serves: the writer is another process and the reader is +// this one, so a reader that cannot reach the store reports nothing rather than +// inventing a state, and the page shows no channels instead of wrong ones. +func RemoteChannelStatus(channels storecontract.ChannelStatusStore) ChannelStatusSource { + return remoteChannelStatus{channels: channels} +} + +type remoteChannelStatus struct { + channels storecontract.ChannelStatusStore +} + +func (r remoteChannelStatus) Snapshot() []status.Status { + // The handler has no error to return, so a failed read is an empty report. + // That is the honest answer: the dashboard must not show a stale "running" + // for a channel it cannot currently ask about. + rows, err := r.channels.ChannelStatus(context.Background()) + if err != nil { + return nil + } + out := make([]status.Status, 0, len(rows)) + for _, row := range rows { + out = append(out, status.Status{ + Descriptor: status.Descriptor{ + ID: row.ID, + Name: row.Name, + Configured: row.Configured, + ReloadSupported: row.ReloadSupported, + Detail: row.Detail, + }, + State: status.State(row.State), + }) + } + return out +} + func RemoteConfigView(snapshots storecontract.ConfigSnapshotStore) ConfigViewSource { return func(ctx context.Context) (ConfigView, bool, error) { snapshot, found, err := snapshots.ConfigSnapshot(ctx) diff --git a/internal/webui/api_config_test.go b/internal/webui/api_config_test.go index 8017b71ff..384558cb2 100644 --- a/internal/webui/api_config_test.go +++ b/internal/webui/api_config_test.go @@ -513,10 +513,14 @@ func TestHandleChannelsWithoutManagerIsEmpty(t *testing.T) { func TestHandleChannelsUsesRuntimeManager(t *testing.T) { srv := newTestServer(t) - srv.Channels = status.NewManager([]status.Descriptor{{ + // Channels is a source rather than a concrete manager now: a process that + // hosts channels supplies its own, and the dashboard process supplies a reader + // over the State Store. This test drives the first. + manager := status.NewManager([]status.Descriptor{{ ID: "telegram", Name: "Telegram", Configured: true, ReloadSupported: true, }}) - srv.Channels.MarkFailed("telegram", "token rejected") + manager.MarkFailed("telegram", "token rejected") + srv.Channels = manager req := httptest.NewRequestWithContext(t.Context(), http.MethodGet, "/api/channels", nil) w := httptest.NewRecorder() diff --git a/internal/webui/channel_status_test.go b/internal/webui/channel_status_test.go new file mode 100644 index 000000000..e447a5f0c --- /dev/null +++ b/internal/webui/channel_status_test.go @@ -0,0 +1,61 @@ +package webui + +import ( + "context" + "errors" + "testing" + + "github.com/samcharles93/archie-core/internal/channels/status" + "github.com/samcharles93/archie-core/internal/domain/storecontract" +) + +type fakeChannelStatusStore struct { + rows []storecontract.ChannelStatus + err error +} + +func (f fakeChannelStatusStore) PutChannelStatus(context.Context, []storecontract.ChannelStatus) error { + return nil +} + +func (f fakeChannelStatusStore) ChannelStatus(context.Context) ([]storecontract.ChannelStatus, error) { + return f.rows, f.err +} + +// TestRemoteChannelStatusMapsReportedState: the dashboard process reads channel +// state another process published, so the mapping is the whole of its +// responsibility -- including carrying an unknown state through rather than +// dropping the channel, because a reader that hides a channel it does not +// recognise shows a healthy page for a channel that is down. +func TestRemoteChannelStatusMapsReportedState(t *testing.T) { + source := RemoteChannelStatus(fakeChannelStatusStore{rows: []storecontract.ChannelStatus{ + {ID: "telegram", Name: "telegram", State: "running", Configured: true, ReloadSupported: true}, + {ID: "webhook", Name: "webhook", State: "failed", Detail: "listen: address in use", Configured: true}, + {ID: "email", Name: "email", State: "invented-later", Configured: true}, + }}) + + snapshot := source.Snapshot() + if len(snapshot) != 3 { + t.Fatalf("Snapshot() = %+v, want all three reported channels", snapshot) + } + if snapshot[0].State != status.StateRunning || !snapshot[0].ReloadSupported { + t.Errorf("telegram = %+v, want running and reload-capable", snapshot[0]) + } + if snapshot[1].State != status.StateFailed || snapshot[1].Detail == "" { + t.Errorf("webhook = %+v, want the failure and its reason", snapshot[1]) + } + if snapshot[2].State != status.State("invented-later") { + t.Errorf("email state = %q, want the reported value carried through", snapshot[2].State) + } +} + +// TestRemoteChannelStatusReportsNothingWhenTheStoreFails: the handler has no +// error to return, and the honest answer is an empty report. Showing a cached or +// assumed state for a channel the dashboard cannot currently ask about is how a +// dead channel keeps looking alive. +func TestRemoteChannelStatusReportsNothingWhenTheStoreFails(t *testing.T) { + source := RemoteChannelStatus(fakeChannelStatusStore{err: errors.New("state store unreachable")}) + if got := source.Snapshot(); len(got) != 0 { + t.Fatalf("Snapshot() = %+v, want nothing when the store cannot answer", got) + } +} diff --git a/internal/webui/server.go b/internal/webui/server.go index 4e39ab928..21bf5d1a2 100644 --- a/internal/webui/server.go +++ b/internal/webui/server.go @@ -16,7 +16,6 @@ import ( "sync" "time" - "github.com/samcharles93/archie-core/internal/channels/status" controlpb "github.com/samcharles93/archie-core/internal/contracts/controlplane/v1" "github.com/samcharles93/archie-core/internal/domain/health" "github.com/samcharles93/archie-core/internal/domain/identity" @@ -54,10 +53,11 @@ type Server struct { // of them is about configuration. TaskLogs TaskLogSource - // Channels reports actual adapter lifecycle, independently of configuration - // presence. Nil preserves the configuration-only fallback for tests and - // minimal embedding. - Channels *status.Manager + // Channels reports actual adapter lifecycle, independently of configuration. + // A process that hosts channels satisfies it from its own manager; the + // dashboard process satisfies it by reading the State Store, where the + // hosting process publishes (webui.RemoteChannelStatus). + Channels ChannelStatusSource // ReloadChannel invokes a channel-specific reload seam. Only adapters that // explicitly support reload are wired here; nil means reload is unavailable. diff --git a/proto/state/v1/state.proto b/proto/state/v1/state.proto index 2befb337c..38cfe04a9 100644 --- a/proto/state/v1/state.proto +++ b/proto/state/v1/state.proto @@ -62,6 +62,15 @@ service StateStoreService { rpc PutConfigSnapshot(PutConfigSnapshotRequest) returns (PutConfigSnapshotResponse); rpc GetConfigSnapshot(GetConfigSnapshotRequest) returns (GetConfigSnapshotResponse); + // Channel status is what the process HOSTING the channels observes about them: + // one row per channel, written by the Messaging Service and read by the UI + // process. Administrative like the config snapshot, and for the same reason -- + // a task-scoped grant reaches neither, so authorizesTaskScopedCall admits only + // the administrative token. It is runtime state rather than a settings + // document, which is why it is not a ControlPlaneService resource kind. + rpc PutChannelStatus(PutChannelStatusRequest) returns (PutChannelStatusResponse); + rpc ListChannelStatus(ListChannelStatusRequest) returns (ListChannelStatusResponse); + // Apply status: which version of a control-plane resource each process is // running, and why it could not. Every process that applies a resource // publishes; the UI process reads (docs/prds/control-plane-apply-status.md). @@ -470,6 +479,25 @@ message GetConfigSnapshotResponse { bool found = 2; } +// ChannelStatus is one channel's runtime state, as the process hosting it +// observes it. ReloadSupported is a capability declaration, not a request: the +// service reports it, so a reader may offer a reload action -- but asking for one +// travels on its own surface, because a transient request and a durable state do +// not share a lifetime. +message ChannelStatus { + string id = 1; + string name = 2; + string state = 3; + string detail = 4; + bool configured = 5; + bool reload_supported = 6; + google.protobuf.Timestamp observed_at = 7; +} +message PutChannelStatusRequest { repeated ChannelStatus channels = 1; } +message PutChannelStatusResponse {} +message ListChannelStatusRequest {} +message ListChannelStatusResponse { repeated ChannelStatus channels = 1; } + // ApplyStatus is one process's report about one control-plane resource kind. // applied_version is the version that process is running; error is set when it // could not apply what the store returned, and leaves applied_version at the