diff --git a/internal/contracts/gateway/v1/chat.pb.go b/internal/contracts/gateway/v1/chat.pb.go index 989a0055b..9ecf4ec2f 100644 --- a/internal/contracts/gateway/v1/chat.pb.go +++ b/internal/contracts/gateway/v1/chat.pb.go @@ -2430,86 +2430,6 @@ func (x *ApplyOperatorTaskActionResponse) GetMessage() string { return "" } -type SaveSessionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SaveSessionResponse) Reset() { - *x = SaveSessionResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SaveSessionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SaveSessionResponse) ProtoMessage() {} - -func (x *SaveSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[34] - 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 SaveSessionResponse.ProtoReflect.Descriptor instead. -func (*SaveSessionResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{34} -} - -type SaveSessionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SaveSessionRequest) Reset() { - *x = SaveSessionRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SaveSessionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SaveSessionRequest) ProtoMessage() {} - -func (x *SaveSessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[35] - 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 SaveSessionRequest.ProtoReflect.Descriptor instead. -func (*SaveSessionRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{35} -} - -func (x *SaveSessionRequest) GetSession() *Session { - if x != nil { - return x.Session - } - return nil -} - type GetSessionsByChannelRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` @@ -2520,7 +2440,7 @@ type GetSessionsByChannelRequest struct { func (x *GetSessionsByChannelRequest) Reset() { *x = GetSessionsByChannelRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[36] + mi := &file_gateway_v1_chat_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2532,7 +2452,7 @@ func (x *GetSessionsByChannelRequest) String() string { func (*GetSessionsByChannelRequest) ProtoMessage() {} func (x *GetSessionsByChannelRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[36] + mi := &file_gateway_v1_chat_proto_msgTypes[34] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2545,7 +2465,7 @@ func (x *GetSessionsByChannelRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSessionsByChannelRequest.ProtoReflect.Descriptor instead. func (*GetSessionsByChannelRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{36} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{34} } func (x *GetSessionsByChannelRequest) GetPlatform() string { @@ -2571,7 +2491,7 @@ type GetSessionsByChannelResponse struct { func (x *GetSessionsByChannelResponse) Reset() { *x = GetSessionsByChannelResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[37] + mi := &file_gateway_v1_chat_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2583,7 +2503,7 @@ func (x *GetSessionsByChannelResponse) String() string { func (*GetSessionsByChannelResponse) ProtoMessage() {} func (x *GetSessionsByChannelResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[37] + mi := &file_gateway_v1_chat_proto_msgTypes[35] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2596,7 +2516,7 @@ func (x *GetSessionsByChannelResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSessionsByChannelResponse.ProtoReflect.Descriptor instead. func (*GetSessionsByChannelResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{37} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{35} } func (x *GetSessionsByChannelResponse) GetSessions() []*Session { @@ -2606,122 +2526,6 @@ func (x *GetSessionsByChannelResponse) GetSessions() []*Session { return nil } -type ListSessionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Sessions []*Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ListSessionsResponse) Reset() { - *x = ListSessionsResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ListSessionsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListSessionsResponse) ProtoMessage() {} - -func (x *ListSessionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[38] - 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 ListSessionsResponse.ProtoReflect.Descriptor instead. -func (*ListSessionsResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{38} -} - -func (x *ListSessionsResponse) GetSessions() []*Session { - if x != nil { - return x.Sessions - } - return nil -} - -type DeleteSessionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteSessionResponse) Reset() { - *x = DeleteSessionResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteSessionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteSessionResponse) ProtoMessage() {} - -func (x *DeleteSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[39] - 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 DeleteSessionResponse.ProtoReflect.Descriptor instead. -func (*DeleteSessionResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{39} -} - -type TouchSessionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *TouchSessionResponse) Reset() { - *x = TouchSessionResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *TouchSessionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TouchSessionResponse) ProtoMessage() {} - -func (x *TouchSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[40] - 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 TouchSessionResponse.ProtoReflect.Descriptor instead. -func (*TouchSessionResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{40} -} - type SaveMessageResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields @@ -2730,7 +2534,7 @@ type SaveMessageResponse struct { func (x *SaveMessageResponse) Reset() { *x = SaveMessageResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[41] + mi := &file_gateway_v1_chat_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2742,7 +2546,7 @@ func (x *SaveMessageResponse) String() string { func (*SaveMessageResponse) ProtoMessage() {} func (x *SaveMessageResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[41] + mi := &file_gateway_v1_chat_proto_msgTypes[36] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2755,203 +2559,7 @@ func (x *SaveMessageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SaveMessageResponse.ProtoReflect.Descriptor instead. func (*SaveMessageResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{41} -} - -type SaveMessagesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SaveMessagesResponse) Reset() { - *x = SaveMessagesResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SaveMessagesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SaveMessagesResponse) ProtoMessage() {} - -func (x *SaveMessagesResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[42] - 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 SaveMessagesResponse.ProtoReflect.Descriptor instead. -func (*SaveMessagesResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{42} -} - -type ReplaceMessagesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ReplaceMessagesResponse) Reset() { - *x = ReplaceMessagesResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ReplaceMessagesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReplaceMessagesResponse) ProtoMessage() {} - -func (x *ReplaceMessagesResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[43] - 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 ReplaceMessagesResponse.ProtoReflect.Descriptor instead. -func (*ReplaceMessagesResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{43} -} - -type DeleteSessionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteSessionRequest) Reset() { - *x = DeleteSessionRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteSessionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteSessionRequest) ProtoMessage() {} - -func (x *DeleteSessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[44] - 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 DeleteSessionRequest.ProtoReflect.Descriptor instead. -func (*DeleteSessionRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{44} -} - -func (x *DeleteSessionRequest) GetSessionId() string { - if x != nil { - return x.SessionId - } - return "" -} - -type TouchSessionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *TouchSessionRequest) Reset() { - *x = TouchSessionRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *TouchSessionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TouchSessionRequest) ProtoMessage() {} - -func (x *TouchSessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[45] - 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 TouchSessionRequest.ProtoReflect.Descriptor instead. -func (*TouchSessionRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{45} -} - -func (x *TouchSessionRequest) GetSessionId() string { - if x != nil { - return x.SessionId - } - return "" -} - -type ListSessionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ListSessionsRequest) Reset() { - *x = ListSessionsRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ListSessionsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListSessionsRequest) ProtoMessage() {} - -func (x *ListSessionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[46] - 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 ListSessionsRequest.ProtoReflect.Descriptor instead. -func (*ListSessionsRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{46} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{36} } type SaveMessageRequest struct { @@ -2964,7 +2572,7 @@ type SaveMessageRequest struct { func (x *SaveMessageRequest) Reset() { *x = SaveMessageRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[47] + mi := &file_gateway_v1_chat_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2976,7 +2584,7 @@ func (x *SaveMessageRequest) String() string { func (*SaveMessageRequest) ProtoMessage() {} func (x *SaveMessageRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[47] + mi := &file_gateway_v1_chat_proto_msgTypes[37] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2989,7 +2597,7 @@ func (x *SaveMessageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SaveMessageRequest.ProtoReflect.Descriptor instead. func (*SaveMessageRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{47} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{37} } func (x *SaveMessageRequest) GetSessionId() string { @@ -3006,438 +2614,6 @@ func (x *SaveMessageRequest) GetMessage() *Message { return nil } -type DeleteRecentMessagesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` - Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteRecentMessagesRequest) Reset() { - *x = DeleteRecentMessagesRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteRecentMessagesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteRecentMessagesRequest) ProtoMessage() {} - -func (x *DeleteRecentMessagesRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[48] - 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 DeleteRecentMessagesRequest.ProtoReflect.Descriptor instead. -func (*DeleteRecentMessagesRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{48} -} - -func (x *DeleteRecentMessagesRequest) GetSessionId() string { - if x != nil { - return x.SessionId - } - return "" -} - -func (x *DeleteRecentMessagesRequest) GetLimit() int64 { - if x != nil { - return x.Limit - } - return 0 -} - -type DeleteRecentMessagesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Deleted int64 `protobuf:"varint,1,opt,name=deleted,proto3" json:"deleted,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteRecentMessagesResponse) Reset() { - *x = DeleteRecentMessagesResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteRecentMessagesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteRecentMessagesResponse) ProtoMessage() {} - -func (x *DeleteRecentMessagesResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[49] - 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 DeleteRecentMessagesResponse.ProtoReflect.Descriptor instead. -func (*DeleteRecentMessagesResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{49} -} - -func (x *DeleteRecentMessagesResponse) GetDeleted() int64 { - if x != nil { - return x.Deleted - } - return 0 -} - -type MessageCountRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *MessageCountRequest) Reset() { - *x = MessageCountRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *MessageCountRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MessageCountRequest) ProtoMessage() {} - -func (x *MessageCountRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[50] - 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 MessageCountRequest.ProtoReflect.Descriptor instead. -func (*MessageCountRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{50} -} - -func (x *MessageCountRequest) GetSessionId() string { - if x != nil { - return x.SessionId - } - return "" -} - -type MessageCountResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *MessageCountResponse) Reset() { - *x = MessageCountResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *MessageCountResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MessageCountResponse) ProtoMessage() {} - -func (x *MessageCountResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[51] - 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 MessageCountResponse.ProtoReflect.Descriptor instead. -func (*MessageCountResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{51} -} - -func (x *MessageCountResponse) GetCount() int64 { - if x != nil { - return x.Count - } - return 0 -} - -type SaveMessagesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` - Messages []*Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SaveMessagesRequest) Reset() { - *x = SaveMessagesRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SaveMessagesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SaveMessagesRequest) ProtoMessage() {} - -func (x *SaveMessagesRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[52] - 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 SaveMessagesRequest.ProtoReflect.Descriptor instead. -func (*SaveMessagesRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{52} -} - -func (x *SaveMessagesRequest) GetSessionId() string { - if x != nil { - return x.SessionId - } - return "" -} - -func (x *SaveMessagesRequest) GetMessages() []*Message { - if x != nil { - return x.Messages - } - return nil -} - -type ReplaceMessagesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` - Messages []*Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` - Superseded []string `protobuf:"bytes,3,rep,name=superseded,proto3" json:"superseded,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ReplaceMessagesRequest) Reset() { - *x = ReplaceMessagesRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ReplaceMessagesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReplaceMessagesRequest) ProtoMessage() {} - -func (x *ReplaceMessagesRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[53] - 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 ReplaceMessagesRequest.ProtoReflect.Descriptor instead. -func (*ReplaceMessagesRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{53} -} - -func (x *ReplaceMessagesRequest) GetSessionId() string { - if x != nil { - return x.SessionId - } - return "" -} - -func (x *ReplaceMessagesRequest) GetMessages() []*Message { - if x != nil { - return x.Messages - } - return nil -} - -func (x *ReplaceMessagesRequest) GetSuperseded() []string { - if x != nil { - return x.Superseded - } - return nil -} - -type SearchMessagesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` - Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` - Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SearchMessagesRequest) Reset() { - *x = SearchMessagesRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SearchMessagesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SearchMessagesRequest) ProtoMessage() {} - -func (x *SearchMessagesRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[54] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SearchMessagesRequest.ProtoReflect.Descriptor instead. -func (*SearchMessagesRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{54} -} - -func (x *SearchMessagesRequest) GetSessionId() string { - if x != nil { - return x.SessionId - } - return "" -} - -func (x *SearchMessagesRequest) GetQuery() string { - if x != nil { - return x.Query - } - return "" -} - -func (x *SearchMessagesRequest) GetLimit() int64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *SearchMessagesRequest) GetOffset() int64 { - if x != nil { - return x.Offset - } - return 0 -} - -type SearchMessagesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` - NextOffset int64 `protobuf:"varint,2,opt,name=next_offset,json=nextOffset,proto3" json:"next_offset,omitempty"` - HasMore bool `protobuf:"varint,3,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` - Truncated bool `protobuf:"varint,4,opt,name=truncated,proto3" json:"truncated,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SearchMessagesResponse) Reset() { - *x = SearchMessagesResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SearchMessagesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SearchMessagesResponse) ProtoMessage() {} - -func (x *SearchMessagesResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[55] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SearchMessagesResponse.ProtoReflect.Descriptor instead. -func (*SearchMessagesResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{55} -} - -func (x *SearchMessagesResponse) GetMessages() []*Message { - if x != nil { - return x.Messages - } - return nil -} - -func (x *SearchMessagesResponse) GetNextOffset() int64 { - if x != nil { - return x.NextOffset - } - return 0 -} - -func (x *SearchMessagesResponse) GetHasMore() bool { - if x != nil { - return x.HasMore - } - return false -} - -func (x *SearchMessagesResponse) GetTruncated() bool { - if x != nil { - return x.Truncated - } - return false -} - // ListSkills reports the live skill catalogue the Gateway runs, as the // dashboard's Skills page shows it. source labels where each skill was // discovered (project, shared, user-global or stored). @@ -3449,7 +2625,7 @@ type ListSkillsRequest struct { func (x *ListSkillsRequest) Reset() { *x = ListSkillsRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[56] + mi := &file_gateway_v1_chat_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3461,7 +2637,7 @@ func (x *ListSkillsRequest) String() string { func (*ListSkillsRequest) ProtoMessage() {} func (x *ListSkillsRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[56] + mi := &file_gateway_v1_chat_proto_msgTypes[38] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3474,7 +2650,7 @@ func (x *ListSkillsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListSkillsRequest.ProtoReflect.Descriptor instead. func (*ListSkillsRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{56} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{38} } type ListSkillsResponse struct { @@ -3486,7 +2662,7 @@ type ListSkillsResponse struct { func (x *ListSkillsResponse) Reset() { *x = ListSkillsResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[57] + mi := &file_gateway_v1_chat_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3498,7 +2674,7 @@ func (x *ListSkillsResponse) String() string { func (*ListSkillsResponse) ProtoMessage() {} func (x *ListSkillsResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[57] + mi := &file_gateway_v1_chat_proto_msgTypes[39] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3511,7 +2687,7 @@ func (x *ListSkillsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListSkillsResponse.ProtoReflect.Descriptor instead. func (*ListSkillsResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{57} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{39} } func (x *ListSkillsResponse) GetSkills() []*Skill { @@ -3533,7 +2709,7 @@ type Skill struct { func (x *Skill) Reset() { *x = Skill{} - mi := &file_gateway_v1_chat_proto_msgTypes[58] + mi := &file_gateway_v1_chat_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3545,7 +2721,7 @@ func (x *Skill) String() string { func (*Skill) ProtoMessage() {} func (x *Skill) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[58] + mi := &file_gateway_v1_chat_proto_msgTypes[40] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3558,7 +2734,7 @@ func (x *Skill) ProtoReflect() protoreflect.Message { // Deprecated: Use Skill.ProtoReflect.Descriptor instead. func (*Skill) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{58} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{40} } func (x *Skill) GetName() string { @@ -3599,7 +2775,7 @@ type CuratorHealthRequest struct { func (x *CuratorHealthRequest) Reset() { *x = CuratorHealthRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[59] + mi := &file_gateway_v1_chat_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3611,7 +2787,7 @@ func (x *CuratorHealthRequest) String() string { func (*CuratorHealthRequest) ProtoMessage() {} func (x *CuratorHealthRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[59] + mi := &file_gateway_v1_chat_proto_msgTypes[41] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3624,7 +2800,7 @@ func (x *CuratorHealthRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CuratorHealthRequest.ProtoReflect.Descriptor instead. func (*CuratorHealthRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{59} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{41} } type CuratorHealthResponse struct { @@ -3636,7 +2812,7 @@ type CuratorHealthResponse struct { func (x *CuratorHealthResponse) Reset() { *x = CuratorHealthResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[60] + mi := &file_gateway_v1_chat_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3648,7 +2824,7 @@ func (x *CuratorHealthResponse) String() string { func (*CuratorHealthResponse) ProtoMessage() {} func (x *CuratorHealthResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[60] + mi := &file_gateway_v1_chat_proto_msgTypes[42] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3661,7 +2837,7 @@ func (x *CuratorHealthResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CuratorHealthResponse.ProtoReflect.Descriptor instead. func (*CuratorHealthResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{60} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{42} } func (x *CuratorHealthResponse) GetCurators() []*Curator { @@ -3685,7 +2861,7 @@ type Curator struct { func (x *Curator) Reset() { *x = Curator{} - mi := &file_gateway_v1_chat_proto_msgTypes[61] + mi := &file_gateway_v1_chat_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3697,7 +2873,7 @@ func (x *Curator) String() string { func (*Curator) ProtoMessage() {} func (x *Curator) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[61] + mi := &file_gateway_v1_chat_proto_msgTypes[43] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3710,7 +2886,7 @@ func (x *Curator) ProtoReflect() protoreflect.Message { // Deprecated: Use Curator.ProtoReflect.Descriptor instead. func (*Curator) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{61} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{43} } func (x *Curator) GetName() string { @@ -3767,7 +2943,7 @@ type CuratorAction struct { func (x *CuratorAction) Reset() { *x = CuratorAction{} - mi := &file_gateway_v1_chat_proto_msgTypes[62] + mi := &file_gateway_v1_chat_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3779,7 +2955,7 @@ func (x *CuratorAction) String() string { func (*CuratorAction) ProtoMessage() {} func (x *CuratorAction) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[62] + mi := &file_gateway_v1_chat_proto_msgTypes[44] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3792,7 +2968,7 @@ func (x *CuratorAction) ProtoReflect() protoreflect.Message { // Deprecated: Use CuratorAction.ProtoReflect.Descriptor instead. func (*CuratorAction) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{62} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{44} } func (x *CuratorAction) GetAt() *timestamppb.Timestamp { @@ -3834,7 +3010,7 @@ type ReloadChannelRequest struct { func (x *ReloadChannelRequest) Reset() { *x = ReloadChannelRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[63] + mi := &file_gateway_v1_chat_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3846,7 +3022,7 @@ func (x *ReloadChannelRequest) String() string { func (*ReloadChannelRequest) ProtoMessage() {} func (x *ReloadChannelRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[63] + mi := &file_gateway_v1_chat_proto_msgTypes[45] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3859,7 +3035,7 @@ func (x *ReloadChannelRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReloadChannelRequest.ProtoReflect.Descriptor instead. func (*ReloadChannelRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{63} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{45} } func (x *ReloadChannelRequest) GetChannelId() string { @@ -3877,7 +3053,7 @@ type ReloadChannelResponse struct { func (x *ReloadChannelResponse) Reset() { *x = ReloadChannelResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[64] + mi := &file_gateway_v1_chat_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3889,7 +3065,7 @@ func (x *ReloadChannelResponse) String() string { func (*ReloadChannelResponse) ProtoMessage() {} func (x *ReloadChannelResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[64] + mi := &file_gateway_v1_chat_proto_msgTypes[46] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3902,7 +3078,7 @@ func (x *ReloadChannelResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReloadChannelResponse.ProtoReflect.Descriptor instead. func (*ReloadChannelResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{64} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{46} } type RecentLogsRequest struct { @@ -3915,7 +3091,7 @@ type RecentLogsRequest struct { func (x *RecentLogsRequest) Reset() { *x = RecentLogsRequest{} - mi := &file_gateway_v1_chat_proto_msgTypes[65] + mi := &file_gateway_v1_chat_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3927,7 +3103,7 @@ func (x *RecentLogsRequest) String() string { func (*RecentLogsRequest) ProtoMessage() {} func (x *RecentLogsRequest) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[65] + mi := &file_gateway_v1_chat_proto_msgTypes[47] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3940,7 +3116,7 @@ func (x *RecentLogsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecentLogsRequest.ProtoReflect.Descriptor instead. func (*RecentLogsRequest) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{65} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{47} } func (x *RecentLogsRequest) GetQuery() *v1.LogQuery { @@ -3966,7 +3142,7 @@ type RecentLogsResponse struct { func (x *RecentLogsResponse) Reset() { *x = RecentLogsResponse{} - mi := &file_gateway_v1_chat_proto_msgTypes[66] + mi := &file_gateway_v1_chat_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3978,7 +3154,7 @@ func (x *RecentLogsResponse) String() string { func (*RecentLogsResponse) ProtoMessage() {} func (x *RecentLogsResponse) ProtoReflect() protoreflect.Message { - mi := &file_gateway_v1_chat_proto_msgTypes[66] + mi := &file_gateway_v1_chat_proto_msgTypes[48] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3991,7 +3167,7 @@ func (x *RecentLogsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecentLogsResponse.ProtoReflect.Descriptor instead. func (*RecentLogsResponse) Descriptor() ([]byte, []int) { - return file_gateway_v1_chat_proto_rawDescGZIP(), []int{66} + return file_gateway_v1_chat_proto_rawDescGZIP(), []int{48} } func (x *RecentLogsResponse) GetSnapshot() *v1.LogSnapshot { @@ -4224,68 +3400,18 @@ const file_gateway_v1_chat_proto_rawDesc = "" + "\x1fApplyOperatorTaskActionResponse\x12\x17\n" + "\atask_id\x18\x01 \x01(\x03R\x06taskId\x12\x16\n" + "\x06action\x18\x02 \x01(\tR\x06action\x12\x18\n" + - "\amessage\x18\x03 \x01(\tR\amessage\"\x15\n" + - "\x13SaveSessionResponse\"C\n" + - "\x12SaveSessionRequest\x12-\n" + - "\asession\x18\x01 \x01(\v2\x13.gateway.v1.SessionR\asession\"X\n" + + "\amessage\x18\x03 \x01(\tR\amessage\"X\n" + "\x1bGetSessionsByChannelRequest\x12\x1a\n" + "\bplatform\x18\x01 \x01(\tR\bplatform\x12\x1d\n" + "\n" + "channel_id\x18\x02 \x01(\tR\tchannelId\"O\n" + "\x1cGetSessionsByChannelResponse\x12/\n" + - "\bsessions\x18\x01 \x03(\v2\x13.gateway.v1.SessionR\bsessions\"G\n" + - "\x14ListSessionsResponse\x12/\n" + - "\bsessions\x18\x01 \x03(\v2\x13.gateway.v1.SessionR\bsessions\"\x17\n" + - "\x15DeleteSessionResponse\"\x16\n" + - "\x14TouchSessionResponse\"\x15\n" + - "\x13SaveMessageResponse\"\x16\n" + - "\x14SaveMessagesResponse\"\x19\n" + - "\x17ReplaceMessagesResponse\"5\n" + - "\x14DeleteSessionRequest\x12\x1d\n" + - "\n" + - "session_id\x18\x01 \x01(\tR\tsessionId\"4\n" + - "\x13TouchSessionRequest\x12\x1d\n" + - "\n" + - "session_id\x18\x01 \x01(\tR\tsessionId\"\x15\n" + - "\x13ListSessionsRequest\"b\n" + + "\bsessions\x18\x01 \x03(\v2\x13.gateway.v1.SessionR\bsessions\"\x15\n" + + "\x13SaveMessageResponse\"b\n" + "\x12SaveMessageRequest\x12\x1d\n" + "\n" + "session_id\x18\x01 \x01(\tR\tsessionId\x12-\n" + - "\amessage\x18\x02 \x01(\v2\x13.gateway.v1.MessageR\amessage\"R\n" + - "\x1bDeleteRecentMessagesRequest\x12\x1d\n" + - "\n" + - "session_id\x18\x01 \x01(\tR\tsessionId\x12\x14\n" + - "\x05limit\x18\x02 \x01(\x03R\x05limit\"8\n" + - "\x1cDeleteRecentMessagesResponse\x12\x18\n" + - "\adeleted\x18\x01 \x01(\x03R\adeleted\"4\n" + - "\x13MessageCountRequest\x12\x1d\n" + - "\n" + - "session_id\x18\x01 \x01(\tR\tsessionId\",\n" + - "\x14MessageCountResponse\x12\x14\n" + - "\x05count\x18\x01 \x01(\x03R\x05count\"e\n" + - "\x13SaveMessagesRequest\x12\x1d\n" + - "\n" + - "session_id\x18\x01 \x01(\tR\tsessionId\x12/\n" + - "\bmessages\x18\x02 \x03(\v2\x13.gateway.v1.MessageR\bmessages\"\x88\x01\n" + - "\x16ReplaceMessagesRequest\x12\x1d\n" + - "\n" + - "session_id\x18\x01 \x01(\tR\tsessionId\x12/\n" + - "\bmessages\x18\x02 \x03(\v2\x13.gateway.v1.MessageR\bmessages\x12\x1e\n" + - "\n" + - "superseded\x18\x03 \x03(\tR\n" + - "superseded\"z\n" + - "\x15SearchMessagesRequest\x12\x1d\n" + - "\n" + - "session_id\x18\x01 \x01(\tR\tsessionId\x12\x14\n" + - "\x05query\x18\x02 \x01(\tR\x05query\x12\x14\n" + - "\x05limit\x18\x03 \x01(\x03R\x05limit\x12\x16\n" + - "\x06offset\x18\x04 \x01(\x03R\x06offset\"\xa3\x01\n" + - "\x16SearchMessagesResponse\x12/\n" + - "\bmessages\x18\x01 \x03(\v2\x13.gateway.v1.MessageR\bmessages\x12\x1f\n" + - "\vnext_offset\x18\x02 \x01(\x03R\n" + - "nextOffset\x12\x19\n" + - "\bhas_more\x18\x03 \x01(\bR\ahasMore\x12\x1c\n" + - "\ttruncated\x18\x04 \x01(\bR\ttruncated\"\x13\n" + + "\amessage\x18\x02 \x01(\v2\x13.gateway.v1.MessageR\amessage\"\x13\n" + "\x11ListSkillsRequest\"?\n" + "\x12ListSkillsResponse\x12)\n" + "\x06skills\x18\x01 \x03(\v2\x11.gateway.v1.SkillR\x06skills\"q\n" + @@ -4318,7 +3444,7 @@ const file_gateway_v1_chat_proto_rawDesc = "" + "\x05query\x18\x01 \x01(\v2\x14.logging.v1.LogQueryR\x05query\x12\x18\n" + "\aservice\x18\x02 \x01(\tR\aservice\"I\n" + "\x12RecentLogsResponse\x123\n" + - "\bsnapshot\x18\x01 \x01(\v2\x17.logging.v1.LogSnapshotR\bsnapshot2\xca\x11\n" + + "\bsnapshot\x18\x01 \x01(\v2\x17.logging.v1.LogSnapshotR\bsnapshot2\xb8\v\n" + "\vChatService\x12K\n" + "\n" + "RecentLogs\x12\x1d.gateway.v1.RecentLogsRequest\x1a\x1e.gateway.v1.RecentLogsResponse\x12E\n" + @@ -4333,18 +3459,9 @@ const file_gateway_v1_chat_proto_rawDesc = "" + "\x06Cancel\x12\x19.gateway.v1.CancelRequest\x1a\x1a.gateway.v1.CancelResponse\x12H\n" + "\tStopTasks\x12\x1c.gateway.v1.StopTasksRequest\x1a\x1d.gateway.v1.StopTasksResponse\x12Z\n" + "\x0fApplyTaskAction\x12\".gateway.v1.ApplyTaskActionRequest\x1a#.gateway.v1.ApplyTaskActionResponse\x12r\n" + - "\x17ApplyOperatorTaskAction\x12*.gateway.v1.ApplyOperatorTaskActionRequest\x1a+.gateway.v1.ApplyOperatorTaskActionResponse\x12N\n" + - "\vSaveSession\x12\x1e.gateway.v1.SaveSessionRequest\x1a\x1f.gateway.v1.SaveSessionResponse\x12i\n" + - "\x14GetSessionsByChannel\x12'.gateway.v1.GetSessionsByChannelRequest\x1a(.gateway.v1.GetSessionsByChannelResponse\x12T\n" + - "\rDeleteSession\x12 .gateway.v1.DeleteSessionRequest\x1a!.gateway.v1.DeleteSessionResponse\x12Q\n" + - "\fTouchSession\x12\x1f.gateway.v1.TouchSessionRequest\x1a .gateway.v1.TouchSessionResponse\x12Q\n" + - "\fListSessions\x12\x1f.gateway.v1.ListSessionsRequest\x1a .gateway.v1.ListSessionsResponse\x12N\n" + - "\vSaveMessage\x12\x1e.gateway.v1.SaveMessageRequest\x1a\x1f.gateway.v1.SaveMessageResponse\x12i\n" + - "\x14DeleteRecentMessages\x12'.gateway.v1.DeleteRecentMessagesRequest\x1a(.gateway.v1.DeleteRecentMessagesResponse\x12Q\n" + - "\fMessageCount\x12\x1f.gateway.v1.MessageCountRequest\x1a .gateway.v1.MessageCountResponse\x12Q\n" + - "\fSaveMessages\x12\x1f.gateway.v1.SaveMessagesRequest\x1a .gateway.v1.SaveMessagesResponse\x12Z\n" + - "\x0fReplaceMessages\x12\".gateway.v1.ReplaceMessagesRequest\x1a#.gateway.v1.ReplaceMessagesResponse\x12W\n" + - "\x0eSearchMessages\x12!.gateway.v1.SearchMessagesRequest\x1a\".gateway.v1.SearchMessagesResponse\x12K\n" + + "\x17ApplyOperatorTaskAction\x12*.gateway.v1.ApplyOperatorTaskActionRequest\x1a+.gateway.v1.ApplyOperatorTaskActionResponse\x12i\n" + + "\x14GetSessionsByChannel\x12'.gateway.v1.GetSessionsByChannelRequest\x1a(.gateway.v1.GetSessionsByChannelResponse\x12N\n" + + "\vSaveMessage\x12\x1e.gateway.v1.SaveMessageRequest\x1a\x1f.gateway.v1.SaveMessageResponse\x12K\n" + "\n" + "ListSkills\x12\x1d.gateway.v1.ListSkillsRequest\x1a\x1e.gateway.v1.ListSkillsResponse\x12T\n" + "\rCuratorHealth\x12 .gateway.v1.CuratorHealthRequest\x1a!.gateway.v1.CuratorHealthResponse\x12T\n" + @@ -4366,7 +3483,7 @@ func file_gateway_v1_chat_proto_rawDescGZIP() []byte { return file_gateway_v1_chat_proto_rawDescData } -var file_gateway_v1_chat_proto_msgTypes = make([]protoimpl.MessageInfo, 68) +var file_gateway_v1_chat_proto_msgTypes = make([]protoimpl.MessageInfo, 50) var file_gateway_v1_chat_proto_goTypes = []any{ (*CheckSecretRequest)(nil), // 0: gateway.v1.CheckSecretRequest (*CheckSecretResponse)(nil), // 1: gateway.v1.CheckSecretResponse @@ -4402,54 +3519,36 @@ var file_gateway_v1_chat_proto_goTypes = []any{ (*ApplyTaskActionResponse)(nil), // 31: gateway.v1.ApplyTaskActionResponse (*ApplyOperatorTaskActionRequest)(nil), // 32: gateway.v1.ApplyOperatorTaskActionRequest (*ApplyOperatorTaskActionResponse)(nil), // 33: gateway.v1.ApplyOperatorTaskActionResponse - (*SaveSessionResponse)(nil), // 34: gateway.v1.SaveSessionResponse - (*SaveSessionRequest)(nil), // 35: gateway.v1.SaveSessionRequest - (*GetSessionsByChannelRequest)(nil), // 36: gateway.v1.GetSessionsByChannelRequest - (*GetSessionsByChannelResponse)(nil), // 37: gateway.v1.GetSessionsByChannelResponse - (*ListSessionsResponse)(nil), // 38: gateway.v1.ListSessionsResponse - (*DeleteSessionResponse)(nil), // 39: gateway.v1.DeleteSessionResponse - (*TouchSessionResponse)(nil), // 40: gateway.v1.TouchSessionResponse - (*SaveMessageResponse)(nil), // 41: gateway.v1.SaveMessageResponse - (*SaveMessagesResponse)(nil), // 42: gateway.v1.SaveMessagesResponse - (*ReplaceMessagesResponse)(nil), // 43: gateway.v1.ReplaceMessagesResponse - (*DeleteSessionRequest)(nil), // 44: gateway.v1.DeleteSessionRequest - (*TouchSessionRequest)(nil), // 45: gateway.v1.TouchSessionRequest - (*ListSessionsRequest)(nil), // 46: gateway.v1.ListSessionsRequest - (*SaveMessageRequest)(nil), // 47: gateway.v1.SaveMessageRequest - (*DeleteRecentMessagesRequest)(nil), // 48: gateway.v1.DeleteRecentMessagesRequest - (*DeleteRecentMessagesResponse)(nil), // 49: gateway.v1.DeleteRecentMessagesResponse - (*MessageCountRequest)(nil), // 50: gateway.v1.MessageCountRequest - (*MessageCountResponse)(nil), // 51: gateway.v1.MessageCountResponse - (*SaveMessagesRequest)(nil), // 52: gateway.v1.SaveMessagesRequest - (*ReplaceMessagesRequest)(nil), // 53: gateway.v1.ReplaceMessagesRequest - (*SearchMessagesRequest)(nil), // 54: gateway.v1.SearchMessagesRequest - (*SearchMessagesResponse)(nil), // 55: gateway.v1.SearchMessagesResponse - (*ListSkillsRequest)(nil), // 56: gateway.v1.ListSkillsRequest - (*ListSkillsResponse)(nil), // 57: gateway.v1.ListSkillsResponse - (*Skill)(nil), // 58: gateway.v1.Skill - (*CuratorHealthRequest)(nil), // 59: gateway.v1.CuratorHealthRequest - (*CuratorHealthResponse)(nil), // 60: gateway.v1.CuratorHealthResponse - (*Curator)(nil), // 61: gateway.v1.Curator - (*CuratorAction)(nil), // 62: gateway.v1.CuratorAction - (*ReloadChannelRequest)(nil), // 63: gateway.v1.ReloadChannelRequest - (*ReloadChannelResponse)(nil), // 64: gateway.v1.ReloadChannelResponse - (*RecentLogsRequest)(nil), // 65: gateway.v1.RecentLogsRequest - (*RecentLogsResponse)(nil), // 66: gateway.v1.RecentLogsResponse - nil, // 67: gateway.v1.SnapshotResponse.ModelsByProviderEntry - (*timestamppb.Timestamp)(nil), // 68: google.protobuf.Timestamp - (*v1.LogQuery)(nil), // 69: logging.v1.LogQuery - (*v1.LogSnapshot)(nil), // 70: logging.v1.LogSnapshot + (*GetSessionsByChannelRequest)(nil), // 34: gateway.v1.GetSessionsByChannelRequest + (*GetSessionsByChannelResponse)(nil), // 35: gateway.v1.GetSessionsByChannelResponse + (*SaveMessageResponse)(nil), // 36: gateway.v1.SaveMessageResponse + (*SaveMessageRequest)(nil), // 37: gateway.v1.SaveMessageRequest + (*ListSkillsRequest)(nil), // 38: gateway.v1.ListSkillsRequest + (*ListSkillsResponse)(nil), // 39: gateway.v1.ListSkillsResponse + (*Skill)(nil), // 40: gateway.v1.Skill + (*CuratorHealthRequest)(nil), // 41: gateway.v1.CuratorHealthRequest + (*CuratorHealthResponse)(nil), // 42: gateway.v1.CuratorHealthResponse + (*Curator)(nil), // 43: gateway.v1.Curator + (*CuratorAction)(nil), // 44: gateway.v1.CuratorAction + (*ReloadChannelRequest)(nil), // 45: gateway.v1.ReloadChannelRequest + (*ReloadChannelResponse)(nil), // 46: gateway.v1.ReloadChannelResponse + (*RecentLogsRequest)(nil), // 47: gateway.v1.RecentLogsRequest + (*RecentLogsResponse)(nil), // 48: gateway.v1.RecentLogsResponse + nil, // 49: gateway.v1.SnapshotResponse.ModelsByProviderEntry + (*timestamppb.Timestamp)(nil), // 50: google.protobuf.Timestamp + (*v1.LogQuery)(nil), // 51: logging.v1.LogQuery + (*v1.LogSnapshot)(nil), // 52: logging.v1.LogSnapshot } var file_gateway_v1_chat_proto_depIdxs = []int32{ - 68, // 0: gateway.v1.Session.created_at:type_name -> google.protobuf.Timestamp - 68, // 1: gateway.v1.Session.last_active_at:type_name -> google.protobuf.Timestamp - 68, // 2: gateway.v1.Message.at:type_name -> google.protobuf.Timestamp + 50, // 0: gateway.v1.Session.created_at:type_name -> google.protobuf.Timestamp + 50, // 1: gateway.v1.Session.last_active_at:type_name -> google.protobuf.Timestamp + 50, // 2: gateway.v1.Message.at:type_name -> google.protobuf.Timestamp 5, // 3: gateway.v1.Message.media:type_name -> gateway.v1.Media 4, // 4: gateway.v1.Turn.tool_calls:type_name -> gateway.v1.ToolCall - 68, // 5: gateway.v1.Turn.created_at:type_name -> google.protobuf.Timestamp - 68, // 6: gateway.v1.Turn.updated_at:type_name -> google.protobuf.Timestamp + 50, // 5: gateway.v1.Turn.created_at:type_name -> google.protobuf.Timestamp + 50, // 6: gateway.v1.Turn.updated_at:type_name -> google.protobuf.Timestamp 2, // 7: gateway.v1.SnapshotResponse.sessions:type_name -> gateway.v1.Session - 67, // 8: gateway.v1.SnapshotResponse.models_by_provider:type_name -> gateway.v1.SnapshotResponse.ModelsByProviderEntry + 49, // 8: gateway.v1.SnapshotResponse.models_by_provider:type_name -> gateway.v1.SnapshotResponse.ModelsByProviderEntry 2, // 9: gateway.v1.GetSessionResponse.session:type_name -> gateway.v1.Session 3, // 10: gateway.v1.RecentMessagesResponse.messages:type_name -> gateway.v1.Message 6, // 11: gateway.v1.RecentTurnsResponse.turns:type_name -> gateway.v1.Turn @@ -4461,80 +3560,57 @@ var file_gateway_v1_chat_proto_depIdxs = []int32{ 4, // 17: gateway.v1.StreamResponse.tool:type_name -> gateway.v1.ToolCall 5, // 18: gateway.v1.StreamResponse.media:type_name -> gateway.v1.Media 19, // 19: gateway.v1.StreamResponse.ask:type_name -> gateway.v1.Ask - 2, // 20: gateway.v1.SaveSessionRequest.session:type_name -> gateway.v1.Session - 2, // 21: gateway.v1.GetSessionsByChannelResponse.sessions:type_name -> gateway.v1.Session - 2, // 22: gateway.v1.ListSessionsResponse.sessions:type_name -> gateway.v1.Session - 3, // 23: gateway.v1.SaveMessageRequest.message:type_name -> gateway.v1.Message - 3, // 24: gateway.v1.SaveMessagesRequest.messages:type_name -> gateway.v1.Message - 3, // 25: gateway.v1.ReplaceMessagesRequest.messages:type_name -> gateway.v1.Message - 3, // 26: gateway.v1.SearchMessagesResponse.messages:type_name -> gateway.v1.Message - 58, // 27: gateway.v1.ListSkillsResponse.skills:type_name -> gateway.v1.Skill - 61, // 28: gateway.v1.CuratorHealthResponse.curators:type_name -> gateway.v1.Curator - 68, // 29: gateway.v1.Curator.last_run_at:type_name -> google.protobuf.Timestamp - 62, // 30: gateway.v1.Curator.recent_actions:type_name -> gateway.v1.CuratorAction - 68, // 31: gateway.v1.CuratorAction.at:type_name -> google.protobuf.Timestamp - 69, // 32: gateway.v1.RecentLogsRequest.query:type_name -> logging.v1.LogQuery - 70, // 33: gateway.v1.RecentLogsResponse.snapshot:type_name -> logging.v1.LogSnapshot - 7, // 34: gateway.v1.SnapshotResponse.ModelsByProviderEntry.value:type_name -> gateway.v1.StringList - 65, // 35: gateway.v1.ChatService.RecentLogs:input_type -> gateway.v1.RecentLogsRequest - 8, // 36: gateway.v1.ChatService.Snapshot:input_type -> gateway.v1.SnapshotRequest - 10, // 37: gateway.v1.ChatService.GetSession:input_type -> gateway.v1.GetSessionRequest - 12, // 38: gateway.v1.ChatService.RecentMessages:input_type -> gateway.v1.RecentMessagesRequest - 14, // 39: gateway.v1.ChatService.RecentTurns:input_type -> gateway.v1.RecentTurnsRequest - 16, // 40: gateway.v1.ChatService.Route:input_type -> gateway.v1.RouteRequest - 18, // 41: gateway.v1.ChatService.Stream:input_type -> gateway.v1.StreamRequest - 23, // 42: gateway.v1.ChatService.Answer:input_type -> gateway.v1.AnswerRequest - 26, // 43: gateway.v1.ChatService.Cancel:input_type -> gateway.v1.CancelRequest - 28, // 44: gateway.v1.ChatService.StopTasks:input_type -> gateway.v1.StopTasksRequest - 30, // 45: gateway.v1.ChatService.ApplyTaskAction:input_type -> gateway.v1.ApplyTaskActionRequest - 32, // 46: gateway.v1.ChatService.ApplyOperatorTaskAction:input_type -> gateway.v1.ApplyOperatorTaskActionRequest - 35, // 47: gateway.v1.ChatService.SaveSession:input_type -> gateway.v1.SaveSessionRequest - 36, // 48: gateway.v1.ChatService.GetSessionsByChannel:input_type -> gateway.v1.GetSessionsByChannelRequest - 44, // 49: gateway.v1.ChatService.DeleteSession:input_type -> gateway.v1.DeleteSessionRequest - 45, // 50: gateway.v1.ChatService.TouchSession:input_type -> gateway.v1.TouchSessionRequest - 46, // 51: gateway.v1.ChatService.ListSessions:input_type -> gateway.v1.ListSessionsRequest - 47, // 52: gateway.v1.ChatService.SaveMessage:input_type -> gateway.v1.SaveMessageRequest - 48, // 53: gateway.v1.ChatService.DeleteRecentMessages:input_type -> gateway.v1.DeleteRecentMessagesRequest - 50, // 54: gateway.v1.ChatService.MessageCount:input_type -> gateway.v1.MessageCountRequest - 52, // 55: gateway.v1.ChatService.SaveMessages:input_type -> gateway.v1.SaveMessagesRequest - 53, // 56: gateway.v1.ChatService.ReplaceMessages:input_type -> gateway.v1.ReplaceMessagesRequest - 54, // 57: gateway.v1.ChatService.SearchMessages:input_type -> gateway.v1.SearchMessagesRequest - 56, // 58: gateway.v1.ChatService.ListSkills:input_type -> gateway.v1.ListSkillsRequest - 59, // 59: gateway.v1.ChatService.CuratorHealth:input_type -> gateway.v1.CuratorHealthRequest - 63, // 60: gateway.v1.ChatService.ReloadChannel:input_type -> gateway.v1.ReloadChannelRequest - 0, // 61: gateway.v1.ChatService.CheckSecret:input_type -> gateway.v1.CheckSecretRequest - 66, // 62: gateway.v1.ChatService.RecentLogs:output_type -> gateway.v1.RecentLogsResponse - 9, // 63: gateway.v1.ChatService.Snapshot:output_type -> gateway.v1.SnapshotResponse - 11, // 64: gateway.v1.ChatService.GetSession:output_type -> gateway.v1.GetSessionResponse - 13, // 65: gateway.v1.ChatService.RecentMessages:output_type -> gateway.v1.RecentMessagesResponse - 15, // 66: gateway.v1.ChatService.RecentTurns:output_type -> gateway.v1.RecentTurnsResponse - 17, // 67: gateway.v1.ChatService.Route:output_type -> gateway.v1.RouteResponse - 25, // 68: gateway.v1.ChatService.Stream:output_type -> gateway.v1.StreamResponse - 24, // 69: gateway.v1.ChatService.Answer:output_type -> gateway.v1.AnswerResponse - 27, // 70: gateway.v1.ChatService.Cancel:output_type -> gateway.v1.CancelResponse - 29, // 71: gateway.v1.ChatService.StopTasks:output_type -> gateway.v1.StopTasksResponse - 31, // 72: gateway.v1.ChatService.ApplyTaskAction:output_type -> gateway.v1.ApplyTaskActionResponse - 33, // 73: gateway.v1.ChatService.ApplyOperatorTaskAction:output_type -> gateway.v1.ApplyOperatorTaskActionResponse - 34, // 74: gateway.v1.ChatService.SaveSession:output_type -> gateway.v1.SaveSessionResponse - 37, // 75: gateway.v1.ChatService.GetSessionsByChannel:output_type -> gateway.v1.GetSessionsByChannelResponse - 39, // 76: gateway.v1.ChatService.DeleteSession:output_type -> gateway.v1.DeleteSessionResponse - 40, // 77: gateway.v1.ChatService.TouchSession:output_type -> gateway.v1.TouchSessionResponse - 38, // 78: gateway.v1.ChatService.ListSessions:output_type -> gateway.v1.ListSessionsResponse - 41, // 79: gateway.v1.ChatService.SaveMessage:output_type -> gateway.v1.SaveMessageResponse - 49, // 80: gateway.v1.ChatService.DeleteRecentMessages:output_type -> gateway.v1.DeleteRecentMessagesResponse - 51, // 81: gateway.v1.ChatService.MessageCount:output_type -> gateway.v1.MessageCountResponse - 42, // 82: gateway.v1.ChatService.SaveMessages:output_type -> gateway.v1.SaveMessagesResponse - 43, // 83: gateway.v1.ChatService.ReplaceMessages:output_type -> gateway.v1.ReplaceMessagesResponse - 55, // 84: gateway.v1.ChatService.SearchMessages:output_type -> gateway.v1.SearchMessagesResponse - 57, // 85: gateway.v1.ChatService.ListSkills:output_type -> gateway.v1.ListSkillsResponse - 60, // 86: gateway.v1.ChatService.CuratorHealth:output_type -> gateway.v1.CuratorHealthResponse - 64, // 87: gateway.v1.ChatService.ReloadChannel:output_type -> gateway.v1.ReloadChannelResponse - 1, // 88: gateway.v1.ChatService.CheckSecret:output_type -> gateway.v1.CheckSecretResponse - 62, // [62:89] is the sub-list for method output_type - 35, // [35:62] is the sub-list for method input_type - 35, // [35:35] is the sub-list for extension type_name - 35, // [35:35] is the sub-list for extension extendee - 0, // [0:35] is the sub-list for field type_name + 2, // 20: gateway.v1.GetSessionsByChannelResponse.sessions:type_name -> gateway.v1.Session + 3, // 21: gateway.v1.SaveMessageRequest.message:type_name -> gateway.v1.Message + 40, // 22: gateway.v1.ListSkillsResponse.skills:type_name -> gateway.v1.Skill + 43, // 23: gateway.v1.CuratorHealthResponse.curators:type_name -> gateway.v1.Curator + 50, // 24: gateway.v1.Curator.last_run_at:type_name -> google.protobuf.Timestamp + 44, // 25: gateway.v1.Curator.recent_actions:type_name -> gateway.v1.CuratorAction + 50, // 26: gateway.v1.CuratorAction.at:type_name -> google.protobuf.Timestamp + 51, // 27: gateway.v1.RecentLogsRequest.query:type_name -> logging.v1.LogQuery + 52, // 28: gateway.v1.RecentLogsResponse.snapshot:type_name -> logging.v1.LogSnapshot + 7, // 29: gateway.v1.SnapshotResponse.ModelsByProviderEntry.value:type_name -> gateway.v1.StringList + 47, // 30: gateway.v1.ChatService.RecentLogs:input_type -> gateway.v1.RecentLogsRequest + 8, // 31: gateway.v1.ChatService.Snapshot:input_type -> gateway.v1.SnapshotRequest + 10, // 32: gateway.v1.ChatService.GetSession:input_type -> gateway.v1.GetSessionRequest + 12, // 33: gateway.v1.ChatService.RecentMessages:input_type -> gateway.v1.RecentMessagesRequest + 14, // 34: gateway.v1.ChatService.RecentTurns:input_type -> gateway.v1.RecentTurnsRequest + 16, // 35: gateway.v1.ChatService.Route:input_type -> gateway.v1.RouteRequest + 18, // 36: gateway.v1.ChatService.Stream:input_type -> gateway.v1.StreamRequest + 23, // 37: gateway.v1.ChatService.Answer:input_type -> gateway.v1.AnswerRequest + 26, // 38: gateway.v1.ChatService.Cancel:input_type -> gateway.v1.CancelRequest + 28, // 39: gateway.v1.ChatService.StopTasks:input_type -> gateway.v1.StopTasksRequest + 30, // 40: gateway.v1.ChatService.ApplyTaskAction:input_type -> gateway.v1.ApplyTaskActionRequest + 32, // 41: gateway.v1.ChatService.ApplyOperatorTaskAction:input_type -> gateway.v1.ApplyOperatorTaskActionRequest + 34, // 42: gateway.v1.ChatService.GetSessionsByChannel:input_type -> gateway.v1.GetSessionsByChannelRequest + 37, // 43: gateway.v1.ChatService.SaveMessage:input_type -> gateway.v1.SaveMessageRequest + 38, // 44: gateway.v1.ChatService.ListSkills:input_type -> gateway.v1.ListSkillsRequest + 41, // 45: gateway.v1.ChatService.CuratorHealth:input_type -> gateway.v1.CuratorHealthRequest + 45, // 46: gateway.v1.ChatService.ReloadChannel:input_type -> gateway.v1.ReloadChannelRequest + 0, // 47: gateway.v1.ChatService.CheckSecret:input_type -> gateway.v1.CheckSecretRequest + 48, // 48: gateway.v1.ChatService.RecentLogs:output_type -> gateway.v1.RecentLogsResponse + 9, // 49: gateway.v1.ChatService.Snapshot:output_type -> gateway.v1.SnapshotResponse + 11, // 50: gateway.v1.ChatService.GetSession:output_type -> gateway.v1.GetSessionResponse + 13, // 51: gateway.v1.ChatService.RecentMessages:output_type -> gateway.v1.RecentMessagesResponse + 15, // 52: gateway.v1.ChatService.RecentTurns:output_type -> gateway.v1.RecentTurnsResponse + 17, // 53: gateway.v1.ChatService.Route:output_type -> gateway.v1.RouteResponse + 25, // 54: gateway.v1.ChatService.Stream:output_type -> gateway.v1.StreamResponse + 24, // 55: gateway.v1.ChatService.Answer:output_type -> gateway.v1.AnswerResponse + 27, // 56: gateway.v1.ChatService.Cancel:output_type -> gateway.v1.CancelResponse + 29, // 57: gateway.v1.ChatService.StopTasks:output_type -> gateway.v1.StopTasksResponse + 31, // 58: gateway.v1.ChatService.ApplyTaskAction:output_type -> gateway.v1.ApplyTaskActionResponse + 33, // 59: gateway.v1.ChatService.ApplyOperatorTaskAction:output_type -> gateway.v1.ApplyOperatorTaskActionResponse + 35, // 60: gateway.v1.ChatService.GetSessionsByChannel:output_type -> gateway.v1.GetSessionsByChannelResponse + 36, // 61: gateway.v1.ChatService.SaveMessage:output_type -> gateway.v1.SaveMessageResponse + 39, // 62: gateway.v1.ChatService.ListSkills:output_type -> gateway.v1.ListSkillsResponse + 42, // 63: gateway.v1.ChatService.CuratorHealth:output_type -> gateway.v1.CuratorHealthResponse + 46, // 64: gateway.v1.ChatService.ReloadChannel:output_type -> gateway.v1.ReloadChannelResponse + 1, // 65: gateway.v1.ChatService.CheckSecret:output_type -> gateway.v1.CheckSecretResponse + 48, // [48:66] is the sub-list for method output_type + 30, // [30:48] is the sub-list for method input_type + 30, // [30:30] is the sub-list for extension type_name + 30, // [30:30] is the sub-list for extension extendee + 0, // [0:30] is the sub-list for field type_name } func init() { file_gateway_v1_chat_proto_init() } @@ -4543,14 +3619,14 @@ func file_gateway_v1_chat_proto_init() { return } file_gateway_v1_chat_proto_msgTypes[5].OneofWrappers = []any{} - file_gateway_v1_chat_proto_msgTypes[61].OneofWrappers = []any{} + file_gateway_v1_chat_proto_msgTypes[43].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_gateway_v1_chat_proto_rawDesc), len(file_gateway_v1_chat_proto_rawDesc)), NumEnums: 0, - NumMessages: 68, + NumMessages: 50, NumExtensions: 0, NumServices: 1, }, diff --git a/internal/contracts/gateway/v1/chat_grpc.pb.go b/internal/contracts/gateway/v1/chat_grpc.pb.go index 0e5915133..f806464c0 100644 --- a/internal/contracts/gateway/v1/chat_grpc.pb.go +++ b/internal/contracts/gateway/v1/chat_grpc.pb.go @@ -31,17 +31,8 @@ const ( ChatService_StopTasks_FullMethodName = "/gateway.v1.ChatService/StopTasks" ChatService_ApplyTaskAction_FullMethodName = "/gateway.v1.ChatService/ApplyTaskAction" ChatService_ApplyOperatorTaskAction_FullMethodName = "/gateway.v1.ChatService/ApplyOperatorTaskAction" - ChatService_SaveSession_FullMethodName = "/gateway.v1.ChatService/SaveSession" ChatService_GetSessionsByChannel_FullMethodName = "/gateway.v1.ChatService/GetSessionsByChannel" - ChatService_DeleteSession_FullMethodName = "/gateway.v1.ChatService/DeleteSession" - ChatService_TouchSession_FullMethodName = "/gateway.v1.ChatService/TouchSession" - ChatService_ListSessions_FullMethodName = "/gateway.v1.ChatService/ListSessions" ChatService_SaveMessage_FullMethodName = "/gateway.v1.ChatService/SaveMessage" - ChatService_DeleteRecentMessages_FullMethodName = "/gateway.v1.ChatService/DeleteRecentMessages" - ChatService_MessageCount_FullMethodName = "/gateway.v1.ChatService/MessageCount" - ChatService_SaveMessages_FullMethodName = "/gateway.v1.ChatService/SaveMessages" - ChatService_ReplaceMessages_FullMethodName = "/gateway.v1.ChatService/ReplaceMessages" - ChatService_SearchMessages_FullMethodName = "/gateway.v1.ChatService/SearchMessages" ChatService_ListSkills_FullMethodName = "/gateway.v1.ChatService/ListSkills" ChatService_CuratorHealth_FullMethodName = "/gateway.v1.ChatService/CuratorHealth" ChatService_ReloadChannel_FullMethodName = "/gateway.v1.ChatService/ReloadChannel" @@ -64,17 +55,8 @@ type ChatServiceClient interface { StopTasks(ctx context.Context, in *StopTasksRequest, opts ...grpc.CallOption) (*StopTasksResponse, error) ApplyTaskAction(ctx context.Context, in *ApplyTaskActionRequest, opts ...grpc.CallOption) (*ApplyTaskActionResponse, error) ApplyOperatorTaskAction(ctx context.Context, in *ApplyOperatorTaskActionRequest, opts ...grpc.CallOption) (*ApplyOperatorTaskActionResponse, error) - SaveSession(ctx context.Context, in *SaveSessionRequest, opts ...grpc.CallOption) (*SaveSessionResponse, error) GetSessionsByChannel(ctx context.Context, in *GetSessionsByChannelRequest, opts ...grpc.CallOption) (*GetSessionsByChannelResponse, error) - DeleteSession(ctx context.Context, in *DeleteSessionRequest, opts ...grpc.CallOption) (*DeleteSessionResponse, error) - TouchSession(ctx context.Context, in *TouchSessionRequest, opts ...grpc.CallOption) (*TouchSessionResponse, error) - ListSessions(ctx context.Context, in *ListSessionsRequest, opts ...grpc.CallOption) (*ListSessionsResponse, error) SaveMessage(ctx context.Context, in *SaveMessageRequest, opts ...grpc.CallOption) (*SaveMessageResponse, error) - DeleteRecentMessages(ctx context.Context, in *DeleteRecentMessagesRequest, opts ...grpc.CallOption) (*DeleteRecentMessagesResponse, error) - MessageCount(ctx context.Context, in *MessageCountRequest, opts ...grpc.CallOption) (*MessageCountResponse, error) - SaveMessages(ctx context.Context, in *SaveMessagesRequest, opts ...grpc.CallOption) (*SaveMessagesResponse, error) - ReplaceMessages(ctx context.Context, in *ReplaceMessagesRequest, opts ...grpc.CallOption) (*ReplaceMessagesResponse, error) - SearchMessages(ctx context.Context, in *SearchMessagesRequest, opts ...grpc.CallOption) (*SearchMessagesResponse, error) ListSkills(ctx context.Context, in *ListSkillsRequest, opts ...grpc.CallOption) (*ListSkillsResponse, error) CuratorHealth(ctx context.Context, in *CuratorHealthRequest, opts ...grpc.CallOption) (*CuratorHealthResponse, error) ReloadChannel(ctx context.Context, in *ReloadChannelRequest, opts ...grpc.CallOption) (*ReloadChannelResponse, error) @@ -219,16 +201,6 @@ func (c *chatServiceClient) ApplyOperatorTaskAction(ctx context.Context, in *App return out, nil } -func (c *chatServiceClient) SaveSession(ctx context.Context, in *SaveSessionRequest, opts ...grpc.CallOption) (*SaveSessionResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(SaveSessionResponse) - err := c.cc.Invoke(ctx, ChatService_SaveSession_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *chatServiceClient) GetSessionsByChannel(ctx context.Context, in *GetSessionsByChannelRequest, opts ...grpc.CallOption) (*GetSessionsByChannelResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSessionsByChannelResponse) @@ -239,36 +211,6 @@ func (c *chatServiceClient) GetSessionsByChannel(ctx context.Context, in *GetSes return out, nil } -func (c *chatServiceClient) DeleteSession(ctx context.Context, in *DeleteSessionRequest, opts ...grpc.CallOption) (*DeleteSessionResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(DeleteSessionResponse) - err := c.cc.Invoke(ctx, ChatService_DeleteSession_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatServiceClient) TouchSession(ctx context.Context, in *TouchSessionRequest, opts ...grpc.CallOption) (*TouchSessionResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(TouchSessionResponse) - err := c.cc.Invoke(ctx, ChatService_TouchSession_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatServiceClient) ListSessions(ctx context.Context, in *ListSessionsRequest, opts ...grpc.CallOption) (*ListSessionsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ListSessionsResponse) - err := c.cc.Invoke(ctx, ChatService_ListSessions_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *chatServiceClient) SaveMessage(ctx context.Context, in *SaveMessageRequest, opts ...grpc.CallOption) (*SaveMessageResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SaveMessageResponse) @@ -279,56 +221,6 @@ func (c *chatServiceClient) SaveMessage(ctx context.Context, in *SaveMessageRequ return out, nil } -func (c *chatServiceClient) DeleteRecentMessages(ctx context.Context, in *DeleteRecentMessagesRequest, opts ...grpc.CallOption) (*DeleteRecentMessagesResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(DeleteRecentMessagesResponse) - err := c.cc.Invoke(ctx, ChatService_DeleteRecentMessages_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatServiceClient) MessageCount(ctx context.Context, in *MessageCountRequest, opts ...grpc.CallOption) (*MessageCountResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MessageCountResponse) - err := c.cc.Invoke(ctx, ChatService_MessageCount_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatServiceClient) SaveMessages(ctx context.Context, in *SaveMessagesRequest, opts ...grpc.CallOption) (*SaveMessagesResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(SaveMessagesResponse) - err := c.cc.Invoke(ctx, ChatService_SaveMessages_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatServiceClient) ReplaceMessages(ctx context.Context, in *ReplaceMessagesRequest, opts ...grpc.CallOption) (*ReplaceMessagesResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ReplaceMessagesResponse) - err := c.cc.Invoke(ctx, ChatService_ReplaceMessages_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatServiceClient) SearchMessages(ctx context.Context, in *SearchMessagesRequest, opts ...grpc.CallOption) (*SearchMessagesResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(SearchMessagesResponse) - err := c.cc.Invoke(ctx, ChatService_SearchMessages_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *chatServiceClient) ListSkills(ctx context.Context, in *ListSkillsRequest, opts ...grpc.CallOption) (*ListSkillsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListSkillsResponse) @@ -385,17 +277,8 @@ type ChatServiceServer interface { StopTasks(context.Context, *StopTasksRequest) (*StopTasksResponse, error) ApplyTaskAction(context.Context, *ApplyTaskActionRequest) (*ApplyTaskActionResponse, error) ApplyOperatorTaskAction(context.Context, *ApplyOperatorTaskActionRequest) (*ApplyOperatorTaskActionResponse, error) - SaveSession(context.Context, *SaveSessionRequest) (*SaveSessionResponse, error) GetSessionsByChannel(context.Context, *GetSessionsByChannelRequest) (*GetSessionsByChannelResponse, error) - DeleteSession(context.Context, *DeleteSessionRequest) (*DeleteSessionResponse, error) - TouchSession(context.Context, *TouchSessionRequest) (*TouchSessionResponse, error) - ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error) SaveMessage(context.Context, *SaveMessageRequest) (*SaveMessageResponse, error) - DeleteRecentMessages(context.Context, *DeleteRecentMessagesRequest) (*DeleteRecentMessagesResponse, error) - MessageCount(context.Context, *MessageCountRequest) (*MessageCountResponse, error) - SaveMessages(context.Context, *SaveMessagesRequest) (*SaveMessagesResponse, error) - ReplaceMessages(context.Context, *ReplaceMessagesRequest) (*ReplaceMessagesResponse, error) - SearchMessages(context.Context, *SearchMessagesRequest) (*SearchMessagesResponse, error) ListSkills(context.Context, *ListSkillsRequest) (*ListSkillsResponse, error) CuratorHealth(context.Context, *CuratorHealthRequest) (*CuratorHealthResponse, error) ReloadChannel(context.Context, *ReloadChannelRequest) (*ReloadChannelResponse, error) @@ -447,39 +330,12 @@ func (UnimplementedChatServiceServer) ApplyTaskAction(context.Context, *ApplyTas func (UnimplementedChatServiceServer) ApplyOperatorTaskAction(context.Context, *ApplyOperatorTaskActionRequest) (*ApplyOperatorTaskActionResponse, error) { return nil, status.Error(codes.Unimplemented, "method ApplyOperatorTaskAction not implemented") } -func (UnimplementedChatServiceServer) SaveSession(context.Context, *SaveSessionRequest) (*SaveSessionResponse, error) { - return nil, status.Error(codes.Unimplemented, "method SaveSession not implemented") -} func (UnimplementedChatServiceServer) GetSessionsByChannel(context.Context, *GetSessionsByChannelRequest) (*GetSessionsByChannelResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetSessionsByChannel not implemented") } -func (UnimplementedChatServiceServer) DeleteSession(context.Context, *DeleteSessionRequest) (*DeleteSessionResponse, error) { - return nil, status.Error(codes.Unimplemented, "method DeleteSession not implemented") -} -func (UnimplementedChatServiceServer) TouchSession(context.Context, *TouchSessionRequest) (*TouchSessionResponse, error) { - return nil, status.Error(codes.Unimplemented, "method TouchSession not implemented") -} -func (UnimplementedChatServiceServer) ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error) { - return nil, status.Error(codes.Unimplemented, "method ListSessions not implemented") -} func (UnimplementedChatServiceServer) SaveMessage(context.Context, *SaveMessageRequest) (*SaveMessageResponse, error) { return nil, status.Error(codes.Unimplemented, "method SaveMessage not implemented") } -func (UnimplementedChatServiceServer) DeleteRecentMessages(context.Context, *DeleteRecentMessagesRequest) (*DeleteRecentMessagesResponse, error) { - return nil, status.Error(codes.Unimplemented, "method DeleteRecentMessages not implemented") -} -func (UnimplementedChatServiceServer) MessageCount(context.Context, *MessageCountRequest) (*MessageCountResponse, error) { - return nil, status.Error(codes.Unimplemented, "method MessageCount not implemented") -} -func (UnimplementedChatServiceServer) SaveMessages(context.Context, *SaveMessagesRequest) (*SaveMessagesResponse, error) { - return nil, status.Error(codes.Unimplemented, "method SaveMessages not implemented") -} -func (UnimplementedChatServiceServer) ReplaceMessages(context.Context, *ReplaceMessagesRequest) (*ReplaceMessagesResponse, error) { - return nil, status.Error(codes.Unimplemented, "method ReplaceMessages not implemented") -} -func (UnimplementedChatServiceServer) SearchMessages(context.Context, *SearchMessagesRequest) (*SearchMessagesResponse, error) { - return nil, status.Error(codes.Unimplemented, "method SearchMessages not implemented") -} func (UnimplementedChatServiceServer) ListSkills(context.Context, *ListSkillsRequest) (*ListSkillsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListSkills not implemented") } @@ -722,24 +578,6 @@ func _ChatService_ApplyOperatorTaskAction_Handler(srv interface{}, ctx context.C return interceptor(ctx, in, info, handler) } -func _ChatService_SaveSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SaveSessionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServiceServer).SaveSession(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ChatService_SaveSession_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServiceServer).SaveSession(ctx, req.(*SaveSessionRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _ChatService_GetSessionsByChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetSessionsByChannelRequest) if err := dec(in); err != nil { @@ -758,60 +596,6 @@ func _ChatService_GetSessionsByChannel_Handler(srv interface{}, ctx context.Cont return interceptor(ctx, in, info, handler) } -func _ChatService_DeleteSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteSessionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServiceServer).DeleteSession(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ChatService_DeleteSession_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServiceServer).DeleteSession(ctx, req.(*DeleteSessionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ChatService_TouchSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TouchSessionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServiceServer).TouchSession(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ChatService_TouchSession_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServiceServer).TouchSession(ctx, req.(*TouchSessionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ChatService_ListSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListSessionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServiceServer).ListSessions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ChatService_ListSessions_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServiceServer).ListSessions(ctx, req.(*ListSessionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _ChatService_SaveMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SaveMessageRequest) if err := dec(in); err != nil { @@ -830,96 +614,6 @@ func _ChatService_SaveMessage_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _ChatService_DeleteRecentMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRecentMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServiceServer).DeleteRecentMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ChatService_DeleteRecentMessages_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServiceServer).DeleteRecentMessages(ctx, req.(*DeleteRecentMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ChatService_MessageCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MessageCountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServiceServer).MessageCount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ChatService_MessageCount_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServiceServer).MessageCount(ctx, req.(*MessageCountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ChatService_SaveMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SaveMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServiceServer).SaveMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ChatService_SaveMessages_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServiceServer).SaveMessages(ctx, req.(*SaveMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ChatService_ReplaceMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReplaceMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServiceServer).ReplaceMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ChatService_ReplaceMessages_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServiceServer).ReplaceMessages(ctx, req.(*ReplaceMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ChatService_SearchMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServiceServer).SearchMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ChatService_SearchMessages_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServiceServer).SearchMessages(ctx, req.(*SearchMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _ChatService_ListSkills_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListSkillsRequest) if err := dec(in); err != nil { @@ -1043,50 +737,14 @@ var ChatService_ServiceDesc = grpc.ServiceDesc{ MethodName: "ApplyOperatorTaskAction", Handler: _ChatService_ApplyOperatorTaskAction_Handler, }, - { - MethodName: "SaveSession", - Handler: _ChatService_SaveSession_Handler, - }, { MethodName: "GetSessionsByChannel", Handler: _ChatService_GetSessionsByChannel_Handler, }, - { - MethodName: "DeleteSession", - Handler: _ChatService_DeleteSession_Handler, - }, - { - MethodName: "TouchSession", - Handler: _ChatService_TouchSession_Handler, - }, - { - MethodName: "ListSessions", - Handler: _ChatService_ListSessions_Handler, - }, { MethodName: "SaveMessage", Handler: _ChatService_SaveMessage_Handler, }, - { - MethodName: "DeleteRecentMessages", - Handler: _ChatService_DeleteRecentMessages_Handler, - }, - { - MethodName: "MessageCount", - Handler: _ChatService_MessageCount_Handler, - }, - { - MethodName: "SaveMessages", - Handler: _ChatService_SaveMessages_Handler, - }, - { - MethodName: "ReplaceMessages", - Handler: _ChatService_ReplaceMessages_Handler, - }, - { - MethodName: "SearchMessages", - Handler: _ChatService_SearchMessages_Handler, - }, { MethodName: "ListSkills", Handler: _ChatService_ListSkills_Handler, diff --git a/internal/infrastructure/gatewayrpc/server.go b/internal/infrastructure/gatewayrpc/server.go index 932bee109..1c09e52d1 100644 --- a/internal/infrastructure/gatewayrpc/server.go +++ b/internal/infrastructure/gatewayrpc/server.go @@ -139,14 +139,6 @@ func (s *server) ApplyOperatorTaskAction(ctx context.Context, r *pb.ApplyOperato return &pb.ApplyOperatorTaskActionResponse{TaskId: v.TaskID, Action: v.Action, Message: v.Message}, nil } -func (s *server) SaveSession(ctx context.Context, r *pb.SaveSessionRequest) (*pb.SaveSessionResponse, error) { - ss, e := s.sessionStore() - if e != nil { - return nil, e - } - return &pb.SaveSessionResponse{}, ss.Save(ctx, sessionValue(r.Session)) -} - func (s *server) GetSessionsByChannel(ctx context.Context, r *pb.GetSessionsByChannelRequest) (*pb.GetSessionsByChannelResponse, error) { ss, e := s.sessionStore() if e != nil { @@ -156,31 +148,6 @@ func (s *server) GetSessionsByChannel(ctx context.Context, r *pb.GetSessionsByCh return &pb.GetSessionsByChannelResponse{Sessions: mapValues(v, sessionProto)}, e } -func (s *server) DeleteSession(ctx context.Context, r *pb.DeleteSessionRequest) (*pb.DeleteSessionResponse, error) { - ss, e := s.sessionStore() - if e != nil { - return nil, e - } - return &pb.DeleteSessionResponse{}, ss.Delete(ctx, r.SessionId) -} - -func (s *server) TouchSession(ctx context.Context, r *pb.TouchSessionRequest) (*pb.TouchSessionResponse, error) { - ss, e := s.sessionStore() - if e != nil { - return nil, e - } - return &pb.TouchSessionResponse{}, ss.Touch(ctx, r.SessionId) -} - -func (s *server) ListSessions(ctx context.Context, _ *pb.ListSessionsRequest) (*pb.ListSessionsResponse, error) { - ss, e := s.sessionStore() - if e != nil { - return nil, e - } - v, e := ss.List(ctx) - return &pb.ListSessionsResponse{Sessions: mapValues(v, sessionProto)}, e -} - // storedMessages converts wire messages to canonical records, deriving // roles from the owning session's bot identity (see // messaging.RoleForSender). The wire carries no role; both sides derive from @@ -213,57 +180,6 @@ func (s *server) SaveMessage(ctx context.Context, r *pb.SaveMessageRequest) (*pb return &pb.SaveMessageResponse{}, ss.SaveMessage(ctx, r.SessionId, msgs[0]) } -func (s *server) DeleteRecentMessages(ctx context.Context, r *pb.DeleteRecentMessagesRequest) (*pb.DeleteRecentMessagesResponse, error) { - ss, e := s.sessionStore() - if e != nil { - return nil, e - } - v, e := ss.DeleteRecentMessages(ctx, r.SessionId, int(r.Limit)) - return &pb.DeleteRecentMessagesResponse{Deleted: int64(v)}, e -} - -func (s *server) MessageCount(ctx context.Context, r *pb.MessageCountRequest) (*pb.MessageCountResponse, error) { - ss, e := s.sessionStore() - if e != nil { - return nil, e - } - v, e := ss.MessageCount(ctx, r.SessionId) - return &pb.MessageCountResponse{Count: int64(v)}, e -} - -func (s *server) SaveMessages(ctx context.Context, r *pb.SaveMessagesRequest) (*pb.SaveMessagesResponse, error) { - ss, e := s.sessionStore() - if e != nil { - return nil, e - } - msgs, e := s.storedMessages(ctx, ss, r.SessionId, r.Messages) - if e != nil { - return nil, e - } - return &pb.SaveMessagesResponse{}, ss.SaveMessages(ctx, r.SessionId, msgs) -} - -func (s *server) ReplaceMessages(ctx context.Context, r *pb.ReplaceMessagesRequest) (*pb.ReplaceMessagesResponse, error) { - ss, e := s.sessionStore() - if e != nil { - return nil, e - } - msgs, e := s.storedMessages(ctx, ss, r.SessionId, r.Messages) - if e != nil { - return nil, e - } - return &pb.ReplaceMessagesResponse{}, ss.ReplaceMessages(ctx, r.SessionId, msgs, r.Superseded) -} - -func (s *server) SearchMessages(ctx context.Context, r *pb.SearchMessagesRequest) (*pb.SearchMessagesResponse, error) { - ss, e := s.sessionStore() - if e != nil { - return nil, e - } - v, e := ss.SearchMessages(ctx, r.SessionId, messaging.MessageQuery{Query: r.Query, Limit: int(r.Limit), Offset: int(r.Offset)}) - return &pb.SearchMessagesResponse{Messages: mapValues(v.Messages, storedProto), NextOffset: int64(v.NextOffset), HasMore: v.HasMore, Truncated: v.Truncated}, e -} - func (s *server) Stream(r *pb.StreamRequest, out grpc.ServerStreamingServer[pb.StreamResponse]) error { // An ask is sent from the turn's goroutine while this one sends events. var sendMu sync.Mutex diff --git a/proto/buf.yaml b/proto/buf.yaml index d018f12b1..91bccabb6 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -50,6 +50,9 @@ breaking: # ForgeService.ParseWebhook and its event messages were removed with the # file-configured forge webhook receiver; forge webhooks arrive through event # capture. The forge extensions drop the RPC in the same change. + # + # ChatService's session-store RPCs (SaveSession, ListSessions, SaveMessages, + # SearchMessages and the rest) were removed: no client ever called them. ignore_only: FIELD_SAME_TYPE: - state/v1 @@ -68,6 +71,7 @@ breaking: PACKAGE_MESSAGE_NO_DELETE: - controlplane/v1/controlplane.proto - forge/v1/forge.proto + - gateway/v1/chat.proto - gateway/v1/task_tools.proto - state/v1/harness_secret.proto FIELD_NO_DELETE: diff --git a/proto/gateway/v1/chat.proto b/proto/gateway/v1/chat.proto index 71405a057..2ecd7012b 100644 --- a/proto/gateway/v1/chat.proto +++ b/proto/gateway/v1/chat.proto @@ -19,17 +19,8 @@ service ChatService { rpc StopTasks(StopTasksRequest) returns (StopTasksResponse); rpc ApplyTaskAction(ApplyTaskActionRequest) returns (ApplyTaskActionResponse); rpc ApplyOperatorTaskAction(ApplyOperatorTaskActionRequest) returns (ApplyOperatorTaskActionResponse); - rpc SaveSession(SaveSessionRequest) returns (SaveSessionResponse); rpc GetSessionsByChannel(GetSessionsByChannelRequest) returns (GetSessionsByChannelResponse); - rpc DeleteSession(DeleteSessionRequest) returns (DeleteSessionResponse); - rpc TouchSession(TouchSessionRequest) returns (TouchSessionResponse); - rpc ListSessions(ListSessionsRequest) returns (ListSessionsResponse); rpc SaveMessage(SaveMessageRequest) returns (SaveMessageResponse); - rpc DeleteRecentMessages(DeleteRecentMessagesRequest) returns (DeleteRecentMessagesResponse); - rpc MessageCount(MessageCountRequest) returns (MessageCountResponse); - rpc SaveMessages(SaveMessagesRequest) returns (SaveMessagesResponse); - rpc ReplaceMessages(ReplaceMessagesRequest) returns (ReplaceMessagesResponse); - rpc SearchMessages(SearchMessagesRequest) returns (SearchMessagesResponse); rpc ListSkills(ListSkillsRequest) returns (ListSkillsResponse); rpc CuratorHealth(CuratorHealthRequest) returns (CuratorHealthResponse); rpc ReloadChannel(ReloadChannelRequest) returns (ReloadChannelResponse); @@ -247,28 +238,10 @@ message ApplyOperatorTaskActionRequest { bool current_definition = 10; } message ApplyOperatorTaskActionResponse { int64 task_id = 1; string action = 2; string message = 3; } -message SaveSessionResponse {} -message SaveSessionRequest { Session session = 1; } message GetSessionsByChannelRequest { string platform = 1; string channel_id = 2; } message GetSessionsByChannelResponse { repeated Session sessions = 1; } -message ListSessionsResponse { repeated Session sessions = 1; } -message DeleteSessionResponse {} -message TouchSessionResponse {} message SaveMessageResponse {} -message SaveMessagesResponse {} -message ReplaceMessagesResponse {} -message DeleteSessionRequest { string session_id = 1; } -message TouchSessionRequest { string session_id = 1; } -message ListSessionsRequest {} message SaveMessageRequest { string session_id = 1; Message message = 2; } -message DeleteRecentMessagesRequest { string session_id = 1; int64 limit = 2; } -message DeleteRecentMessagesResponse { int64 deleted = 1; } -message MessageCountRequest { string session_id = 1; } -message MessageCountResponse { int64 count = 1; } -message SaveMessagesRequest { string session_id = 1; repeated Message messages = 2; } -message ReplaceMessagesRequest { string session_id = 1; repeated Message messages = 2; repeated string superseded = 3; } -message SearchMessagesRequest { string session_id = 1; string query = 2; int64 limit = 3; int64 offset = 4; } -message SearchMessagesResponse { repeated Message messages = 1; int64 next_offset = 2; bool has_more = 3; bool truncated = 4; } // ListSkills reports the live skill catalogue the Gateway runs, as the // dashboard's Skills page shows it. source labels where each skill was