From daab5732e8523406736a23d4d65790772ccd9939 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 11 Oct 2026 14:19:43 +0000 Subject: [PATCH 1/2] fix(daemon): claim binding dispatch and enqueue its task atomically EnqueueBindingTask now takes the capture and claims the ledger row, inserts the task, stamps its provenance and links the ledger row in one State Store transaction. A failure anywhere leaves the delivery undispatched for the next cycle; a replay or concurrent claim is refused by the ledger's unique index. SetDispatchTask is removed. --- internal/contracts/state/v1/state.pb.go | 1361 ++++++++--------- internal/contracts/state/v1/state_grpc.pb.go | 46 +- internal/daemon/binding_dispatch_test.go | 132 ++ internal/daemon/daemon.go | 25 +- internal/daemon/workflow_org_test.go | 5 +- .../domain/storecontract/storecontract.go | 12 +- internal/infrastructure/postgres/edastore.go | 9 - internal/infrastructure/postgres/store.go | 46 +- internal/infrastructure/staterpc/client.go | 9 +- internal/infrastructure/staterpc/server.go | 12 +- proto/state/v1/state.proto | 13 +- 11 files changed, 833 insertions(+), 837 deletions(-) create mode 100644 internal/daemon/binding_dispatch_test.go diff --git a/internal/contracts/state/v1/state.pb.go b/internal/contracts/state/v1/state.pb.go index 206a6bfe4..89bf60f03 100644 --- a/internal/contracts/state/v1/state.pb.go +++ b/internal/contracts/state/v1/state.pb.go @@ -11729,102 +11729,6 @@ func (*RecordDispatchResponse) Descriptor() ([]byte, []int) { return file_state_v1_state_proto_rawDescGZIP(), []int{215} } -type SetDispatchTaskRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - BindingId string `protobuf:"bytes,1,opt,name=binding_id,json=bindingId,proto3" json:"binding_id,omitempty"` - CaptureId string `protobuf:"bytes,2,opt,name=capture_id,json=captureId,proto3" json:"capture_id,omitempty"` - TaskId int64 `protobuf:"varint,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SetDispatchTaskRequest) Reset() { - *x = SetDispatchTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[216] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SetDispatchTaskRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetDispatchTaskRequest) ProtoMessage() {} - -func (x *SetDispatchTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[216] - 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 SetDispatchTaskRequest.ProtoReflect.Descriptor instead. -func (*SetDispatchTaskRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{216} -} - -func (x *SetDispatchTaskRequest) GetBindingId() string { - if x != nil { - return x.BindingId - } - return "" -} - -func (x *SetDispatchTaskRequest) GetCaptureId() string { - if x != nil { - return x.CaptureId - } - return "" -} - -func (x *SetDispatchTaskRequest) GetTaskId() int64 { - if x != nil { - return x.TaskId - } - return 0 -} - -type SetDispatchTaskResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SetDispatchTaskResponse) Reset() { - *x = SetDispatchTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[217] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SetDispatchTaskResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetDispatchTaskResponse) ProtoMessage() {} - -func (x *SetDispatchTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[217] - 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 SetDispatchTaskResponse.ProtoReflect.Descriptor instead. -func (*SetDispatchTaskResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{217} -} - // ListDispatchesRequest filters the binding dispatch ledger; empty fields // match any row. type ListDispatchesRequest struct { @@ -11839,7 +11743,7 @@ type ListDispatchesRequest struct { func (x *ListDispatchesRequest) Reset() { *x = ListDispatchesRequest{} - mi := &file_state_v1_state_proto_msgTypes[218] + mi := &file_state_v1_state_proto_msgTypes[216] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11851,7 +11755,7 @@ func (x *ListDispatchesRequest) String() string { func (*ListDispatchesRequest) ProtoMessage() {} func (x *ListDispatchesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[218] + mi := &file_state_v1_state_proto_msgTypes[216] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11864,7 +11768,7 @@ func (x *ListDispatchesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDispatchesRequest.ProtoReflect.Descriptor instead. func (*ListDispatchesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{218} + return file_state_v1_state_proto_rawDescGZIP(), []int{216} } func (x *ListDispatchesRequest) GetBindingId() string { @@ -11909,7 +11813,7 @@ type Dispatch struct { func (x *Dispatch) Reset() { *x = Dispatch{} - mi := &file_state_v1_state_proto_msgTypes[219] + mi := &file_state_v1_state_proto_msgTypes[217] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -11921,7 +11825,7 @@ func (x *Dispatch) String() string { func (*Dispatch) ProtoMessage() {} func (x *Dispatch) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[219] + mi := &file_state_v1_state_proto_msgTypes[217] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11934,7 +11838,7 @@ func (x *Dispatch) ProtoReflect() protoreflect.Message { // Deprecated: Use Dispatch.ProtoReflect.Descriptor instead. func (*Dispatch) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{219} + return file_state_v1_state_proto_rawDescGZIP(), []int{217} } func (x *Dispatch) GetBindingId() string { @@ -11988,7 +11892,7 @@ type ListDispatchesResponse struct { func (x *ListDispatchesResponse) Reset() { *x = ListDispatchesResponse{} - mi := &file_state_v1_state_proto_msgTypes[220] + mi := &file_state_v1_state_proto_msgTypes[218] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12000,7 +11904,7 @@ func (x *ListDispatchesResponse) String() string { func (*ListDispatchesResponse) ProtoMessage() {} func (x *ListDispatchesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[220] + mi := &file_state_v1_state_proto_msgTypes[218] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12013,7 +11917,7 @@ func (x *ListDispatchesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDispatchesResponse.ProtoReflect.Descriptor instead. func (*ListDispatchesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{220} + return file_state_v1_state_proto_rawDescGZIP(), []int{218} } func (x *ListDispatchesResponse) GetDispatches() []*Dispatch { @@ -12035,7 +11939,7 @@ type RecordPlaybookDispatchRequest struct { func (x *RecordPlaybookDispatchRequest) Reset() { *x = RecordPlaybookDispatchRequest{} - mi := &file_state_v1_state_proto_msgTypes[221] + mi := &file_state_v1_state_proto_msgTypes[219] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12047,7 +11951,7 @@ func (x *RecordPlaybookDispatchRequest) String() string { func (*RecordPlaybookDispatchRequest) ProtoMessage() {} func (x *RecordPlaybookDispatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[221] + mi := &file_state_v1_state_proto_msgTypes[219] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12060,7 +11964,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{221} + return file_state_v1_state_proto_rawDescGZIP(), []int{219} } func (x *RecordPlaybookDispatchRequest) GetPlaybookId() string { @@ -12099,7 +12003,7 @@ type RecordPlaybookDispatchResponse struct { func (x *RecordPlaybookDispatchResponse) Reset() { *x = RecordPlaybookDispatchResponse{} - mi := &file_state_v1_state_proto_msgTypes[222] + mi := &file_state_v1_state_proto_msgTypes[220] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12111,7 +12015,7 @@ func (x *RecordPlaybookDispatchResponse) String() string { func (*RecordPlaybookDispatchResponse) ProtoMessage() {} func (x *RecordPlaybookDispatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[222] + mi := &file_state_v1_state_proto_msgTypes[220] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12124,7 +12028,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{222} + return file_state_v1_state_proto_rawDescGZIP(), []int{220} } type DeletePlaybookDispatchesRequest struct { @@ -12136,7 +12040,7 @@ type DeletePlaybookDispatchesRequest struct { func (x *DeletePlaybookDispatchesRequest) Reset() { *x = DeletePlaybookDispatchesRequest{} - mi := &file_state_v1_state_proto_msgTypes[223] + mi := &file_state_v1_state_proto_msgTypes[221] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12148,7 +12052,7 @@ func (x *DeletePlaybookDispatchesRequest) String() string { func (*DeletePlaybookDispatchesRequest) ProtoMessage() {} func (x *DeletePlaybookDispatchesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[223] + mi := &file_state_v1_state_proto_msgTypes[221] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12161,7 +12065,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{223} + return file_state_v1_state_proto_rawDescGZIP(), []int{221} } func (x *DeletePlaybookDispatchesRequest) GetPlaybookId() string { @@ -12179,7 +12083,7 @@ type DeletePlaybookDispatchesResponse struct { func (x *DeletePlaybookDispatchesResponse) Reset() { *x = DeletePlaybookDispatchesResponse{} - mi := &file_state_v1_state_proto_msgTypes[224] + mi := &file_state_v1_state_proto_msgTypes[222] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12191,7 +12095,7 @@ func (x *DeletePlaybookDispatchesResponse) String() string { func (*DeletePlaybookDispatchesResponse) ProtoMessage() {} func (x *DeletePlaybookDispatchesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[224] + mi := &file_state_v1_state_proto_msgTypes[222] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12204,7 +12108,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{224} + return file_state_v1_state_proto_rawDescGZIP(), []int{222} } type StreamUndispatchedCapturesRequest struct { @@ -12217,7 +12121,7 @@ type StreamUndispatchedCapturesRequest struct { func (x *StreamUndispatchedCapturesRequest) Reset() { *x = StreamUndispatchedCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[225] + mi := &file_state_v1_state_proto_msgTypes[223] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12229,7 +12133,7 @@ func (x *StreamUndispatchedCapturesRequest) String() string { func (*StreamUndispatchedCapturesRequest) ProtoMessage() {} func (x *StreamUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[225] + mi := &file_state_v1_state_proto_msgTypes[223] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12242,7 +12146,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{225} + return file_state_v1_state_proto_rawDescGZIP(), []int{223} } func (x *StreamUndispatchedCapturesRequest) GetSources() []string { @@ -12269,7 +12173,7 @@ type StreamUndispatchedCapturesResponse struct { func (x *StreamUndispatchedCapturesResponse) Reset() { *x = StreamUndispatchedCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[226] + mi := &file_state_v1_state_proto_msgTypes[224] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12281,7 +12185,7 @@ func (x *StreamUndispatchedCapturesResponse) String() string { func (*StreamUndispatchedCapturesResponse) ProtoMessage() {} func (x *StreamUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[226] + mi := &file_state_v1_state_proto_msgTypes[224] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12294,7 +12198,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{226} + return file_state_v1_state_proto_rawDescGZIP(), []int{224} } func (x *StreamUndispatchedCapturesResponse) GetCapture() *CapturedEvent { @@ -12315,13 +12219,14 @@ type EnqueueBindingTaskRequest struct { BindingId string `protobuf:"bytes,7,opt,name=binding_id,json=bindingId,proto3" json:"binding_id,omitempty"` BindingVersion int64 `protobuf:"varint,8,opt,name=binding_version,json=bindingVersion,proto3" json:"binding_version,omitempty"` InputsJson string `protobuf:"bytes,9,opt,name=inputs_json,json=inputsJson,proto3" json:"inputs_json,omitempty"` + CaptureId string `protobuf:"bytes,10,opt,name=capture_id,json=captureId,proto3" json:"capture_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *EnqueueBindingTaskRequest) Reset() { *x = EnqueueBindingTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[227] + mi := &file_state_v1_state_proto_msgTypes[225] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12333,7 +12238,7 @@ func (x *EnqueueBindingTaskRequest) String() string { func (*EnqueueBindingTaskRequest) ProtoMessage() {} func (x *EnqueueBindingTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[227] + mi := &file_state_v1_state_proto_msgTypes[225] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12346,7 +12251,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{227} + return file_state_v1_state_proto_rawDescGZIP(), []int{225} } func (x *EnqueueBindingTaskRequest) GetOwner() string { @@ -12412,6 +12317,13 @@ func (x *EnqueueBindingTaskRequest) GetInputsJson() string { return "" } +func (x *EnqueueBindingTaskRequest) GetCaptureId() string { + if x != nil { + return x.CaptureId + } + return "" +} + type EnqueueBindingTaskResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` @@ -12421,7 +12333,7 @@ type EnqueueBindingTaskResponse struct { func (x *EnqueueBindingTaskResponse) Reset() { *x = EnqueueBindingTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[228] + mi := &file_state_v1_state_proto_msgTypes[226] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12433,7 +12345,7 @@ func (x *EnqueueBindingTaskResponse) String() string { func (*EnqueueBindingTaskResponse) ProtoMessage() {} func (x *EnqueueBindingTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[228] + mi := &file_state_v1_state_proto_msgTypes[226] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12446,7 +12358,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{228} + return file_state_v1_state_proto_rawDescGZIP(), []int{226} } func (x *EnqueueBindingTaskResponse) GetTask() *Task { @@ -12477,7 +12389,7 @@ type EnqueueCallTaskRequest struct { func (x *EnqueueCallTaskRequest) Reset() { *x = EnqueueCallTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[229] + mi := &file_state_v1_state_proto_msgTypes[227] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12489,7 +12401,7 @@ func (x *EnqueueCallTaskRequest) String() string { func (*EnqueueCallTaskRequest) ProtoMessage() {} func (x *EnqueueCallTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[229] + mi := &file_state_v1_state_proto_msgTypes[227] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12502,7 +12414,7 @@ func (x *EnqueueCallTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EnqueueCallTaskRequest.ProtoReflect.Descriptor instead. func (*EnqueueCallTaskRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{229} + return file_state_v1_state_proto_rawDescGZIP(), []int{227} } func (x *EnqueueCallTaskRequest) GetCallerTaskId() int64 { @@ -12543,7 +12455,7 @@ type EnqueueCallTaskResponse struct { func (x *EnqueueCallTaskResponse) Reset() { *x = EnqueueCallTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[230] + mi := &file_state_v1_state_proto_msgTypes[228] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12555,7 +12467,7 @@ func (x *EnqueueCallTaskResponse) String() string { func (*EnqueueCallTaskResponse) ProtoMessage() {} func (x *EnqueueCallTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[230] + mi := &file_state_v1_state_proto_msgTypes[228] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12568,7 +12480,7 @@ func (x *EnqueueCallTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EnqueueCallTaskResponse.ProtoReflect.Descriptor instead. func (*EnqueueCallTaskResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{230} + return file_state_v1_state_proto_rawDescGZIP(), []int{228} } func (x *EnqueueCallTaskResponse) GetTask() *Task { @@ -12595,7 +12507,7 @@ type WorkflowCallStatusRequest struct { func (x *WorkflowCallStatusRequest) Reset() { *x = WorkflowCallStatusRequest{} - mi := &file_state_v1_state_proto_msgTypes[231] + mi := &file_state_v1_state_proto_msgTypes[229] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12607,7 +12519,7 @@ func (x *WorkflowCallStatusRequest) String() string { func (*WorkflowCallStatusRequest) ProtoMessage() {} func (x *WorkflowCallStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[231] + mi := &file_state_v1_state_proto_msgTypes[229] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12620,7 +12532,7 @@ func (x *WorkflowCallStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowCallStatusRequest.ProtoReflect.Descriptor instead. func (*WorkflowCallStatusRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{231} + return file_state_v1_state_proto_rawDescGZIP(), []int{229} } func (x *WorkflowCallStatusRequest) GetCallerTaskId() int64 { @@ -12653,7 +12565,7 @@ type WorkflowCallStatusResponse struct { func (x *WorkflowCallStatusResponse) Reset() { *x = WorkflowCallStatusResponse{} - mi := &file_state_v1_state_proto_msgTypes[232] + mi := &file_state_v1_state_proto_msgTypes[230] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12665,7 +12577,7 @@ func (x *WorkflowCallStatusResponse) String() string { func (*WorkflowCallStatusResponse) ProtoMessage() {} func (x *WorkflowCallStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[232] + mi := &file_state_v1_state_proto_msgTypes[230] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12678,7 +12590,7 @@ func (x *WorkflowCallStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowCallStatusResponse.ProtoReflect.Descriptor instead. func (*WorkflowCallStatusResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{232} + return file_state_v1_state_proto_rawDescGZIP(), []int{230} } func (x *WorkflowCallStatusResponse) GetStatus() string { @@ -12729,7 +12641,7 @@ type InstalledPackage struct { func (x *InstalledPackage) Reset() { *x = InstalledPackage{} - mi := &file_state_v1_state_proto_msgTypes[233] + mi := &file_state_v1_state_proto_msgTypes[231] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12741,7 +12653,7 @@ func (x *InstalledPackage) String() string { func (*InstalledPackage) ProtoMessage() {} func (x *InstalledPackage) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[233] + mi := &file_state_v1_state_proto_msgTypes[231] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12754,7 +12666,7 @@ func (x *InstalledPackage) ProtoReflect() protoreflect.Message { // Deprecated: Use InstalledPackage.ProtoReflect.Descriptor instead. func (*InstalledPackage) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{233} + return file_state_v1_state_proto_rawDescGZIP(), []int{231} } func (x *InstalledPackage) GetOrgId() string { @@ -12851,7 +12763,7 @@ type PackagePin struct { func (x *PackagePin) Reset() { *x = PackagePin{} - mi := &file_state_v1_state_proto_msgTypes[234] + mi := &file_state_v1_state_proto_msgTypes[232] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12863,7 +12775,7 @@ func (x *PackagePin) String() string { func (*PackagePin) ProtoMessage() {} func (x *PackagePin) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[234] + mi := &file_state_v1_state_proto_msgTypes[232] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12876,7 +12788,7 @@ func (x *PackagePin) ProtoReflect() protoreflect.Message { // Deprecated: Use PackagePin.ProtoReflect.Descriptor instead. func (*PackagePin) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{234} + return file_state_v1_state_proto_rawDescGZIP(), []int{232} } func (x *PackagePin) GetReference() string { @@ -12909,7 +12821,7 @@ type PackageAuthority struct { func (x *PackageAuthority) Reset() { *x = PackageAuthority{} - mi := &file_state_v1_state_proto_msgTypes[235] + mi := &file_state_v1_state_proto_msgTypes[233] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -12921,7 +12833,7 @@ func (x *PackageAuthority) String() string { func (*PackageAuthority) ProtoMessage() {} func (x *PackageAuthority) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[235] + mi := &file_state_v1_state_proto_msgTypes[233] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12934,7 +12846,7 @@ func (x *PackageAuthority) ProtoReflect() protoreflect.Message { // Deprecated: Use PackageAuthority.ProtoReflect.Descriptor instead. func (*PackageAuthority) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{235} + return file_state_v1_state_proto_rawDescGZIP(), []int{233} } func (x *PackageAuthority) GetCredentialServices() []string { @@ -12992,7 +12904,7 @@ type InstallPackageRequest struct { func (x *InstallPackageRequest) Reset() { *x = InstallPackageRequest{} - mi := &file_state_v1_state_proto_msgTypes[236] + mi := &file_state_v1_state_proto_msgTypes[234] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13004,7 +12916,7 @@ func (x *InstallPackageRequest) String() string { func (*InstallPackageRequest) ProtoMessage() {} func (x *InstallPackageRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[236] + mi := &file_state_v1_state_proto_msgTypes[234] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13017,7 +12929,7 @@ func (x *InstallPackageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InstallPackageRequest.ProtoReflect.Descriptor instead. func (*InstallPackageRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{236} + return file_state_v1_state_proto_rawDescGZIP(), []int{234} } func (x *InstallPackageRequest) GetName() string { @@ -13050,7 +12962,7 @@ type InstallPackageResponse struct { func (x *InstallPackageResponse) Reset() { *x = InstallPackageResponse{} - mi := &file_state_v1_state_proto_msgTypes[237] + mi := &file_state_v1_state_proto_msgTypes[235] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13062,7 +12974,7 @@ func (x *InstallPackageResponse) String() string { func (*InstallPackageResponse) ProtoMessage() {} func (x *InstallPackageResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[237] + mi := &file_state_v1_state_proto_msgTypes[235] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13075,7 +12987,7 @@ func (x *InstallPackageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InstallPackageResponse.ProtoReflect.Descriptor instead. func (*InstallPackageResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{237} + return file_state_v1_state_proto_rawDescGZIP(), []int{235} } func (x *InstallPackageResponse) GetPackage() *InstalledPackage { @@ -13099,7 +13011,7 @@ type CatalogueEntry struct { func (x *CatalogueEntry) Reset() { *x = CatalogueEntry{} - mi := &file_state_v1_state_proto_msgTypes[238] + mi := &file_state_v1_state_proto_msgTypes[236] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13111,7 +13023,7 @@ func (x *CatalogueEntry) String() string { func (*CatalogueEntry) ProtoMessage() {} func (x *CatalogueEntry) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[238] + mi := &file_state_v1_state_proto_msgTypes[236] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13124,7 +13036,7 @@ func (x *CatalogueEntry) ProtoReflect() protoreflect.Message { // Deprecated: Use CatalogueEntry.ProtoReflect.Descriptor instead. func (*CatalogueEntry) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{238} + return file_state_v1_state_proto_rawDescGZIP(), []int{236} } func (x *CatalogueEntry) GetName() string { @@ -13177,7 +13089,7 @@ type ListCatalogueRequest struct { func (x *ListCatalogueRequest) Reset() { *x = ListCatalogueRequest{} - mi := &file_state_v1_state_proto_msgTypes[239] + mi := &file_state_v1_state_proto_msgTypes[237] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13189,7 +13101,7 @@ func (x *ListCatalogueRequest) String() string { func (*ListCatalogueRequest) ProtoMessage() {} func (x *ListCatalogueRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[239] + mi := &file_state_v1_state_proto_msgTypes[237] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13202,7 +13114,7 @@ func (x *ListCatalogueRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListCatalogueRequest.ProtoReflect.Descriptor instead. func (*ListCatalogueRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{239} + return file_state_v1_state_proto_rawDescGZIP(), []int{237} } type ListCatalogueResponse struct { @@ -13214,7 +13126,7 @@ type ListCatalogueResponse struct { func (x *ListCatalogueResponse) Reset() { *x = ListCatalogueResponse{} - mi := &file_state_v1_state_proto_msgTypes[240] + mi := &file_state_v1_state_proto_msgTypes[238] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13226,7 +13138,7 @@ func (x *ListCatalogueResponse) String() string { func (*ListCatalogueResponse) ProtoMessage() {} func (x *ListCatalogueResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[240] + mi := &file_state_v1_state_proto_msgTypes[238] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13239,7 +13151,7 @@ func (x *ListCatalogueResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListCatalogueResponse.ProtoReflect.Descriptor instead. func (*ListCatalogueResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{240} + return file_state_v1_state_proto_rawDescGZIP(), []int{238} } func (x *ListCatalogueResponse) GetPackages() []*CatalogueEntry { @@ -13258,7 +13170,7 @@ type InstallFromCatalogueRequest struct { func (x *InstallFromCatalogueRequest) Reset() { *x = InstallFromCatalogueRequest{} - mi := &file_state_v1_state_proto_msgTypes[241] + mi := &file_state_v1_state_proto_msgTypes[239] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13270,7 +13182,7 @@ func (x *InstallFromCatalogueRequest) String() string { func (*InstallFromCatalogueRequest) ProtoMessage() {} func (x *InstallFromCatalogueRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[241] + mi := &file_state_v1_state_proto_msgTypes[239] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13283,7 +13195,7 @@ func (x *InstallFromCatalogueRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InstallFromCatalogueRequest.ProtoReflect.Descriptor instead. func (*InstallFromCatalogueRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{241} + return file_state_v1_state_proto_rawDescGZIP(), []int{239} } func (x *InstallFromCatalogueRequest) GetName() string { @@ -13302,7 +13214,7 @@ type InstallFromCatalogueResponse struct { func (x *InstallFromCatalogueResponse) Reset() { *x = InstallFromCatalogueResponse{} - mi := &file_state_v1_state_proto_msgTypes[242] + mi := &file_state_v1_state_proto_msgTypes[240] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13314,7 +13226,7 @@ func (x *InstallFromCatalogueResponse) String() string { func (*InstallFromCatalogueResponse) ProtoMessage() {} func (x *InstallFromCatalogueResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[242] + mi := &file_state_v1_state_proto_msgTypes[240] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13327,7 +13239,7 @@ func (x *InstallFromCatalogueResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InstallFromCatalogueResponse.ProtoReflect.Descriptor instead. func (*InstallFromCatalogueResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{242} + return file_state_v1_state_proto_rawDescGZIP(), []int{240} } func (x *InstallFromCatalogueResponse) GetPackage() *InstalledPackage { @@ -13346,7 +13258,7 @@ type GetInstalledPackageRequest struct { func (x *GetInstalledPackageRequest) Reset() { *x = GetInstalledPackageRequest{} - mi := &file_state_v1_state_proto_msgTypes[243] + mi := &file_state_v1_state_proto_msgTypes[241] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13358,7 +13270,7 @@ func (x *GetInstalledPackageRequest) String() string { func (*GetInstalledPackageRequest) ProtoMessage() {} func (x *GetInstalledPackageRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[243] + mi := &file_state_v1_state_proto_msgTypes[241] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13371,7 +13283,7 @@ func (x *GetInstalledPackageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetInstalledPackageRequest.ProtoReflect.Descriptor instead. func (*GetInstalledPackageRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{243} + return file_state_v1_state_proto_rawDescGZIP(), []int{241} } func (x *GetInstalledPackageRequest) GetName() string { @@ -13390,7 +13302,7 @@ type GetInstalledPackageResponse struct { func (x *GetInstalledPackageResponse) Reset() { *x = GetInstalledPackageResponse{} - mi := &file_state_v1_state_proto_msgTypes[244] + mi := &file_state_v1_state_proto_msgTypes[242] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13402,7 +13314,7 @@ func (x *GetInstalledPackageResponse) String() string { func (*GetInstalledPackageResponse) ProtoMessage() {} func (x *GetInstalledPackageResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[244] + mi := &file_state_v1_state_proto_msgTypes[242] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13415,7 +13327,7 @@ func (x *GetInstalledPackageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetInstalledPackageResponse.ProtoReflect.Descriptor instead. func (*GetInstalledPackageResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{244} + return file_state_v1_state_proto_rawDescGZIP(), []int{242} } func (x *GetInstalledPackageResponse) GetPackage() *InstalledPackage { @@ -13433,7 +13345,7 @@ type ListInstalledPackagesRequest struct { func (x *ListInstalledPackagesRequest) Reset() { *x = ListInstalledPackagesRequest{} - mi := &file_state_v1_state_proto_msgTypes[245] + mi := &file_state_v1_state_proto_msgTypes[243] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13445,7 +13357,7 @@ func (x *ListInstalledPackagesRequest) String() string { func (*ListInstalledPackagesRequest) ProtoMessage() {} func (x *ListInstalledPackagesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[245] + mi := &file_state_v1_state_proto_msgTypes[243] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13458,7 +13370,7 @@ func (x *ListInstalledPackagesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListInstalledPackagesRequest.ProtoReflect.Descriptor instead. func (*ListInstalledPackagesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{245} + return file_state_v1_state_proto_rawDescGZIP(), []int{243} } type ListInstalledPackagesResponse struct { @@ -13470,7 +13382,7 @@ type ListInstalledPackagesResponse struct { func (x *ListInstalledPackagesResponse) Reset() { *x = ListInstalledPackagesResponse{} - mi := &file_state_v1_state_proto_msgTypes[246] + mi := &file_state_v1_state_proto_msgTypes[244] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13482,7 +13394,7 @@ func (x *ListInstalledPackagesResponse) String() string { func (*ListInstalledPackagesResponse) ProtoMessage() {} func (x *ListInstalledPackagesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[246] + mi := &file_state_v1_state_proto_msgTypes[244] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13495,7 +13407,7 @@ func (x *ListInstalledPackagesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListInstalledPackagesResponse.ProtoReflect.Descriptor instead. func (*ListInstalledPackagesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{246} + return file_state_v1_state_proto_rawDescGZIP(), []int{244} } func (x *ListInstalledPackagesResponse) GetPackages() []*InstalledPackage { @@ -13515,7 +13427,7 @@ type AcceptPackageAuthorityRequest struct { func (x *AcceptPackageAuthorityRequest) Reset() { *x = AcceptPackageAuthorityRequest{} - mi := &file_state_v1_state_proto_msgTypes[247] + mi := &file_state_v1_state_proto_msgTypes[245] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13527,7 +13439,7 @@ func (x *AcceptPackageAuthorityRequest) String() string { func (*AcceptPackageAuthorityRequest) ProtoMessage() {} func (x *AcceptPackageAuthorityRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[247] + mi := &file_state_v1_state_proto_msgTypes[245] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13540,7 +13452,7 @@ func (x *AcceptPackageAuthorityRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AcceptPackageAuthorityRequest.ProtoReflect.Descriptor instead. func (*AcceptPackageAuthorityRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{247} + return file_state_v1_state_proto_rawDescGZIP(), []int{245} } func (x *AcceptPackageAuthorityRequest) GetName() string { @@ -13566,7 +13478,7 @@ type AcceptPackageAuthorityResponse struct { func (x *AcceptPackageAuthorityResponse) Reset() { *x = AcceptPackageAuthorityResponse{} - mi := &file_state_v1_state_proto_msgTypes[248] + mi := &file_state_v1_state_proto_msgTypes[246] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13578,7 +13490,7 @@ func (x *AcceptPackageAuthorityResponse) String() string { func (*AcceptPackageAuthorityResponse) ProtoMessage() {} func (x *AcceptPackageAuthorityResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[248] + mi := &file_state_v1_state_proto_msgTypes[246] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13591,7 +13503,7 @@ func (x *AcceptPackageAuthorityResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AcceptPackageAuthorityResponse.ProtoReflect.Descriptor instead. func (*AcceptPackageAuthorityResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{248} + return file_state_v1_state_proto_rawDescGZIP(), []int{246} } func (x *AcceptPackageAuthorityResponse) GetPackage() *InstalledPackage { @@ -13610,7 +13522,7 @@ type RemoveInstalledPackageRequest struct { func (x *RemoveInstalledPackageRequest) Reset() { *x = RemoveInstalledPackageRequest{} - mi := &file_state_v1_state_proto_msgTypes[249] + mi := &file_state_v1_state_proto_msgTypes[247] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13622,7 +13534,7 @@ func (x *RemoveInstalledPackageRequest) String() string { func (*RemoveInstalledPackageRequest) ProtoMessage() {} func (x *RemoveInstalledPackageRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[249] + mi := &file_state_v1_state_proto_msgTypes[247] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13635,7 +13547,7 @@ func (x *RemoveInstalledPackageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveInstalledPackageRequest.ProtoReflect.Descriptor instead. func (*RemoveInstalledPackageRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{249} + return file_state_v1_state_proto_rawDescGZIP(), []int{247} } func (x *RemoveInstalledPackageRequest) GetName() string { @@ -13653,7 +13565,7 @@ type RemoveInstalledPackageResponse struct { func (x *RemoveInstalledPackageResponse) Reset() { *x = RemoveInstalledPackageResponse{} - mi := &file_state_v1_state_proto_msgTypes[250] + mi := &file_state_v1_state_proto_msgTypes[248] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13665,7 +13577,7 @@ func (x *RemoveInstalledPackageResponse) String() string { func (*RemoveInstalledPackageResponse) ProtoMessage() {} func (x *RemoveInstalledPackageResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[250] + mi := &file_state_v1_state_proto_msgTypes[248] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13678,7 +13590,7 @@ func (x *RemoveInstalledPackageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveInstalledPackageResponse.ProtoReflect.Descriptor instead. func (*RemoveInstalledPackageResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{250} + return file_state_v1_state_proto_rawDescGZIP(), []int{248} } type UpdatePackageRequest struct { @@ -13690,7 +13602,7 @@ type UpdatePackageRequest struct { func (x *UpdatePackageRequest) Reset() { *x = UpdatePackageRequest{} - mi := &file_state_v1_state_proto_msgTypes[251] + mi := &file_state_v1_state_proto_msgTypes[249] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13702,7 +13614,7 @@ func (x *UpdatePackageRequest) String() string { func (*UpdatePackageRequest) ProtoMessage() {} func (x *UpdatePackageRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[251] + mi := &file_state_v1_state_proto_msgTypes[249] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13715,7 +13627,7 @@ func (x *UpdatePackageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdatePackageRequest.ProtoReflect.Descriptor instead. func (*UpdatePackageRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{251} + return file_state_v1_state_proto_rawDescGZIP(), []int{249} } func (x *UpdatePackageRequest) GetName() string { @@ -13734,7 +13646,7 @@ type UpdatePackageResponse struct { func (x *UpdatePackageResponse) Reset() { *x = UpdatePackageResponse{} - mi := &file_state_v1_state_proto_msgTypes[252] + mi := &file_state_v1_state_proto_msgTypes[250] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13746,7 +13658,7 @@ func (x *UpdatePackageResponse) String() string { func (*UpdatePackageResponse) ProtoMessage() {} func (x *UpdatePackageResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[252] + mi := &file_state_v1_state_proto_msgTypes[250] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13759,7 +13671,7 @@ func (x *UpdatePackageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdatePackageResponse.ProtoReflect.Descriptor instead. func (*UpdatePackageResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{252} + return file_state_v1_state_proto_rawDescGZIP(), []int{250} } func (x *UpdatePackageResponse) GetPackage() *InstalledPackage { @@ -13778,7 +13690,7 @@ type ApprovePackageUpdateRequest struct { func (x *ApprovePackageUpdateRequest) Reset() { *x = ApprovePackageUpdateRequest{} - mi := &file_state_v1_state_proto_msgTypes[253] + mi := &file_state_v1_state_proto_msgTypes[251] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13790,7 +13702,7 @@ func (x *ApprovePackageUpdateRequest) String() string { func (*ApprovePackageUpdateRequest) ProtoMessage() {} func (x *ApprovePackageUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[253] + mi := &file_state_v1_state_proto_msgTypes[251] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13803,7 +13715,7 @@ func (x *ApprovePackageUpdateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ApprovePackageUpdateRequest.ProtoReflect.Descriptor instead. func (*ApprovePackageUpdateRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{253} + return file_state_v1_state_proto_rawDescGZIP(), []int{251} } func (x *ApprovePackageUpdateRequest) GetName() string { @@ -13822,7 +13734,7 @@ type ApprovePackageUpdateResponse struct { func (x *ApprovePackageUpdateResponse) Reset() { *x = ApprovePackageUpdateResponse{} - mi := &file_state_v1_state_proto_msgTypes[254] + mi := &file_state_v1_state_proto_msgTypes[252] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13834,7 +13746,7 @@ func (x *ApprovePackageUpdateResponse) String() string { func (*ApprovePackageUpdateResponse) ProtoMessage() {} func (x *ApprovePackageUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[254] + mi := &file_state_v1_state_proto_msgTypes[252] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13847,7 +13759,7 @@ func (x *ApprovePackageUpdateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ApprovePackageUpdateResponse.ProtoReflect.Descriptor instead. func (*ApprovePackageUpdateResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{254} + return file_state_v1_state_proto_rawDescGZIP(), []int{252} } func (x *ApprovePackageUpdateResponse) GetPackage() *InstalledPackage { @@ -13866,7 +13778,7 @@ type RollbackPackageRequest struct { func (x *RollbackPackageRequest) Reset() { *x = RollbackPackageRequest{} - mi := &file_state_v1_state_proto_msgTypes[255] + mi := &file_state_v1_state_proto_msgTypes[253] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13878,7 +13790,7 @@ func (x *RollbackPackageRequest) String() string { func (*RollbackPackageRequest) ProtoMessage() {} func (x *RollbackPackageRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[255] + mi := &file_state_v1_state_proto_msgTypes[253] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13891,7 +13803,7 @@ func (x *RollbackPackageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RollbackPackageRequest.ProtoReflect.Descriptor instead. func (*RollbackPackageRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{255} + return file_state_v1_state_proto_rawDescGZIP(), []int{253} } func (x *RollbackPackageRequest) GetName() string { @@ -13910,7 +13822,7 @@ type RollbackPackageResponse struct { func (x *RollbackPackageResponse) Reset() { *x = RollbackPackageResponse{} - mi := &file_state_v1_state_proto_msgTypes[256] + mi := &file_state_v1_state_proto_msgTypes[254] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13922,7 +13834,7 @@ func (x *RollbackPackageResponse) String() string { func (*RollbackPackageResponse) ProtoMessage() {} func (x *RollbackPackageResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[256] + mi := &file_state_v1_state_proto_msgTypes[254] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13935,7 +13847,7 @@ func (x *RollbackPackageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RollbackPackageResponse.ProtoReflect.Descriptor instead. func (*RollbackPackageResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{256} + return file_state_v1_state_proto_rawDescGZIP(), []int{254} } func (x *RollbackPackageResponse) GetPackage() *InstalledPackage { @@ -13955,7 +13867,7 @@ type SetPackageUpdatePolicyRequest struct { func (x *SetPackageUpdatePolicyRequest) Reset() { *x = SetPackageUpdatePolicyRequest{} - mi := &file_state_v1_state_proto_msgTypes[257] + mi := &file_state_v1_state_proto_msgTypes[255] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13967,7 +13879,7 @@ func (x *SetPackageUpdatePolicyRequest) String() string { func (*SetPackageUpdatePolicyRequest) ProtoMessage() {} func (x *SetPackageUpdatePolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[257] + mi := &file_state_v1_state_proto_msgTypes[255] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13980,7 +13892,7 @@ func (x *SetPackageUpdatePolicyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetPackageUpdatePolicyRequest.ProtoReflect.Descriptor instead. func (*SetPackageUpdatePolicyRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{257} + return file_state_v1_state_proto_rawDescGZIP(), []int{255} } func (x *SetPackageUpdatePolicyRequest) GetName() string { @@ -14006,7 +13918,7 @@ type SetPackageUpdatePolicyResponse struct { func (x *SetPackageUpdatePolicyResponse) Reset() { *x = SetPackageUpdatePolicyResponse{} - mi := &file_state_v1_state_proto_msgTypes[258] + mi := &file_state_v1_state_proto_msgTypes[256] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14018,7 +13930,7 @@ func (x *SetPackageUpdatePolicyResponse) String() string { func (*SetPackageUpdatePolicyResponse) ProtoMessage() {} func (x *SetPackageUpdatePolicyResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[258] + mi := &file_state_v1_state_proto_msgTypes[256] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14031,7 +13943,7 @@ func (x *SetPackageUpdatePolicyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetPackageUpdatePolicyResponse.ProtoReflect.Descriptor instead. func (*SetPackageUpdatePolicyResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{258} + return file_state_v1_state_proto_rawDescGZIP(), []int{256} } func (x *SetPackageUpdatePolicyResponse) GetPackage() *InstalledPackage { @@ -14050,7 +13962,7 @@ type GetPrincipalRequest struct { func (x *GetPrincipalRequest) Reset() { *x = GetPrincipalRequest{} - mi := &file_state_v1_state_proto_msgTypes[259] + mi := &file_state_v1_state_proto_msgTypes[257] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14062,7 +13974,7 @@ func (x *GetPrincipalRequest) String() string { func (*GetPrincipalRequest) ProtoMessage() {} func (x *GetPrincipalRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[259] + mi := &file_state_v1_state_proto_msgTypes[257] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14075,7 +13987,7 @@ func (x *GetPrincipalRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrincipalRequest.ProtoReflect.Descriptor instead. func (*GetPrincipalRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{259} + return file_state_v1_state_proto_rawDescGZIP(), []int{257} } func (x *GetPrincipalRequest) GetIdentityId() string { @@ -14098,7 +14010,7 @@ type PrincipalMembership struct { func (x *PrincipalMembership) Reset() { *x = PrincipalMembership{} - mi := &file_state_v1_state_proto_msgTypes[260] + mi := &file_state_v1_state_proto_msgTypes[258] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14110,7 +14022,7 @@ func (x *PrincipalMembership) String() string { func (*PrincipalMembership) ProtoMessage() {} func (x *PrincipalMembership) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[260] + mi := &file_state_v1_state_proto_msgTypes[258] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14123,7 +14035,7 @@ func (x *PrincipalMembership) ProtoReflect() protoreflect.Message { // Deprecated: Use PrincipalMembership.ProtoReflect.Descriptor instead. func (*PrincipalMembership) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{260} + return file_state_v1_state_proto_rawDescGZIP(), []int{258} } func (x *PrincipalMembership) GetOrgId() string { @@ -14158,7 +14070,7 @@ type AccessPrincipal struct { func (x *AccessPrincipal) Reset() { *x = AccessPrincipal{} - mi := &file_state_v1_state_proto_msgTypes[261] + mi := &file_state_v1_state_proto_msgTypes[259] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14170,7 +14082,7 @@ func (x *AccessPrincipal) String() string { func (*AccessPrincipal) ProtoMessage() {} func (x *AccessPrincipal) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[261] + mi := &file_state_v1_state_proto_msgTypes[259] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14183,7 +14095,7 @@ func (x *AccessPrincipal) ProtoReflect() protoreflect.Message { // Deprecated: Use AccessPrincipal.ProtoReflect.Descriptor instead. func (*AccessPrincipal) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{261} + return file_state_v1_state_proto_rawDescGZIP(), []int{259} } func (x *AccessPrincipal) GetIdentityId() string { @@ -14216,7 +14128,7 @@ type GetPrincipalResponse struct { func (x *GetPrincipalResponse) Reset() { *x = GetPrincipalResponse{} - mi := &file_state_v1_state_proto_msgTypes[262] + mi := &file_state_v1_state_proto_msgTypes[260] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14228,7 +14140,7 @@ func (x *GetPrincipalResponse) String() string { func (*GetPrincipalResponse) ProtoMessage() {} func (x *GetPrincipalResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[262] + mi := &file_state_v1_state_proto_msgTypes[260] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14241,7 +14153,7 @@ func (x *GetPrincipalResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrincipalResponse.ProtoReflect.Descriptor instead. func (*GetPrincipalResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{262} + return file_state_v1_state_proto_rawDescGZIP(), []int{260} } func (x *GetPrincipalResponse) GetPrincipal() *AccessPrincipal { @@ -14268,7 +14180,7 @@ type AccessPolicy struct { func (x *AccessPolicy) Reset() { *x = AccessPolicy{} - mi := &file_state_v1_state_proto_msgTypes[263] + mi := &file_state_v1_state_proto_msgTypes[261] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14280,7 +14192,7 @@ func (x *AccessPolicy) String() string { func (*AccessPolicy) ProtoMessage() {} func (x *AccessPolicy) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[263] + mi := &file_state_v1_state_proto_msgTypes[261] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14293,7 +14205,7 @@ func (x *AccessPolicy) ProtoReflect() protoreflect.Message { // Deprecated: Use AccessPolicy.ProtoReflect.Descriptor instead. func (*AccessPolicy) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{263} + return file_state_v1_state_proto_rawDescGZIP(), []int{261} } func (x *AccessPolicy) GetPolicyId() string { @@ -14353,7 +14265,7 @@ type ListPoliciesRequest struct { func (x *ListPoliciesRequest) Reset() { *x = ListPoliciesRequest{} - mi := &file_state_v1_state_proto_msgTypes[264] + mi := &file_state_v1_state_proto_msgTypes[262] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14365,7 +14277,7 @@ func (x *ListPoliciesRequest) String() string { func (*ListPoliciesRequest) ProtoMessage() {} func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[264] + mi := &file_state_v1_state_proto_msgTypes[262] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14378,7 +14290,7 @@ func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPoliciesRequest.ProtoReflect.Descriptor instead. func (*ListPoliciesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{264} + return file_state_v1_state_proto_rawDescGZIP(), []int{262} } type ListPoliciesResponse struct { @@ -14390,7 +14302,7 @@ type ListPoliciesResponse struct { func (x *ListPoliciesResponse) Reset() { *x = ListPoliciesResponse{} - mi := &file_state_v1_state_proto_msgTypes[265] + mi := &file_state_v1_state_proto_msgTypes[263] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14402,7 +14314,7 @@ func (x *ListPoliciesResponse) String() string { func (*ListPoliciesResponse) ProtoMessage() {} func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[265] + mi := &file_state_v1_state_proto_msgTypes[263] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14415,7 +14327,7 @@ func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPoliciesResponse.ProtoReflect.Descriptor instead. func (*ListPoliciesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{265} + return file_state_v1_state_proto_rawDescGZIP(), []int{263} } func (x *ListPoliciesResponse) GetPolicies() []*AccessPolicy { @@ -14434,7 +14346,7 @@ type PutPolicyRequest struct { func (x *PutPolicyRequest) Reset() { *x = PutPolicyRequest{} - mi := &file_state_v1_state_proto_msgTypes[266] + mi := &file_state_v1_state_proto_msgTypes[264] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14446,7 +14358,7 @@ func (x *PutPolicyRequest) String() string { func (*PutPolicyRequest) ProtoMessage() {} func (x *PutPolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[266] + mi := &file_state_v1_state_proto_msgTypes[264] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14459,7 +14371,7 @@ func (x *PutPolicyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutPolicyRequest.ProtoReflect.Descriptor instead. func (*PutPolicyRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{266} + return file_state_v1_state_proto_rawDescGZIP(), []int{264} } func (x *PutPolicyRequest) GetPolicy() *AccessPolicy { @@ -14478,7 +14390,7 @@ type PutPolicyResponse struct { func (x *PutPolicyResponse) Reset() { *x = PutPolicyResponse{} - mi := &file_state_v1_state_proto_msgTypes[267] + mi := &file_state_v1_state_proto_msgTypes[265] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14490,7 +14402,7 @@ func (x *PutPolicyResponse) String() string { func (*PutPolicyResponse) ProtoMessage() {} func (x *PutPolicyResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[267] + mi := &file_state_v1_state_proto_msgTypes[265] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14503,7 +14415,7 @@ func (x *PutPolicyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutPolicyResponse.ProtoReflect.Descriptor instead. func (*PutPolicyResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{267} + return file_state_v1_state_proto_rawDescGZIP(), []int{265} } func (x *PutPolicyResponse) GetVersion() int64 { @@ -14522,7 +14434,7 @@ type DeletePolicyRequest struct { func (x *DeletePolicyRequest) Reset() { *x = DeletePolicyRequest{} - mi := &file_state_v1_state_proto_msgTypes[268] + mi := &file_state_v1_state_proto_msgTypes[266] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14534,7 +14446,7 @@ func (x *DeletePolicyRequest) String() string { func (*DeletePolicyRequest) ProtoMessage() {} func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[268] + mi := &file_state_v1_state_proto_msgTypes[266] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14547,7 +14459,7 @@ func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePolicyRequest.ProtoReflect.Descriptor instead. func (*DeletePolicyRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{268} + return file_state_v1_state_proto_rawDescGZIP(), []int{266} } func (x *DeletePolicyRequest) GetPolicy() *AccessPolicy { @@ -14565,7 +14477,7 @@ type DeletePolicyResponse struct { func (x *DeletePolicyResponse) Reset() { *x = DeletePolicyResponse{} - mi := &file_state_v1_state_proto_msgTypes[269] + mi := &file_state_v1_state_proto_msgTypes[267] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14577,7 +14489,7 @@ func (x *DeletePolicyResponse) String() string { func (*DeletePolicyResponse) ProtoMessage() {} func (x *DeletePolicyResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[269] + mi := &file_state_v1_state_proto_msgTypes[267] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14590,7 +14502,7 @@ func (x *DeletePolicyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePolicyResponse.ProtoReflect.Descriptor instead. func (*DeletePolicyResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{269} + return file_state_v1_state_proto_rawDescGZIP(), []int{267} } type EnsureShippedOrgPoliciesRequest struct { @@ -14602,7 +14514,7 @@ type EnsureShippedOrgPoliciesRequest struct { func (x *EnsureShippedOrgPoliciesRequest) Reset() { *x = EnsureShippedOrgPoliciesRequest{} - mi := &file_state_v1_state_proto_msgTypes[270] + mi := &file_state_v1_state_proto_msgTypes[268] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14614,7 +14526,7 @@ func (x *EnsureShippedOrgPoliciesRequest) String() string { func (*EnsureShippedOrgPoliciesRequest) ProtoMessage() {} func (x *EnsureShippedOrgPoliciesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[270] + mi := &file_state_v1_state_proto_msgTypes[268] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14627,7 +14539,7 @@ func (x *EnsureShippedOrgPoliciesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EnsureShippedOrgPoliciesRequest.ProtoReflect.Descriptor instead. func (*EnsureShippedOrgPoliciesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{270} + return file_state_v1_state_proto_rawDescGZIP(), []int{268} } func (x *EnsureShippedOrgPoliciesRequest) GetOrgId() string { @@ -14645,7 +14557,7 @@ type EnsureShippedOrgPoliciesResponse struct { func (x *EnsureShippedOrgPoliciesResponse) Reset() { *x = EnsureShippedOrgPoliciesResponse{} - mi := &file_state_v1_state_proto_msgTypes[271] + mi := &file_state_v1_state_proto_msgTypes[269] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14657,7 +14569,7 @@ func (x *EnsureShippedOrgPoliciesResponse) String() string { func (*EnsureShippedOrgPoliciesResponse) ProtoMessage() {} func (x *EnsureShippedOrgPoliciesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[271] + mi := &file_state_v1_state_proto_msgTypes[269] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14670,7 +14582,7 @@ func (x *EnsureShippedOrgPoliciesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EnsureShippedOrgPoliciesResponse.ProtoReflect.Descriptor instead. func (*EnsureShippedOrgPoliciesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{271} + return file_state_v1_state_proto_rawDescGZIP(), []int{269} } // AccessDenial mirrors internal/domain/access.Denial: one refusal with the @@ -14693,7 +14605,7 @@ type AccessDenial struct { func (x *AccessDenial) Reset() { *x = AccessDenial{} - mi := &file_state_v1_state_proto_msgTypes[272] + mi := &file_state_v1_state_proto_msgTypes[270] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14705,7 +14617,7 @@ func (x *AccessDenial) String() string { func (*AccessDenial) ProtoMessage() {} func (x *AccessDenial) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[272] + mi := &file_state_v1_state_proto_msgTypes[270] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14718,7 +14630,7 @@ func (x *AccessDenial) ProtoReflect() protoreflect.Message { // Deprecated: Use AccessDenial.ProtoReflect.Descriptor instead. func (*AccessDenial) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{272} + return file_state_v1_state_proto_rawDescGZIP(), []int{270} } func (x *AccessDenial) GetOrgId() string { @@ -14793,7 +14705,7 @@ type RecordDenialRequest struct { func (x *RecordDenialRequest) Reset() { *x = RecordDenialRequest{} - mi := &file_state_v1_state_proto_msgTypes[273] + mi := &file_state_v1_state_proto_msgTypes[271] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14805,7 +14717,7 @@ func (x *RecordDenialRequest) String() string { func (*RecordDenialRequest) ProtoMessage() {} func (x *RecordDenialRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[273] + mi := &file_state_v1_state_proto_msgTypes[271] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14818,7 +14730,7 @@ func (x *RecordDenialRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDenialRequest.ProtoReflect.Descriptor instead. func (*RecordDenialRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{273} + return file_state_v1_state_proto_rawDescGZIP(), []int{271} } func (x *RecordDenialRequest) GetDenial() *AccessDenial { @@ -14836,7 +14748,7 @@ type RecordDenialResponse struct { func (x *RecordDenialResponse) Reset() { *x = RecordDenialResponse{} - mi := &file_state_v1_state_proto_msgTypes[274] + mi := &file_state_v1_state_proto_msgTypes[272] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14848,7 +14760,7 @@ func (x *RecordDenialResponse) String() string { func (*RecordDenialResponse) ProtoMessage() {} func (x *RecordDenialResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[274] + mi := &file_state_v1_state_proto_msgTypes[272] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14861,7 +14773,7 @@ func (x *RecordDenialResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDenialResponse.ProtoReflect.Descriptor instead. func (*RecordDenialResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{274} + return file_state_v1_state_proto_rawDescGZIP(), []int{272} } type ListDenialsRequest struct { @@ -14873,7 +14785,7 @@ type ListDenialsRequest struct { func (x *ListDenialsRequest) Reset() { *x = ListDenialsRequest{} - mi := &file_state_v1_state_proto_msgTypes[275] + mi := &file_state_v1_state_proto_msgTypes[273] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14885,7 +14797,7 @@ func (x *ListDenialsRequest) String() string { func (*ListDenialsRequest) ProtoMessage() {} func (x *ListDenialsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[275] + mi := &file_state_v1_state_proto_msgTypes[273] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14898,7 +14810,7 @@ func (x *ListDenialsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDenialsRequest.ProtoReflect.Descriptor instead. func (*ListDenialsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{275} + return file_state_v1_state_proto_rawDescGZIP(), []int{273} } func (x *ListDenialsRequest) GetLimit() int32 { @@ -14917,7 +14829,7 @@ type ListDenialsResponse struct { func (x *ListDenialsResponse) Reset() { *x = ListDenialsResponse{} - mi := &file_state_v1_state_proto_msgTypes[276] + mi := &file_state_v1_state_proto_msgTypes[274] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14929,7 +14841,7 @@ func (x *ListDenialsResponse) String() string { func (*ListDenialsResponse) ProtoMessage() {} func (x *ListDenialsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[276] + mi := &file_state_v1_state_proto_msgTypes[274] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14942,7 +14854,7 @@ func (x *ListDenialsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDenialsResponse.ProtoReflect.Descriptor instead. func (*ListDenialsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{276} + return file_state_v1_state_proto_rawDescGZIP(), []int{274} } func (x *ListDenialsResponse) GetDenials() []*AccessDenial { @@ -14963,7 +14875,7 @@ type Org struct { func (x *Org) Reset() { *x = Org{} - mi := &file_state_v1_state_proto_msgTypes[277] + mi := &file_state_v1_state_proto_msgTypes[275] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14975,7 +14887,7 @@ func (x *Org) String() string { func (*Org) ProtoMessage() {} func (x *Org) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[277] + mi := &file_state_v1_state_proto_msgTypes[275] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14988,7 +14900,7 @@ func (x *Org) ProtoReflect() protoreflect.Message { // Deprecated: Use Org.ProtoReflect.Descriptor instead. func (*Org) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{277} + return file_state_v1_state_proto_rawDescGZIP(), []int{275} } func (x *Org) GetId() string { @@ -15018,7 +14930,7 @@ type Workspace struct { func (x *Workspace) Reset() { *x = Workspace{} - mi := &file_state_v1_state_proto_msgTypes[278] + mi := &file_state_v1_state_proto_msgTypes[276] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15030,7 +14942,7 @@ func (x *Workspace) String() string { func (*Workspace) ProtoMessage() {} func (x *Workspace) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[278] + mi := &file_state_v1_state_proto_msgTypes[276] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15043,7 +14955,7 @@ func (x *Workspace) ProtoReflect() protoreflect.Message { // Deprecated: Use Workspace.ProtoReflect.Descriptor instead. func (*Workspace) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{278} + return file_state_v1_state_proto_rawDescGZIP(), []int{276} } func (x *Workspace) GetId() string { @@ -15089,7 +15001,7 @@ type Member struct { func (x *Member) Reset() { *x = Member{} - mi := &file_state_v1_state_proto_msgTypes[279] + mi := &file_state_v1_state_proto_msgTypes[277] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15101,7 +15013,7 @@ func (x *Member) String() string { func (*Member) ProtoMessage() {} func (x *Member) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[279] + mi := &file_state_v1_state_proto_msgTypes[277] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15114,7 +15026,7 @@ func (x *Member) ProtoReflect() protoreflect.Message { // Deprecated: Use Member.ProtoReflect.Descriptor instead. func (*Member) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{279} + return file_state_v1_state_proto_rawDescGZIP(), []int{277} } func (x *Member) GetIdentityId() string { @@ -15160,7 +15072,7 @@ type ListOrgsRequest struct { func (x *ListOrgsRequest) Reset() { *x = ListOrgsRequest{} - mi := &file_state_v1_state_proto_msgTypes[280] + mi := &file_state_v1_state_proto_msgTypes[278] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15172,7 +15084,7 @@ func (x *ListOrgsRequest) String() string { func (*ListOrgsRequest) ProtoMessage() {} func (x *ListOrgsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[280] + mi := &file_state_v1_state_proto_msgTypes[278] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15185,7 +15097,7 @@ func (x *ListOrgsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListOrgsRequest.ProtoReflect.Descriptor instead. func (*ListOrgsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{280} + return file_state_v1_state_proto_rawDescGZIP(), []int{278} } type ListOrgsResponse struct { @@ -15197,7 +15109,7 @@ type ListOrgsResponse struct { func (x *ListOrgsResponse) Reset() { *x = ListOrgsResponse{} - mi := &file_state_v1_state_proto_msgTypes[281] + mi := &file_state_v1_state_proto_msgTypes[279] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15209,7 +15121,7 @@ func (x *ListOrgsResponse) String() string { func (*ListOrgsResponse) ProtoMessage() {} func (x *ListOrgsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[281] + mi := &file_state_v1_state_proto_msgTypes[279] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15222,7 +15134,7 @@ func (x *ListOrgsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListOrgsResponse.ProtoReflect.Descriptor instead. func (*ListOrgsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{281} + return file_state_v1_state_proto_rawDescGZIP(), []int{279} } func (x *ListOrgsResponse) GetOrgs() []*Org { @@ -15241,7 +15153,7 @@ type GetOrgRequest struct { func (x *GetOrgRequest) Reset() { *x = GetOrgRequest{} - mi := &file_state_v1_state_proto_msgTypes[282] + mi := &file_state_v1_state_proto_msgTypes[280] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15253,7 +15165,7 @@ func (x *GetOrgRequest) String() string { func (*GetOrgRequest) ProtoMessage() {} func (x *GetOrgRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[282] + mi := &file_state_v1_state_proto_msgTypes[280] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15266,7 +15178,7 @@ func (x *GetOrgRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetOrgRequest.ProtoReflect.Descriptor instead. func (*GetOrgRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{282} + return file_state_v1_state_proto_rawDescGZIP(), []int{280} } func (x *GetOrgRequest) GetOrgId() string { @@ -15285,7 +15197,7 @@ type GetOrgResponse struct { func (x *GetOrgResponse) Reset() { *x = GetOrgResponse{} - mi := &file_state_v1_state_proto_msgTypes[283] + mi := &file_state_v1_state_proto_msgTypes[281] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15297,7 +15209,7 @@ func (x *GetOrgResponse) String() string { func (*GetOrgResponse) ProtoMessage() {} func (x *GetOrgResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[283] + mi := &file_state_v1_state_proto_msgTypes[281] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15310,7 +15222,7 @@ func (x *GetOrgResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetOrgResponse.ProtoReflect.Descriptor instead. func (*GetOrgResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{283} + return file_state_v1_state_proto_rawDescGZIP(), []int{281} } func (x *GetOrgResponse) GetOrg() *Org { @@ -15333,7 +15245,7 @@ type CreateOrgRequest struct { func (x *CreateOrgRequest) Reset() { *x = CreateOrgRequest{} - mi := &file_state_v1_state_proto_msgTypes[284] + mi := &file_state_v1_state_proto_msgTypes[282] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15345,7 +15257,7 @@ func (x *CreateOrgRequest) String() string { func (*CreateOrgRequest) ProtoMessage() {} func (x *CreateOrgRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[284] + mi := &file_state_v1_state_proto_msgTypes[282] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15358,7 +15270,7 @@ func (x *CreateOrgRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateOrgRequest.ProtoReflect.Descriptor instead. func (*CreateOrgRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{284} + return file_state_v1_state_proto_rawDescGZIP(), []int{282} } func (x *CreateOrgRequest) GetId() string { @@ -15391,7 +15303,7 @@ type CreateOrgResponse struct { func (x *CreateOrgResponse) Reset() { *x = CreateOrgResponse{} - mi := &file_state_v1_state_proto_msgTypes[285] + mi := &file_state_v1_state_proto_msgTypes[283] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15403,7 +15315,7 @@ func (x *CreateOrgResponse) String() string { func (*CreateOrgResponse) ProtoMessage() {} func (x *CreateOrgResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[285] + mi := &file_state_v1_state_proto_msgTypes[283] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15416,7 +15328,7 @@ func (x *CreateOrgResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateOrgResponse.ProtoReflect.Descriptor instead. func (*CreateOrgResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{285} + return file_state_v1_state_proto_rawDescGZIP(), []int{283} } func (x *CreateOrgResponse) GetOrg() *Org { @@ -15435,7 +15347,7 @@ type ListWorkspacesRequest struct { func (x *ListWorkspacesRequest) Reset() { *x = ListWorkspacesRequest{} - mi := &file_state_v1_state_proto_msgTypes[286] + mi := &file_state_v1_state_proto_msgTypes[284] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15447,7 +15359,7 @@ func (x *ListWorkspacesRequest) String() string { func (*ListWorkspacesRequest) ProtoMessage() {} func (x *ListWorkspacesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[286] + mi := &file_state_v1_state_proto_msgTypes[284] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15460,7 +15372,7 @@ func (x *ListWorkspacesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListWorkspacesRequest.ProtoReflect.Descriptor instead. func (*ListWorkspacesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{286} + return file_state_v1_state_proto_rawDescGZIP(), []int{284} } func (x *ListWorkspacesRequest) GetOrgId() string { @@ -15479,7 +15391,7 @@ type ListWorkspacesResponse struct { func (x *ListWorkspacesResponse) Reset() { *x = ListWorkspacesResponse{} - mi := &file_state_v1_state_proto_msgTypes[287] + mi := &file_state_v1_state_proto_msgTypes[285] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15491,7 +15403,7 @@ func (x *ListWorkspacesResponse) String() string { func (*ListWorkspacesResponse) ProtoMessage() {} func (x *ListWorkspacesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[287] + mi := &file_state_v1_state_proto_msgTypes[285] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15504,7 +15416,7 @@ func (x *ListWorkspacesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListWorkspacesResponse.ProtoReflect.Descriptor instead. func (*ListWorkspacesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{287} + return file_state_v1_state_proto_rawDescGZIP(), []int{285} } func (x *ListWorkspacesResponse) GetWorkspaces() []*Workspace { @@ -15526,7 +15438,7 @@ type CreateWorkspaceRequest struct { func (x *CreateWorkspaceRequest) Reset() { *x = CreateWorkspaceRequest{} - mi := &file_state_v1_state_proto_msgTypes[288] + mi := &file_state_v1_state_proto_msgTypes[286] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15538,7 +15450,7 @@ func (x *CreateWorkspaceRequest) String() string { func (*CreateWorkspaceRequest) ProtoMessage() {} func (x *CreateWorkspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[288] + mi := &file_state_v1_state_proto_msgTypes[286] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15551,7 +15463,7 @@ func (x *CreateWorkspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateWorkspaceRequest.ProtoReflect.Descriptor instead. func (*CreateWorkspaceRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{288} + return file_state_v1_state_proto_rawDescGZIP(), []int{286} } func (x *CreateWorkspaceRequest) GetOrgId() string { @@ -15591,7 +15503,7 @@ type CreateWorkspaceResponse struct { func (x *CreateWorkspaceResponse) Reset() { *x = CreateWorkspaceResponse{} - mi := &file_state_v1_state_proto_msgTypes[289] + mi := &file_state_v1_state_proto_msgTypes[287] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15603,7 +15515,7 @@ func (x *CreateWorkspaceResponse) String() string { func (*CreateWorkspaceResponse) ProtoMessage() {} func (x *CreateWorkspaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[289] + mi := &file_state_v1_state_proto_msgTypes[287] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15616,7 +15528,7 @@ func (x *CreateWorkspaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateWorkspaceResponse.ProtoReflect.Descriptor instead. func (*CreateWorkspaceResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{289} + return file_state_v1_state_proto_rawDescGZIP(), []int{287} } func (x *CreateWorkspaceResponse) GetWorkspace() *Workspace { @@ -15635,7 +15547,7 @@ type ListMembersRequest struct { func (x *ListMembersRequest) Reset() { *x = ListMembersRequest{} - mi := &file_state_v1_state_proto_msgTypes[290] + mi := &file_state_v1_state_proto_msgTypes[288] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15647,7 +15559,7 @@ func (x *ListMembersRequest) String() string { func (*ListMembersRequest) ProtoMessage() {} func (x *ListMembersRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[290] + mi := &file_state_v1_state_proto_msgTypes[288] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15660,7 +15572,7 @@ func (x *ListMembersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMembersRequest.ProtoReflect.Descriptor instead. func (*ListMembersRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{290} + return file_state_v1_state_proto_rawDescGZIP(), []int{288} } func (x *ListMembersRequest) GetOrgId() string { @@ -15679,7 +15591,7 @@ type ListMembersResponse struct { func (x *ListMembersResponse) Reset() { *x = ListMembersResponse{} - mi := &file_state_v1_state_proto_msgTypes[291] + mi := &file_state_v1_state_proto_msgTypes[289] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15691,7 +15603,7 @@ func (x *ListMembersResponse) String() string { func (*ListMembersResponse) ProtoMessage() {} func (x *ListMembersResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[291] + mi := &file_state_v1_state_proto_msgTypes[289] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15704,7 +15616,7 @@ func (x *ListMembersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMembersResponse.ProtoReflect.Descriptor instead. func (*ListMembersResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{291} + return file_state_v1_state_proto_rawDescGZIP(), []int{289} } func (x *ListMembersResponse) GetMembers() []*Member { @@ -15726,7 +15638,7 @@ type SetMembershipRequest struct { func (x *SetMembershipRequest) Reset() { *x = SetMembershipRequest{} - mi := &file_state_v1_state_proto_msgTypes[292] + mi := &file_state_v1_state_proto_msgTypes[290] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15738,7 +15650,7 @@ func (x *SetMembershipRequest) String() string { func (*SetMembershipRequest) ProtoMessage() {} func (x *SetMembershipRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[292] + mi := &file_state_v1_state_proto_msgTypes[290] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15751,7 +15663,7 @@ func (x *SetMembershipRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetMembershipRequest.ProtoReflect.Descriptor instead. func (*SetMembershipRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{292} + return file_state_v1_state_proto_rawDescGZIP(), []int{290} } func (x *SetMembershipRequest) GetOrgId() string { @@ -15790,7 +15702,7 @@ type SetMembershipResponse struct { func (x *SetMembershipResponse) Reset() { *x = SetMembershipResponse{} - mi := &file_state_v1_state_proto_msgTypes[293] + mi := &file_state_v1_state_proto_msgTypes[291] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15802,7 +15714,7 @@ func (x *SetMembershipResponse) String() string { func (*SetMembershipResponse) ProtoMessage() {} func (x *SetMembershipResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[293] + mi := &file_state_v1_state_proto_msgTypes[291] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15815,7 +15727,7 @@ func (x *SetMembershipResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetMembershipResponse.ProtoReflect.Descriptor instead. func (*SetMembershipResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{293} + return file_state_v1_state_proto_rawDescGZIP(), []int{291} } type RemoveMembershipRequest struct { @@ -15829,7 +15741,7 @@ type RemoveMembershipRequest struct { func (x *RemoveMembershipRequest) Reset() { *x = RemoveMembershipRequest{} - mi := &file_state_v1_state_proto_msgTypes[294] + mi := &file_state_v1_state_proto_msgTypes[292] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15841,7 +15753,7 @@ func (x *RemoveMembershipRequest) String() string { func (*RemoveMembershipRequest) ProtoMessage() {} func (x *RemoveMembershipRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[294] + mi := &file_state_v1_state_proto_msgTypes[292] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15854,7 +15766,7 @@ func (x *RemoveMembershipRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveMembershipRequest.ProtoReflect.Descriptor instead. func (*RemoveMembershipRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{294} + return file_state_v1_state_proto_rawDescGZIP(), []int{292} } func (x *RemoveMembershipRequest) GetOrgId() string { @@ -15886,7 +15798,7 @@ type RemoveMembershipResponse struct { func (x *RemoveMembershipResponse) Reset() { *x = RemoveMembershipResponse{} - mi := &file_state_v1_state_proto_msgTypes[295] + mi := &file_state_v1_state_proto_msgTypes[293] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15898,7 +15810,7 @@ func (x *RemoveMembershipResponse) String() string { func (*RemoveMembershipResponse) ProtoMessage() {} func (x *RemoveMembershipResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[295] + mi := &file_state_v1_state_proto_msgTypes[293] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15911,7 +15823,7 @@ func (x *RemoveMembershipResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveMembershipResponse.ProtoReflect.Descriptor instead. func (*RemoveMembershipResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{295} + return file_state_v1_state_proto_rawDescGZIP(), []int{293} } type AssignAgentRequest struct { @@ -15924,7 +15836,7 @@ type AssignAgentRequest struct { func (x *AssignAgentRequest) Reset() { *x = AssignAgentRequest{} - mi := &file_state_v1_state_proto_msgTypes[296] + mi := &file_state_v1_state_proto_msgTypes[294] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15936,7 +15848,7 @@ func (x *AssignAgentRequest) String() string { func (*AssignAgentRequest) ProtoMessage() {} func (x *AssignAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[296] + mi := &file_state_v1_state_proto_msgTypes[294] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15949,7 +15861,7 @@ func (x *AssignAgentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AssignAgentRequest.ProtoReflect.Descriptor instead. func (*AssignAgentRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{296} + return file_state_v1_state_proto_rawDescGZIP(), []int{294} } func (x *AssignAgentRequest) GetOrgId() string { @@ -15974,7 +15886,7 @@ type AssignAgentResponse struct { func (x *AssignAgentResponse) Reset() { *x = AssignAgentResponse{} - mi := &file_state_v1_state_proto_msgTypes[297] + mi := &file_state_v1_state_proto_msgTypes[295] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15986,7 +15898,7 @@ func (x *AssignAgentResponse) String() string { func (*AssignAgentResponse) ProtoMessage() {} func (x *AssignAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[297] + mi := &file_state_v1_state_proto_msgTypes[295] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15999,7 +15911,7 @@ func (x *AssignAgentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AssignAgentResponse.ProtoReflect.Descriptor instead. func (*AssignAgentResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{297} + return file_state_v1_state_proto_rawDescGZIP(), []int{295} } type RecentLogsRequest struct { @@ -16011,7 +15923,7 @@ type RecentLogsRequest struct { func (x *RecentLogsRequest) Reset() { *x = RecentLogsRequest{} - mi := &file_state_v1_state_proto_msgTypes[298] + mi := &file_state_v1_state_proto_msgTypes[296] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16023,7 +15935,7 @@ func (x *RecentLogsRequest) String() string { func (*RecentLogsRequest) ProtoMessage() {} func (x *RecentLogsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[298] + mi := &file_state_v1_state_proto_msgTypes[296] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16036,7 +15948,7 @@ func (x *RecentLogsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecentLogsRequest.ProtoReflect.Descriptor instead. func (*RecentLogsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{298} + return file_state_v1_state_proto_rawDescGZIP(), []int{296} } func (x *RecentLogsRequest) GetQuery() *v1.LogQuery { @@ -16055,7 +15967,7 @@ type RecentLogsResponse struct { func (x *RecentLogsResponse) Reset() { *x = RecentLogsResponse{} - mi := &file_state_v1_state_proto_msgTypes[299] + mi := &file_state_v1_state_proto_msgTypes[297] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16067,7 +15979,7 @@ func (x *RecentLogsResponse) String() string { func (*RecentLogsResponse) ProtoMessage() {} func (x *RecentLogsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[299] + mi := &file_state_v1_state_proto_msgTypes[297] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16080,7 +15992,7 @@ func (x *RecentLogsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecentLogsResponse.ProtoReflect.Descriptor instead. func (*RecentLogsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{299} + return file_state_v1_state_proto_rawDescGZIP(), []int{297} } func (x *RecentLogsResponse) GetSnapshot() *v1.LogSnapshot { @@ -16113,7 +16025,7 @@ type UsageRecord struct { func (x *UsageRecord) Reset() { *x = UsageRecord{} - mi := &file_state_v1_state_proto_msgTypes[300] + mi := &file_state_v1_state_proto_msgTypes[298] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16125,7 +16037,7 @@ func (x *UsageRecord) String() string { func (*UsageRecord) ProtoMessage() {} func (x *UsageRecord) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[300] + mi := &file_state_v1_state_proto_msgTypes[298] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16138,7 +16050,7 @@ func (x *UsageRecord) ProtoReflect() protoreflect.Message { // Deprecated: Use UsageRecord.ProtoReflect.Descriptor instead. func (*UsageRecord) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{300} + return file_state_v1_state_proto_rawDescGZIP(), []int{298} } func (x *UsageRecord) GetSource() string { @@ -16234,7 +16146,7 @@ type RecordUsageRequest struct { func (x *RecordUsageRequest) Reset() { *x = RecordUsageRequest{} - mi := &file_state_v1_state_proto_msgTypes[301] + mi := &file_state_v1_state_proto_msgTypes[299] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16246,7 +16158,7 @@ func (x *RecordUsageRequest) String() string { func (*RecordUsageRequest) ProtoMessage() {} func (x *RecordUsageRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[301] + mi := &file_state_v1_state_proto_msgTypes[299] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16259,7 +16171,7 @@ func (x *RecordUsageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordUsageRequest.ProtoReflect.Descriptor instead. func (*RecordUsageRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{301} + return file_state_v1_state_proto_rawDescGZIP(), []int{299} } func (x *RecordUsageRequest) GetRecord() *UsageRecord { @@ -16277,7 +16189,7 @@ type RecordUsageResponse struct { func (x *RecordUsageResponse) Reset() { *x = RecordUsageResponse{} - mi := &file_state_v1_state_proto_msgTypes[302] + mi := &file_state_v1_state_proto_msgTypes[300] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16289,7 +16201,7 @@ func (x *RecordUsageResponse) String() string { func (*RecordUsageResponse) ProtoMessage() {} func (x *RecordUsageResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[302] + mi := &file_state_v1_state_proto_msgTypes[300] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16302,7 +16214,7 @@ func (x *RecordUsageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordUsageResponse.ProtoReflect.Descriptor instead. func (*RecordUsageResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{302} + return file_state_v1_state_proto_rawDescGZIP(), []int{300} } type TaskModelsRequest struct { @@ -16314,7 +16226,7 @@ type TaskModelsRequest struct { func (x *TaskModelsRequest) Reset() { *x = TaskModelsRequest{} - mi := &file_state_v1_state_proto_msgTypes[303] + mi := &file_state_v1_state_proto_msgTypes[301] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16326,7 +16238,7 @@ func (x *TaskModelsRequest) String() string { func (*TaskModelsRequest) ProtoMessage() {} func (x *TaskModelsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[303] + mi := &file_state_v1_state_proto_msgTypes[301] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16339,7 +16251,7 @@ func (x *TaskModelsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskModelsRequest.ProtoReflect.Descriptor instead. func (*TaskModelsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{303} + return file_state_v1_state_proto_rawDescGZIP(), []int{301} } func (x *TaskModelsRequest) GetTaskId() int64 { @@ -16360,7 +16272,7 @@ type TaskModelsResponse struct { func (x *TaskModelsResponse) Reset() { *x = TaskModelsResponse{} - mi := &file_state_v1_state_proto_msgTypes[304] + mi := &file_state_v1_state_proto_msgTypes[302] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16372,7 +16284,7 @@ func (x *TaskModelsResponse) String() string { func (*TaskModelsResponse) ProtoMessage() {} func (x *TaskModelsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[304] + mi := &file_state_v1_state_proto_msgTypes[302] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16385,7 +16297,7 @@ func (x *TaskModelsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskModelsResponse.ProtoReflect.Descriptor instead. func (*TaskModelsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{304} + return file_state_v1_state_proto_rawDescGZIP(), []int{302} } func (x *TaskModelsResponse) GetOrgId() string { @@ -16422,7 +16334,7 @@ type ModelProvider struct { func (x *ModelProvider) Reset() { *x = ModelProvider{} - mi := &file_state_v1_state_proto_msgTypes[305] + mi := &file_state_v1_state_proto_msgTypes[303] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16434,7 +16346,7 @@ func (x *ModelProvider) String() string { func (*ModelProvider) ProtoMessage() {} func (x *ModelProvider) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[305] + mi := &file_state_v1_state_proto_msgTypes[303] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16447,7 +16359,7 @@ func (x *ModelProvider) ProtoReflect() protoreflect.Message { // Deprecated: Use ModelProvider.ProtoReflect.Descriptor instead. func (*ModelProvider) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{305} + return file_state_v1_state_proto_rawDescGZIP(), []int{303} } func (x *ModelProvider) GetClass() string { @@ -16479,7 +16391,7 @@ type CallerModelsRequest struct { func (x *CallerModelsRequest) Reset() { *x = CallerModelsRequest{} - mi := &file_state_v1_state_proto_msgTypes[306] + mi := &file_state_v1_state_proto_msgTypes[304] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16491,7 +16403,7 @@ func (x *CallerModelsRequest) String() string { func (*CallerModelsRequest) ProtoMessage() {} func (x *CallerModelsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[306] + mi := &file_state_v1_state_proto_msgTypes[304] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16504,7 +16416,7 @@ func (x *CallerModelsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CallerModelsRequest.ProtoReflect.Descriptor instead. func (*CallerModelsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{306} + return file_state_v1_state_proto_rawDescGZIP(), []int{304} } type CallerModelsResponse struct { @@ -16517,7 +16429,7 @@ type CallerModelsResponse struct { func (x *CallerModelsResponse) Reset() { *x = CallerModelsResponse{} - mi := &file_state_v1_state_proto_msgTypes[307] + mi := &file_state_v1_state_proto_msgTypes[305] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16529,7 +16441,7 @@ func (x *CallerModelsResponse) String() string { func (*CallerModelsResponse) ProtoMessage() {} func (x *CallerModelsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[307] + mi := &file_state_v1_state_proto_msgTypes[305] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16542,7 +16454,7 @@ func (x *CallerModelsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CallerModelsResponse.ProtoReflect.Descriptor instead. func (*CallerModelsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{307} + return file_state_v1_state_proto_rawDescGZIP(), []int{305} } func (x *CallerModelsResponse) GetOrgId() string { @@ -17327,14 +17239,7 @@ const file_state_v1_state_proto_rawDesc = "" + "capture_id\x18\x03 \x01(\tR\tcaptureId\x12\x17\n" + "\atask_id\x18\x04 \x01(\x03R\x06taskId\x12\x16\n" + "\x06reason\x18\x05 \x01(\tR\x06reason\"\x18\n" + - "\x16RecordDispatchResponse\"o\n" + - "\x16SetDispatchTaskRequest\x12\x1d\n" + - "\n" + - "binding_id\x18\x01 \x01(\tR\tbindingId\x12\x1d\n" + - "\n" + - "capture_id\x18\x02 \x01(\tR\tcaptureId\x12\x17\n" + - "\atask_id\x18\x03 \x01(\x03R\x06taskId\"\x19\n" + - "\x17SetDispatchTaskResponse\"\x84\x01\n" + + "\x16RecordDispatchResponse\"\x84\x01\n" + "\x15ListDispatchesRequest\x12\x1d\n" + "\n" + "binding_id\x18\x01 \x01(\tR\tbindingId\x12\x1d\n" + @@ -17370,7 +17275,7 @@ const file_state_v1_state_proto_rawDesc = "" + "\asources\x18\x01 \x03(\tR\asources\x12\x14\n" + "\x05limit\x18\x02 \x01(\x03R\x05limit\"W\n" + "\"StreamUndispatchedCapturesResponse\x121\n" + - "\acapture\x18\x01 \x01(\v2\x17.state.v1.CapturedEventR\acapture\"\x90\x02\n" + + "\acapture\x18\x01 \x01(\v2\x17.state.v1.CapturedEventR\acapture\"\xaf\x02\n" + "\x19EnqueueBindingTaskRequest\x12\x14\n" + "\x05owner\x18\x01 \x01(\tR\x05owner\x12\x12\n" + "\x04repo\x18\x02 \x01(\tR\x04repo\x12\x14\n" + @@ -17382,7 +17287,10 @@ const file_state_v1_state_proto_rawDesc = "" + "binding_id\x18\a \x01(\tR\tbindingId\x12'\n" + "\x0fbinding_version\x18\b \x01(\x03R\x0ebindingVersion\x12\x1f\n" + "\vinputs_json\x18\t \x01(\tR\n" + - "inputsJson\"@\n" + + "inputsJson\x12\x1d\n" + + "\n" + + "capture_id\x18\n" + + " \x01(\tR\tcaptureId\"@\n" + "\x1aEnqueueBindingTaskResponse\x12\"\n" + "\x04task\x18\x01 \x01(\v2\x0e.state.v1.TaskR\x04task\"\x96\x01\n" + "\x16EnqueueCallTaskRequest\x12$\n" + @@ -17639,7 +17547,7 @@ const file_state_v1_state_proto_rawDesc = "" + "\aaliases\x18\x02 \x03(\v2+.state.v1.CallerModelsResponse.AliasesEntryR\aaliases\x1a:\n" + "\fAliasesEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\xdcY\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\x84Y\n" + "\x11StateStoreService\x12G\n" + "\n" + "RecentLogs\x12\x1b.state.v1.RecentLogsRequest\x1a\x1c.state.v1.RecentLogsResponse\x12S\n" + @@ -17759,8 +17667,7 @@ const file_state_v1_state_proto_rawDesc = "" + "\x17SetSourceDeliveryHeader\x12(.state.v1.SetSourceDeliveryHeaderRequest\x1a).state.v1.SetSourceDeliveryHeaderResponse\x12M\n" + "\fDeleteSource\x12\x1d.state.v1.DeleteSourceRequest\x1a\x1e.state.v1.DeleteSourceResponse\x12k\n" + "\x16ArmedBindingsForSource\x12'.state.v1.ArmedBindingsForSourceRequest\x1a(.state.v1.ArmedBindingsForSourceResponse\x12S\n" + - "\x0eRecordDispatch\x12\x1f.state.v1.RecordDispatchRequest\x1a .state.v1.RecordDispatchResponse\x12V\n" + - "\x0fSetDispatchTask\x12 .state.v1.SetDispatchTaskRequest\x1a!.state.v1.SetDispatchTaskResponse\x12k\n" + + "\x0eRecordDispatch\x12\x1f.state.v1.RecordDispatchRequest\x1a .state.v1.RecordDispatchResponse\x12k\n" + "\x16RecordPlaybookDispatch\x12'.state.v1.RecordPlaybookDispatchRequest\x1a(.state.v1.RecordPlaybookDispatchResponse\x12q\n" + "\x18DeletePlaybookDispatches\x12).state.v1.DeletePlaybookDispatchesRequest\x1a*.state.v1.DeletePlaybookDispatchesResponse\x12y\n" + "\x1aStreamUndispatchedCaptures\x12+.state.v1.StreamUndispatchedCapturesRequest\x1a,.state.v1.StreamUndispatchedCapturesResponse0\x01\x12_\n" + @@ -17798,7 +17705,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, 313) +var file_state_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 311) var file_state_v1_state_proto_goTypes = []any{ (*RegisterTaskGrantRequest)(nil), // 0: state.v1.RegisterTaskGrantRequest (*RegisterTaskGrantResponse)(nil), // 1: state.v1.RegisterTaskGrantResponse @@ -18016,110 +17923,108 @@ var file_state_v1_state_proto_goTypes = []any{ (*ArmedBindingsForSourceResponse)(nil), // 213: state.v1.ArmedBindingsForSourceResponse (*RecordDispatchRequest)(nil), // 214: state.v1.RecordDispatchRequest (*RecordDispatchResponse)(nil), // 215: state.v1.RecordDispatchResponse - (*SetDispatchTaskRequest)(nil), // 216: state.v1.SetDispatchTaskRequest - (*SetDispatchTaskResponse)(nil), // 217: state.v1.SetDispatchTaskResponse - (*ListDispatchesRequest)(nil), // 218: state.v1.ListDispatchesRequest - (*Dispatch)(nil), // 219: state.v1.Dispatch - (*ListDispatchesResponse)(nil), // 220: state.v1.ListDispatchesResponse - (*RecordPlaybookDispatchRequest)(nil), // 221: state.v1.RecordPlaybookDispatchRequest - (*RecordPlaybookDispatchResponse)(nil), // 222: state.v1.RecordPlaybookDispatchResponse - (*DeletePlaybookDispatchesRequest)(nil), // 223: state.v1.DeletePlaybookDispatchesRequest - (*DeletePlaybookDispatchesResponse)(nil), // 224: state.v1.DeletePlaybookDispatchesResponse - (*StreamUndispatchedCapturesRequest)(nil), // 225: state.v1.StreamUndispatchedCapturesRequest - (*StreamUndispatchedCapturesResponse)(nil), // 226: state.v1.StreamUndispatchedCapturesResponse - (*EnqueueBindingTaskRequest)(nil), // 227: state.v1.EnqueueBindingTaskRequest - (*EnqueueBindingTaskResponse)(nil), // 228: state.v1.EnqueueBindingTaskResponse - (*EnqueueCallTaskRequest)(nil), // 229: state.v1.EnqueueCallTaskRequest - (*EnqueueCallTaskResponse)(nil), // 230: state.v1.EnqueueCallTaskResponse - (*WorkflowCallStatusRequest)(nil), // 231: state.v1.WorkflowCallStatusRequest - (*WorkflowCallStatusResponse)(nil), // 232: state.v1.WorkflowCallStatusResponse - (*InstalledPackage)(nil), // 233: state.v1.InstalledPackage - (*PackagePin)(nil), // 234: state.v1.PackagePin - (*PackageAuthority)(nil), // 235: state.v1.PackageAuthority - (*InstallPackageRequest)(nil), // 236: state.v1.InstallPackageRequest - (*InstallPackageResponse)(nil), // 237: state.v1.InstallPackageResponse - (*CatalogueEntry)(nil), // 238: state.v1.CatalogueEntry - (*ListCatalogueRequest)(nil), // 239: state.v1.ListCatalogueRequest - (*ListCatalogueResponse)(nil), // 240: state.v1.ListCatalogueResponse - (*InstallFromCatalogueRequest)(nil), // 241: state.v1.InstallFromCatalogueRequest - (*InstallFromCatalogueResponse)(nil), // 242: state.v1.InstallFromCatalogueResponse - (*GetInstalledPackageRequest)(nil), // 243: state.v1.GetInstalledPackageRequest - (*GetInstalledPackageResponse)(nil), // 244: state.v1.GetInstalledPackageResponse - (*ListInstalledPackagesRequest)(nil), // 245: state.v1.ListInstalledPackagesRequest - (*ListInstalledPackagesResponse)(nil), // 246: state.v1.ListInstalledPackagesResponse - (*AcceptPackageAuthorityRequest)(nil), // 247: state.v1.AcceptPackageAuthorityRequest - (*AcceptPackageAuthorityResponse)(nil), // 248: state.v1.AcceptPackageAuthorityResponse - (*RemoveInstalledPackageRequest)(nil), // 249: state.v1.RemoveInstalledPackageRequest - (*RemoveInstalledPackageResponse)(nil), // 250: state.v1.RemoveInstalledPackageResponse - (*UpdatePackageRequest)(nil), // 251: state.v1.UpdatePackageRequest - (*UpdatePackageResponse)(nil), // 252: state.v1.UpdatePackageResponse - (*ApprovePackageUpdateRequest)(nil), // 253: state.v1.ApprovePackageUpdateRequest - (*ApprovePackageUpdateResponse)(nil), // 254: state.v1.ApprovePackageUpdateResponse - (*RollbackPackageRequest)(nil), // 255: state.v1.RollbackPackageRequest - (*RollbackPackageResponse)(nil), // 256: state.v1.RollbackPackageResponse - (*SetPackageUpdatePolicyRequest)(nil), // 257: state.v1.SetPackageUpdatePolicyRequest - (*SetPackageUpdatePolicyResponse)(nil), // 258: state.v1.SetPackageUpdatePolicyResponse - (*GetPrincipalRequest)(nil), // 259: state.v1.GetPrincipalRequest - (*PrincipalMembership)(nil), // 260: state.v1.PrincipalMembership - (*AccessPrincipal)(nil), // 261: state.v1.AccessPrincipal - (*GetPrincipalResponse)(nil), // 262: state.v1.GetPrincipalResponse - (*AccessPolicy)(nil), // 263: state.v1.AccessPolicy - (*ListPoliciesRequest)(nil), // 264: state.v1.ListPoliciesRequest - (*ListPoliciesResponse)(nil), // 265: state.v1.ListPoliciesResponse - (*PutPolicyRequest)(nil), // 266: state.v1.PutPolicyRequest - (*PutPolicyResponse)(nil), // 267: state.v1.PutPolicyResponse - (*DeletePolicyRequest)(nil), // 268: state.v1.DeletePolicyRequest - (*DeletePolicyResponse)(nil), // 269: state.v1.DeletePolicyResponse - (*EnsureShippedOrgPoliciesRequest)(nil), // 270: state.v1.EnsureShippedOrgPoliciesRequest - (*EnsureShippedOrgPoliciesResponse)(nil), // 271: state.v1.EnsureShippedOrgPoliciesResponse - (*AccessDenial)(nil), // 272: state.v1.AccessDenial - (*RecordDenialRequest)(nil), // 273: state.v1.RecordDenialRequest - (*RecordDenialResponse)(nil), // 274: state.v1.RecordDenialResponse - (*ListDenialsRequest)(nil), // 275: state.v1.ListDenialsRequest - (*ListDenialsResponse)(nil), // 276: state.v1.ListDenialsResponse - (*Org)(nil), // 277: state.v1.Org - (*Workspace)(nil), // 278: state.v1.Workspace - (*Member)(nil), // 279: state.v1.Member - (*ListOrgsRequest)(nil), // 280: state.v1.ListOrgsRequest - (*ListOrgsResponse)(nil), // 281: state.v1.ListOrgsResponse - (*GetOrgRequest)(nil), // 282: state.v1.GetOrgRequest - (*GetOrgResponse)(nil), // 283: state.v1.GetOrgResponse - (*CreateOrgRequest)(nil), // 284: state.v1.CreateOrgRequest - (*CreateOrgResponse)(nil), // 285: state.v1.CreateOrgResponse - (*ListWorkspacesRequest)(nil), // 286: state.v1.ListWorkspacesRequest - (*ListWorkspacesResponse)(nil), // 287: state.v1.ListWorkspacesResponse - (*CreateWorkspaceRequest)(nil), // 288: state.v1.CreateWorkspaceRequest - (*CreateWorkspaceResponse)(nil), // 289: state.v1.CreateWorkspaceResponse - (*ListMembersRequest)(nil), // 290: state.v1.ListMembersRequest - (*ListMembersResponse)(nil), // 291: state.v1.ListMembersResponse - (*SetMembershipRequest)(nil), // 292: state.v1.SetMembershipRequest - (*SetMembershipResponse)(nil), // 293: state.v1.SetMembershipResponse - (*RemoveMembershipRequest)(nil), // 294: state.v1.RemoveMembershipRequest - (*RemoveMembershipResponse)(nil), // 295: state.v1.RemoveMembershipResponse - (*AssignAgentRequest)(nil), // 296: state.v1.AssignAgentRequest - (*AssignAgentResponse)(nil), // 297: state.v1.AssignAgentResponse - (*RecentLogsRequest)(nil), // 298: state.v1.RecentLogsRequest - (*RecentLogsResponse)(nil), // 299: state.v1.RecentLogsResponse - (*UsageRecord)(nil), // 300: state.v1.UsageRecord - (*RecordUsageRequest)(nil), // 301: state.v1.RecordUsageRequest - (*RecordUsageResponse)(nil), // 302: state.v1.RecordUsageResponse - (*TaskModelsRequest)(nil), // 303: state.v1.TaskModelsRequest - (*TaskModelsResponse)(nil), // 304: state.v1.TaskModelsResponse - (*ModelProvider)(nil), // 305: state.v1.ModelProvider - (*CallerModelsRequest)(nil), // 306: state.v1.CallerModelsRequest - (*CallerModelsResponse)(nil), // 307: state.v1.CallerModelsResponse - nil, // 308: state.v1.EventType.SchemaEntry - nil, // 309: state.v1.StatusCountsResponse.CountsEntry - nil, // 310: state.v1.TaskModelsResponse.AliasesEntry - nil, // 311: state.v1.TaskModelsResponse.ProvidersEntry - nil, // 312: state.v1.CallerModelsResponse.AliasesEntry - (*timestamppb.Timestamp)(nil), // 313: google.protobuf.Timestamp - (*v1.LogQuery)(nil), // 314: logging.v1.LogQuery - (*v1.LogSnapshot)(nil), // 315: logging.v1.LogSnapshot + (*ListDispatchesRequest)(nil), // 216: state.v1.ListDispatchesRequest + (*Dispatch)(nil), // 217: state.v1.Dispatch + (*ListDispatchesResponse)(nil), // 218: state.v1.ListDispatchesResponse + (*RecordPlaybookDispatchRequest)(nil), // 219: state.v1.RecordPlaybookDispatchRequest + (*RecordPlaybookDispatchResponse)(nil), // 220: state.v1.RecordPlaybookDispatchResponse + (*DeletePlaybookDispatchesRequest)(nil), // 221: state.v1.DeletePlaybookDispatchesRequest + (*DeletePlaybookDispatchesResponse)(nil), // 222: state.v1.DeletePlaybookDispatchesResponse + (*StreamUndispatchedCapturesRequest)(nil), // 223: state.v1.StreamUndispatchedCapturesRequest + (*StreamUndispatchedCapturesResponse)(nil), // 224: state.v1.StreamUndispatchedCapturesResponse + (*EnqueueBindingTaskRequest)(nil), // 225: state.v1.EnqueueBindingTaskRequest + (*EnqueueBindingTaskResponse)(nil), // 226: state.v1.EnqueueBindingTaskResponse + (*EnqueueCallTaskRequest)(nil), // 227: state.v1.EnqueueCallTaskRequest + (*EnqueueCallTaskResponse)(nil), // 228: state.v1.EnqueueCallTaskResponse + (*WorkflowCallStatusRequest)(nil), // 229: state.v1.WorkflowCallStatusRequest + (*WorkflowCallStatusResponse)(nil), // 230: state.v1.WorkflowCallStatusResponse + (*InstalledPackage)(nil), // 231: state.v1.InstalledPackage + (*PackagePin)(nil), // 232: state.v1.PackagePin + (*PackageAuthority)(nil), // 233: state.v1.PackageAuthority + (*InstallPackageRequest)(nil), // 234: state.v1.InstallPackageRequest + (*InstallPackageResponse)(nil), // 235: state.v1.InstallPackageResponse + (*CatalogueEntry)(nil), // 236: state.v1.CatalogueEntry + (*ListCatalogueRequest)(nil), // 237: state.v1.ListCatalogueRequest + (*ListCatalogueResponse)(nil), // 238: state.v1.ListCatalogueResponse + (*InstallFromCatalogueRequest)(nil), // 239: state.v1.InstallFromCatalogueRequest + (*InstallFromCatalogueResponse)(nil), // 240: state.v1.InstallFromCatalogueResponse + (*GetInstalledPackageRequest)(nil), // 241: state.v1.GetInstalledPackageRequest + (*GetInstalledPackageResponse)(nil), // 242: state.v1.GetInstalledPackageResponse + (*ListInstalledPackagesRequest)(nil), // 243: state.v1.ListInstalledPackagesRequest + (*ListInstalledPackagesResponse)(nil), // 244: state.v1.ListInstalledPackagesResponse + (*AcceptPackageAuthorityRequest)(nil), // 245: state.v1.AcceptPackageAuthorityRequest + (*AcceptPackageAuthorityResponse)(nil), // 246: state.v1.AcceptPackageAuthorityResponse + (*RemoveInstalledPackageRequest)(nil), // 247: state.v1.RemoveInstalledPackageRequest + (*RemoveInstalledPackageResponse)(nil), // 248: state.v1.RemoveInstalledPackageResponse + (*UpdatePackageRequest)(nil), // 249: state.v1.UpdatePackageRequest + (*UpdatePackageResponse)(nil), // 250: state.v1.UpdatePackageResponse + (*ApprovePackageUpdateRequest)(nil), // 251: state.v1.ApprovePackageUpdateRequest + (*ApprovePackageUpdateResponse)(nil), // 252: state.v1.ApprovePackageUpdateResponse + (*RollbackPackageRequest)(nil), // 253: state.v1.RollbackPackageRequest + (*RollbackPackageResponse)(nil), // 254: state.v1.RollbackPackageResponse + (*SetPackageUpdatePolicyRequest)(nil), // 255: state.v1.SetPackageUpdatePolicyRequest + (*SetPackageUpdatePolicyResponse)(nil), // 256: state.v1.SetPackageUpdatePolicyResponse + (*GetPrincipalRequest)(nil), // 257: state.v1.GetPrincipalRequest + (*PrincipalMembership)(nil), // 258: state.v1.PrincipalMembership + (*AccessPrincipal)(nil), // 259: state.v1.AccessPrincipal + (*GetPrincipalResponse)(nil), // 260: state.v1.GetPrincipalResponse + (*AccessPolicy)(nil), // 261: state.v1.AccessPolicy + (*ListPoliciesRequest)(nil), // 262: state.v1.ListPoliciesRequest + (*ListPoliciesResponse)(nil), // 263: state.v1.ListPoliciesResponse + (*PutPolicyRequest)(nil), // 264: state.v1.PutPolicyRequest + (*PutPolicyResponse)(nil), // 265: state.v1.PutPolicyResponse + (*DeletePolicyRequest)(nil), // 266: state.v1.DeletePolicyRequest + (*DeletePolicyResponse)(nil), // 267: state.v1.DeletePolicyResponse + (*EnsureShippedOrgPoliciesRequest)(nil), // 268: state.v1.EnsureShippedOrgPoliciesRequest + (*EnsureShippedOrgPoliciesResponse)(nil), // 269: state.v1.EnsureShippedOrgPoliciesResponse + (*AccessDenial)(nil), // 270: state.v1.AccessDenial + (*RecordDenialRequest)(nil), // 271: state.v1.RecordDenialRequest + (*RecordDenialResponse)(nil), // 272: state.v1.RecordDenialResponse + (*ListDenialsRequest)(nil), // 273: state.v1.ListDenialsRequest + (*ListDenialsResponse)(nil), // 274: state.v1.ListDenialsResponse + (*Org)(nil), // 275: state.v1.Org + (*Workspace)(nil), // 276: state.v1.Workspace + (*Member)(nil), // 277: state.v1.Member + (*ListOrgsRequest)(nil), // 278: state.v1.ListOrgsRequest + (*ListOrgsResponse)(nil), // 279: state.v1.ListOrgsResponse + (*GetOrgRequest)(nil), // 280: state.v1.GetOrgRequest + (*GetOrgResponse)(nil), // 281: state.v1.GetOrgResponse + (*CreateOrgRequest)(nil), // 282: state.v1.CreateOrgRequest + (*CreateOrgResponse)(nil), // 283: state.v1.CreateOrgResponse + (*ListWorkspacesRequest)(nil), // 284: state.v1.ListWorkspacesRequest + (*ListWorkspacesResponse)(nil), // 285: state.v1.ListWorkspacesResponse + (*CreateWorkspaceRequest)(nil), // 286: state.v1.CreateWorkspaceRequest + (*CreateWorkspaceResponse)(nil), // 287: state.v1.CreateWorkspaceResponse + (*ListMembersRequest)(nil), // 288: state.v1.ListMembersRequest + (*ListMembersResponse)(nil), // 289: state.v1.ListMembersResponse + (*SetMembershipRequest)(nil), // 290: state.v1.SetMembershipRequest + (*SetMembershipResponse)(nil), // 291: state.v1.SetMembershipResponse + (*RemoveMembershipRequest)(nil), // 292: state.v1.RemoveMembershipRequest + (*RemoveMembershipResponse)(nil), // 293: state.v1.RemoveMembershipResponse + (*AssignAgentRequest)(nil), // 294: state.v1.AssignAgentRequest + (*AssignAgentResponse)(nil), // 295: state.v1.AssignAgentResponse + (*RecentLogsRequest)(nil), // 296: state.v1.RecentLogsRequest + (*RecentLogsResponse)(nil), // 297: state.v1.RecentLogsResponse + (*UsageRecord)(nil), // 298: state.v1.UsageRecord + (*RecordUsageRequest)(nil), // 299: state.v1.RecordUsageRequest + (*RecordUsageResponse)(nil), // 300: state.v1.RecordUsageResponse + (*TaskModelsRequest)(nil), // 301: state.v1.TaskModelsRequest + (*TaskModelsResponse)(nil), // 302: state.v1.TaskModelsResponse + (*ModelProvider)(nil), // 303: state.v1.ModelProvider + (*CallerModelsRequest)(nil), // 304: state.v1.CallerModelsRequest + (*CallerModelsResponse)(nil), // 305: state.v1.CallerModelsResponse + nil, // 306: state.v1.EventType.SchemaEntry + nil, // 307: state.v1.StatusCountsResponse.CountsEntry + nil, // 308: state.v1.TaskModelsResponse.AliasesEntry + nil, // 309: state.v1.TaskModelsResponse.ProvidersEntry + nil, // 310: state.v1.CallerModelsResponse.AliasesEntry + (*timestamppb.Timestamp)(nil), // 311: google.protobuf.Timestamp + (*v1.LogQuery)(nil), // 312: logging.v1.LogQuery + (*v1.LogSnapshot)(nil), // 313: logging.v1.LogSnapshot } var file_state_v1_state_proto_depIdxs = []int32{ - 313, // 0: state.v1.Identity.created_at:type_name -> google.protobuf.Timestamp - 313, // 1: state.v1.Identity.updated_at:type_name -> google.protobuf.Timestamp + 311, // 0: state.v1.Identity.created_at:type_name -> google.protobuf.Timestamp + 311, // 1: state.v1.Identity.updated_at:type_name -> google.protobuf.Timestamp 6, // 2: state.v1.ListIdentitiesResponse.identities:type_name -> state.v1.Identity 6, // 3: state.v1.GetIdentityResponse.identity:type_name -> state.v1.Identity 7, // 4: state.v1.CreateIdentityRequest.audit:type_name -> state.v1.IdentityAudit @@ -18136,26 +18041,26 @@ var file_state_v1_state_proto_depIdxs = []int32{ 7, // 15: state.v1.BindIdentitySubjectRequest.audit:type_name -> state.v1.IdentityAudit 6, // 16: state.v1.BindIdentitySubjectResponse.identity:type_name -> state.v1.Identity 6, // 17: state.v1.ClaimIdentitySubjectResponse.identity:type_name -> state.v1.Identity - 313, // 18: state.v1.PersonalToken.created_at:type_name -> google.protobuf.Timestamp + 311, // 18: state.v1.PersonalToken.created_at:type_name -> google.protobuf.Timestamp 28, // 19: state.v1.ListPersonalTokensResponse.tokens:type_name -> state.v1.PersonalToken - 313, // 20: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp - 313, // 21: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp - 313, // 22: state.v1.Event.at:type_name -> google.protobuf.Timestamp - 313, // 23: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp + 311, // 20: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp + 311, // 21: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp + 311, // 22: state.v1.Event.at:type_name -> google.protobuf.Timestamp + 311, // 23: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp 38, // 24: state.v1.EventType.header_conditions:type_name -> state.v1.EventTypeHeaderCondition 39, // 25: state.v1.EventType.payload_conditions:type_name -> state.v1.EventTypePayloadCondition - 308, // 26: state.v1.EventType.schema:type_name -> state.v1.EventType.SchemaEntry - 313, // 27: state.v1.EventType.created_at:type_name -> google.protobuf.Timestamp - 313, // 28: state.v1.EventType.updated_at:type_name -> google.protobuf.Timestamp + 306, // 26: state.v1.EventType.schema:type_name -> state.v1.EventType.SchemaEntry + 311, // 27: state.v1.EventType.created_at:type_name -> google.protobuf.Timestamp + 311, // 28: state.v1.EventType.updated_at:type_name -> google.protobuf.Timestamp 41, // 29: state.v1.Mapping.fields:type_name -> state.v1.MappingField - 313, // 30: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp - 313, // 31: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp - 313, // 32: state.v1.Mapping.last_matched_at:type_name -> google.protobuf.Timestamp + 311, // 30: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp + 311, // 31: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp + 311, // 32: state.v1.Mapping.last_matched_at:type_name -> google.protobuf.Timestamp 43, // 33: state.v1.Binding.matcher:type_name -> state.v1.BindingMatcher - 313, // 34: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp - 313, // 35: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp - 313, // 36: state.v1.Source.created_at:type_name -> google.protobuf.Timestamp - 313, // 37: state.v1.Source.updated_at:type_name -> google.protobuf.Timestamp + 311, // 34: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp + 311, // 35: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp + 311, // 36: state.v1.Source.created_at:type_name -> google.protobuf.Timestamp + 311, // 37: state.v1.Source.updated_at:type_name -> google.protobuf.Timestamp 35, // 38: state.v1.ActiveTasksByOriginResponse.tasks:type_name -> state.v1.Task 35, // 39: state.v1.UnpostedOutcomesResponse.tasks:type_name -> state.v1.Task 35, // 40: state.v1.EnqueueChatTaskResponse.task:type_name -> state.v1.Task @@ -18163,11 +18068,11 @@ var file_state_v1_state_proto_depIdxs = []int32{ 35, // 42: state.v1.ClaimByIssueResponse.task:type_name -> state.v1.Task 36, // 43: state.v1.StartStepResponse.event:type_name -> state.v1.Event 36, // 44: state.v1.FinishStepResponse.event:type_name -> state.v1.Event - 313, // 45: state.v1.StepExecution.started_at:type_name -> google.protobuf.Timestamp - 313, // 46: state.v1.StepExecution.finished_at:type_name -> google.protobuf.Timestamp + 311, // 45: state.v1.StepExecution.started_at:type_name -> google.protobuf.Timestamp + 311, // 46: state.v1.StepExecution.finished_at:type_name -> google.protobuf.Timestamp 71, // 47: state.v1.ListStepsResponse.steps:type_name -> state.v1.StepExecution - 313, // 48: state.v1.HarnessSecret.expires_at:type_name -> google.protobuf.Timestamp - 313, // 49: state.v1.HarnessSecret.updated_at:type_name -> google.protobuf.Timestamp + 311, // 48: state.v1.HarnessSecret.expires_at:type_name -> google.protobuf.Timestamp + 311, // 49: state.v1.HarnessSecret.updated_at:type_name -> google.protobuf.Timestamp 74, // 50: state.v1.GetHarnessSecretResponse.secret:type_name -> state.v1.HarnessSecret 74, // 51: state.v1.PutHarnessSecretRequest.secret:type_name -> state.v1.HarnessSecret 35, // 52: state.v1.UpdateRequest.task:type_name -> state.v1.Task @@ -18176,35 +18081,35 @@ var file_state_v1_state_proto_depIdxs = []int32{ 35, // 55: state.v1.OpenTaskByPRResponse.task:type_name -> state.v1.Task 35, // 56: state.v1.TaskByIDResponse.task:type_name -> state.v1.Task 35, // 57: state.v1.OpenPRsResponse.tasks:type_name -> state.v1.Task - 313, // 58: state.v1.TasksRequest.after_updated_at:type_name -> google.protobuf.Timestamp + 311, // 58: state.v1.TasksRequest.after_updated_at:type_name -> google.protobuf.Timestamp 35, // 59: state.v1.TasksResponse.tasks:type_name -> state.v1.Task - 309, // 60: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry + 307, // 60: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry 36, // 61: state.v1.InsertEventRequest.event:type_name -> state.v1.Event 36, // 62: state.v1.EventsSinceResponse.events:type_name -> state.v1.Event 36, // 63: state.v1.TaskEventsResponse.events:type_name -> state.v1.Event 46, // 64: state.v1.WorkflowStatsResponse.stats:type_name -> state.v1.WorkflowStat 47, // 65: state.v1.StageStatsResponse.stats:type_name -> state.v1.StageStat 48, // 66: state.v1.TokensByDayResponse.tokens:type_name -> state.v1.DayTokens - 313, // 67: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp + 311, // 67: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp 125, // 68: state.v1.PutConfigSnapshotRequest.snapshot:type_name -> state.v1.ConfigSnapshot 125, // 69: state.v1.GetConfigSnapshotResponse.snapshot:type_name -> state.v1.ConfigSnapshot - 313, // 70: state.v1.ChannelStatus.observed_at:type_name -> google.protobuf.Timestamp + 311, // 70: state.v1.ChannelStatus.observed_at:type_name -> google.protobuf.Timestamp 130, // 71: state.v1.PutChannelStatusRequest.channels:type_name -> state.v1.ChannelStatus 130, // 72: state.v1.ListChannelStatusResponse.channels:type_name -> state.v1.ChannelStatus - 313, // 73: state.v1.ApplyStatus.reported_at:type_name -> google.protobuf.Timestamp + 311, // 73: state.v1.ApplyStatus.reported_at:type_name -> google.protobuf.Timestamp 135, // 74: state.v1.PutApplyStatusRequest.status:type_name -> state.v1.ApplyStatus 135, // 75: state.v1.ListApplyStatusResponse.statuses:type_name -> state.v1.ApplyStatus - 313, // 76: state.v1.Presence.started_at:type_name -> google.protobuf.Timestamp - 313, // 77: state.v1.Presence.reported_at:type_name -> google.protobuf.Timestamp + 311, // 76: state.v1.Presence.started_at:type_name -> google.protobuf.Timestamp + 311, // 77: state.v1.Presence.reported_at:type_name -> google.protobuf.Timestamp 140, // 78: state.v1.Presence.checks:type_name -> state.v1.DependencyCheck - 313, // 79: state.v1.RecordCaptureRefusalRequest.refused_at:type_name -> google.protobuf.Timestamp - 313, // 80: state.v1.ListCaptureRefusalsRequest.since:type_name -> google.protobuf.Timestamp + 311, // 79: state.v1.RecordCaptureRefusalRequest.refused_at:type_name -> google.protobuf.Timestamp + 311, // 80: state.v1.ListCaptureRefusalsRequest.since:type_name -> google.protobuf.Timestamp 145, // 81: state.v1.ListCaptureRefusalsResponse.sources:type_name -> state.v1.CaptureRefusals 141, // 82: state.v1.PutPresenceRequest.presence:type_name -> state.v1.Presence 141, // 83: state.v1.ListPresenceResponse.presences:type_name -> state.v1.Presence - 313, // 84: state.v1.TaskLogEntry.time:type_name -> google.protobuf.Timestamp - 313, // 85: state.v1.ReadTaskLogRequest.since:type_name -> google.protobuf.Timestamp - 313, // 86: state.v1.ReadTaskLogRequest.until:type_name -> google.protobuf.Timestamp + 311, // 84: state.v1.TaskLogEntry.time:type_name -> google.protobuf.Timestamp + 311, // 85: state.v1.ReadTaskLogRequest.since:type_name -> google.protobuf.Timestamp + 311, // 86: state.v1.ReadTaskLogRequest.until:type_name -> google.protobuf.Timestamp 151, // 87: state.v1.ReadTaskLogResponse.entries:type_name -> state.v1.TaskLogEntry 37, // 88: state.v1.InsertCaptureRequest.capture:type_name -> state.v1.CapturedEvent 37, // 89: state.v1.StreamCapturesResponse.capture:type_name -> state.v1.CapturedEvent @@ -18223,61 +18128,61 @@ var file_state_v1_state_proto_depIdxs = []int32{ 45, // 102: state.v1.GetSourceResponse.source:type_name -> state.v1.Source 45, // 103: state.v1.ListSourcesResponse.sources:type_name -> state.v1.Source 44, // 104: state.v1.ArmedBindingsForSourceResponse.bindings:type_name -> state.v1.Binding - 313, // 105: state.v1.Dispatch.dispatched_at:type_name -> google.protobuf.Timestamp - 219, // 106: state.v1.ListDispatchesResponse.dispatches:type_name -> state.v1.Dispatch + 311, // 105: state.v1.Dispatch.dispatched_at:type_name -> google.protobuf.Timestamp + 217, // 106: state.v1.ListDispatchesResponse.dispatches:type_name -> state.v1.Dispatch 37, // 107: state.v1.StreamUndispatchedCapturesResponse.capture:type_name -> state.v1.CapturedEvent 35, // 108: state.v1.EnqueueBindingTaskResponse.task:type_name -> state.v1.Task 35, // 109: state.v1.EnqueueCallTaskResponse.task:type_name -> state.v1.Task - 235, // 110: state.v1.InstalledPackage.accepted_authority:type_name -> state.v1.PackageAuthority - 234, // 111: state.v1.InstalledPackage.pending:type_name -> state.v1.PackagePin - 234, // 112: state.v1.InstalledPackage.previous:type_name -> state.v1.PackagePin - 235, // 113: state.v1.InstalledPackage.previous_accepted_authority:type_name -> state.v1.PackageAuthority - 235, // 114: state.v1.InstalledPackage.pending_authority:type_name -> state.v1.PackageAuthority - 233, // 115: state.v1.InstallPackageResponse.package:type_name -> state.v1.InstalledPackage - 238, // 116: state.v1.ListCatalogueResponse.packages:type_name -> state.v1.CatalogueEntry - 233, // 117: state.v1.InstallFromCatalogueResponse.package:type_name -> state.v1.InstalledPackage - 233, // 118: state.v1.GetInstalledPackageResponse.package:type_name -> state.v1.InstalledPackage - 233, // 119: state.v1.ListInstalledPackagesResponse.packages:type_name -> state.v1.InstalledPackage - 235, // 120: state.v1.AcceptPackageAuthorityRequest.accepted:type_name -> state.v1.PackageAuthority - 233, // 121: state.v1.AcceptPackageAuthorityResponse.package:type_name -> state.v1.InstalledPackage - 233, // 122: state.v1.UpdatePackageResponse.package:type_name -> state.v1.InstalledPackage - 233, // 123: state.v1.ApprovePackageUpdateResponse.package:type_name -> state.v1.InstalledPackage - 233, // 124: state.v1.RollbackPackageResponse.package:type_name -> state.v1.InstalledPackage - 233, // 125: state.v1.SetPackageUpdatePolicyResponse.package:type_name -> state.v1.InstalledPackage - 260, // 126: state.v1.AccessPrincipal.memberships:type_name -> state.v1.PrincipalMembership - 261, // 127: state.v1.GetPrincipalResponse.principal:type_name -> state.v1.AccessPrincipal - 263, // 128: state.v1.ListPoliciesResponse.policies:type_name -> state.v1.AccessPolicy - 263, // 129: state.v1.PutPolicyRequest.policy:type_name -> state.v1.AccessPolicy - 263, // 130: state.v1.DeletePolicyRequest.policy:type_name -> state.v1.AccessPolicy - 313, // 131: state.v1.AccessDenial.at:type_name -> google.protobuf.Timestamp - 272, // 132: state.v1.RecordDenialRequest.denial:type_name -> state.v1.AccessDenial - 272, // 133: state.v1.ListDenialsResponse.denials:type_name -> state.v1.AccessDenial - 277, // 134: state.v1.ListOrgsResponse.orgs:type_name -> state.v1.Org - 277, // 135: state.v1.GetOrgResponse.org:type_name -> state.v1.Org - 277, // 136: state.v1.CreateOrgResponse.org:type_name -> state.v1.Org - 278, // 137: state.v1.ListWorkspacesResponse.workspaces:type_name -> state.v1.Workspace - 278, // 138: state.v1.CreateWorkspaceResponse.workspace:type_name -> state.v1.Workspace - 279, // 139: state.v1.ListMembersResponse.members:type_name -> state.v1.Member - 314, // 140: state.v1.RecentLogsRequest.query:type_name -> logging.v1.LogQuery - 315, // 141: state.v1.RecentLogsResponse.snapshot:type_name -> logging.v1.LogSnapshot - 313, // 142: state.v1.UsageRecord.at:type_name -> google.protobuf.Timestamp - 300, // 143: state.v1.RecordUsageRequest.record:type_name -> state.v1.UsageRecord - 310, // 144: state.v1.TaskModelsResponse.aliases:type_name -> state.v1.TaskModelsResponse.AliasesEntry - 311, // 145: state.v1.TaskModelsResponse.providers:type_name -> state.v1.TaskModelsResponse.ProvidersEntry - 312, // 146: state.v1.CallerModelsResponse.aliases:type_name -> state.v1.CallerModelsResponse.AliasesEntry - 305, // 147: state.v1.TaskModelsResponse.ProvidersEntry.value:type_name -> state.v1.ModelProvider - 298, // 148: state.v1.StateStoreService.RecentLogs:input_type -> state.v1.RecentLogsRequest - 236, // 149: state.v1.StateStoreService.InstallPackage:input_type -> state.v1.InstallPackageRequest - 239, // 150: state.v1.StateStoreService.ListCatalogue:input_type -> state.v1.ListCatalogueRequest - 241, // 151: state.v1.StateStoreService.InstallFromCatalogue:input_type -> state.v1.InstallFromCatalogueRequest - 243, // 152: state.v1.StateStoreService.GetInstalledPackage:input_type -> state.v1.GetInstalledPackageRequest - 245, // 153: state.v1.StateStoreService.ListInstalledPackages:input_type -> state.v1.ListInstalledPackagesRequest - 247, // 154: state.v1.StateStoreService.AcceptPackageAuthority:input_type -> state.v1.AcceptPackageAuthorityRequest - 249, // 155: state.v1.StateStoreService.RemoveInstalledPackage:input_type -> state.v1.RemoveInstalledPackageRequest - 251, // 156: state.v1.StateStoreService.UpdatePackage:input_type -> state.v1.UpdatePackageRequest - 253, // 157: state.v1.StateStoreService.ApprovePackageUpdate:input_type -> state.v1.ApprovePackageUpdateRequest - 255, // 158: state.v1.StateStoreService.RollbackPackage:input_type -> state.v1.RollbackPackageRequest - 257, // 159: state.v1.StateStoreService.SetPackageUpdatePolicy:input_type -> state.v1.SetPackageUpdatePolicyRequest + 233, // 110: state.v1.InstalledPackage.accepted_authority:type_name -> state.v1.PackageAuthority + 232, // 111: state.v1.InstalledPackage.pending:type_name -> state.v1.PackagePin + 232, // 112: state.v1.InstalledPackage.previous:type_name -> state.v1.PackagePin + 233, // 113: state.v1.InstalledPackage.previous_accepted_authority:type_name -> state.v1.PackageAuthority + 233, // 114: state.v1.InstalledPackage.pending_authority:type_name -> state.v1.PackageAuthority + 231, // 115: state.v1.InstallPackageResponse.package:type_name -> state.v1.InstalledPackage + 236, // 116: state.v1.ListCatalogueResponse.packages:type_name -> state.v1.CatalogueEntry + 231, // 117: state.v1.InstallFromCatalogueResponse.package:type_name -> state.v1.InstalledPackage + 231, // 118: state.v1.GetInstalledPackageResponse.package:type_name -> state.v1.InstalledPackage + 231, // 119: state.v1.ListInstalledPackagesResponse.packages:type_name -> state.v1.InstalledPackage + 233, // 120: state.v1.AcceptPackageAuthorityRequest.accepted:type_name -> state.v1.PackageAuthority + 231, // 121: state.v1.AcceptPackageAuthorityResponse.package:type_name -> state.v1.InstalledPackage + 231, // 122: state.v1.UpdatePackageResponse.package:type_name -> state.v1.InstalledPackage + 231, // 123: state.v1.ApprovePackageUpdateResponse.package:type_name -> state.v1.InstalledPackage + 231, // 124: state.v1.RollbackPackageResponse.package:type_name -> state.v1.InstalledPackage + 231, // 125: state.v1.SetPackageUpdatePolicyResponse.package:type_name -> state.v1.InstalledPackage + 258, // 126: state.v1.AccessPrincipal.memberships:type_name -> state.v1.PrincipalMembership + 259, // 127: state.v1.GetPrincipalResponse.principal:type_name -> state.v1.AccessPrincipal + 261, // 128: state.v1.ListPoliciesResponse.policies:type_name -> state.v1.AccessPolicy + 261, // 129: state.v1.PutPolicyRequest.policy:type_name -> state.v1.AccessPolicy + 261, // 130: state.v1.DeletePolicyRequest.policy:type_name -> state.v1.AccessPolicy + 311, // 131: state.v1.AccessDenial.at:type_name -> google.protobuf.Timestamp + 270, // 132: state.v1.RecordDenialRequest.denial:type_name -> state.v1.AccessDenial + 270, // 133: state.v1.ListDenialsResponse.denials:type_name -> state.v1.AccessDenial + 275, // 134: state.v1.ListOrgsResponse.orgs:type_name -> state.v1.Org + 275, // 135: state.v1.GetOrgResponse.org:type_name -> state.v1.Org + 275, // 136: state.v1.CreateOrgResponse.org:type_name -> state.v1.Org + 276, // 137: state.v1.ListWorkspacesResponse.workspaces:type_name -> state.v1.Workspace + 276, // 138: state.v1.CreateWorkspaceResponse.workspace:type_name -> state.v1.Workspace + 277, // 139: state.v1.ListMembersResponse.members:type_name -> state.v1.Member + 312, // 140: state.v1.RecentLogsRequest.query:type_name -> logging.v1.LogQuery + 313, // 141: state.v1.RecentLogsResponse.snapshot:type_name -> logging.v1.LogSnapshot + 311, // 142: state.v1.UsageRecord.at:type_name -> google.protobuf.Timestamp + 298, // 143: state.v1.RecordUsageRequest.record:type_name -> state.v1.UsageRecord + 308, // 144: state.v1.TaskModelsResponse.aliases:type_name -> state.v1.TaskModelsResponse.AliasesEntry + 309, // 145: state.v1.TaskModelsResponse.providers:type_name -> state.v1.TaskModelsResponse.ProvidersEntry + 310, // 146: state.v1.CallerModelsResponse.aliases:type_name -> state.v1.CallerModelsResponse.AliasesEntry + 303, // 147: state.v1.TaskModelsResponse.ProvidersEntry.value:type_name -> state.v1.ModelProvider + 296, // 148: state.v1.StateStoreService.RecentLogs:input_type -> state.v1.RecentLogsRequest + 234, // 149: state.v1.StateStoreService.InstallPackage:input_type -> state.v1.InstallPackageRequest + 237, // 150: state.v1.StateStoreService.ListCatalogue:input_type -> state.v1.ListCatalogueRequest + 239, // 151: state.v1.StateStoreService.InstallFromCatalogue:input_type -> state.v1.InstallFromCatalogueRequest + 241, // 152: state.v1.StateStoreService.GetInstalledPackage:input_type -> state.v1.GetInstalledPackageRequest + 243, // 153: state.v1.StateStoreService.ListInstalledPackages:input_type -> state.v1.ListInstalledPackagesRequest + 245, // 154: state.v1.StateStoreService.AcceptPackageAuthority:input_type -> state.v1.AcceptPackageAuthorityRequest + 247, // 155: state.v1.StateStoreService.RemoveInstalledPackage:input_type -> state.v1.RemoveInstalledPackageRequest + 249, // 156: state.v1.StateStoreService.UpdatePackage:input_type -> state.v1.UpdatePackageRequest + 251, // 157: state.v1.StateStoreService.ApprovePackageUpdate:input_type -> state.v1.ApprovePackageUpdateRequest + 253, // 158: state.v1.StateStoreService.RollbackPackage:input_type -> state.v1.RollbackPackageRequest + 255, // 159: state.v1.StateStoreService.SetPackageUpdatePolicy:input_type -> state.v1.SetPackageUpdatePolicyRequest 0, // 160: state.v1.StateStoreService.RegisterTaskGrant:input_type -> state.v1.RegisterTaskGrantRequest 2, // 161: state.v1.StateStoreService.RevokeTaskGrant:input_type -> state.v1.RevokeTaskGrantRequest 4, // 162: state.v1.StateStoreService.ResolveTaskGrant:input_type -> state.v1.ResolveTaskGrantRequest @@ -18304,9 +18209,9 @@ var file_state_v1_state_proto_depIdxs = []int32{ 63, // 183: state.v1.StateStoreService.Transition:input_type -> state.v1.TransitionRequest 79, // 184: state.v1.StateStoreService.Update:input_type -> state.v1.UpdateRequest 65, // 185: state.v1.StateStoreService.StartStep:input_type -> state.v1.StartStepRequest - 301, // 186: state.v1.StateStoreService.RecordUsage:input_type -> state.v1.RecordUsageRequest - 303, // 187: state.v1.StateStoreService.TaskModels:input_type -> state.v1.TaskModelsRequest - 306, // 188: state.v1.StateStoreService.CallerModels:input_type -> state.v1.CallerModelsRequest + 299, // 186: state.v1.StateStoreService.RecordUsage:input_type -> state.v1.RecordUsageRequest + 301, // 187: state.v1.StateStoreService.TaskModels:input_type -> state.v1.TaskModelsRequest + 304, // 188: state.v1.StateStoreService.CallerModels:input_type -> state.v1.CallerModelsRequest 67, // 189: state.v1.StateStoreService.FinishStep:input_type -> state.v1.FinishStepRequest 69, // 190: state.v1.StateStoreService.CancelExecution:input_type -> state.v1.CancelExecutionRequest 72, // 191: state.v1.StateStoreService.ListSteps:input_type -> state.v1.ListStepsRequest @@ -18361,7 +18266,7 @@ var file_state_v1_state_proto_depIdxs = []int32{ 180, // 240: state.v1.StateStoreService.InsertBinding:input_type -> state.v1.InsertBindingRequest 182, // 241: state.v1.StateStoreService.GetBinding:input_type -> state.v1.GetBindingRequest 184, // 242: state.v1.StateStoreService.ListBindings:input_type -> state.v1.ListBindingsRequest - 218, // 243: state.v1.StateStoreService.ListDispatches:input_type -> state.v1.ListDispatchesRequest + 216, // 243: state.v1.StateStoreService.ListDispatches:input_type -> state.v1.ListDispatchesRequest 186, // 244: state.v1.StateStoreService.UpdateBinding:input_type -> state.v1.UpdateBindingRequest 188, // 245: state.v1.StateStoreService.DeleteBinding:input_type -> state.v1.DeleteBindingRequest 190, // 246: state.v1.StateStoreService.ApproveBinding:input_type -> state.v1.ApproveBindingRequest @@ -18377,165 +18282,163 @@ var file_state_v1_state_proto_depIdxs = []int32{ 196, // 256: state.v1.StateStoreService.DeleteSource:input_type -> state.v1.DeleteSourceRequest 212, // 257: state.v1.StateStoreService.ArmedBindingsForSource:input_type -> state.v1.ArmedBindingsForSourceRequest 214, // 258: state.v1.StateStoreService.RecordDispatch:input_type -> state.v1.RecordDispatchRequest - 216, // 259: state.v1.StateStoreService.SetDispatchTask:input_type -> state.v1.SetDispatchTaskRequest - 221, // 260: state.v1.StateStoreService.RecordPlaybookDispatch:input_type -> state.v1.RecordPlaybookDispatchRequest - 223, // 261: state.v1.StateStoreService.DeletePlaybookDispatches:input_type -> state.v1.DeletePlaybookDispatchesRequest - 225, // 262: state.v1.StateStoreService.StreamUndispatchedCaptures:input_type -> state.v1.StreamUndispatchedCapturesRequest - 227, // 263: state.v1.StateStoreService.EnqueueBindingTask:input_type -> state.v1.EnqueueBindingTaskRequest - 229, // 264: state.v1.StateStoreService.EnqueueCallTask:input_type -> state.v1.EnqueueCallTaskRequest - 231, // 265: state.v1.StateStoreService.WorkflowCallStatus:input_type -> state.v1.WorkflowCallStatusRequest - 259, // 266: state.v1.StateStoreService.GetPrincipal:input_type -> state.v1.GetPrincipalRequest - 264, // 267: state.v1.StateStoreService.ListPolicies:input_type -> state.v1.ListPoliciesRequest - 266, // 268: state.v1.StateStoreService.PutPolicy:input_type -> state.v1.PutPolicyRequest - 268, // 269: state.v1.StateStoreService.DeletePolicy:input_type -> state.v1.DeletePolicyRequest - 270, // 270: state.v1.StateStoreService.EnsureShippedOrgPolicies:input_type -> state.v1.EnsureShippedOrgPoliciesRequest - 273, // 271: state.v1.StateStoreService.RecordDenial:input_type -> state.v1.RecordDenialRequest - 275, // 272: state.v1.StateStoreService.ListDenials:input_type -> state.v1.ListDenialsRequest - 280, // 273: state.v1.StateStoreService.ListOrgs:input_type -> state.v1.ListOrgsRequest - 282, // 274: state.v1.StateStoreService.GetOrg:input_type -> state.v1.GetOrgRequest - 284, // 275: state.v1.StateStoreService.CreateOrg:input_type -> state.v1.CreateOrgRequest - 286, // 276: state.v1.StateStoreService.ListWorkspaces:input_type -> state.v1.ListWorkspacesRequest - 288, // 277: state.v1.StateStoreService.CreateWorkspace:input_type -> state.v1.CreateWorkspaceRequest - 290, // 278: state.v1.StateStoreService.ListMembers:input_type -> state.v1.ListMembersRequest - 292, // 279: state.v1.StateStoreService.SetMembership:input_type -> state.v1.SetMembershipRequest - 294, // 280: state.v1.StateStoreService.RemoveMembership:input_type -> state.v1.RemoveMembershipRequest - 296, // 281: state.v1.StateStoreService.AssignAgent:input_type -> state.v1.AssignAgentRequest - 299, // 282: state.v1.StateStoreService.RecentLogs:output_type -> state.v1.RecentLogsResponse - 237, // 283: state.v1.StateStoreService.InstallPackage:output_type -> state.v1.InstallPackageResponse - 240, // 284: state.v1.StateStoreService.ListCatalogue:output_type -> state.v1.ListCatalogueResponse - 242, // 285: state.v1.StateStoreService.InstallFromCatalogue:output_type -> state.v1.InstallFromCatalogueResponse - 244, // 286: state.v1.StateStoreService.GetInstalledPackage:output_type -> state.v1.GetInstalledPackageResponse - 246, // 287: state.v1.StateStoreService.ListInstalledPackages:output_type -> state.v1.ListInstalledPackagesResponse - 248, // 288: state.v1.StateStoreService.AcceptPackageAuthority:output_type -> state.v1.AcceptPackageAuthorityResponse - 250, // 289: state.v1.StateStoreService.RemoveInstalledPackage:output_type -> state.v1.RemoveInstalledPackageResponse - 252, // 290: state.v1.StateStoreService.UpdatePackage:output_type -> state.v1.UpdatePackageResponse - 254, // 291: state.v1.StateStoreService.ApprovePackageUpdate:output_type -> state.v1.ApprovePackageUpdateResponse - 256, // 292: state.v1.StateStoreService.RollbackPackage:output_type -> state.v1.RollbackPackageResponse - 258, // 293: state.v1.StateStoreService.SetPackageUpdatePolicy:output_type -> state.v1.SetPackageUpdatePolicyResponse - 1, // 294: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse - 3, // 295: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse - 5, // 296: state.v1.StateStoreService.ResolveTaskGrant:output_type -> state.v1.ResolveTaskGrantResponse - 9, // 297: state.v1.StateStoreService.ListIdentities:output_type -> state.v1.ListIdentitiesResponse - 11, // 298: state.v1.StateStoreService.GetIdentity:output_type -> state.v1.GetIdentityResponse - 17, // 299: state.v1.StateStoreService.CreateIdentity:output_type -> state.v1.CreateIdentityResponse - 18, // 300: state.v1.StateStoreService.RenameIdentity:output_type -> state.v1.RenameIdentityResponse - 19, // 301: state.v1.StateStoreService.SuspendIdentity:output_type -> state.v1.SuspendIdentityResponse - 20, // 302: state.v1.StateStoreService.ReactivateIdentity:output_type -> state.v1.ReactivateIdentityResponse - 21, // 303: state.v1.StateStoreService.RetireIdentity:output_type -> state.v1.RetireIdentityResponse - 23, // 304: state.v1.StateStoreService.ResolveIdentitySubject:output_type -> state.v1.ResolveIdentitySubjectResponse - 25, // 305: state.v1.StateStoreService.BindIdentitySubject:output_type -> state.v1.BindIdentitySubjectResponse - 27, // 306: state.v1.StateStoreService.ClaimIdentitySubject:output_type -> state.v1.ClaimIdentitySubjectResponse - 30, // 307: state.v1.StateStoreService.AddPersonalToken:output_type -> state.v1.AddPersonalTokenResponse - 32, // 308: state.v1.StateStoreService.ListPersonalTokens:output_type -> state.v1.ListPersonalTokensResponse - 34, // 309: state.v1.StateStoreService.RevokePersonalToken:output_type -> state.v1.RevokePersonalTokenResponse - 50, // 310: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse - 58, // 311: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse - 52, // 312: state.v1.StateStoreService.ActiveTasksByOrigin:output_type -> state.v1.ActiveTasksByOriginResponse - 54, // 313: state.v1.StateStoreService.UnpostedOutcomes:output_type -> state.v1.UnpostedOutcomesResponse - 56, // 314: state.v1.StateStoreService.MarkOutcomePosted:output_type -> state.v1.MarkOutcomePostedResponse - 60, // 315: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse - 62, // 316: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse - 64, // 317: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse - 80, // 318: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse - 66, // 319: state.v1.StateStoreService.StartStep:output_type -> state.v1.StartStepResponse - 302, // 320: state.v1.StateStoreService.RecordUsage:output_type -> state.v1.RecordUsageResponse - 304, // 321: state.v1.StateStoreService.TaskModels:output_type -> state.v1.TaskModelsResponse - 307, // 322: state.v1.StateStoreService.CallerModels:output_type -> state.v1.CallerModelsResponse - 68, // 323: state.v1.StateStoreService.FinishStep:output_type -> state.v1.FinishStepResponse - 70, // 324: state.v1.StateStoreService.CancelExecution:output_type -> state.v1.CancelExecutionResponse - 73, // 325: state.v1.StateStoreService.ListSteps:output_type -> state.v1.ListStepsResponse - 76, // 326: state.v1.StateStoreService.GetHarnessSecret:output_type -> state.v1.GetHarnessSecretResponse - 78, // 327: state.v1.StateStoreService.PutHarnessSecret:output_type -> state.v1.PutHarnessSecretResponse - 82, // 328: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse - 84, // 329: state.v1.StateStoreService.ParkTask:output_type -> state.v1.ParkTaskResponse - 86, // 330: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse - 88, // 331: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse - 90, // 332: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse - 92, // 333: state.v1.StateStoreService.RespondReviewGate:output_type -> state.v1.RespondReviewGateResponse - 94, // 334: state.v1.StateStoreService.BeginRemediation:output_type -> state.v1.BeginRemediationResponse - 96, // 335: state.v1.StateStoreService.UpdateReviewPayload:output_type -> state.v1.UpdateReviewPayloadResponse - 98, // 336: state.v1.StateStoreService.SetReviewCursors:output_type -> state.v1.SetReviewCursorsResponse - 100, // 337: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse - 102, // 338: state.v1.StateStoreService.OpenTaskByPR:output_type -> state.v1.OpenTaskByPRResponse - 104, // 339: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse - 106, // 340: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse - 108, // 341: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse - 110, // 342: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse - 112, // 343: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse - 114, // 344: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse - 116, // 345: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse - 118, // 346: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse - 120, // 347: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse - 122, // 348: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse - 124, // 349: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse - 127, // 350: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse - 129, // 351: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse - 132, // 352: state.v1.StateStoreService.PutChannelStatus:output_type -> state.v1.PutChannelStatusResponse - 134, // 353: state.v1.StateStoreService.ListChannelStatus:output_type -> state.v1.ListChannelStatusResponse - 137, // 354: state.v1.StateStoreService.PutApplyStatus:output_type -> state.v1.PutApplyStatusResponse - 139, // 355: state.v1.StateStoreService.ListApplyStatus:output_type -> state.v1.ListApplyStatusResponse - 148, // 356: state.v1.StateStoreService.PutPresence:output_type -> state.v1.PutPresenceResponse - 143, // 357: state.v1.StateStoreService.RecordCaptureRefusal:output_type -> state.v1.RecordCaptureRefusalResponse - 146, // 358: state.v1.StateStoreService.ListCaptureRefusals:output_type -> state.v1.ListCaptureRefusalsResponse - 150, // 359: state.v1.StateStoreService.ListPresence:output_type -> state.v1.ListPresenceResponse - 153, // 360: state.v1.StateStoreService.ReadTaskLog:output_type -> state.v1.ReadTaskLogResponse - 155, // 361: state.v1.StateStoreService.StreamTaskLogContent:output_type -> state.v1.StreamTaskLogContentResponse - 157, // 362: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse - 159, // 363: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse - 161, // 364: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse - 163, // 365: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse - 165, // 366: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse - 167, // 367: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse - 169, // 368: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse - 171, // 369: state.v1.StateStoreService.RecordMappingMatch:output_type -> state.v1.RecordMappingMatchResponse - 173, // 370: state.v1.StateStoreService.InsertEventType:output_type -> state.v1.InsertEventTypeResponse - 175, // 371: state.v1.StateStoreService.UpdateEventType:output_type -> state.v1.UpdateEventTypeResponse - 177, // 372: state.v1.StateStoreService.DeleteEventType:output_type -> state.v1.DeleteEventTypeResponse - 179, // 373: state.v1.StateStoreService.ListEventTypes:output_type -> state.v1.ListEventTypesResponse - 181, // 374: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse - 183, // 375: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse - 185, // 376: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse - 220, // 377: state.v1.StateStoreService.ListDispatches:output_type -> state.v1.ListDispatchesResponse - 187, // 378: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse - 189, // 379: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse - 191, // 380: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse - 199, // 381: state.v1.StateStoreService.PauseBinding:output_type -> state.v1.PauseBindingResponse - 201, // 382: state.v1.StateStoreService.ResumeBinding:output_type -> state.v1.ResumeBindingResponse - 203, // 383: state.v1.StateStoreService.InsertSource:output_type -> state.v1.InsertSourceResponse - 205, // 384: state.v1.StateStoreService.GetSource:output_type -> state.v1.GetSourceResponse - 207, // 385: state.v1.StateStoreService.ListSources:output_type -> state.v1.ListSourcesResponse - 209, // 386: state.v1.StateStoreService.SetSourceSigning:output_type -> state.v1.SetSourceSigningResponse - 211, // 387: state.v1.StateStoreService.SetSourceSecret:output_type -> state.v1.SetSourceSecretResponse - 193, // 388: state.v1.StateStoreService.SetSourceName:output_type -> state.v1.SetSourceNameResponse - 195, // 389: state.v1.StateStoreService.SetSourceDeliveryHeader:output_type -> state.v1.SetSourceDeliveryHeaderResponse - 197, // 390: state.v1.StateStoreService.DeleteSource:output_type -> state.v1.DeleteSourceResponse - 213, // 391: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse - 215, // 392: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse - 217, // 393: state.v1.StateStoreService.SetDispatchTask:output_type -> state.v1.SetDispatchTaskResponse - 222, // 394: state.v1.StateStoreService.RecordPlaybookDispatch:output_type -> state.v1.RecordPlaybookDispatchResponse - 224, // 395: state.v1.StateStoreService.DeletePlaybookDispatches:output_type -> state.v1.DeletePlaybookDispatchesResponse - 226, // 396: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse - 228, // 397: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse - 230, // 398: state.v1.StateStoreService.EnqueueCallTask:output_type -> state.v1.EnqueueCallTaskResponse - 232, // 399: state.v1.StateStoreService.WorkflowCallStatus:output_type -> state.v1.WorkflowCallStatusResponse - 262, // 400: state.v1.StateStoreService.GetPrincipal:output_type -> state.v1.GetPrincipalResponse - 265, // 401: state.v1.StateStoreService.ListPolicies:output_type -> state.v1.ListPoliciesResponse - 267, // 402: state.v1.StateStoreService.PutPolicy:output_type -> state.v1.PutPolicyResponse - 269, // 403: state.v1.StateStoreService.DeletePolicy:output_type -> state.v1.DeletePolicyResponse - 271, // 404: state.v1.StateStoreService.EnsureShippedOrgPolicies:output_type -> state.v1.EnsureShippedOrgPoliciesResponse - 274, // 405: state.v1.StateStoreService.RecordDenial:output_type -> state.v1.RecordDenialResponse - 276, // 406: state.v1.StateStoreService.ListDenials:output_type -> state.v1.ListDenialsResponse - 281, // 407: state.v1.StateStoreService.ListOrgs:output_type -> state.v1.ListOrgsResponse - 283, // 408: state.v1.StateStoreService.GetOrg:output_type -> state.v1.GetOrgResponse - 285, // 409: state.v1.StateStoreService.CreateOrg:output_type -> state.v1.CreateOrgResponse - 287, // 410: state.v1.StateStoreService.ListWorkspaces:output_type -> state.v1.ListWorkspacesResponse - 289, // 411: state.v1.StateStoreService.CreateWorkspace:output_type -> state.v1.CreateWorkspaceResponse - 291, // 412: state.v1.StateStoreService.ListMembers:output_type -> state.v1.ListMembersResponse - 293, // 413: state.v1.StateStoreService.SetMembership:output_type -> state.v1.SetMembershipResponse - 295, // 414: state.v1.StateStoreService.RemoveMembership:output_type -> state.v1.RemoveMembershipResponse - 297, // 415: state.v1.StateStoreService.AssignAgent:output_type -> state.v1.AssignAgentResponse - 282, // [282:416] is the sub-list for method output_type - 148, // [148:282] is the sub-list for method input_type + 219, // 259: state.v1.StateStoreService.RecordPlaybookDispatch:input_type -> state.v1.RecordPlaybookDispatchRequest + 221, // 260: state.v1.StateStoreService.DeletePlaybookDispatches:input_type -> state.v1.DeletePlaybookDispatchesRequest + 223, // 261: state.v1.StateStoreService.StreamUndispatchedCaptures:input_type -> state.v1.StreamUndispatchedCapturesRequest + 225, // 262: state.v1.StateStoreService.EnqueueBindingTask:input_type -> state.v1.EnqueueBindingTaskRequest + 227, // 263: state.v1.StateStoreService.EnqueueCallTask:input_type -> state.v1.EnqueueCallTaskRequest + 229, // 264: state.v1.StateStoreService.WorkflowCallStatus:input_type -> state.v1.WorkflowCallStatusRequest + 257, // 265: state.v1.StateStoreService.GetPrincipal:input_type -> state.v1.GetPrincipalRequest + 262, // 266: state.v1.StateStoreService.ListPolicies:input_type -> state.v1.ListPoliciesRequest + 264, // 267: state.v1.StateStoreService.PutPolicy:input_type -> state.v1.PutPolicyRequest + 266, // 268: state.v1.StateStoreService.DeletePolicy:input_type -> state.v1.DeletePolicyRequest + 268, // 269: state.v1.StateStoreService.EnsureShippedOrgPolicies:input_type -> state.v1.EnsureShippedOrgPoliciesRequest + 271, // 270: state.v1.StateStoreService.RecordDenial:input_type -> state.v1.RecordDenialRequest + 273, // 271: state.v1.StateStoreService.ListDenials:input_type -> state.v1.ListDenialsRequest + 278, // 272: state.v1.StateStoreService.ListOrgs:input_type -> state.v1.ListOrgsRequest + 280, // 273: state.v1.StateStoreService.GetOrg:input_type -> state.v1.GetOrgRequest + 282, // 274: state.v1.StateStoreService.CreateOrg:input_type -> state.v1.CreateOrgRequest + 284, // 275: state.v1.StateStoreService.ListWorkspaces:input_type -> state.v1.ListWorkspacesRequest + 286, // 276: state.v1.StateStoreService.CreateWorkspace:input_type -> state.v1.CreateWorkspaceRequest + 288, // 277: state.v1.StateStoreService.ListMembers:input_type -> state.v1.ListMembersRequest + 290, // 278: state.v1.StateStoreService.SetMembership:input_type -> state.v1.SetMembershipRequest + 292, // 279: state.v1.StateStoreService.RemoveMembership:input_type -> state.v1.RemoveMembershipRequest + 294, // 280: state.v1.StateStoreService.AssignAgent:input_type -> state.v1.AssignAgentRequest + 297, // 281: state.v1.StateStoreService.RecentLogs:output_type -> state.v1.RecentLogsResponse + 235, // 282: state.v1.StateStoreService.InstallPackage:output_type -> state.v1.InstallPackageResponse + 238, // 283: state.v1.StateStoreService.ListCatalogue:output_type -> state.v1.ListCatalogueResponse + 240, // 284: state.v1.StateStoreService.InstallFromCatalogue:output_type -> state.v1.InstallFromCatalogueResponse + 242, // 285: state.v1.StateStoreService.GetInstalledPackage:output_type -> state.v1.GetInstalledPackageResponse + 244, // 286: state.v1.StateStoreService.ListInstalledPackages:output_type -> state.v1.ListInstalledPackagesResponse + 246, // 287: state.v1.StateStoreService.AcceptPackageAuthority:output_type -> state.v1.AcceptPackageAuthorityResponse + 248, // 288: state.v1.StateStoreService.RemoveInstalledPackage:output_type -> state.v1.RemoveInstalledPackageResponse + 250, // 289: state.v1.StateStoreService.UpdatePackage:output_type -> state.v1.UpdatePackageResponse + 252, // 290: state.v1.StateStoreService.ApprovePackageUpdate:output_type -> state.v1.ApprovePackageUpdateResponse + 254, // 291: state.v1.StateStoreService.RollbackPackage:output_type -> state.v1.RollbackPackageResponse + 256, // 292: state.v1.StateStoreService.SetPackageUpdatePolicy:output_type -> state.v1.SetPackageUpdatePolicyResponse + 1, // 293: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse + 3, // 294: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse + 5, // 295: state.v1.StateStoreService.ResolveTaskGrant:output_type -> state.v1.ResolveTaskGrantResponse + 9, // 296: state.v1.StateStoreService.ListIdentities:output_type -> state.v1.ListIdentitiesResponse + 11, // 297: state.v1.StateStoreService.GetIdentity:output_type -> state.v1.GetIdentityResponse + 17, // 298: state.v1.StateStoreService.CreateIdentity:output_type -> state.v1.CreateIdentityResponse + 18, // 299: state.v1.StateStoreService.RenameIdentity:output_type -> state.v1.RenameIdentityResponse + 19, // 300: state.v1.StateStoreService.SuspendIdentity:output_type -> state.v1.SuspendIdentityResponse + 20, // 301: state.v1.StateStoreService.ReactivateIdentity:output_type -> state.v1.ReactivateIdentityResponse + 21, // 302: state.v1.StateStoreService.RetireIdentity:output_type -> state.v1.RetireIdentityResponse + 23, // 303: state.v1.StateStoreService.ResolveIdentitySubject:output_type -> state.v1.ResolveIdentitySubjectResponse + 25, // 304: state.v1.StateStoreService.BindIdentitySubject:output_type -> state.v1.BindIdentitySubjectResponse + 27, // 305: state.v1.StateStoreService.ClaimIdentitySubject:output_type -> state.v1.ClaimIdentitySubjectResponse + 30, // 306: state.v1.StateStoreService.AddPersonalToken:output_type -> state.v1.AddPersonalTokenResponse + 32, // 307: state.v1.StateStoreService.ListPersonalTokens:output_type -> state.v1.ListPersonalTokensResponse + 34, // 308: state.v1.StateStoreService.RevokePersonalToken:output_type -> state.v1.RevokePersonalTokenResponse + 50, // 309: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse + 58, // 310: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse + 52, // 311: state.v1.StateStoreService.ActiveTasksByOrigin:output_type -> state.v1.ActiveTasksByOriginResponse + 54, // 312: state.v1.StateStoreService.UnpostedOutcomes:output_type -> state.v1.UnpostedOutcomesResponse + 56, // 313: state.v1.StateStoreService.MarkOutcomePosted:output_type -> state.v1.MarkOutcomePostedResponse + 60, // 314: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse + 62, // 315: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse + 64, // 316: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse + 80, // 317: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse + 66, // 318: state.v1.StateStoreService.StartStep:output_type -> state.v1.StartStepResponse + 300, // 319: state.v1.StateStoreService.RecordUsage:output_type -> state.v1.RecordUsageResponse + 302, // 320: state.v1.StateStoreService.TaskModels:output_type -> state.v1.TaskModelsResponse + 305, // 321: state.v1.StateStoreService.CallerModels:output_type -> state.v1.CallerModelsResponse + 68, // 322: state.v1.StateStoreService.FinishStep:output_type -> state.v1.FinishStepResponse + 70, // 323: state.v1.StateStoreService.CancelExecution:output_type -> state.v1.CancelExecutionResponse + 73, // 324: state.v1.StateStoreService.ListSteps:output_type -> state.v1.ListStepsResponse + 76, // 325: state.v1.StateStoreService.GetHarnessSecret:output_type -> state.v1.GetHarnessSecretResponse + 78, // 326: state.v1.StateStoreService.PutHarnessSecret:output_type -> state.v1.PutHarnessSecretResponse + 82, // 327: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse + 84, // 328: state.v1.StateStoreService.ParkTask:output_type -> state.v1.ParkTaskResponse + 86, // 329: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse + 88, // 330: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse + 90, // 331: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse + 92, // 332: state.v1.StateStoreService.RespondReviewGate:output_type -> state.v1.RespondReviewGateResponse + 94, // 333: state.v1.StateStoreService.BeginRemediation:output_type -> state.v1.BeginRemediationResponse + 96, // 334: state.v1.StateStoreService.UpdateReviewPayload:output_type -> state.v1.UpdateReviewPayloadResponse + 98, // 335: state.v1.StateStoreService.SetReviewCursors:output_type -> state.v1.SetReviewCursorsResponse + 100, // 336: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse + 102, // 337: state.v1.StateStoreService.OpenTaskByPR:output_type -> state.v1.OpenTaskByPRResponse + 104, // 338: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse + 106, // 339: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse + 108, // 340: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse + 110, // 341: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse + 112, // 342: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse + 114, // 343: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse + 116, // 344: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse + 118, // 345: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse + 120, // 346: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse + 122, // 347: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse + 124, // 348: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse + 127, // 349: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse + 129, // 350: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse + 132, // 351: state.v1.StateStoreService.PutChannelStatus:output_type -> state.v1.PutChannelStatusResponse + 134, // 352: state.v1.StateStoreService.ListChannelStatus:output_type -> state.v1.ListChannelStatusResponse + 137, // 353: state.v1.StateStoreService.PutApplyStatus:output_type -> state.v1.PutApplyStatusResponse + 139, // 354: state.v1.StateStoreService.ListApplyStatus:output_type -> state.v1.ListApplyStatusResponse + 148, // 355: state.v1.StateStoreService.PutPresence:output_type -> state.v1.PutPresenceResponse + 143, // 356: state.v1.StateStoreService.RecordCaptureRefusal:output_type -> state.v1.RecordCaptureRefusalResponse + 146, // 357: state.v1.StateStoreService.ListCaptureRefusals:output_type -> state.v1.ListCaptureRefusalsResponse + 150, // 358: state.v1.StateStoreService.ListPresence:output_type -> state.v1.ListPresenceResponse + 153, // 359: state.v1.StateStoreService.ReadTaskLog:output_type -> state.v1.ReadTaskLogResponse + 155, // 360: state.v1.StateStoreService.StreamTaskLogContent:output_type -> state.v1.StreamTaskLogContentResponse + 157, // 361: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse + 159, // 362: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse + 161, // 363: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse + 163, // 364: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse + 165, // 365: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse + 167, // 366: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse + 169, // 367: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse + 171, // 368: state.v1.StateStoreService.RecordMappingMatch:output_type -> state.v1.RecordMappingMatchResponse + 173, // 369: state.v1.StateStoreService.InsertEventType:output_type -> state.v1.InsertEventTypeResponse + 175, // 370: state.v1.StateStoreService.UpdateEventType:output_type -> state.v1.UpdateEventTypeResponse + 177, // 371: state.v1.StateStoreService.DeleteEventType:output_type -> state.v1.DeleteEventTypeResponse + 179, // 372: state.v1.StateStoreService.ListEventTypes:output_type -> state.v1.ListEventTypesResponse + 181, // 373: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse + 183, // 374: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse + 185, // 375: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse + 218, // 376: state.v1.StateStoreService.ListDispatches:output_type -> state.v1.ListDispatchesResponse + 187, // 377: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse + 189, // 378: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse + 191, // 379: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse + 199, // 380: state.v1.StateStoreService.PauseBinding:output_type -> state.v1.PauseBindingResponse + 201, // 381: state.v1.StateStoreService.ResumeBinding:output_type -> state.v1.ResumeBindingResponse + 203, // 382: state.v1.StateStoreService.InsertSource:output_type -> state.v1.InsertSourceResponse + 205, // 383: state.v1.StateStoreService.GetSource:output_type -> state.v1.GetSourceResponse + 207, // 384: state.v1.StateStoreService.ListSources:output_type -> state.v1.ListSourcesResponse + 209, // 385: state.v1.StateStoreService.SetSourceSigning:output_type -> state.v1.SetSourceSigningResponse + 211, // 386: state.v1.StateStoreService.SetSourceSecret:output_type -> state.v1.SetSourceSecretResponse + 193, // 387: state.v1.StateStoreService.SetSourceName:output_type -> state.v1.SetSourceNameResponse + 195, // 388: state.v1.StateStoreService.SetSourceDeliveryHeader:output_type -> state.v1.SetSourceDeliveryHeaderResponse + 197, // 389: state.v1.StateStoreService.DeleteSource:output_type -> state.v1.DeleteSourceResponse + 213, // 390: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse + 215, // 391: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse + 220, // 392: state.v1.StateStoreService.RecordPlaybookDispatch:output_type -> state.v1.RecordPlaybookDispatchResponse + 222, // 393: state.v1.StateStoreService.DeletePlaybookDispatches:output_type -> state.v1.DeletePlaybookDispatchesResponse + 224, // 394: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse + 226, // 395: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse + 228, // 396: state.v1.StateStoreService.EnqueueCallTask:output_type -> state.v1.EnqueueCallTaskResponse + 230, // 397: state.v1.StateStoreService.WorkflowCallStatus:output_type -> state.v1.WorkflowCallStatusResponse + 260, // 398: state.v1.StateStoreService.GetPrincipal:output_type -> state.v1.GetPrincipalResponse + 263, // 399: state.v1.StateStoreService.ListPolicies:output_type -> state.v1.ListPoliciesResponse + 265, // 400: state.v1.StateStoreService.PutPolicy:output_type -> state.v1.PutPolicyResponse + 267, // 401: state.v1.StateStoreService.DeletePolicy:output_type -> state.v1.DeletePolicyResponse + 269, // 402: state.v1.StateStoreService.EnsureShippedOrgPolicies:output_type -> state.v1.EnsureShippedOrgPoliciesResponse + 272, // 403: state.v1.StateStoreService.RecordDenial:output_type -> state.v1.RecordDenialResponse + 274, // 404: state.v1.StateStoreService.ListDenials:output_type -> state.v1.ListDenialsResponse + 279, // 405: state.v1.StateStoreService.ListOrgs:output_type -> state.v1.ListOrgsResponse + 281, // 406: state.v1.StateStoreService.GetOrg:output_type -> state.v1.GetOrgResponse + 283, // 407: state.v1.StateStoreService.CreateOrg:output_type -> state.v1.CreateOrgResponse + 285, // 408: state.v1.StateStoreService.ListWorkspaces:output_type -> state.v1.ListWorkspacesResponse + 287, // 409: state.v1.StateStoreService.CreateWorkspace:output_type -> state.v1.CreateWorkspaceResponse + 289, // 410: state.v1.StateStoreService.ListMembers:output_type -> state.v1.ListMembersResponse + 291, // 411: state.v1.StateStoreService.SetMembership:output_type -> state.v1.SetMembershipResponse + 293, // 412: state.v1.StateStoreService.RemoveMembership:output_type -> state.v1.RemoveMembershipResponse + 295, // 413: state.v1.StateStoreService.AssignAgent:output_type -> state.v1.AssignAgentResponse + 281, // [281:414] is the sub-list for method output_type + 148, // [148:281] is the sub-list for method input_type 148, // [148:148] is the sub-list for extension type_name 148, // [148:148] is the sub-list for extension extendee 0, // [0:148] is the sub-list for field type_name @@ -18552,7 +18455,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: 313, + NumMessages: 311, 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 0652933e9..7710c20b7 100644 --- a/internal/contracts/state/v1/state_grpc.pb.go +++ b/internal/contracts/state/v1/state_grpc.pb.go @@ -130,7 +130,6 @@ const ( StateStoreService_DeleteSource_FullMethodName = "/state.v1.StateStoreService/DeleteSource" StateStoreService_ArmedBindingsForSource_FullMethodName = "/state.v1.StateStoreService/ArmedBindingsForSource" StateStoreService_RecordDispatch_FullMethodName = "/state.v1.StateStoreService/RecordDispatch" - StateStoreService_SetDispatchTask_FullMethodName = "/state.v1.StateStoreService/SetDispatchTask" StateStoreService_RecordPlaybookDispatch_FullMethodName = "/state.v1.StateStoreService/RecordPlaybookDispatch" StateStoreService_DeletePlaybookDispatches_FullMethodName = "/state.v1.StateStoreService/DeletePlaybookDispatches" StateStoreService_StreamUndispatchedCaptures_FullMethodName = "/state.v1.StateStoreService/StreamUndispatchedCaptures" @@ -369,7 +368,6 @@ type StateStoreServiceClient interface { // Dispatch ArmedBindingsForSource(ctx context.Context, in *ArmedBindingsForSourceRequest, opts ...grpc.CallOption) (*ArmedBindingsForSourceResponse, error) RecordDispatch(ctx context.Context, in *RecordDispatchRequest, opts ...grpc.CallOption) (*RecordDispatchResponse, error) - SetDispatchTask(ctx context.Context, in *SetDispatchTaskRequest, opts ...grpc.CallOption) (*SetDispatchTaskResponse, error) // Playbook dispatch ledger (eda-playbook-engine.md gap 2): one durable // at-most-once record per (playbook, version, event, action) for the // side-effecting positions. Administrative, like RecordDispatch: a @@ -377,7 +375,9 @@ type StateStoreServiceClient interface { RecordPlaybookDispatch(ctx context.Context, in *RecordPlaybookDispatchRequest, opts ...grpc.CallOption) (*RecordPlaybookDispatchResponse, error) DeletePlaybookDispatches(ctx context.Context, in *DeletePlaybookDispatchesRequest, opts ...grpc.CallOption) (*DeletePlaybookDispatchesResponse, error) StreamUndispatchedCaptures(ctx context.Context, in *StreamUndispatchedCapturesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamUndispatchedCapturesResponse], error) - // BindingTaskCreator + // BindingTaskCreator: claims the binding's dispatch of a capture and + // enqueues its task in one transaction, so a failure leaves neither and a + // replayed delivery is refused with AlreadyExists. EnqueueBindingTask(ctx context.Context, in *EnqueueBindingTaskRequest, opts ...grpc.CallOption) (*EnqueueBindingTaskResponse, error) // WorkflowCaller: a workflow.call step starts its callee and, with // wait:true, reads it back while waiting. Both are the one sanctioned @@ -1551,16 +1551,6 @@ func (c *stateStoreServiceClient) RecordDispatch(ctx context.Context, in *Record return out, nil } -func (c *stateStoreServiceClient) SetDispatchTask(ctx context.Context, in *SetDispatchTaskRequest, opts ...grpc.CallOption) (*SetDispatchTaskResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(SetDispatchTaskResponse) - err := c.cc.Invoke(ctx, StateStoreService_SetDispatchTask_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *stateStoreServiceClient) RecordPlaybookDispatch(ctx context.Context, in *RecordPlaybookDispatchRequest, opts ...grpc.CallOption) (*RecordPlaybookDispatchResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RecordPlaybookDispatchResponse) @@ -2004,7 +1994,6 @@ type StateStoreServiceServer interface { // Dispatch ArmedBindingsForSource(context.Context, *ArmedBindingsForSourceRequest) (*ArmedBindingsForSourceResponse, error) RecordDispatch(context.Context, *RecordDispatchRequest) (*RecordDispatchResponse, error) - SetDispatchTask(context.Context, *SetDispatchTaskRequest) (*SetDispatchTaskResponse, error) // Playbook dispatch ledger (eda-playbook-engine.md gap 2): one durable // at-most-once record per (playbook, version, event, action) for the // side-effecting positions. Administrative, like RecordDispatch: a @@ -2012,7 +2001,9 @@ type StateStoreServiceServer interface { RecordPlaybookDispatch(context.Context, *RecordPlaybookDispatchRequest) (*RecordPlaybookDispatchResponse, error) DeletePlaybookDispatches(context.Context, *DeletePlaybookDispatchesRequest) (*DeletePlaybookDispatchesResponse, error) StreamUndispatchedCaptures(*StreamUndispatchedCapturesRequest, grpc.ServerStreamingServer[StreamUndispatchedCapturesResponse]) error - // BindingTaskCreator + // BindingTaskCreator: claims the binding's dispatch of a capture and + // enqueues its task in one transaction, so a failure leaves neither and a + // replayed delivery is refused with AlreadyExists. EnqueueBindingTask(context.Context, *EnqueueBindingTaskRequest) (*EnqueueBindingTaskResponse, error) // WorkflowCaller: a workflow.call step starts its callee and, with // wait:true, reads it back while waiting. Both are the one sanctioned @@ -2391,9 +2382,6 @@ func (UnimplementedStateStoreServiceServer) ArmedBindingsForSource(context.Conte func (UnimplementedStateStoreServiceServer) RecordDispatch(context.Context, *RecordDispatchRequest) (*RecordDispatchResponse, error) { return nil, status.Error(codes.Unimplemented, "method RecordDispatch not implemented") } -func (UnimplementedStateStoreServiceServer) SetDispatchTask(context.Context, *SetDispatchTaskRequest) (*SetDispatchTaskResponse, error) { - return nil, status.Error(codes.Unimplemented, "method SetDispatchTask not implemented") -} func (UnimplementedStateStoreServiceServer) RecordPlaybookDispatch(context.Context, *RecordPlaybookDispatchRequest) (*RecordPlaybookDispatchResponse, error) { return nil, status.Error(codes.Unimplemented, "method RecordPlaybookDispatch not implemented") } @@ -4465,24 +4453,6 @@ func _StateStoreService_RecordDispatch_Handler(srv interface{}, ctx context.Cont return interceptor(ctx, in, info, handler) } -func _StateStoreService_SetDispatchTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetDispatchTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StateStoreServiceServer).SetDispatchTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: StateStoreService_SetDispatchTask_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StateStoreServiceServer).SetDispatchTask(ctx, req.(*SetDispatchTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _StateStoreService_RecordPlaybookDispatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RecordPlaybookDispatchRequest) if err := dec(in); err != nil { @@ -5315,10 +5285,6 @@ var StateStoreService_ServiceDesc = grpc.ServiceDesc{ MethodName: "RecordDispatch", Handler: _StateStoreService_RecordDispatch_Handler, }, - { - MethodName: "SetDispatchTask", - Handler: _StateStoreService_SetDispatchTask_Handler, - }, { MethodName: "RecordPlaybookDispatch", Handler: _StateStoreService_RecordPlaybookDispatch_Handler, diff --git a/internal/daemon/binding_dispatch_test.go b/internal/daemon/binding_dispatch_test.go new file mode 100644 index 000000000..de57215ec --- /dev/null +++ b/internal/daemon/binding_dispatch_test.go @@ -0,0 +1,132 @@ +package daemon + +import ( + "context" + "errors" + "log/slog" + "sync" + "testing" + + "github.com/samcharles93/archie-core/internal/config" + "github.com/samcharles93/archie-core/internal/domain/binding" + "github.com/samcharles93/archie-core/internal/domain/mapping" + "github.com/samcharles93/archie-core/internal/domain/org" + "github.com/samcharles93/archie-core/internal/domain/storecontract" + "github.com/samcharles93/archie-core/internal/domain/workflow" + "github.com/samcharles93/archie-core/internal/events" +) + +// ledgerStore models the State Store's dispatch ledger: EnqueueBindingTask +// claims and creates as one unit, and any ledger write the daemon makes for +// a capture refuses a later claim of it, as the real unique index does. +type ledgerStore struct { + storecontract.TaskStore + storecontract.BindingStore + storecontract.MappingStore + + mu sync.Mutex + claimed map[string]bool + tasks int + markers int + failures int // enqueues to fail before any commits + listed *sync.WaitGroup // holds listers until every admitter has listed +} + +func (s *ledgerStore) ListBindings(context.Context) ([]binding.Binding, error) { + return []binding.Binding{dispatchBinding}, nil +} + +func (s *ledgerStore) ArmedBindingsForSource(context.Context, string) ([]binding.Binding, error) { + return []binding.Binding{dispatchBinding}, nil +} + +func (s *ledgerStore) ListUndispatchedCaptures(context.Context, []string, int) ([]storecontract.CapturedEvent, error) { + s.mu.Lock() + pending := !s.claimed["capture"] + s.mu.Unlock() + if s.listed != nil { + s.listed.Done() + s.listed.Wait() + } + if !pending { + return nil, nil + } + return []storecontract.CapturedEvent{{ID: "capture", Source: "forge", EventType: "push", Body: "{}", Authenticated: true}}, nil +} + +func (s *ledgerStore) RecordDispatch(_ context.Context, _ string, _ int64, captureID string, _ int64, _ string) error { + s.mu.Lock() + defer s.mu.Unlock() + if s.claimed[captureID] { + return storecontract.ErrAlreadyDispatched + } + s.claimed[captureID] = true + return nil +} + +func (s *ledgerStore) EnqueueBindingTask(_ context.Context, _, _, _, _, _, _, _ string, _ int, captureID string, _ map[string]any) (*workflow.Task, error) { + s.mu.Lock() + defer s.mu.Unlock() + if s.claimed[captureID] { + return nil, storecontract.ErrAlreadyDispatched + } + if s.failures > 0 { + s.failures-- + return nil, errors.New("state store unavailable") + } + s.claimed[captureID] = true + s.tasks++ + return &workflow.Task{ID: int64(s.tasks)}, nil +} + +func (s *ledgerStore) GetMapping(context.Context, string) (*mapping.Mapping, error) { + return &mapping.Mapping{ID: "push", EventTypeID: "push"}, nil +} + +func (s *ledgerStore) InsertEvent(context.Context, events.Event) (int64, error) { + s.mu.Lock() + defer s.mu.Unlock() + s.markers++ + return 0, nil +} + +var dispatchBinding = binding.Binding{ + ID: "on-push", Name: "on-push", Version: 1, MappingID: "push", Matcher: binding.Matcher{Source: "forge"}, + OrgID: org.DefaultOrgID, Workflow: "deploy", Status: binding.StatusArmed, +} + +// A delivery dispatches exactly one task however its admissions go: replayed +// cycles, a failure after the claim, or concurrent dispatchers. +func TestBindingDispatchCreatesOneTask(t *testing.T) { + for _, tc := range []struct { + name string + failures int + cycles int + concurrent int + }{ + {name: "replay", cycles: 3, concurrent: 1}, + {name: "failure after the claim", failures: 1, cycles: 2, concurrent: 1}, + {name: "concurrent admission", cycles: 1, concurrent: 4}, + } { + t.Run(tc.name, func(t *testing.T) { + store := &ledgerStore{claimed: map[string]bool{}, failures: tc.failures} + d := &Daemon{ + Cfg: config.NewHolder(config.Config{}), Store: store, Log: slog.New(slog.DiscardHandler), + Bindings: store, BindingDispatcher: store, BindingTaskCreator: store, Mappings: store, + WorkflowDefinitions: orgDefinitions{org.DefaultOrgID: "id: deploy\nrepository: none\nsteps:\n - type: workflow.finish\n"}, + } + for range tc.cycles { + var listed, done sync.WaitGroup + listed.Add(tc.concurrent) + store.listed = &listed + for range tc.concurrent { + done.Go(func() { d.dispatchBindings(t.Context()) }) + } + done.Wait() + } + if store.tasks != 1 || store.markers != 1 { + t.Fatalf("tasks %d, start markers %d; want exactly one of each", store.tasks, store.markers) + } + }) + } +} diff --git a/internal/daemon/daemon.go b/internal/daemon/daemon.go index 3380a19d1..5ce37ccb0 100644 --- a/internal/daemon/daemon.go +++ b/internal/daemon/daemon.go @@ -672,8 +672,8 @@ func (d *Daemon) bindingMapping(ctx context.Context, b binding.Binding, c storec // dispatchOneBinding offers one capture to one binding: the mapping must // match the capture's event type and resolve required fields, the filter // must admit the values, and the workflow must accept the inputs. The -// dispatch is claimed in the ledger before the task is enqueued, so each -// binding fires at most once per capture. +// ledger claim and the task commit together, so each binding fires exactly +// once per delivery. func (d *Daemon) dispatchOneBinding(ctx context.Context, b binding.Binding, c storecontract.CapturedEvent, workflows workflow.WorkflowDefinitionCollection) { m := d.bindingMapping(ctx, b, c) if m == nil || m.EventTypeID != c.EventType { @@ -714,16 +714,10 @@ func (d *Daemon) dispatchOneBinding(ctx context.Context, b binding.Binding, c st d.claimAndEnqueue(ctx, b, c, target, values) } -// claimAndEnqueue claims the dispatch in the at-most-once ledger and enqueues -// the task. A failed enqueue after the claim loses that dispatch, which is -// the at-most-once side of the trade. +// claimAndEnqueue asks the State Store to claim the dispatch and enqueue its +// task as one unit. A failure leaves the delivery undispatched, so the next +// cycle offers it again; a delivery already dispatched is refused. func (d *Daemon) claimAndEnqueue(ctx context.Context, b binding.Binding, c storecontract.CapturedEvent, target bindingTarget, values map[string]any) { - if err := d.BindingDispatcher.RecordDispatch(ctx, b.ID, int64(b.Version), c.ID, 0, ""); err != nil { - if !errors.Is(err, storecontract.ErrAlreadyDispatched) { - d.Log.Warn("binding dispatch: record", "binding", b.ID, "capture", c.ID, "error", err) - } - return - } title := fmt.Sprintf("binding %s/%d from %s", b.Name, b.Version, c.Source) body := renderBindingBody(values, c) if target.declared { @@ -733,14 +727,13 @@ func (d *Daemon) claimAndEnqueue(ctx context.Context, b binding.Binding, c store if principal, ok := access.PrincipalFromContext(ctx); ok && (principal.IdentityID != d.RootIdentityID || principal.Org != org.DefaultOrgID) { taskIdentity = string(principal.IdentityID) } - task, err := d.BindingTaskCreator.EnqueueBindingTask(ctx, target.owner, target.repo, title, body, b.Workflow, taskIdentity, b.ID, b.Version, target.inputs) + task, err := d.BindingTaskCreator.EnqueueBindingTask(ctx, target.owner, target.repo, title, body, b.Workflow, taskIdentity, b.ID, b.Version, c.ID, target.inputs) if err != nil { - d.Log.Warn("binding dispatch: enqueue", "binding", b.ID, "capture", c.ID, "error", err) + if !errors.Is(err, storecontract.ErrAlreadyDispatched) { + d.Log.Warn("binding dispatch: enqueue", "binding", b.ID, "capture", c.ID, "error", err) + } return } - if err := d.BindingDispatcher.SetDispatchTask(ctx, b.ID, c.ID, task.ID); err != nil { - d.Log.Warn("binding dispatch: record task", "binding", b.ID, "capture", c.ID, "task", task.ID, "error", err) - } d.markBindingStart(ctx, task.ID, b, c) } diff --git a/internal/daemon/workflow_org_test.go b/internal/daemon/workflow_org_test.go index d953383be..343415bbd 100644 --- a/internal/daemon/workflow_org_test.go +++ b/internal/daemon/workflow_org_test.go @@ -57,14 +57,13 @@ func (*orgBindingStore) ListUndispatchedCaptures(_ context.Context, sources []st func (*orgBindingStore) RecordDispatch(context.Context, string, int64, string, int64, string) error { return nil } -func (*orgBindingStore) SetDispatchTask(context.Context, string, string, int64) error { return nil } -func (*orgBindingStore) InsertEvent(context.Context, events.Event) (int64, error) { return 0, nil } +func (*orgBindingStore) InsertEvent(context.Context, events.Event) (int64, error) { return 0, nil } func (*orgBindingStore) GetMapping(_ context.Context, id string) (*mapping.Mapping, error) { return &mapping.Mapping{EventTypeID: id}, nil } -func (s *orgBindingStore) EnqueueBindingTask(ctx context.Context, owner, repo, _, _, wf, identity, bindingID string, _ int, _ map[string]any) (*workflow.Task, error) { +func (s *orgBindingStore) EnqueueBindingTask(ctx context.Context, owner, repo, _, _, wf, identity, bindingID string, _ int, _ string, _ map[string]any) (*workflow.Task, error) { run := &workflow.Task{ID: 1, Owner: owner, Repo: repo, Workflow: wf, Identity: identity, Org: org.OrgFromContext(ctx), BindingID: bindingID} s.started[run.Org] = run return run, nil diff --git a/internal/domain/storecontract/storecontract.go b/internal/domain/storecontract/storecontract.go index ee0f7fae4..6a1e5caad 100644 --- a/internal/domain/storecontract/storecontract.go +++ b/internal/domain/storecontract/storecontract.go @@ -320,16 +320,14 @@ type BindingDispatcher interface { bindingVersion int64, captureID string, // taskID addresses the SQLite-owned task tables, which are not - // migrating: it stays an integer on purpose. The binding dispatch - // loop claims before it enqueues, so it records 0. + // migrating: it stays an integer on purpose. A dispatch that starts + // a task is recorded by EnqueueBindingTask instead. taskID int64, // reason is empty for a dispatch and names the terminal outcome of // an evaluation that started no task. reason string, ) error ListUndispatchedCaptures(ctx context.Context, sources []string, limit int) ([]CapturedEvent, error) - // SetDispatchTask records the task a claimed dispatch started. - SetDispatchTask(ctx context.Context, bindingID, captureID string, taskID int64) error } // BindingTaskCreator is the single-method consumer-facing surface for @@ -337,7 +335,11 @@ type BindingDispatcher interface { // keeps the lifecycle surface narrow (8 methods, the interfacebloat limit) // and keeps the binding-specific shape on the binding interfaces. type BindingTaskCreator interface { - EnqueueBindingTask(ctx context.Context, owner, repo, title, body, wf, identity, bindingID string, bindingVersion int, inputs map[string]any) (*task.Task, error) + // EnqueueBindingTask claims the binding's dispatch of captureID in the + // ledger, enqueues the task and records its provenance as one unit: an + // error leaves none of them, and a delivery already dispatched for the + // binding returns ErrAlreadyDispatched. + EnqueueBindingTask(ctx context.Context, owner, repo, title, body, wf, identity, bindingID string, bindingVersion int, captureID string, inputs map[string]any) (*task.Task, error) } // WorkflowCaller starts a workflow.call callee and reads it back. diff --git a/internal/infrastructure/postgres/edastore.go b/internal/infrastructure/postgres/edastore.go index 3dbd4dff0..a8dabf772 100644 --- a/internal/infrastructure/postgres/edastore.go +++ b/internal/infrastructure/postgres/edastore.go @@ -550,15 +550,6 @@ func (s *EDA) RecordDispatch(ctx context.Context, bindingID string, bindingVersi return ledgerWrite(err, "edastore: record dispatch") } -// SetDispatchTask records the task a claimed dispatch started. -func (s *EDA) SetDispatchTask(ctx context.Context, bindingID, captureID string, taskID int64) error { - err := s.q.SetBindingDispatchTask(ctx, postgresdb.SetBindingDispatchTaskParams{Binding: bindingID, Capture: captureID, TaskID: taskID}) - if err != nil { - return fmt.Errorf("edastore: set dispatch task: %w", err) - } - return nil -} - // ListDispatches returns the newest ledger rows matching filter. func (s *EDA) ListDispatches(ctx context.Context, filter storecontract.DispatchFilter) ([]storecontract.Dispatch, error) { params := postgresdb.ListBindingDispatchesParams{EntryLimit: int32(min(max(filter.Limit, 1), 500)), ScopeOrg: scopeOrg(ctx)} // clamped diff --git a/internal/infrastructure/postgres/store.go b/internal/infrastructure/postgres/store.go index 6302fbefc..25edb6673 100644 --- a/internal/infrastructure/postgres/store.go +++ b/internal/infrastructure/postgres/store.go @@ -156,11 +156,15 @@ func (s *Store) EnqueueIssue(ctx context.Context, owner, repo string, number int // EnqueueChatTask inserts a queued chat task with a store-allocated synthetic // issue number. origin names the conversation that created it, if any. func (s *Store) EnqueueChatTask(ctx context.Context, owner, repo, title, body, wf, identity, origin string, inputs map[string]any) (*workflow.Task, error) { + return insertChatTask(ctx, s.queries(), owner, repo, title, body, wf, identity, origin, inputs) +} + +func insertChatTask(ctx context.Context, q *postgresdb.Queries, owner, repo, title, body, wf, identity, origin string, inputs map[string]any) (*workflow.Task, error) { encoded, err := task.EncodeInputs(inputs) if err != nil { return nil, err } - t, err := s.queries().InsertChatTask(ctx, postgresdb.InsertChatTaskParams{ + t, err := q.InsertChatTask(ctx, postgresdb.InsertChatTaskParams{ ScopeOrg: scopeOrg(ctx), Owner: owner, Repo: repo, Title: title, Body: body, Workflow: wf, Identity: identity, Inputs: encoded, @@ -176,20 +180,46 @@ func (s *Store) EnqueueChatTask(ctx context.Context, owner, repo, title, body, w return taskFromRow(t), nil } -// EnqueueBindingTask enqueues a binding-triggered task and stamps its binding -// provenance in a second statement (best-effort, as in the SQLite store). The -// inputs travel with the insert, so a failed stamp leaves a task whose inputs -// are already right and whose provenance is absent, never the reverse. -func (s *Store) EnqueueBindingTask(ctx context.Context, owner, repo, title, body, wf, identity, bindingID string, bindingVersion int, inputs map[string]any) (*workflow.Task, error) { - t, err := s.EnqueueChatTask(ctx, owner, repo, title, body, wf, identity, "", inputs) +// EnqueueBindingTask claims the dispatch ledger row for the capture's +// delivery, inserts the task, stamps its binding provenance and records the +// task on the ledger row in one transaction. A concurrent claim of the same +// delivery waits on the ledger's unique index and is refused once this one +// commits, so a replay creates no second task, and a failure anywhere leaves +// the delivery undispatched for the next cycle. +func (s *Store) EnqueueBindingTask(ctx context.Context, owner, repo, title, body, wf, identity, bindingID string, bindingVersion int, captureID string, inputs map[string]any) (*workflow.Task, error) { + tx, err := s.pool.Begin(ctx) if err != nil { return nil, err } - if err := s.queries().StampTaskBinding(ctx, postgresdb.StampTaskBindingParams{ + defer func() { _ = tx.Rollback(ctx) }() + q := postgresdb.New(tx) + + n, err := q.InsertBindingDispatch(ctx, postgresdb.InsertBindingDispatchParams{ + Binding: bindingID, BindingVersion: int64(bindingVersion), Capture: captureID, + }) + if err != nil { + return nil, ledgerWrite(err, "store: claim binding dispatch") + } + if n == 0 { + return nil, fmt.Errorf("store: claim binding dispatch: capture %q not found", captureID) + } + t, err := insertChatTask(ctx, q, owner, repo, title, body, wf, identity, "", inputs) + if err != nil { + return nil, err + } + if err := q.StampTaskBinding(ctx, postgresdb.StampTaskBindingParams{ ID: t.ID, BindingID: bindingID, BindingVersion: int64(bindingVersion), }); err != nil { return nil, fmt.Errorf("store: stamp binding provenance: %w", err) } + if err := q.SetBindingDispatchTask(ctx, postgresdb.SetBindingDispatchTaskParams{ + Binding: bindingID, Capture: captureID, TaskID: t.ID, + }); err != nil { + return nil, fmt.Errorf("store: record dispatch task: %w", err) + } + if err := tx.Commit(ctx); err != nil { + return nil, err + } t.BindingID = bindingID t.BindingVersion = bindingVersion return t, nil diff --git a/internal/infrastructure/staterpc/client.go b/internal/infrastructure/staterpc/client.go index b4f86f220..0f932fc33 100644 --- a/internal/infrastructure/staterpc/client.go +++ b/internal/infrastructure/staterpc/client.go @@ -649,11 +649,6 @@ func (c *Client) ListDispatches(ctx context.Context, filter storecontract.Dispat }), nil } -func (c *Client) SetDispatchTask(ctx context.Context, bindingID, captureID string, taskID int64) error { - _, err := c.client.SetDispatchTask(ctx, &pb.SetDispatchTaskRequest{BindingId: bindingID, CaptureId: captureID, TaskId: taskID}) - return unmapError(err) -} - func (c *Client) UpdateBinding(ctx context.Context, b binding.Binding) error { _, err := c.client.UpdateBinding(ctx, &pb.UpdateBindingRequest{Binding: bindingProto(b)}) return unmapError(err) @@ -779,12 +774,12 @@ func (c *Client) ListUndispatchedCaptures(ctx context.Context, sources []string, // BindingTaskCreator -func (c *Client) EnqueueBindingTask(ctx context.Context, owner, repo, title, body, wf, identity, bindingID string, bindingVersion int, inputs map[string]any) (*task.Task, error) { +func (c *Client) EnqueueBindingTask(ctx context.Context, owner, repo, title, body, wf, identity, bindingID string, bindingVersion int, captureID string, inputs map[string]any) (*task.Task, error) { encoded, err := task.EncodeInputs(inputs) if err != nil { return nil, err } - r, err := c.client.EnqueueBindingTask(ctx, &pb.EnqueueBindingTaskRequest{Owner: owner, Repo: repo, Title: title, Body: body, Workflow: wf, Identity: identity, BindingId: bindingID, BindingVersion: int64(bindingVersion), InputsJson: encoded}) + r, err := c.client.EnqueueBindingTask(ctx, &pb.EnqueueBindingTaskRequest{Owner: owner, Repo: repo, Title: title, Body: body, Workflow: wf, Identity: identity, BindingId: bindingID, BindingVersion: int64(bindingVersion), InputsJson: encoded, CaptureId: captureID}) if err != nil { return nil, unmapError(err) } diff --git a/internal/infrastructure/staterpc/server.go b/internal/infrastructure/staterpc/server.go index 6f335f455..8b92abdf0 100644 --- a/internal/infrastructure/staterpc/server.go +++ b/internal/infrastructure/staterpc/server.go @@ -1114,16 +1114,6 @@ func (s *server) RecordDispatch(ctx context.Context, r *pb.RecordDispatchRequest return &pb.RecordDispatchResponse{}, nil } -func (s *server) SetDispatchTask(ctx context.Context, r *pb.SetDispatchTaskRequest) (*pb.SetDispatchTaskResponse, error) { - if s.deps.BindingDispatcher == nil { - return nil, errBindingDispatchUnavailable - } - if err := s.deps.BindingDispatcher.SetDispatchTask(ctx, r.BindingId, r.CaptureId, r.TaskId); err != nil { - return nil, s.logErr("SetDispatchTask", err) - } - return &pb.SetDispatchTaskResponse{}, nil -} - func (s *server) ListDispatches(ctx context.Context, r *pb.ListDispatchesRequest) (*pb.ListDispatchesResponse, error) { bs, err := s.binding() if err != nil { @@ -1196,7 +1186,7 @@ func (s *server) EnqueueBindingTask(ctx context.Context, r *pb.EnqueueBindingTas if err != nil { return nil, status.Error(codes.InvalidArgument, err.Error()) } - t, err := s.deps.BindingTaskCreator.EnqueueBindingTask(ctx, r.Owner, r.Repo, r.Title, r.Body, r.Workflow, r.Identity, r.BindingId, int(r.BindingVersion), inputs) + t, err := s.deps.BindingTaskCreator.EnqueueBindingTask(ctx, r.Owner, r.Repo, r.Title, r.Body, r.Workflow, r.Identity, r.BindingId, int(r.BindingVersion), r.CaptureId, inputs) if err != nil { return nil, s.logErr("EnqueueBindingTask", err) } diff --git a/proto/state/v1/state.proto b/proto/state/v1/state.proto index 63952a4b0..0823bb4e5 100644 --- a/proto/state/v1/state.proto +++ b/proto/state/v1/state.proto @@ -230,7 +230,6 @@ service StateStoreService { // Dispatch rpc ArmedBindingsForSource(ArmedBindingsForSourceRequest) returns (ArmedBindingsForSourceResponse); rpc RecordDispatch(RecordDispatchRequest) returns (RecordDispatchResponse); - rpc SetDispatchTask(SetDispatchTaskRequest) returns (SetDispatchTaskResponse); // Playbook dispatch ledger (eda-playbook-engine.md gap 2): one durable // at-most-once record per (playbook, version, event, action) for the // side-effecting positions. Administrative, like RecordDispatch: a @@ -239,7 +238,9 @@ service StateStoreService { rpc DeletePlaybookDispatches(DeletePlaybookDispatchesRequest) returns (DeletePlaybookDispatchesResponse); rpc StreamUndispatchedCaptures(StreamUndispatchedCapturesRequest) returns (stream StreamUndispatchedCapturesResponse); - // BindingTaskCreator + // BindingTaskCreator: claims the binding's dispatch of a capture and + // enqueues its task in one transaction, so a failure leaves neither and a + // replayed delivery is refused with AlreadyExists. rpc EnqueueBindingTask(EnqueueBindingTaskRequest) returns (EnqueueBindingTaskResponse); // WorkflowCaller: a workflow.call step starts its callee and, with @@ -1246,13 +1247,6 @@ message RecordDispatchRequest { } message RecordDispatchResponse {} -message SetDispatchTaskRequest { - string binding_id = 1; - string capture_id = 2; - int64 task_id = 3; -} -message SetDispatchTaskResponse {} - // ListDispatchesRequest filters the binding dispatch ledger; empty fields // match any row. message ListDispatchesRequest { @@ -1299,6 +1293,7 @@ message EnqueueBindingTaskRequest { string binding_id = 7; int64 binding_version = 8; string inputs_json = 9; + string capture_id = 10; } message EnqueueBindingTaskResponse { Task task = 1; } From b8f8f9a272929766de4f577325a59be05cbe0d12 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 11 Oct 2026 14:21:27 +0000 Subject: [PATCH 2/2] fix(postgres): allocate synthetic issue numbers from a per-repo counter InsertChatTask and EnqueueCallTask computed MAX(issue_number)+1, so concurrent inserts in one repository took the same number and the second failed on the unique key. Both now bump a chat_issue_numbers row, seeded from the existing maxima, whose row lock serializes allocation. --- .../migrations/0045_chat_issue_numbers.sql | 19 ++++++++++ .../postgres/postgresdb/call_tasks.sql.go | 29 +++++++-------- .../postgres/postgresdb/models.go | 6 ++++ .../postgres/postgresdb/tasks.sql.go | 35 ++++++++++--------- .../postgres/queries/call_tasks.sql | 17 ++++----- .../infrastructure/postgres/queries/tasks.sql | 19 +++++----- internal/infrastructure/postgres/store.go | 2 +- 7 files changed, 78 insertions(+), 49 deletions(-) create mode 100644 internal/infrastructure/postgres/migrations/0045_chat_issue_numbers.sql diff --git a/internal/infrastructure/postgres/migrations/0045_chat_issue_numbers.sql b/internal/infrastructure/postgres/migrations/0045_chat_issue_numbers.sql new file mode 100644 index 000000000..1dbd74d6f --- /dev/null +++ b/internal/infrastructure/postgres/migrations/0045_chat_issue_numbers.sql @@ -0,0 +1,19 @@ +-- chat_issue_numbers holds the last synthetic issue number allocated in each +-- repository. Chat and workflow.call tasks take theirs by bumping this row, +-- whose row lock serializes concurrent inserts in one repository, which a +-- MAX(issue_number) read under READ COMMITTED cannot. + +-- +goose Up + +CREATE TABLE chat_issue_numbers ( + owner text NOT NULL, + repo text NOT NULL, + last_number bigint NOT NULL, + PRIMARY KEY (owner, repo) +); +INSERT INTO chat_issue_numbers (owner, repo, last_number) +SELECT owner, repo, MAX(issue_number) FROM tasks WHERE source = 'chat' GROUP BY owner, repo; + +-- +goose Down + +DROP TABLE chat_issue_numbers; diff --git a/internal/infrastructure/postgres/postgresdb/call_tasks.sql.go b/internal/infrastructure/postgres/postgresdb/call_tasks.sql.go index 6009cd1bf..b88ecdc13 100644 --- a/internal/infrastructure/postgres/postgresdb/call_tasks.sql.go +++ b/internal/infrastructure/postgres/postgresdb/call_tasks.sql.go @@ -25,35 +25,35 @@ func (q *Queries) CallStatusDetail(ctx context.Context, taskID int64) (string, e const enqueueCallTask = `-- name: EnqueueCallTask :one WITH caller AS ( SELECT t.id, t.owner, t.repo, t.issue_number, t.title, t.body, t.labels, t.status, t.workflow, t.branch, t.plan, t.notes, t.pr_number, t.tokens_used, t.iterations, t.attempt, t.park_reason, t.watch_comment_id, t.park_class, t.remediation_rounds, t.retry_count, t.source, t.identity, t.binding_id, t.binding_version, t.review_payload, t.workflow_definition_version, t.workflow_definition_digest, t.workflow_definition_yaml, t.created_at, t.updated_at, t.review_cursor, t.inputs, t.org_id, t.workspace_id, t.call_parent_task_id, t.call_depth, t.outputs, t.review_gate, t.rereview_rounds, t.retry_mode, t.resume_from, t.resume_results, t.pending_reviews, t.origin, t.call_key, t.outcome_posted FROM tasks t WHERE t.id = $1 FOR UPDATE +), number AS ( + INSERT INTO chat_issue_numbers (owner, repo, last_number) + SELECT caller.owner, caller.repo, $8::bigint + 1 FROM caller + ON CONFLICT (owner, repo) DO UPDATE SET last_number = chat_issue_numbers.last_number + 1 + RETURNING last_number ) INSERT INTO tasks (owner, repo, issue_number, title, body, labels, workflow, source, identity, org_id, workspace_id, inputs, call_parent_task_id, call_depth, call_key) SELECT caller.owner, caller.repo, - COALESCE(( - SELECT MAX(existing.issue_number) FROM tasks existing - WHERE existing.owner = caller.owner - AND existing.repo = caller.repo - AND existing.source = 'chat' - ), $2::bigint) + 1, - $3, $4, 'chat', $5, 'chat', caller.identity, - caller.org_id, caller.workspace_id, $6, - caller.id, caller.call_depth + 1, $7 -FROM caller -WHERE caller.status = 'running' AND caller.call_depth + 1 <= $8::int + number.last_number, + $2, $3, 'chat', $4, 'chat', caller.identity, + caller.org_id, caller.workspace_id, $5, + caller.id, caller.call_depth + 1, $6 +FROM caller, number +WHERE caller.status = 'running' AND caller.call_depth + 1 <= $7::int ON CONFLICT (call_parent_task_id, call_key) WHERE call_key <> '' AND status NOT IN ('dead', 'closed_wont_do') DO UPDATE SET call_key = EXCLUDED.call_key RETURNING id, owner, repo, issue_number, title, body, labels, status, workflow, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth, outputs, review_gate, rereview_rounds, retry_mode, resume_from, resume_results, pending_reviews, origin, call_key, outcome_posted ` type EnqueueCallTaskParams struct { ID int64 - FallbackIssueNumber int64 Title string Body string Workflow string Inputs string CallKey string MaxDepth int32 + FallbackIssueNumber int64 } // The callee of a workflow.call step (docs/prds/workflow-calls.md) @@ -64,17 +64,18 @@ type EnqueueCallTaskParams struct { // child that ended dead or closed_wont_do freed its key -- and the WHERE below // still decides whether the caller may call at all: a caller that is missing, // not running or past the depth limit inserts nothing and returns no row, -// conflict or not. +// conflict or not. The issue number comes from chat_issue_numbers, as for +// InsertChatTask. func (q *Queries) EnqueueCallTask(ctx context.Context, arg EnqueueCallTaskParams) (Task, error) { row := q.db.QueryRow(ctx, enqueueCallTask, arg.ID, - arg.FallbackIssueNumber, arg.Title, arg.Body, arg.Workflow, arg.Inputs, arg.CallKey, arg.MaxDepth, + arg.FallbackIssueNumber, ) var i Task err := row.Scan( diff --git a/internal/infrastructure/postgres/postgresdb/models.go b/internal/infrastructure/postgres/postgresdb/models.go index 0ce40cd2e..0258a02a9 100644 --- a/internal/infrastructure/postgres/postgresdb/models.go +++ b/internal/infrastructure/postgres/postgresdb/models.go @@ -114,6 +114,12 @@ type ChannelStatus struct { ObservedAt time.Time } +type ChatIssueNumber struct { + Owner string + Repo string + LastNumber int64 +} + type ConfigSnapshot struct { ID int64 Schema string diff --git a/internal/infrastructure/postgres/postgresdb/tasks.sql.go b/internal/infrastructure/postgres/postgresdb/tasks.sql.go index 8a5f36734..fc6b66086 100644 --- a/internal/infrastructure/postgres/postgresdb/tasks.sql.go +++ b/internal/infrastructure/postgres/postgresdb/tasks.sql.go @@ -389,33 +389,32 @@ func (q *Queries) EnqueueIssue(ctx context.Context, arg EnqueueIssueParams) (int } const insertChatTask = `-- name: InsertChatTask :one +WITH number AS ( + INSERT INTO chat_issue_numbers (owner, repo, last_number) + VALUES ($1, $2, $10::bigint + 1) + ON CONFLICT (owner, repo) DO UPDATE SET last_number = chat_issue_numbers.last_number + 1 + RETURNING last_number +) INSERT INTO tasks (owner, repo, issue_number, title, body, labels, workflow, source, identity, org_id, inputs, origin) SELECT - $1, $2, - COALESCE(( - SELECT MAX(existing.issue_number) FROM tasks existing - WHERE existing.owner = $1 - AND existing.repo = $2 - AND existing.source = 'chat' - ), $3) + 1, - $4, $5, 'chat', $6, 'chat', $7, + $1, $2, number.last_number, + $3, $4, 'chat', $5, 'chat', $6, owner_org.id, - $8, - $9 -FROM (SELECT COALESCE( - (SELECT a.org_id FROM org_agents a WHERE a.identity_id = $7), - (SELECT m.org_id FROM memberships m WHERE m.identity_id = $7 + $7, + $8 +FROM number, (SELECT COALESCE( + (SELECT a.org_id FROM org_agents a WHERE a.identity_id = $6), + (SELECT m.org_id FROM memberships m WHERE m.identity_id = $6 ORDER BY m.created_at, m.org_id, m.workspace_id NULLS LAST LIMIT 1), 'org-sys' ) AS id) AS owner_org -WHERE $10::text IS NULL OR owner_org.id = $10 +WHERE $9::text IS NULL OR owner_org.id = $9 RETURNING id, owner, repo, issue_number, title, body, labels, status, workflow, branch, plan, notes, pr_number, tokens_used, iterations, attempt, park_reason, watch_comment_id, park_class, remediation_rounds, retry_count, source, identity, binding_id, binding_version, review_payload, workflow_definition_version, workflow_definition_digest, workflow_definition_yaml, created_at, updated_at, review_cursor, inputs, org_id, workspace_id, call_parent_task_id, call_depth, outputs, review_gate, rereview_rounds, retry_mode, resume_from, resume_results, pending_reviews, origin, call_key, outcome_posted ` type InsertChatTaskParams struct { Owner string Repo string - FallbackIssueNumber int64 Title string Body string Workflow string @@ -423,10 +422,12 @@ type InsertChatTaskParams struct { Inputs string Origin string ScopeOrg pgtype.Text + FallbackIssueNumber int64 } // The synthetic issue number keeps chat-sourced tasks off the forge's real -// issue numbers; this allocator is the single source of truth for it. +// issue numbers; chat_issue_numbers is the single source of truth for it, and +// bumping its row serializes concurrent inserts in one repository. // fallback_issue_number is only the seed for a repo's first chat task -- the // passed value is not the issue number that lands. // inputs is the chat task's own workflow inputs; a binding dispatch passes @@ -438,7 +439,6 @@ func (q *Queries) InsertChatTask(ctx context.Context, arg InsertChatTaskParams) row := q.db.QueryRow(ctx, insertChatTask, arg.Owner, arg.Repo, - arg.FallbackIssueNumber, arg.Title, arg.Body, arg.Workflow, @@ -446,6 +446,7 @@ func (q *Queries) InsertChatTask(ctx context.Context, arg InsertChatTaskParams) arg.Inputs, arg.Origin, arg.ScopeOrg, + arg.FallbackIssueNumber, ) var i Task err := row.Scan( diff --git a/internal/infrastructure/postgres/queries/call_tasks.sql b/internal/infrastructure/postgres/queries/call_tasks.sql index dfa25fce1..ea49ae0c4 100644 --- a/internal/infrastructure/postgres/queries/call_tasks.sql +++ b/internal/infrastructure/postgres/queries/call_tasks.sql @@ -7,24 +7,25 @@ -- child that ended dead or closed_wont_do freed its key -- and the WHERE below -- still decides whether the caller may call at all: a caller that is missing, -- not running or past the depth limit inserts nothing and returns no row, --- conflict or not. +-- conflict or not. The issue number comes from chat_issue_numbers, as for +-- InsertChatTask. WITH caller AS ( SELECT t.* FROM tasks t WHERE t.id = $1 FOR UPDATE +), number AS ( + INSERT INTO chat_issue_numbers (owner, repo, last_number) + SELECT caller.owner, caller.repo, sqlc.arg('fallback_issue_number')::bigint + 1 FROM caller + ON CONFLICT (owner, repo) DO UPDATE SET last_number = chat_issue_numbers.last_number + 1 + RETURNING last_number ) INSERT INTO tasks (owner, repo, issue_number, title, body, labels, workflow, source, identity, org_id, workspace_id, inputs, call_parent_task_id, call_depth, call_key) SELECT caller.owner, caller.repo, - COALESCE(( - SELECT MAX(existing.issue_number) FROM tasks existing - WHERE existing.owner = caller.owner - AND existing.repo = caller.repo - AND existing.source = 'chat' - ), sqlc.arg('fallback_issue_number')::bigint) + 1, + number.last_number, sqlc.arg(title), sqlc.arg(body), 'chat', sqlc.arg(workflow), 'chat', caller.identity, caller.org_id, caller.workspace_id, sqlc.arg(inputs), caller.id, caller.call_depth + 1, sqlc.arg('call_key') -FROM caller +FROM caller, number WHERE caller.status = 'running' AND caller.call_depth + 1 <= sqlc.arg('max_depth')::int ON CONFLICT (call_parent_task_id, call_key) WHERE call_key <> '' AND status NOT IN ('dead', 'closed_wont_do') DO UPDATE SET call_key = EXCLUDED.call_key RETURNING *; diff --git a/internal/infrastructure/postgres/queries/tasks.sql b/internal/infrastructure/postgres/queries/tasks.sql index c3734e519..6c0231d5a 100644 --- a/internal/infrastructure/postgres/queries/tasks.sql +++ b/internal/infrastructure/postgres/queries/tasks.sql @@ -57,7 +57,8 @@ SELECT status, count(*)::int AS count FROM tasks WHERE (sqlc.narg(scope_org)::te -- name: InsertChatTask :one -- The synthetic issue number keeps chat-sourced tasks off the forge's real --- issue numbers; this allocator is the single source of truth for it. +-- issue numbers; chat_issue_numbers is the single source of truth for it, and +-- bumping its row serializes concurrent inserts in one repository. -- fallback_issue_number is only the seed for a repo's first chat task -- the -- passed value is not the issue number that lands. -- inputs is the chat task's own workflow inputs; a binding dispatch passes @@ -65,20 +66,20 @@ SELECT status, count(*)::int AS count FROM tasks WHERE (sqlc.narg(scope_org)::te -- StampTaskBinding adds only the provenance. -- The task runs in its identity's org; a caller confined to another org -- inserts nothing, so it cannot start work under an identity it does not own. +WITH number AS ( + INSERT INTO chat_issue_numbers (owner, repo, last_number) + VALUES (sqlc.arg(owner), sqlc.arg(repo), sqlc.arg(fallback_issue_number)::bigint + 1) + ON CONFLICT (owner, repo) DO UPDATE SET last_number = chat_issue_numbers.last_number + 1 + RETURNING last_number +) INSERT INTO tasks (owner, repo, issue_number, title, body, labels, workflow, source, identity, org_id, inputs, origin) SELECT - sqlc.arg(owner), sqlc.arg(repo), - COALESCE(( - SELECT MAX(existing.issue_number) FROM tasks existing - WHERE existing.owner = sqlc.arg(owner) - AND existing.repo = sqlc.arg(repo) - AND existing.source = 'chat' - ), sqlc.arg(fallback_issue_number)) + 1, + sqlc.arg(owner), sqlc.arg(repo), number.last_number, sqlc.arg(title), sqlc.arg(body), 'chat', sqlc.arg(workflow), 'chat', sqlc.arg(identity), owner_org.id, sqlc.arg(inputs), sqlc.arg(origin) -FROM (SELECT COALESCE( +FROM number, (SELECT COALESCE( (SELECT a.org_id FROM org_agents a WHERE a.identity_id = sqlc.arg(identity)), (SELECT m.org_id FROM memberships m WHERE m.identity_id = sqlc.arg(identity) ORDER BY m.created_at, m.org_id, m.workspace_id NULLS LAST LIMIT 1), diff --git a/internal/infrastructure/postgres/store.go b/internal/infrastructure/postgres/store.go index 25edb6673..42b202cf7 100644 --- a/internal/infrastructure/postgres/store.go +++ b/internal/infrastructure/postgres/store.go @@ -62,7 +62,7 @@ func guardTransition(ctx context.Context, q *postgresdb.Queries, taskID int64, f func (s *Store) Close() error { return nil } // syntheticIssueNumberBase is the seed for a repo's first chat task. The -// COALESCE allocator adds one to the passed fallback, so the fallback here is +// allocator adds one to the passed fallback, so the fallback here is // base-1 and the first chat task lands on exactly base: the reserved // JSON-safe floor that keeps synthetic issue numbers clear of real ones. const syntheticIssueNumberBase = 1_000_000_000_000_000