diff --git a/go/svc/environment/v1/environmentv1connect/service.connect.go b/go/svc/environment/v1/environmentv1connect/service.connect.go index ac42eca..322f44c 100644 --- a/go/svc/environment/v1/environmentv1connect/service.connect.go +++ b/go/svc/environment/v1/environmentv1connect/service.connect.go @@ -36,11 +36,14 @@ const ( // EnvironmentServiceListResourceProcedure is the fully-qualified name of the EnvironmentService's // ListResource RPC. EnvironmentServiceListResourceProcedure = "/svc.environment.v1.EnvironmentService/ListResource" + // EnvironmentServiceTrimProcedure is the fully-qualified name of the EnvironmentService's Trim RPC. + EnvironmentServiceTrimProcedure = "/svc.environment.v1.EnvironmentService/Trim" ) // EnvironmentServiceClient is a client for the svc.environment.v1.EnvironmentService service. type EnvironmentServiceClient interface { ListResource(context.Context, *connect.Request[v1.ListResourceRequest]) (*connect.Response[v1.ListResourceResponse], error) + Trim(context.Context, *connect.Request[v1.TrimRequest]) (*connect.Response[v1.TrimResponse], error) } // NewEnvironmentServiceClient constructs a client for the svc.environment.v1.EnvironmentService @@ -60,12 +63,19 @@ func NewEnvironmentServiceClient(httpClient connect.HTTPClient, baseURL string, connect.WithSchema(environmentServiceMethods.ByName("ListResource")), connect.WithClientOptions(opts...), ), + trim: connect.NewClient[v1.TrimRequest, v1.TrimResponse]( + httpClient, + baseURL+EnvironmentServiceTrimProcedure, + connect.WithSchema(environmentServiceMethods.ByName("Trim")), + connect.WithClientOptions(opts...), + ), } } // environmentServiceClient implements EnvironmentServiceClient. type environmentServiceClient struct { listResource *connect.Client[v1.ListResourceRequest, v1.ListResourceResponse] + trim *connect.Client[v1.TrimRequest, v1.TrimResponse] } // ListResource calls svc.environment.v1.EnvironmentService.ListResource. @@ -73,10 +83,16 @@ func (c *environmentServiceClient) ListResource(ctx context.Context, req *connec return c.listResource.CallUnary(ctx, req) } +// Trim calls svc.environment.v1.EnvironmentService.Trim. +func (c *environmentServiceClient) Trim(ctx context.Context, req *connect.Request[v1.TrimRequest]) (*connect.Response[v1.TrimResponse], error) { + return c.trim.CallUnary(ctx, req) +} + // EnvironmentServiceHandler is an implementation of the svc.environment.v1.EnvironmentService // service. type EnvironmentServiceHandler interface { ListResource(context.Context, *connect.Request[v1.ListResourceRequest]) (*connect.Response[v1.ListResourceResponse], error) + Trim(context.Context, *connect.Request[v1.TrimRequest]) (*connect.Response[v1.TrimResponse], error) } // NewEnvironmentServiceHandler builds an HTTP handler from the service implementation. It returns @@ -92,10 +108,18 @@ func NewEnvironmentServiceHandler(svc EnvironmentServiceHandler, opts ...connect connect.WithSchema(environmentServiceMethods.ByName("ListResource")), connect.WithHandlerOptions(opts...), ) + environmentServiceTrimHandler := connect.NewUnaryHandler( + EnvironmentServiceTrimProcedure, + svc.Trim, + connect.WithSchema(environmentServiceMethods.ByName("Trim")), + connect.WithHandlerOptions(opts...), + ) return "/svc.environment.v1.EnvironmentService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { case EnvironmentServiceListResourceProcedure: environmentServiceListResourceHandler.ServeHTTP(w, r) + case EnvironmentServiceTrimProcedure: + environmentServiceTrimHandler.ServeHTTP(w, r) default: http.NotFound(w, r) } @@ -108,3 +132,7 @@ type UnimplementedEnvironmentServiceHandler struct{} func (UnimplementedEnvironmentServiceHandler) ListResource(context.Context, *connect.Request[v1.ListResourceRequest]) (*connect.Response[v1.ListResourceResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("svc.environment.v1.EnvironmentService.ListResource is not implemented")) } + +func (UnimplementedEnvironmentServiceHandler) Trim(context.Context, *connect.Request[v1.TrimRequest]) (*connect.Response[v1.TrimResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("svc.environment.v1.EnvironmentService.Trim is not implemented")) +} diff --git a/go/svc/environment/v1/service.pb.go b/go/svc/environment/v1/service.pb.go index 12ab1af..cf33492 100644 --- a/go/svc/environment/v1/service.pb.go +++ b/go/svc/environment/v1/service.pb.go @@ -10,6 +10,7 @@ import ( v1 "github.com/humanlogio/api/go/types/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" unsafe "unsafe" @@ -134,6 +135,140 @@ func (x *ListResourceResponse) GetItems() []*ListResourceResponse_ListItem { return nil } +type TrimRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + EnvironmentId int64 `protobuf:"varint,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` + // Types that are valid to be assigned to By: + // + // *TrimRequest_Size + // *TrimRequest_Time + By isTrimRequest_By `protobuf_oneof:"by"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TrimRequest) Reset() { + *x = TrimRequest{} + mi := &file_svc_environment_v1_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TrimRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TrimRequest) ProtoMessage() {} + +func (x *TrimRequest) ProtoReflect() protoreflect.Message { + mi := &file_svc_environment_v1_service_proto_msgTypes[2] + 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 TrimRequest.ProtoReflect.Descriptor instead. +func (*TrimRequest) Descriptor() ([]byte, []int) { + return file_svc_environment_v1_service_proto_rawDescGZIP(), []int{2} +} + +func (x *TrimRequest) GetEnvironmentId() int64 { + if x != nil { + return x.EnvironmentId + } + return 0 +} + +func (x *TrimRequest) GetBy() isTrimRequest_By { + if x != nil { + return x.By + } + return nil +} + +func (x *TrimRequest) GetSize() *TrimRequest_BySize { + if x != nil { + if x, ok := x.By.(*TrimRequest_Size); ok { + return x.Size + } + } + return nil +} + +func (x *TrimRequest) GetTime() *TrimRequest_ByTime { + if x != nil { + if x, ok := x.By.(*TrimRequest_Time); ok { + return x.Time + } + } + return nil +} + +type isTrimRequest_By interface { + isTrimRequest_By() +} + +type TrimRequest_Size struct { + Size *TrimRequest_BySize `protobuf:"bytes,2,opt,name=size,proto3,oneof"` +} + +type TrimRequest_Time struct { + Time *TrimRequest_ByTime `protobuf:"bytes,3,opt,name=time,proto3,oneof"` +} + +func (*TrimRequest_Size) isTrimRequest_By() {} + +func (*TrimRequest_Time) isTrimRequest_By() {} + +type TrimResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Trimmed uint64 `protobuf:"varint,1,opt,name=trimmed,proto3" json:"trimmed,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TrimResponse) Reset() { + *x = TrimResponse{} + mi := &file_svc_environment_v1_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TrimResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TrimResponse) ProtoMessage() {} + +func (x *TrimResponse) ProtoReflect() protoreflect.Message { + mi := &file_svc_environment_v1_service_proto_msgTypes[3] + 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 TrimResponse.ProtoReflect.Descriptor instead. +func (*TrimResponse) Descriptor() ([]byte, []int) { + return file_svc_environment_v1_service_proto_rawDescGZIP(), []int{3} +} + +func (x *TrimResponse) GetTrimmed() uint64 { + if x != nil { + return x.Trimmed + } + return 0 +} + type ListResourceResponse_ListItem struct { state protoimpl.MessageState `protogen:"open.v1"` Resource *v1.Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` @@ -143,7 +278,7 @@ type ListResourceResponse_ListItem struct { func (x *ListResourceResponse_ListItem) Reset() { *x = ListResourceResponse_ListItem{} - mi := &file_svc_environment_v1_service_proto_msgTypes[2] + mi := &file_svc_environment_v1_service_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -155,7 +290,7 @@ func (x *ListResourceResponse_ListItem) String() string { func (*ListResourceResponse_ListItem) ProtoMessage() {} func (x *ListResourceResponse_ListItem) ProtoReflect() protoreflect.Message { - mi := &file_svc_environment_v1_service_proto_msgTypes[2] + mi := &file_svc_environment_v1_service_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -178,11 +313,131 @@ func (x *ListResourceResponse_ListItem) GetResource() *v1.Resource { return nil } +type TrimRequest_BySize struct { + state protoimpl.MessageState `protogen:"open.v1"` + LogSize *uint64 `protobuf:"varint,1,opt,name=log_size,json=logSize,proto3,oneof" json:"log_size,omitempty"` + SpanSize *uint64 `protobuf:"varint,2,opt,name=span_size,json=spanSize,proto3,oneof" json:"span_size,omitempty"` + MetricSize *uint64 `protobuf:"varint,3,opt,name=metric_size,json=metricSize,proto3,oneof" json:"metric_size,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TrimRequest_BySize) Reset() { + *x = TrimRequest_BySize{} + mi := &file_svc_environment_v1_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TrimRequest_BySize) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TrimRequest_BySize) ProtoMessage() {} + +func (x *TrimRequest_BySize) ProtoReflect() protoreflect.Message { + mi := &file_svc_environment_v1_service_proto_msgTypes[5] + 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 TrimRequest_BySize.ProtoReflect.Descriptor instead. +func (*TrimRequest_BySize) Descriptor() ([]byte, []int) { + return file_svc_environment_v1_service_proto_rawDescGZIP(), []int{2, 0} +} + +func (x *TrimRequest_BySize) GetLogSize() uint64 { + if x != nil && x.LogSize != nil { + return *x.LogSize + } + return 0 +} + +func (x *TrimRequest_BySize) GetSpanSize() uint64 { + if x != nil && x.SpanSize != nil { + return *x.SpanSize + } + return 0 +} + +func (x *TrimRequest_BySize) GetMetricSize() uint64 { + if x != nil && x.MetricSize != nil { + return *x.MetricSize + } + return 0 +} + +type TrimRequest_ByTime struct { + state protoimpl.MessageState `protogen:"open.v1"` + OldestLog *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=oldest_log,json=oldestLog,proto3,oneof" json:"oldest_log,omitempty"` + OldestSpan *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=oldest_span,json=oldestSpan,proto3,oneof" json:"oldest_span,omitempty"` + OldestMetric *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=oldest_metric,json=oldestMetric,proto3,oneof" json:"oldest_metric,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TrimRequest_ByTime) Reset() { + *x = TrimRequest_ByTime{} + mi := &file_svc_environment_v1_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TrimRequest_ByTime) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TrimRequest_ByTime) ProtoMessage() {} + +func (x *TrimRequest_ByTime) ProtoReflect() protoreflect.Message { + mi := &file_svc_environment_v1_service_proto_msgTypes[6] + 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 TrimRequest_ByTime.ProtoReflect.Descriptor instead. +func (*TrimRequest_ByTime) Descriptor() ([]byte, []int) { + return file_svc_environment_v1_service_proto_rawDescGZIP(), []int{2, 1} +} + +func (x *TrimRequest_ByTime) GetOldestLog() *timestamppb.Timestamp { + if x != nil { + return x.OldestLog + } + return nil +} + +func (x *TrimRequest_ByTime) GetOldestSpan() *timestamppb.Timestamp { + if x != nil { + return x.OldestSpan + } + return nil +} + +func (x *TrimRequest_ByTime) GetOldestMetric() *timestamppb.Timestamp { + if x != nil { + return x.OldestMetric + } + return nil +} + var File_svc_environment_v1_service_proto protoreflect.FileDescriptor const file_svc_environment_v1_service_proto_rawDesc = "" + "\n" + - " svc/environment/v1/service.proto\x12\x12svc.environment.v1\x1a\x15types/v1/cursor.proto\x1a\x1atypes/v1/environment.proto\x1a\x1ctypes/v1/otel_resource.proto\"|\n" + + " svc/environment/v1/service.proto\x12\x12svc.environment.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15types/v1/cursor.proto\x1a\x1atypes/v1/environment.proto\x1a\x1ctypes/v1/otel_resource.proto\"|\n" + "\x13ListResourceRequest\x12(\n" + "\x06cursor\x18\x01 \x01(\v2\x10.types.v1.CursorR\x06cursor\x12\x14\n" + "\x05limit\x18\x02 \x01(\x05R\x05limit\x12%\n" + @@ -191,9 +446,35 @@ const file_svc_environment_v1_service_proto_rawDesc = "" + "\x04next\x18\x01 \x01(\v2\x10.types.v1.CursorR\x04next\x12G\n" + "\x05items\x18\x02 \x03(\v21.svc.environment.v1.ListResourceResponse.ListItemR\x05items\x1a:\n" + "\bListItem\x12.\n" + - "\bresource\x18\x01 \x01(\v2\x12.types.v1.ResourceR\bresource2w\n" + + "\bresource\x18\x01 \x01(\v2\x12.types.v1.ResourceR\bresource\"\xd8\x04\n" + + "\vTrimRequest\x12%\n" + + "\x0eenvironment_id\x18\x01 \x01(\x03R\renvironmentId\x12<\n" + + "\x04size\x18\x02 \x01(\v2&.svc.environment.v1.TrimRequest.BySizeH\x00R\x04size\x12<\n" + + "\x04time\x18\x03 \x01(\v2&.svc.environment.v1.TrimRequest.ByTimeH\x00R\x04time\x1a\x9b\x01\n" + + "\x06BySize\x12\x1e\n" + + "\blog_size\x18\x01 \x01(\x04H\x00R\alogSize\x88\x01\x01\x12 \n" + + "\tspan_size\x18\x02 \x01(\x04H\x01R\bspanSize\x88\x01\x01\x12$\n" + + "\vmetric_size\x18\x03 \x01(\x04H\x02R\n" + + "metricSize\x88\x01\x01B\v\n" + + "\t_log_sizeB\f\n" + + "\n" + + "_span_sizeB\x0e\n" + + "\f_metric_size\x1a\x81\x02\n" + + "\x06ByTime\x12>\n" + + "\n" + + "oldest_log\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampH\x00R\toldestLog\x88\x01\x01\x12@\n" + + "\voldest_span\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampH\x01R\n" + + "oldestSpan\x88\x01\x01\x12D\n" + + "\roldest_metric\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampH\x02R\foldestMetric\x88\x01\x01B\r\n" + + "\v_oldest_logB\x0e\n" + + "\f_oldest_spanB\x10\n" + + "\x0e_oldest_metricB\x04\n" + + "\x02by\"(\n" + + "\fTrimResponse\x12\x18\n" + + "\atrimmed\x18\x01 \x01(\x04R\atrimmed2\xc2\x01\n" + "\x12EnvironmentService\x12a\n" + - "\fListResource\x12'.svc.environment.v1.ListResourceRequest\x1a(.svc.environment.v1.ListResourceResponseB\xcf\x01\n" + + "\fListResource\x12'.svc.environment.v1.ListResourceRequest\x1a(.svc.environment.v1.ListResourceResponse\x12I\n" + + "\x04Trim\x12\x1f.svc.environment.v1.TrimRequest\x1a .svc.environment.v1.TrimResponseB\xcf\x01\n" + "\x16com.svc.environment.v1B\fServiceProtoP\x01Z=github.com/humanlogio/api/go/svc/environment/v1;environmentv1\xa2\x02\x03SEX\xaa\x02\x12Svc.Environment.V1\xca\x02\x12Svc\\Environment\\V1\xe2\x02\x1eSvc\\Environment\\V1\\GPBMetadata\xea\x02\x14Svc::Environment::V1b\x06proto3" var ( @@ -208,26 +489,38 @@ func file_svc_environment_v1_service_proto_rawDescGZIP() []byte { return file_svc_environment_v1_service_proto_rawDescData } -var file_svc_environment_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_svc_environment_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_svc_environment_v1_service_proto_goTypes = []any{ (*ListResourceRequest)(nil), // 0: svc.environment.v1.ListResourceRequest (*ListResourceResponse)(nil), // 1: svc.environment.v1.ListResourceResponse - (*ListResourceResponse_ListItem)(nil), // 2: svc.environment.v1.ListResourceResponse.ListItem - (*v1.Cursor)(nil), // 3: types.v1.Cursor - (*v1.Resource)(nil), // 4: types.v1.Resource + (*TrimRequest)(nil), // 2: svc.environment.v1.TrimRequest + (*TrimResponse)(nil), // 3: svc.environment.v1.TrimResponse + (*ListResourceResponse_ListItem)(nil), // 4: svc.environment.v1.ListResourceResponse.ListItem + (*TrimRequest_BySize)(nil), // 5: svc.environment.v1.TrimRequest.BySize + (*TrimRequest_ByTime)(nil), // 6: svc.environment.v1.TrimRequest.ByTime + (*v1.Cursor)(nil), // 7: types.v1.Cursor + (*v1.Resource)(nil), // 8: types.v1.Resource + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp } var file_svc_environment_v1_service_proto_depIdxs = []int32{ - 3, // 0: svc.environment.v1.ListResourceRequest.cursor:type_name -> types.v1.Cursor - 3, // 1: svc.environment.v1.ListResourceResponse.next:type_name -> types.v1.Cursor - 2, // 2: svc.environment.v1.ListResourceResponse.items:type_name -> svc.environment.v1.ListResourceResponse.ListItem - 4, // 3: svc.environment.v1.ListResourceResponse.ListItem.resource:type_name -> types.v1.Resource - 0, // 4: svc.environment.v1.EnvironmentService.ListResource:input_type -> svc.environment.v1.ListResourceRequest - 1, // 5: svc.environment.v1.EnvironmentService.ListResource:output_type -> svc.environment.v1.ListResourceResponse - 5, // [5:6] is the sub-list for method output_type - 4, // [4:5] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 7, // 0: svc.environment.v1.ListResourceRequest.cursor:type_name -> types.v1.Cursor + 7, // 1: svc.environment.v1.ListResourceResponse.next:type_name -> types.v1.Cursor + 4, // 2: svc.environment.v1.ListResourceResponse.items:type_name -> svc.environment.v1.ListResourceResponse.ListItem + 5, // 3: svc.environment.v1.TrimRequest.size:type_name -> svc.environment.v1.TrimRequest.BySize + 6, // 4: svc.environment.v1.TrimRequest.time:type_name -> svc.environment.v1.TrimRequest.ByTime + 8, // 5: svc.environment.v1.ListResourceResponse.ListItem.resource:type_name -> types.v1.Resource + 9, // 6: svc.environment.v1.TrimRequest.ByTime.oldest_log:type_name -> google.protobuf.Timestamp + 9, // 7: svc.environment.v1.TrimRequest.ByTime.oldest_span:type_name -> google.protobuf.Timestamp + 9, // 8: svc.environment.v1.TrimRequest.ByTime.oldest_metric:type_name -> google.protobuf.Timestamp + 0, // 9: svc.environment.v1.EnvironmentService.ListResource:input_type -> svc.environment.v1.ListResourceRequest + 2, // 10: svc.environment.v1.EnvironmentService.Trim:input_type -> svc.environment.v1.TrimRequest + 1, // 11: svc.environment.v1.EnvironmentService.ListResource:output_type -> svc.environment.v1.ListResourceResponse + 3, // 12: svc.environment.v1.EnvironmentService.Trim:output_type -> svc.environment.v1.TrimResponse + 11, // [11:13] is the sub-list for method output_type + 9, // [9:11] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name } func init() { file_svc_environment_v1_service_proto_init() } @@ -235,13 +528,19 @@ func file_svc_environment_v1_service_proto_init() { if File_svc_environment_v1_service_proto != nil { return } + file_svc_environment_v1_service_proto_msgTypes[2].OneofWrappers = []any{ + (*TrimRequest_Size)(nil), + (*TrimRequest_Time)(nil), + } + file_svc_environment_v1_service_proto_msgTypes[5].OneofWrappers = []any{} + file_svc_environment_v1_service_proto_msgTypes[6].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_svc_environment_v1_service_proto_rawDesc), len(file_svc_environment_v1_service_proto_rawDesc)), NumEnums: 0, - NumMessages: 3, + NumMessages: 7, NumExtensions: 0, NumServices: 1, }, diff --git a/js/buf/validate/validate_pb.ts b/js/buf/validate/validate_pb.ts index 9613942..fc8bcdb 100644 --- a/js/buf/validate/validate_pb.ts +++ b/js/buf/validate/validate_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file buf/validate/validate.proto (package buf.validate, syntax proto2) /* eslint-disable */ diff --git a/js/svc/alert/v1/service_pb.ts b/js/svc/alert/v1/service_pb.ts index baabb45..9841fe4 100644 --- a/js/svc/alert/v1/service_pb.ts +++ b/js/svc/alert/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/alert/v1/service.proto (package svc.alert.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/auth/v1/service_pb.ts b/js/svc/auth/v1/service_pb.ts index 5e5b848..b290332 100644 --- a/js/svc/auth/v1/service_pb.ts +++ b/js/svc/auth/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/auth/v1/service.proto (package svc.auth.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/cliupdate/v1/service_pb.ts b/js/svc/cliupdate/v1/service_pb.ts index 748420e..e529f9c 100644 --- a/js/svc/cliupdate/v1/service_pb.ts +++ b/js/svc/cliupdate/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/cliupdate/v1/service.proto (package svc.cliupdate.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/dashboard/v1/service_pb.ts b/js/svc/dashboard/v1/service_pb.ts index 9abbf6d..76637ec 100644 --- a/js/svc/dashboard/v1/service_pb.ts +++ b/js/svc/dashboard/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/dashboard/v1/service.proto (package svc.dashboard.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/environment/v1/service-EnvironmentService_connectquery.ts b/js/svc/environment/v1/service-EnvironmentService_connectquery.ts index 360dab4..fbf3c82 100644 --- a/js/svc/environment/v1/service-EnvironmentService_connectquery.ts +++ b/js/svc/environment/v1/service-EnvironmentService_connectquery.ts @@ -8,3 +8,8 @@ import { EnvironmentService } from "./service_pb"; * @generated from rpc svc.environment.v1.EnvironmentService.ListResource */ export const listResource = EnvironmentService.method.listResource; + +/** + * @generated from rpc svc.environment.v1.EnvironmentService.Trim + */ +export const trim = EnvironmentService.method.trim; diff --git a/js/svc/environment/v1/service_pb.ts b/js/svc/environment/v1/service_pb.ts index 93059bd..4ccfbd3 100644 --- a/js/svc/environment/v1/service_pb.ts +++ b/js/svc/environment/v1/service_pb.ts @@ -1,9 +1,11 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/environment/v1/service.proto (package svc.environment.v1, syntax proto3) /* eslint-disable */ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import type { Timestamp } from "@bufbuild/protobuf/wkt"; +import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; import type { Cursor } from "../../../types/v1/cursor_pb"; import { file_types_v1_cursor } from "../../../types/v1/cursor_pb"; import { file_types_v1_environment } from "../../../types/v1/environment_pb"; @@ -15,7 +17,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file svc/environment/v1/service.proto. */ export const file_svc_environment_v1_service: GenFile = /*@__PURE__*/ - fileDesc("CiBzdmMvZW52aXJvbm1lbnQvdjEvc2VydmljZS5wcm90bxISc3ZjLmVudmlyb25tZW50LnYxIl4KE0xpc3RSZXNvdXJjZVJlcXVlc3QSIAoGY3Vyc29yGAEgASgLMhAudHlwZXMudjEuQ3Vyc29yEg0KBWxpbWl0GAIgASgFEhYKDmVudmlyb25tZW50X2lkGAMgASgDIqoBChRMaXN0UmVzb3VyY2VSZXNwb25zZRIeCgRuZXh0GAEgASgLMhAudHlwZXMudjEuQ3Vyc29yEkAKBWl0ZW1zGAIgAygLMjEuc3ZjLmVudmlyb25tZW50LnYxLkxpc3RSZXNvdXJjZVJlc3BvbnNlLkxpc3RJdGVtGjAKCExpc3RJdGVtEiQKCHJlc291cmNlGAEgASgLMhIudHlwZXMudjEuUmVzb3VyY2UydwoSRW52aXJvbm1lbnRTZXJ2aWNlEmEKDExpc3RSZXNvdXJjZRInLnN2Yy5lbnZpcm9ubWVudC52MS5MaXN0UmVzb3VyY2VSZXF1ZXN0Giguc3ZjLmVudmlyb25tZW50LnYxLkxpc3RSZXNvdXJjZVJlc3BvbnNlQs8BChZjb20uc3ZjLmVudmlyb25tZW50LnYxQgxTZXJ2aWNlUHJvdG9QAVo9Z2l0aHViLmNvbS9odW1hbmxvZ2lvL2FwaS9nby9zdmMvZW52aXJvbm1lbnQvdjE7ZW52aXJvbm1lbnR2MaICA1NFWKoCElN2Yy5FbnZpcm9ubWVudC5WMcoCElN2Y1xFbnZpcm9ubWVudFxWMeICHlN2Y1xFbnZpcm9ubWVudFxWMVxHUEJNZXRhZGF0YeoCFFN2Yzo6RW52aXJvbm1lbnQ6OlYxYgZwcm90bzM", [file_types_v1_cursor, file_types_v1_environment, file_types_v1_otel_resource]); + fileDesc("CiBzdmMvZW52aXJvbm1lbnQvdjEvc2VydmljZS5wcm90bxISc3ZjLmVudmlyb25tZW50LnYxIl4KE0xpc3RSZXNvdXJjZVJlcXVlc3QSIAoGY3Vyc29yGAEgASgLMhAudHlwZXMudjEuQ3Vyc29yEg0KBWxpbWl0GAIgASgFEhYKDmVudmlyb25tZW50X2lkGAMgASgDIqoBChRMaXN0UmVzb3VyY2VSZXNwb25zZRIeCgRuZXh0GAEgASgLMhAudHlwZXMudjEuQ3Vyc29yEkAKBWl0ZW1zGAIgAygLMjEuc3ZjLmVudmlyb25tZW50LnYxLkxpc3RSZXNvdXJjZVJlc3BvbnNlLkxpc3RJdGVtGjAKCExpc3RJdGVtEiQKCHJlc291cmNlGAEgASgLMhIudHlwZXMudjEuUmVzb3VyY2Ui+AMKC1RyaW1SZXF1ZXN0EhYKDmVudmlyb25tZW50X2lkGAEgASgDEjYKBHNpemUYAiABKAsyJi5zdmMuZW52aXJvbm1lbnQudjEuVHJpbVJlcXVlc3QuQnlTaXplSAASNgoEdGltZRgDIAEoCzImLnN2Yy5lbnZpcm9ubWVudC52MS5UcmltUmVxdWVzdC5CeVRpbWVIABp8CgZCeVNpemUSFQoIbG9nX3NpemUYASABKARIAIgBARIWCglzcGFuX3NpemUYAiABKARIAYgBARIYCgttZXRyaWNfc2l6ZRgDIAEoBEgCiAEBQgsKCV9sb2dfc2l6ZUIMCgpfc3Bhbl9zaXplQg4KDF9tZXRyaWNfc2l6ZRrcAQoGQnlUaW1lEjMKCm9sZGVzdF9sb2cYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSACIAQESNAoLb2xkZXN0X3NwYW4YAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAGIAQESNgoNb2xkZXN0X21ldHJpYxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIAogBAUINCgtfb2xkZXN0X2xvZ0IOCgxfb2xkZXN0X3NwYW5CEAoOX29sZGVzdF9tZXRyaWNCBAoCYnkiHwoMVHJpbVJlc3BvbnNlEg8KB3RyaW1tZWQYASABKAQywgEKEkVudmlyb25tZW50U2VydmljZRJhCgxMaXN0UmVzb3VyY2USJy5zdmMuZW52aXJvbm1lbnQudjEuTGlzdFJlc291cmNlUmVxdWVzdBooLnN2Yy5lbnZpcm9ubWVudC52MS5MaXN0UmVzb3VyY2VSZXNwb25zZRJJCgRUcmltEh8uc3ZjLmVudmlyb25tZW50LnYxLlRyaW1SZXF1ZXN0GiAuc3ZjLmVudmlyb25tZW50LnYxLlRyaW1SZXNwb25zZULPAQoWY29tLnN2Yy5lbnZpcm9ubWVudC52MUIMU2VydmljZVByb3RvUAFaPWdpdGh1Yi5jb20vaHVtYW5sb2dpby9hcGkvZ28vc3ZjL2Vudmlyb25tZW50L3YxO2Vudmlyb25tZW50djGiAgNTRViqAhJTdmMuRW52aXJvbm1lbnQuVjHKAhJTdmNcRW52aXJvbm1lbnRcVjHiAh5TdmNcRW52aXJvbm1lbnRcVjFcR1BCTWV0YWRhdGHqAhRTdmM6OkVudmlyb25tZW50OjpWMWIGcHJvdG8z", [file_google_protobuf_timestamp, file_types_v1_cursor, file_types_v1_environment, file_types_v1_otel_resource]); /** * @generated from message svc.environment.v1.ListResourceRequest @@ -83,6 +85,111 @@ export type ListResourceResponse_ListItem = Message<"svc.environment.v1.ListReso export const ListResourceResponse_ListItemSchema: GenMessage = /*@__PURE__*/ messageDesc(file_svc_environment_v1_service, 1, 0); +/** + * @generated from message svc.environment.v1.TrimRequest + */ +export type TrimRequest = Message<"svc.environment.v1.TrimRequest"> & { + /** + * @generated from field: int64 environment_id = 1; + */ + environmentId: bigint; + + /** + * @generated from oneof svc.environment.v1.TrimRequest.by + */ + by: { + /** + * @generated from field: svc.environment.v1.TrimRequest.BySize size = 2; + */ + value: TrimRequest_BySize; + case: "size"; + } | { + /** + * @generated from field: svc.environment.v1.TrimRequest.ByTime time = 3; + */ + value: TrimRequest_ByTime; + case: "time"; + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message svc.environment.v1.TrimRequest. + * Use `create(TrimRequestSchema)` to create a new message. + */ +export const TrimRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_svc_environment_v1_service, 2); + +/** + * @generated from message svc.environment.v1.TrimRequest.BySize + */ +export type TrimRequest_BySize = Message<"svc.environment.v1.TrimRequest.BySize"> & { + /** + * @generated from field: optional uint64 log_size = 1; + */ + logSize?: bigint; + + /** + * @generated from field: optional uint64 span_size = 2; + */ + spanSize?: bigint; + + /** + * @generated from field: optional uint64 metric_size = 3; + */ + metricSize?: bigint; +}; + +/** + * Describes the message svc.environment.v1.TrimRequest.BySize. + * Use `create(TrimRequest_BySizeSchema)` to create a new message. + */ +export const TrimRequest_BySizeSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_svc_environment_v1_service, 2, 0); + +/** + * @generated from message svc.environment.v1.TrimRequest.ByTime + */ +export type TrimRequest_ByTime = Message<"svc.environment.v1.TrimRequest.ByTime"> & { + /** + * @generated from field: optional google.protobuf.Timestamp oldest_log = 1; + */ + oldestLog?: Timestamp; + + /** + * @generated from field: optional google.protobuf.Timestamp oldest_span = 2; + */ + oldestSpan?: Timestamp; + + /** + * @generated from field: optional google.protobuf.Timestamp oldest_metric = 3; + */ + oldestMetric?: Timestamp; +}; + +/** + * Describes the message svc.environment.v1.TrimRequest.ByTime. + * Use `create(TrimRequest_ByTimeSchema)` to create a new message. + */ +export const TrimRequest_ByTimeSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_svc_environment_v1_service, 2, 1); + +/** + * @generated from message svc.environment.v1.TrimResponse + */ +export type TrimResponse = Message<"svc.environment.v1.TrimResponse"> & { + /** + * @generated from field: uint64 trimmed = 1; + */ + trimmed: bigint; +}; + +/** + * Describes the message svc.environment.v1.TrimResponse. + * Use `create(TrimResponseSchema)` to create a new message. + */ +export const TrimResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_svc_environment_v1_service, 3); + /** * @generated from service svc.environment.v1.EnvironmentService */ @@ -95,6 +202,14 @@ export const EnvironmentService: GenService<{ input: typeof ListResourceRequestSchema; output: typeof ListResourceResponseSchema; }, + /** + * @generated from rpc svc.environment.v1.EnvironmentService.Trim + */ + trim: { + methodKind: "unary"; + input: typeof TrimRequestSchema; + output: typeof TrimResponseSchema; + }, }> = /*@__PURE__*/ serviceDesc(file_svc_environment_v1_service, 0); diff --git a/js/svc/feature/v1/service_pb.ts b/js/svc/feature/v1/service_pb.ts index 323c483..23741d8 100644 --- a/js/svc/feature/v1/service_pb.ts +++ b/js/svc/feature/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/feature/v1/service.proto (package svc.feature.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/ingest/v1/service_pb.ts b/js/svc/ingest/v1/service_pb.ts index c252201..59d0ff1 100644 --- a/js/svc/ingest/v1/service_pb.ts +++ b/js/svc/ingest/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/ingest/v1/service.proto (package svc.ingest.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/localhost/v1/service_pb.ts b/js/svc/localhost/v1/service_pb.ts index 74e5d91..0a98569 100644 --- a/js/svc/localhost/v1/service_pb.ts +++ b/js/svc/localhost/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/localhost/v1/service.proto (package svc.localhost.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/organization/v1/service_pb.ts b/js/svc/organization/v1/service_pb.ts index fbae8fd..c4988ee 100644 --- a/js/svc/organization/v1/service_pb.ts +++ b/js/svc/organization/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/organization/v1/service.proto (package svc.organization.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/product/v1/service_pb.ts b/js/svc/product/v1/service_pb.ts index 11215c1..5457dec 100644 --- a/js/svc/product/v1/service_pb.ts +++ b/js/svc/product/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/product/v1/service.proto (package svc.product.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/project/v1/service_pb.ts b/js/svc/project/v1/service_pb.ts index 0fc23e8..6fbe56e 100644 --- a/js/svc/project/v1/service_pb.ts +++ b/js/svc/project/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/project/v1/service.proto (package svc.project.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/query/v1/service_pb.ts b/js/svc/query/v1/service_pb.ts index e460887..77f5e91 100644 --- a/js/svc/query/v1/service_pb.ts +++ b/js/svc/query/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/query/v1/service.proto (package svc.query.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/query/v1/trace_service_pb.ts b/js/svc/query/v1/trace_service_pb.ts index db43a05..707478f 100644 --- a/js/svc/query/v1/trace_service_pb.ts +++ b/js/svc/query/v1/trace_service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/query/v1/trace_service.proto (package svc.query.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/release/v1/service_pb.ts b/js/svc/release/v1/service_pb.ts index b7cb87c..216c6c3 100644 --- a/js/svc/release/v1/service_pb.ts +++ b/js/svc/release/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/release/v1/service.proto (package svc.release.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/share/v1/service_pb.ts b/js/svc/share/v1/service_pb.ts index 55f8a53..2a6db10 100644 --- a/js/svc/share/v1/service_pb.ts +++ b/js/svc/share/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/share/v1/service.proto (package svc.share.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/token/v1/service_pb.ts b/js/svc/token/v1/service_pb.ts index 72fc6b9..af66353 100644 --- a/js/svc/token/v1/service_pb.ts +++ b/js/svc/token/v1/service_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/token/v1/service.proto (package svc.token.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/user/v1/service_private_pb.ts b/js/svc/user/v1/service_private_pb.ts index 8b04cff..b891354 100644 --- a/js/svc/user/v1/service_private_pb.ts +++ b/js/svc/user/v1/service_private_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/user/v1/service_private.proto (package svc.user.v1, syntax proto3) /* eslint-disable */ diff --git a/js/svc/user/v1/service_public_pb.ts b/js/svc/user/v1/service_public_pb.ts index 7ece77a..c76a540 100644 --- a/js/svc/user/v1/service_public_pb.ts +++ b/js/svc/user/v1/service_public_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file svc/user/v1/service_public.proto (package svc.user.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/alert_pb.ts b/js/types/v1/alert_pb.ts index 900a8ff..c179660 100644 --- a/js/types/v1/alert_pb.ts +++ b/js/types/v1/alert_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/alert.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/cursor_pb.ts b/js/types/v1/cursor_pb.ts index b0e1e55..3ea1c35 100644 --- a/js/types/v1/cursor_pb.ts +++ b/js/types/v1/cursor_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/cursor.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/dashboard_pb.ts b/js/types/v1/dashboard_pb.ts index 03661f8..d59a2bd 100644 --- a/js/types/v1/dashboard_pb.ts +++ b/js/types/v1/dashboard_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/dashboard.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/data_pb.ts b/js/types/v1/data_pb.ts index 8cd475f..ace9e3f 100644 --- a/js/types/v1/data_pb.ts +++ b/js/types/v1/data_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/data.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/database_pb.ts b/js/types/v1/database_pb.ts index 3e6da94..f462fd5 100644 --- a/js/types/v1/database_pb.ts +++ b/js/types/v1/database_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/database.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/environment_pb.ts b/js/types/v1/environment_pb.ts index bc98d0d..d9166e7 100644 --- a/js/types/v1/environment_pb.ts +++ b/js/types/v1/environment_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/environment.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/environment_token_pb.ts b/js/types/v1/environment_token_pb.ts index c37107c..328a628 100644 --- a/js/types/v1/environment_token_pb.ts +++ b/js/types/v1/environment_token_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/environment_token.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/favorite_query_pb.ts b/js/types/v1/favorite_query_pb.ts index c238b9c..b5bef76 100644 --- a/js/types/v1/favorite_query_pb.ts +++ b/js/types/v1/favorite_query_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/favorite_query.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/feature_pb.ts b/js/types/v1/feature_pb.ts index d5d553c..8703b24 100644 --- a/js/types/v1/feature_pb.ts +++ b/js/types/v1/feature_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/feature.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/localhost_config_pb.ts b/js/types/v1/localhost_config_pb.ts index b08ec1d..a551407 100644 --- a/js/types/v1/localhost_config_pb.ts +++ b/js/types/v1/localhost_config_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/localhost_config.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/machine_pb.ts b/js/types/v1/machine_pb.ts index 6b4cc99..d7f0d59 100644 --- a/js/types/v1/machine_pb.ts +++ b/js/types/v1/machine_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/machine.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/meta_pb.ts b/js/types/v1/meta_pb.ts index ba47054..8f6298a 100644 --- a/js/types/v1/meta_pb.ts +++ b/js/types/v1/meta_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/meta.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/organization_pb.ts b/js/types/v1/organization_pb.ts index 7cbe4bb..4a73556 100644 --- a/js/types/v1/organization_pb.ts +++ b/js/types/v1/organization_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/organization.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/otel_logging_pb.ts b/js/types/v1/otel_logging_pb.ts index 4203edb..9516134 100644 --- a/js/types/v1/otel_logging_pb.ts +++ b/js/types/v1/otel_logging_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/otel_logging.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/otel_resource_pb.ts b/js/types/v1/otel_resource_pb.ts index fad842e..745a93b 100644 --- a/js/types/v1/otel_resource_pb.ts +++ b/js/types/v1/otel_resource_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/otel_resource.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/otel_scope_pb.ts b/js/types/v1/otel_scope_pb.ts index effd3ea..c4f8fa4 100644 --- a/js/types/v1/otel_scope_pb.ts +++ b/js/types/v1/otel_scope_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/otel_scope.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/otel_tracing_pb.ts b/js/types/v1/otel_tracing_pb.ts index a45c9eb..97181fa 100644 --- a/js/types/v1/otel_tracing_pb.ts +++ b/js/types/v1/otel_tracing_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/otel_tracing.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/payment_method_pb.ts b/js/types/v1/payment_method_pb.ts index 926cf5c..184b1bb 100644 --- a/js/types/v1/payment_method_pb.ts +++ b/js/types/v1/payment_method_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/payment_method.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/price_pb.ts b/js/types/v1/price_pb.ts index bfa76d6..cb45417 100644 --- a/js/types/v1/price_pb.ts +++ b/js/types/v1/price_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/price.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/product_pb.ts b/js/types/v1/product_pb.ts index 83b7aa9..4989b2e 100644 --- a/js/types/v1/product_pb.ts +++ b/js/types/v1/product_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/product.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/project_pb.ts b/js/types/v1/project_pb.ts index 9b0d239..8abcb62 100644 --- a/js/types/v1/project_pb.ts +++ b/js/types/v1/project_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/project.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/query_history_entry_pb.ts b/js/types/v1/query_history_entry_pb.ts index 9e1c281..0c8670c 100644 --- a/js/types/v1/query_history_entry_pb.ts +++ b/js/types/v1/query_history_entry_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/query_history_entry.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/query_metrics_pb.ts b/js/types/v1/query_metrics_pb.ts index 4c07f2c..7bcc134 100644 --- a/js/types/v1/query_metrics_pb.ts +++ b/js/types/v1/query_metrics_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/query_metrics.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/query_pb.ts b/js/types/v1/query_pb.ts index 7732cab..70b766c 100644 --- a/js/types/v1/query_pb.ts +++ b/js/types/v1/query_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/query.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/release_channel_pb.ts b/js/types/v1/release_channel_pb.ts index e3a0b53..136d727 100644 --- a/js/types/v1/release_channel_pb.ts +++ b/js/types/v1/release_channel_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/release_channel.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/session_pb.ts b/js/types/v1/session_pb.ts index 126f82b..9daebcd 100644 --- a/js/types/v1/session_pb.ts +++ b/js/types/v1/session_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/session.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/shared_result_pb.ts b/js/types/v1/shared_result_pb.ts index 14d96ef..343748a 100644 --- a/js/types/v1/shared_result_pb.ts +++ b/js/types/v1/shared_result_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/shared_result.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/subscription_pb.ts b/js/types/v1/subscription_pb.ts index 3516bfc..0c5da8c 100644 --- a/js/types/v1/subscription_pb.ts +++ b/js/types/v1/subscription_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/subscription.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/symbol_pb.ts b/js/types/v1/symbol_pb.ts index 8b81fdf..30c6e9c 100644 --- a/js/types/v1/symbol_pb.ts +++ b/js/types/v1/symbol_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/symbol.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/types_pb.ts b/js/types/v1/types_pb.ts index 2aa4e2b..b1ffdc3 100644 --- a/js/types/v1/types_pb.ts +++ b/js/types/v1/types_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/types.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/ulid_pb.ts b/js/types/v1/ulid_pb.ts index f027b3d..2a0d7ae 100644 --- a/js/types/v1/ulid_pb.ts +++ b/js/types/v1/ulid_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/ulid.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/user_pb.ts b/js/types/v1/user_pb.ts index cface03..66f3782 100644 --- a/js/types/v1/user_pb.ts +++ b/js/types/v1/user_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/user.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/user_token_pb.ts b/js/types/v1/user_token_pb.ts index f044b43..7af99e4 100644 --- a/js/types/v1/user_token_pb.ts +++ b/js/types/v1/user_token_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/user_token.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/version_artifact_pb.ts b/js/types/v1/version_artifact_pb.ts index 8532186..1ba113f 100644 --- a/js/types/v1/version_artifact_pb.ts +++ b/js/types/v1/version_artifact_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/version_artifact.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/js/types/v1/version_pb.ts b/js/types/v1/version_pb.ts index 85e76be..251670a 100644 --- a/js/types/v1/version_pb.ts +++ b/js/types/v1/version_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=none" +// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=none" // @generated from file types/v1/version.proto (package types.v1, syntax proto3) /* eslint-disable */ diff --git a/package-lock.json b/package-lock.json index e0a6a0b..c5ec145 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,25 +9,25 @@ "version": "0.1.0", "license": "MIT", "dependencies": { - "@bufbuild/protobuf": "^2.10.0", + "@bufbuild/protobuf": "^2.10.1", "@bufbuild/protovalidate": "^0.8.0", "debug": "^4.3.6", "ms": "^2.1.2", "typescript": "^4.5.2" }, "devDependencies": { - "@bufbuild/buf": "^1.59.0", - "@bufbuild/protoc-gen-es": "^2.10.0", - "@connectrpc/connect": "^2.1.0", + "@bufbuild/buf": "^1.60.0", + "@bufbuild/protoc-gen-es": "^2.10.1", + "@connectrpc/connect": "^2.1.1", "@connectrpc/connect-query": "^2.2.0", - "@connectrpc/connect-web": "^2.1.0", + "@connectrpc/connect-web": "^2.1.1", "@connectrpc/protoc-gen-connect-query": "^2.2.0" } }, "node_modules/@bufbuild/buf": { - "version": "1.59.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.59.0.tgz", - "integrity": "sha512-VdLuGnFp1OKJaiMevlLow6Jcvv9omOyM02Qa1zexl8dBB4Ac2ggz6bpT3Zb06tmCnqd8tFrI/Im1fbom3CznlQ==", + "version": "1.60.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.60.0.tgz", + "integrity": "sha512-RF7EcwHF9wGUs4EBSweHtXZHfVL7bqkSPD1zwgJmG/ejo/I7KXS8+mT56fjw4r6MNgyNTV9F9gVfTsx4D6vhhA==", "dev": true, "hasInstallScript": true, "license": "Apache-2.0", @@ -40,19 +40,19 @@ "node": ">=12" }, "optionalDependencies": { - "@bufbuild/buf-darwin-arm64": "1.59.0", - "@bufbuild/buf-darwin-x64": "1.59.0", - "@bufbuild/buf-linux-aarch64": "1.59.0", - "@bufbuild/buf-linux-armv7": "1.59.0", - "@bufbuild/buf-linux-x64": "1.59.0", - "@bufbuild/buf-win32-arm64": "1.59.0", - "@bufbuild/buf-win32-x64": "1.59.0" + "@bufbuild/buf-darwin-arm64": "1.60.0", + "@bufbuild/buf-darwin-x64": "1.60.0", + "@bufbuild/buf-linux-aarch64": "1.60.0", + "@bufbuild/buf-linux-armv7": "1.60.0", + "@bufbuild/buf-linux-x64": "1.60.0", + "@bufbuild/buf-win32-arm64": "1.60.0", + "@bufbuild/buf-win32-x64": "1.60.0" } }, "node_modules/@bufbuild/buf-darwin-arm64": { - "version": "1.59.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.59.0.tgz", - "integrity": "sha512-d3JTxBCibC+C94JU0jwLMgo/WBhaAHBIRzZXaZ3Y8KREjTj3jhzAlelGZmCtQJyyE0l6DFSm3lQgMblJ5qlq/w==", + "version": "1.60.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.60.0.tgz", + "integrity": "sha512-3C/+EVyHnTGEl0DQ2GISab86IyE0jI4A65m059/BT0LFOF4vPbJU7bHO3Zzz+sFDWer+Ddi+93Tph+pWoxGI9A==", "cpu": [ "arm64" ], @@ -67,9 +67,9 @@ } }, "node_modules/@bufbuild/buf-darwin-x64": { - "version": "1.59.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.59.0.tgz", - "integrity": "sha512-eFnFB96GM6KjP5S8QFqjufjlMF41CVnXjkR8cIfR5jUXdwl1vf5S82Zv+cK1+Uogqhmt7AVBntd5Z+xmz4NKaw==", + "version": "1.60.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.60.0.tgz", + "integrity": "sha512-hS6BLLJGJj1FfA0m/pGI/ihv2i4/kin7pQlY1x1rE/FOwzpDFveLVKht+o6dt38cz2HSjLcItOrnke7D4hLBsg==", "cpu": [ "x64" ], @@ -84,9 +84,9 @@ } }, "node_modules/@bufbuild/buf-linux-aarch64": { - "version": "1.59.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.59.0.tgz", - "integrity": "sha512-g6DxTcJM29SBvqe42ll7HpkmTfecuG+PZYTysaxON9Y59fwtflhuLDpNqGhxWehHMkH11bFfpNeCGKjpGbVvkw==", + "version": "1.60.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.60.0.tgz", + "integrity": "sha512-arpgQZ3YZ6RQ6xwCAfKaBHS7wlQBxBDeWSEb+KXOkCGu6fcJX+4b80vUWIVJPE+j2tfpIv02ncWLCwU1tyWeuA==", "cpu": [ "arm64" ], @@ -101,9 +101,9 @@ } }, "node_modules/@bufbuild/buf-linux-armv7": { - "version": "1.59.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-armv7/-/buf-linux-armv7-1.59.0.tgz", - "integrity": "sha512-C92s+gmKnAyCzN7MdbtukRXOiW7e0hkeQrOie17vF6qWXPk2r9ix0WXZvg5gZr9R4zD8pOYwRVwYiB9zFXZOaA==", + "version": "1.60.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-armv7/-/buf-linux-armv7-1.60.0.tgz", + "integrity": "sha512-4vDsFgo1m5+J/kY8L58tbnPlpbt6FUO5ngKSIporCTZ+VfpiMiK8R6kh0Tp7PDOO3nAyTqzY/V6h+APnewsuOQ==", "cpu": [ "arm" ], @@ -118,9 +118,9 @@ } }, "node_modules/@bufbuild/buf-linux-x64": { - "version": "1.59.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.59.0.tgz", - "integrity": "sha512-Pzc3TFm1t2fZ5uT7jkYBjyuLNKo5ji/wRl/lLLvOlTFRyqsSZBkFNQcJGHoHSej1yDWau16VMrAh0GN1rZfvAg==", + "version": "1.60.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.60.0.tgz", + "integrity": "sha512-E3p1o1VLUxiPnTvOUXU5A37CeF3zbvNZYZQzZT2KZvMCbjch1ZG2zFBmgRtuGsid2aQ260O5NXurh+abDg3boA==", "cpu": [ "x64" ], @@ -135,9 +135,9 @@ } }, "node_modules/@bufbuild/buf-win32-arm64": { - "version": "1.59.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.59.0.tgz", - "integrity": "sha512-hS5VThgYNqbMFgY9SibDA/RXBdegw12jgrT2H+Tzaa2rvlSADck9ZAq9rwf2H0IvFJOqtR75Lejb+5Fx2rThpQ==", + "version": "1.60.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.60.0.tgz", + "integrity": "sha512-c3udQuwdCOZk5ijeQKT64rbXvzRvJzXqOLjOn+2loM/Yhx6csoOKzCRPxlGKP8qLy45woSoH/tfiBPzuvFKeLA==", "cpu": [ "arm64" ], @@ -152,9 +152,9 @@ } }, "node_modules/@bufbuild/buf-win32-x64": { - "version": "1.59.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.59.0.tgz", - "integrity": "sha512-JAGSF3oaKC2L/TelqvjB1N7oB5pTiviVr8mxiaxHyv4HpvcxCVdiO+iw0goRhZb4QHhYYswk2gLMezWHBxtR/g==", + "version": "1.60.0", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.60.0.tgz", + "integrity": "sha512-xu/o0wJHK+KL/kvfbV/3UvcelJ+DAwxMwhjrGG0mCq91MY+wKXaQHwv28MDjHtSC71+aV81A/YgJDcQjpQtZkg==", "cpu": [ "x64" ], @@ -190,20 +190,20 @@ } }, "node_modules/@bufbuild/protobuf": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.10.0.tgz", - "integrity": "sha512-fdRs9PSrBF7QUntpZpq6BTw58fhgGJojgg39m9oFOJGZT+nip9b0so5cYY1oWl5pvemDLr0cPPsH46vwThEbpQ==", + "version": "2.10.1", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.10.1.tgz", + "integrity": "sha512-ckS3+vyJb5qGpEYv/s1OebUHDi/xSNtfgw1wqKZo7MR9F2z+qXr0q5XagafAG/9O0QPVIUfST0smluYSTpYFkg==", "license": "(Apache-2.0 AND BSD-3-Clause)" }, "node_modules/@bufbuild/protoc-gen-es": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@bufbuild/protoc-gen-es/-/protoc-gen-es-2.10.0.tgz", - "integrity": "sha512-g3xtuxeMkbacn8/qWQ8NbHBA8unLAvGD7sjcXV1/lfO4iCfd6hYL1Z+rn2yLQZE/JEkG+GPZoIs7m5KI5VYaMw==", + "version": "2.10.1", + "resolved": "https://registry.npmjs.org/@bufbuild/protoc-gen-es/-/protoc-gen-es-2.10.1.tgz", + "integrity": "sha512-vsfbWs1X93oX+sMMJ7910/OwIizAYH5IOAArsxnSTifiop1fVgLFPAvJBLiHZoNMI8B/lbqji2SFwvjK0AWO1Q==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@bufbuild/protobuf": "2.10.0", - "@bufbuild/protoplugin": "2.10.0" + "@bufbuild/protobuf": "2.10.1", + "@bufbuild/protoplugin": "2.10.1" }, "bin": { "protoc-gen-es": "bin/protoc-gen-es" @@ -212,7 +212,7 @@ "node": ">=20" }, "peerDependencies": { - "@bufbuild/protobuf": "2.10.0" + "@bufbuild/protobuf": "2.10.1" }, "peerDependenciesMeta": { "@bufbuild/protobuf": { @@ -221,14 +221,14 @@ } }, "node_modules/@bufbuild/protoplugin": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@bufbuild/protoplugin/-/protoplugin-2.10.0.tgz", - "integrity": "sha512-GPJOZ1Gp9/Ci3MXP3yI7+q4G7IhB5cSpbLjsfnBILxtNx69I9+ix3r9P7JfewHvqMjtPe6L+YWX1LPBGNfZMGw==", + "version": "2.10.1", + "resolved": "https://registry.npmjs.org/@bufbuild/protoplugin/-/protoplugin-2.10.1.tgz", + "integrity": "sha512-imB8dKEjrOnG5+XqVS+CeYn924WGLU/g3wogKhk11XtX9y9NJ7432OS6h24asuBbLrQcPdEZ6QkfM7KeOCeeyQ==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@bufbuild/protobuf": "2.10.0", - "@typescript/vfs": "^1.5.2", + "@bufbuild/protobuf": "2.10.1", + "@typescript/vfs": "^1.6.2", "typescript": "5.4.5" } }, @@ -259,9 +259,9 @@ } }, "node_modules/@connectrpc/connect": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@connectrpc/connect/-/connect-2.1.0.tgz", - "integrity": "sha512-xhiwnYlJNHzmFsRw+iSPIwXR/xweTvTw8x5HiwWp10sbVtd4OpOXbRgE7V58xs1EC17fzusF1f5uOAy24OkBuA==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@connectrpc/connect/-/connect-2.1.1.tgz", + "integrity": "sha512-JzhkaTvM73m2K1URT6tv53k2RwngSmCXLZJgK580qNQOXRzZRR/BCMfZw3h+90JpnG6XksP5bYT+cz0rpUzUWQ==", "dev": true, "license": "Apache-2.0", "peerDependencies": { @@ -298,14 +298,14 @@ } }, "node_modules/@connectrpc/connect-web": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@connectrpc/connect-web/-/connect-web-2.1.0.tgz", - "integrity": "sha512-4IBFeMeXS1RVtmmFE/MwH+vWq/5vDRKys70va+DAaWDh83Rdy0iUQOJbITUDzvonlY5as3vwfs5yy9Yp2miHSw==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@connectrpc/connect-web/-/connect-web-2.1.1.tgz", + "integrity": "sha512-J8317Q2MaFRCT1jzVR1o06bZhDIBmU0UAzWx6xOIXzOq8+k71/+k7MUF7AwcBUX+34WIvbm5syRgC5HXQA8fOg==", "dev": true, "license": "Apache-2.0", "peerDependencies": { "@bufbuild/protobuf": "^2.7.0", - "@connectrpc/connect": "2.1.0" + "@connectrpc/connect": "2.1.1" } }, "node_modules/@connectrpc/protoc-gen-connect-query": { @@ -364,9 +364,9 @@ } }, "node_modules/@typescript/vfs": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.6.1.tgz", - "integrity": "sha512-JwoxboBh7Oz1v38tPbkrZ62ZXNHAk9bJ7c9x0eI5zBfBnBYGhURdbnh7Z4smN/MV48Y5OCcZb58n972UtbazsA==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.6.2.tgz", + "integrity": "sha512-hoBwJwcbKHmvd2QVebiytN1aELvpk9B74B4L1mFm/XT1Q/VOYAWl2vQ9AWRFtQq8zmz6enTpfTV8WRc4ATjW/g==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index dd91e39..b0605ff 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,17 @@ { "devDependencies": { - "@bufbuild/buf": "^1.59.0", - "@bufbuild/protoc-gen-es": "^2.10.0", - "@connectrpc/connect": "^2.1.0", + "@bufbuild/buf": "^1.60.0", + "@bufbuild/protoc-gen-es": "^2.10.1", + "@connectrpc/connect": "^2.1.1", "@connectrpc/connect-query": "^2.2.0", - "@connectrpc/connect-web": "^2.1.0", + "@connectrpc/connect-web": "^2.1.1", "@connectrpc/protoc-gen-connect-query": "^2.2.0" }, "name": "api", "version": "0.1.0", "description": "API for humanlog.io", "dependencies": { - "@bufbuild/protobuf": "^2.10.0", + "@bufbuild/protobuf": "^2.10.1", "@bufbuild/protovalidate": "^0.8.0", "debug": "^4.3.6", "ms": "^2.1.2", diff --git a/proto/svc/environment/v1/service.proto b/proto/svc/environment/v1/service.proto index 5b5659e..4f72e43 100644 --- a/proto/svc/environment/v1/service.proto +++ b/proto/svc/environment/v1/service.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package svc.environment.v1; +import "google/protobuf/timestamp.proto"; import "types/v1/cursor.proto"; import "types/v1/environment.proto"; import "types/v1/otel_resource.proto"; @@ -10,6 +11,7 @@ option go_package = "svc/environment/v1;environmentv1"; service EnvironmentService { rpc ListResource(ListResourceRequest) returns (ListResourceResponse); + rpc Trim(TrimRequest) returns (TrimResponse); } message ListResourceRequest { @@ -25,3 +27,25 @@ message ListResourceResponse { } repeated ListItem items = 2; } + +message TrimRequest { + message BySize { + optional uint64 log_size = 1; + optional uint64 span_size = 2; + optional uint64 metric_size = 3; + } + message ByTime { + optional google.protobuf.Timestamp oldest_log = 1; + optional google.protobuf.Timestamp oldest_span = 2; + optional google.protobuf.Timestamp oldest_metric = 3; + } + int64 environment_id = 1; + oneof by { + BySize size = 2; + ByTime time = 3; + } +} + +message TrimResponse { + uint64 trimmed = 1; +}