From acb78f208c8254a6f71fcf4a90158c3e3abc4d12 Mon Sep 17 00:00:00 2001 From: Antoine Grondin Date: Thu, 4 Sep 2025 17:53:25 +0900 Subject: [PATCH] user account stuff --- .../auth/v1/authv1connect/service.connect.go | 29 + go/svc/auth/v1/service.pb.go | 212 +++++-- .../environmentv1connect/service.connect.go | 40 +- go/svc/environment/v1/service.pb.go | 112 ++-- .../organizationv1connect/service.connect.go | 69 ++- go/svc/organization/v1/service.pb.go | 564 ++++++++++++------ go/types/v1/organization.pb.go | 370 +++++++++++- .../v1/service-AuthService_connectquery.ts | 5 + js/svc/auth/v1/service_pb.ts | 63 +- ...service-EnvironmentService_connectquery.ts | 4 +- js/svc/environment/v1/service_pb.ts | 52 +- ...ervice-OrganizationService_connectquery.ts | 9 +- js/svc/organization/v1/service_pb.ts | 150 +++-- js/types/v1/organization_pb.ts | 121 +++- proto/svc/auth/v1/service.proto | 11 + proto/svc/environment/v1/service.proto | 10 +- proto/svc/organization/v1/service.proto | 27 +- proto/types/v1/organization.proto | 24 + script/generate | 2 +- 19 files changed, 1442 insertions(+), 432 deletions(-) diff --git a/go/svc/auth/v1/authv1connect/service.connect.go b/go/svc/auth/v1/authv1connect/service.connect.go index 6653b16..6d37b09 100644 --- a/go/svc/auth/v1/authv1connect/service.connect.go +++ b/go/svc/auth/v1/authv1connect/service.connect.go @@ -41,6 +41,9 @@ const ( // AuthServiceCompleteDeviceAuthProcedure is the fully-qualified name of the AuthService's // CompleteDeviceAuth RPC. AuthServiceCompleteDeviceAuthProcedure = "/svc.auth.v1.AuthService/CompleteDeviceAuth" + // AuthServiceCheckUsernameProcedure is the fully-qualified name of the AuthService's CheckUsername + // RPC. + AuthServiceCheckUsernameProcedure = "/svc.auth.v1.AuthService/CheckUsername" ) // AuthServiceClient is a client for the svc.auth.v1.AuthService service. @@ -48,6 +51,7 @@ type AuthServiceClient interface { GetAuthURL(context.Context, *connect.Request[v1.GetAuthURLRequest]) (*connect.Response[v1.GetAuthURLResponse], error) BeginDeviceAuth(context.Context, *connect.Request[v1.BeginDeviceAuthRequest]) (*connect.Response[v1.BeginDeviceAuthResponse], error) CompleteDeviceAuth(context.Context, *connect.Request[v1.CompleteDeviceAuthRequest]) (*connect.Response[v1.CompleteDeviceAuthResponse], error) + CheckUsername(context.Context, *connect.Request[v1.CheckUsernameRequest]) (*connect.Response[v1.CheckUsernameResponse], error) } // NewAuthServiceClient constructs a client for the svc.auth.v1.AuthService service. By default, it @@ -79,6 +83,12 @@ func NewAuthServiceClient(httpClient connect.HTTPClient, baseURL string, opts .. connect.WithSchema(authServiceMethods.ByName("CompleteDeviceAuth")), connect.WithClientOptions(opts...), ), + checkUsername: connect.NewClient[v1.CheckUsernameRequest, v1.CheckUsernameResponse]( + httpClient, + baseURL+AuthServiceCheckUsernameProcedure, + connect.WithSchema(authServiceMethods.ByName("CheckUsername")), + connect.WithClientOptions(opts...), + ), } } @@ -87,6 +97,7 @@ type authServiceClient struct { getAuthURL *connect.Client[v1.GetAuthURLRequest, v1.GetAuthURLResponse] beginDeviceAuth *connect.Client[v1.BeginDeviceAuthRequest, v1.BeginDeviceAuthResponse] completeDeviceAuth *connect.Client[v1.CompleteDeviceAuthRequest, v1.CompleteDeviceAuthResponse] + checkUsername *connect.Client[v1.CheckUsernameRequest, v1.CheckUsernameResponse] } // GetAuthURL calls svc.auth.v1.AuthService.GetAuthURL. @@ -104,11 +115,17 @@ func (c *authServiceClient) CompleteDeviceAuth(ctx context.Context, req *connect return c.completeDeviceAuth.CallUnary(ctx, req) } +// CheckUsername calls svc.auth.v1.AuthService.CheckUsername. +func (c *authServiceClient) CheckUsername(ctx context.Context, req *connect.Request[v1.CheckUsernameRequest]) (*connect.Response[v1.CheckUsernameResponse], error) { + return c.checkUsername.CallUnary(ctx, req) +} + // AuthServiceHandler is an implementation of the svc.auth.v1.AuthService service. type AuthServiceHandler interface { GetAuthURL(context.Context, *connect.Request[v1.GetAuthURLRequest]) (*connect.Response[v1.GetAuthURLResponse], error) BeginDeviceAuth(context.Context, *connect.Request[v1.BeginDeviceAuthRequest]) (*connect.Response[v1.BeginDeviceAuthResponse], error) CompleteDeviceAuth(context.Context, *connect.Request[v1.CompleteDeviceAuthRequest]) (*connect.Response[v1.CompleteDeviceAuthResponse], error) + CheckUsername(context.Context, *connect.Request[v1.CheckUsernameRequest]) (*connect.Response[v1.CheckUsernameResponse], error) } // NewAuthServiceHandler builds an HTTP handler from the service implementation. It returns the path @@ -136,6 +153,12 @@ func NewAuthServiceHandler(svc AuthServiceHandler, opts ...connect.HandlerOption connect.WithSchema(authServiceMethods.ByName("CompleteDeviceAuth")), connect.WithHandlerOptions(opts...), ) + authServiceCheckUsernameHandler := connect.NewUnaryHandler( + AuthServiceCheckUsernameProcedure, + svc.CheckUsername, + connect.WithSchema(authServiceMethods.ByName("CheckUsername")), + connect.WithHandlerOptions(opts...), + ) return "/svc.auth.v1.AuthService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { case AuthServiceGetAuthURLProcedure: @@ -144,6 +167,8 @@ func NewAuthServiceHandler(svc AuthServiceHandler, opts ...connect.HandlerOption authServiceBeginDeviceAuthHandler.ServeHTTP(w, r) case AuthServiceCompleteDeviceAuthProcedure: authServiceCompleteDeviceAuthHandler.ServeHTTP(w, r) + case AuthServiceCheckUsernameProcedure: + authServiceCheckUsernameHandler.ServeHTTP(w, r) default: http.NotFound(w, r) } @@ -164,3 +189,7 @@ func (UnimplementedAuthServiceHandler) BeginDeviceAuth(context.Context, *connect func (UnimplementedAuthServiceHandler) CompleteDeviceAuth(context.Context, *connect.Request[v1.CompleteDeviceAuthRequest]) (*connect.Response[v1.CompleteDeviceAuthResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("svc.auth.v1.AuthService.CompleteDeviceAuth is not implemented")) } + +func (UnimplementedAuthServiceHandler) CheckUsername(context.Context, *connect.Request[v1.CheckUsernameRequest]) (*connect.Response[v1.CheckUsernameResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("svc.auth.v1.AuthService.CheckUsername is not implemented")) +} diff --git a/go/svc/auth/v1/service.pb.go b/go/svc/auth/v1/service.pb.go index 4740425..5c7349b 100644 --- a/go/svc/auth/v1/service.pb.go +++ b/go/svc/auth/v1/service.pb.go @@ -24,6 +24,94 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type CheckUsernameRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CheckUsernameRequest) Reset() { + *x = CheckUsernameRequest{} + mi := &file_svc_auth_v1_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CheckUsernameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckUsernameRequest) ProtoMessage() {} + +func (x *CheckUsernameRequest) ProtoReflect() protoreflect.Message { + mi := &file_svc_auth_v1_service_proto_msgTypes[0] + 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 CheckUsernameRequest.ProtoReflect.Descriptor instead. +func (*CheckUsernameRequest) Descriptor() ([]byte, []int) { + return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{0} +} + +func (x *CheckUsernameRequest) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +type CheckUsernameResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CheckUsernameResponse) Reset() { + *x = CheckUsernameResponse{} + mi := &file_svc_auth_v1_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CheckUsernameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckUsernameResponse) ProtoMessage() {} + +func (x *CheckUsernameResponse) ProtoReflect() protoreflect.Message { + mi := &file_svc_auth_v1_service_proto_msgTypes[1] + 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 CheckUsernameResponse.ProtoReflect.Descriptor instead. +func (*CheckUsernameResponse) Descriptor() ([]byte, []int) { + return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{1} +} + +func (x *CheckUsernameResponse) GetAvailable() bool { + if x != nil { + return x.Available + } + return false +} + type GetAuthURLRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // optional: if an org is specified @@ -35,13 +123,14 @@ type GetAuthURLRequest struct { Organization isGetAuthURLRequest_Organization `protobuf_oneof:"organization"` ReturnToUrl string `protobuf:"bytes,2,opt,name=return_to_url,json=returnToUrl,proto3" json:"return_to_url,omitempty"` Localhost *LocalhostViaBrowser `protobuf:"bytes,3,opt,name=localhost,proto3" json:"localhost,omitempty"` + Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetAuthURLRequest) Reset() { *x = GetAuthURLRequest{} - mi := &file_svc_auth_v1_service_proto_msgTypes[0] + mi := &file_svc_auth_v1_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -53,7 +142,7 @@ func (x *GetAuthURLRequest) String() string { func (*GetAuthURLRequest) ProtoMessage() {} func (x *GetAuthURLRequest) ProtoReflect() protoreflect.Message { - mi := &file_svc_auth_v1_service_proto_msgTypes[0] + mi := &file_svc_auth_v1_service_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -66,7 +155,7 @@ func (x *GetAuthURLRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAuthURLRequest.ProtoReflect.Descriptor instead. func (*GetAuthURLRequest) Descriptor() ([]byte, []int) { - return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{0} + return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{2} } func (x *GetAuthURLRequest) GetOrganization() isGetAuthURLRequest_Organization { @@ -108,6 +197,13 @@ func (x *GetAuthURLRequest) GetLocalhost() *LocalhostViaBrowser { return nil } +func (x *GetAuthURLRequest) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + type isGetAuthURLRequest_Organization interface { isGetAuthURLRequest_Organization() } @@ -135,7 +231,7 @@ type LocalhostViaBrowser struct { func (x *LocalhostViaBrowser) Reset() { *x = LocalhostViaBrowser{} - mi := &file_svc_auth_v1_service_proto_msgTypes[1] + mi := &file_svc_auth_v1_service_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -147,7 +243,7 @@ func (x *LocalhostViaBrowser) String() string { func (*LocalhostViaBrowser) ProtoMessage() {} func (x *LocalhostViaBrowser) ProtoReflect() protoreflect.Message { - mi := &file_svc_auth_v1_service_proto_msgTypes[1] + mi := &file_svc_auth_v1_service_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -160,7 +256,7 @@ func (x *LocalhostViaBrowser) ProtoReflect() protoreflect.Message { // Deprecated: Use LocalhostViaBrowser.ProtoReflect.Descriptor instead. func (*LocalhostViaBrowser) Descriptor() ([]byte, []int) { - return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{1} + return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{3} } func (x *LocalhostViaBrowser) GetArchitecture() string { @@ -193,7 +289,7 @@ type GetAuthURLResponse struct { func (x *GetAuthURLResponse) Reset() { *x = GetAuthURLResponse{} - mi := &file_svc_auth_v1_service_proto_msgTypes[2] + mi := &file_svc_auth_v1_service_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -205,7 +301,7 @@ func (x *GetAuthURLResponse) String() string { func (*GetAuthURLResponse) ProtoMessage() {} func (x *GetAuthURLResponse) ProtoReflect() protoreflect.Message { - mi := &file_svc_auth_v1_service_proto_msgTypes[2] + mi := &file_svc_auth_v1_service_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -218,7 +314,7 @@ func (x *GetAuthURLResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAuthURLResponse.ProtoReflect.Descriptor instead. func (*GetAuthURLResponse) Descriptor() ([]byte, []int) { - return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{2} + return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{4} } func (x *GetAuthURLResponse) GetAuthUrl() string { @@ -242,7 +338,7 @@ type BeginDeviceAuthRequest struct { func (x *BeginDeviceAuthRequest) Reset() { *x = BeginDeviceAuthRequest{} - mi := &file_svc_auth_v1_service_proto_msgTypes[3] + mi := &file_svc_auth_v1_service_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -254,7 +350,7 @@ func (x *BeginDeviceAuthRequest) String() string { func (*BeginDeviceAuthRequest) ProtoMessage() {} func (x *BeginDeviceAuthRequest) ProtoReflect() protoreflect.Message { - mi := &file_svc_auth_v1_service_proto_msgTypes[3] + mi := &file_svc_auth_v1_service_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -267,7 +363,7 @@ func (x *BeginDeviceAuthRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BeginDeviceAuthRequest.ProtoReflect.Descriptor instead. func (*BeginDeviceAuthRequest) Descriptor() ([]byte, []int) { - return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{3} + return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{5} } func (x *BeginDeviceAuthRequest) GetOrganization() isBeginDeviceAuthRequest_Organization { @@ -332,7 +428,7 @@ type BeginDeviceAuthResponse struct { func (x *BeginDeviceAuthResponse) Reset() { *x = BeginDeviceAuthResponse{} - mi := &file_svc_auth_v1_service_proto_msgTypes[4] + mi := &file_svc_auth_v1_service_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -344,7 +440,7 @@ func (x *BeginDeviceAuthResponse) String() string { func (*BeginDeviceAuthResponse) ProtoMessage() {} func (x *BeginDeviceAuthResponse) ProtoReflect() protoreflect.Message { - mi := &file_svc_auth_v1_service_proto_msgTypes[4] + mi := &file_svc_auth_v1_service_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -357,7 +453,7 @@ func (x *BeginDeviceAuthResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BeginDeviceAuthResponse.ProtoReflect.Descriptor instead. func (*BeginDeviceAuthResponse) Descriptor() ([]byte, []int) { - return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{4} + return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{6} } func (x *BeginDeviceAuthResponse) GetUrl() string { @@ -409,7 +505,7 @@ type CompleteDeviceAuthRequest struct { func (x *CompleteDeviceAuthRequest) Reset() { *x = CompleteDeviceAuthRequest{} - mi := &file_svc_auth_v1_service_proto_msgTypes[5] + mi := &file_svc_auth_v1_service_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -421,7 +517,7 @@ func (x *CompleteDeviceAuthRequest) String() string { func (*CompleteDeviceAuthRequest) ProtoMessage() {} func (x *CompleteDeviceAuthRequest) ProtoReflect() protoreflect.Message { - mi := &file_svc_auth_v1_service_proto_msgTypes[5] + mi := &file_svc_auth_v1_service_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -434,7 +530,7 @@ func (x *CompleteDeviceAuthRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CompleteDeviceAuthRequest.ProtoReflect.Descriptor instead. func (*CompleteDeviceAuthRequest) Descriptor() ([]byte, []int) { - return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{5} + return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{7} } func (x *CompleteDeviceAuthRequest) GetDeviceCode() string { @@ -474,7 +570,7 @@ type CompleteDeviceAuthResponse struct { func (x *CompleteDeviceAuthResponse) Reset() { *x = CompleteDeviceAuthResponse{} - mi := &file_svc_auth_v1_service_proto_msgTypes[6] + mi := &file_svc_auth_v1_service_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -486,7 +582,7 @@ func (x *CompleteDeviceAuthResponse) String() string { func (*CompleteDeviceAuthResponse) ProtoMessage() {} func (x *CompleteDeviceAuthResponse) ProtoReflect() protoreflect.Message { - mi := &file_svc_auth_v1_service_proto_msgTypes[6] + mi := &file_svc_auth_v1_service_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -499,7 +595,7 @@ func (x *CompleteDeviceAuthResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CompleteDeviceAuthResponse.ProtoReflect.Descriptor instead. func (*CompleteDeviceAuthResponse) Descriptor() ([]byte, []int) { - return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{6} + return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{8} } func (x *CompleteDeviceAuthResponse) GetToken() *v1.UserToken { @@ -513,12 +609,17 @@ var File_svc_auth_v1_service_proto protoreflect.FileDescriptor const file_svc_auth_v1_service_proto_rawDesc = "" + "\n" + - "\x19svc/auth/v1/service.proto\x12\vsvc.auth.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1atypes/v1/environment.proto\x1a\x13types/v1/meta.proto\x1a\x19types/v1/user_token.proto\x1a\x16types/v1/version.proto\"\xb9\x01\n" + + "\x19svc/auth/v1/service.proto\x12\vsvc.auth.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1atypes/v1/environment.proto\x1a\x13types/v1/meta.proto\x1a\x19types/v1/user_token.proto\x1a\x16types/v1/version.proto\"2\n" + + "\x14CheckUsernameRequest\x12\x1a\n" + + "\busername\x18\x01 \x01(\tR\busername\"5\n" + + "\x15CheckUsernameResponse\x12\x1c\n" + + "\tavailable\x18\x01 \x01(\bR\tavailable\"\xd5\x01\n" + "\x11GetAuthURLRequest\x12\x15\n" + "\x05by_id\x18d \x01(\x03H\x00R\x04byId\x12\x19\n" + "\aby_name\x18e \x01(\tH\x00R\x06byName\x12\"\n" + "\rreturn_to_url\x18\x02 \x01(\tR\vreturnToUrl\x12>\n" + - "\tlocalhost\x18\x03 \x01(\v2 .svc.auth.v1.LocalhostViaBrowserR\tlocalhostB\x0e\n" + + "\tlocalhost\x18\x03 \x01(\v2 .svc.auth.v1.LocalhostViaBrowserR\tlocalhost\x12\x1a\n" + + "\busername\x18\x04 \x01(\tR\busernameB\x0e\n" + "\forganization\"\x9c\x01\n" + "\x13LocalhostViaBrowser\x12\"\n" + "\farchitecture\x18\x01 \x01(\tR\farchitecture\x12)\n" + @@ -546,12 +647,13 @@ const file_svc_auth_v1_service_proto_rawDesc = "" + "\farchitecture\x18\x05 \x01(\tR\farchitecture\x12)\n" + "\x10operating_system\x18\x06 \x01(\tR\x0foperatingSystem\"G\n" + "\x1aCompleteDeviceAuthResponse\x12)\n" + - "\x05token\x18\x01 \x01(\v2\x13.types.v1.UserTokenR\x05token2\xa7\x02\n" + + "\x05token\x18\x01 \x01(\v2\x13.types.v1.UserTokenR\x05token2\x81\x03\n" + "\vAuthService\x12O\n" + "\n" + "GetAuthURL\x12\x1e.svc.auth.v1.GetAuthURLRequest\x1a\x1f.svc.auth.v1.GetAuthURLResponse\"\x00\x12^\n" + "\x0fBeginDeviceAuth\x12#.svc.auth.v1.BeginDeviceAuthRequest\x1a$.svc.auth.v1.BeginDeviceAuthResponse\"\x00\x12g\n" + - "\x12CompleteDeviceAuth\x12&.svc.auth.v1.CompleteDeviceAuthRequest\x1a'.svc.auth.v1.CompleteDeviceAuthResponse\"\x00B\x9e\x01\n" + + "\x12CompleteDeviceAuth\x12&.svc.auth.v1.CompleteDeviceAuthRequest\x1a'.svc.auth.v1.CompleteDeviceAuthResponse\"\x00\x12X\n" + + "\rCheckUsername\x12!.svc.auth.v1.CheckUsernameRequest\x1a\".svc.auth.v1.CheckUsernameResponse\"\x00B\x9e\x01\n" + "\x0fcom.svc.auth.v1B\fServiceProtoP\x01Z/github.com/humanlogio/api/go/svc/auth/v1;authv1\xa2\x02\x03SAX\xaa\x02\vSvc.Auth.V1\xca\x02\vSvc\\Auth\\V1\xe2\x02\x17Svc\\Auth\\V1\\GPBMetadata\xea\x02\rSvc::Auth::V1b\x06proto3" var ( @@ -566,34 +668,38 @@ func file_svc_auth_v1_service_proto_rawDescGZIP() []byte { return file_svc_auth_v1_service_proto_rawDescData } -var file_svc_auth_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_svc_auth_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_svc_auth_v1_service_proto_goTypes = []any{ - (*GetAuthURLRequest)(nil), // 0: svc.auth.v1.GetAuthURLRequest - (*LocalhostViaBrowser)(nil), // 1: svc.auth.v1.LocalhostViaBrowser - (*GetAuthURLResponse)(nil), // 2: svc.auth.v1.GetAuthURLResponse - (*BeginDeviceAuthRequest)(nil), // 3: svc.auth.v1.BeginDeviceAuthRequest - (*BeginDeviceAuthResponse)(nil), // 4: svc.auth.v1.BeginDeviceAuthResponse - (*CompleteDeviceAuthRequest)(nil), // 5: svc.auth.v1.CompleteDeviceAuthRequest - (*CompleteDeviceAuthResponse)(nil), // 6: svc.auth.v1.CompleteDeviceAuthResponse - (*v1.Version)(nil), // 7: types.v1.Version - (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 9: google.protobuf.Duration - (*v1.UserToken)(nil), // 10: types.v1.UserToken + (*CheckUsernameRequest)(nil), // 0: svc.auth.v1.CheckUsernameRequest + (*CheckUsernameResponse)(nil), // 1: svc.auth.v1.CheckUsernameResponse + (*GetAuthURLRequest)(nil), // 2: svc.auth.v1.GetAuthURLRequest + (*LocalhostViaBrowser)(nil), // 3: svc.auth.v1.LocalhostViaBrowser + (*GetAuthURLResponse)(nil), // 4: svc.auth.v1.GetAuthURLResponse + (*BeginDeviceAuthRequest)(nil), // 5: svc.auth.v1.BeginDeviceAuthRequest + (*BeginDeviceAuthResponse)(nil), // 6: svc.auth.v1.BeginDeviceAuthResponse + (*CompleteDeviceAuthRequest)(nil), // 7: svc.auth.v1.CompleteDeviceAuthRequest + (*CompleteDeviceAuthResponse)(nil), // 8: svc.auth.v1.CompleteDeviceAuthResponse + (*v1.Version)(nil), // 9: types.v1.Version + (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 11: google.protobuf.Duration + (*v1.UserToken)(nil), // 12: types.v1.UserToken } var file_svc_auth_v1_service_proto_depIdxs = []int32{ - 1, // 0: svc.auth.v1.GetAuthURLRequest.localhost:type_name -> svc.auth.v1.LocalhostViaBrowser - 7, // 1: svc.auth.v1.LocalhostViaBrowser.using_version:type_name -> types.v1.Version - 8, // 2: svc.auth.v1.BeginDeviceAuthResponse.expires_at:type_name -> google.protobuf.Timestamp - 9, // 3: svc.auth.v1.BeginDeviceAuthResponse.poll_interval:type_name -> google.protobuf.Duration - 10, // 4: svc.auth.v1.CompleteDeviceAuthResponse.token:type_name -> types.v1.UserToken - 0, // 5: svc.auth.v1.AuthService.GetAuthURL:input_type -> svc.auth.v1.GetAuthURLRequest - 3, // 6: svc.auth.v1.AuthService.BeginDeviceAuth:input_type -> svc.auth.v1.BeginDeviceAuthRequest - 5, // 7: svc.auth.v1.AuthService.CompleteDeviceAuth:input_type -> svc.auth.v1.CompleteDeviceAuthRequest - 2, // 8: svc.auth.v1.AuthService.GetAuthURL:output_type -> svc.auth.v1.GetAuthURLResponse - 4, // 9: svc.auth.v1.AuthService.BeginDeviceAuth:output_type -> svc.auth.v1.BeginDeviceAuthResponse - 6, // 10: svc.auth.v1.AuthService.CompleteDeviceAuth:output_type -> svc.auth.v1.CompleteDeviceAuthResponse - 8, // [8:11] is the sub-list for method output_type - 5, // [5:8] is the sub-list for method input_type + 3, // 0: svc.auth.v1.GetAuthURLRequest.localhost:type_name -> svc.auth.v1.LocalhostViaBrowser + 9, // 1: svc.auth.v1.LocalhostViaBrowser.using_version:type_name -> types.v1.Version + 10, // 2: svc.auth.v1.BeginDeviceAuthResponse.expires_at:type_name -> google.protobuf.Timestamp + 11, // 3: svc.auth.v1.BeginDeviceAuthResponse.poll_interval:type_name -> google.protobuf.Duration + 12, // 4: svc.auth.v1.CompleteDeviceAuthResponse.token:type_name -> types.v1.UserToken + 2, // 5: svc.auth.v1.AuthService.GetAuthURL:input_type -> svc.auth.v1.GetAuthURLRequest + 5, // 6: svc.auth.v1.AuthService.BeginDeviceAuth:input_type -> svc.auth.v1.BeginDeviceAuthRequest + 7, // 7: svc.auth.v1.AuthService.CompleteDeviceAuth:input_type -> svc.auth.v1.CompleteDeviceAuthRequest + 0, // 8: svc.auth.v1.AuthService.CheckUsername:input_type -> svc.auth.v1.CheckUsernameRequest + 4, // 9: svc.auth.v1.AuthService.GetAuthURL:output_type -> svc.auth.v1.GetAuthURLResponse + 6, // 10: svc.auth.v1.AuthService.BeginDeviceAuth:output_type -> svc.auth.v1.BeginDeviceAuthResponse + 8, // 11: svc.auth.v1.AuthService.CompleteDeviceAuth:output_type -> svc.auth.v1.CompleteDeviceAuthResponse + 1, // 12: svc.auth.v1.AuthService.CheckUsername:output_type -> svc.auth.v1.CheckUsernameResponse + 9, // [9:13] is the sub-list for method output_type + 5, // [5:9] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension extendee 0, // [0:5] is the sub-list for field type_name @@ -604,11 +710,11 @@ func file_svc_auth_v1_service_proto_init() { if File_svc_auth_v1_service_proto != nil { return } - file_svc_auth_v1_service_proto_msgTypes[0].OneofWrappers = []any{ + file_svc_auth_v1_service_proto_msgTypes[2].OneofWrappers = []any{ (*GetAuthURLRequest_ById)(nil), (*GetAuthURLRequest_ByName)(nil), } - file_svc_auth_v1_service_proto_msgTypes[3].OneofWrappers = []any{ + file_svc_auth_v1_service_proto_msgTypes[5].OneofWrappers = []any{ (*BeginDeviceAuthRequest_ById)(nil), (*BeginDeviceAuthRequest_ByName)(nil), } @@ -618,7 +724,7 @@ func file_svc_auth_v1_service_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_svc_auth_v1_service_proto_rawDesc), len(file_svc_auth_v1_service_proto_rawDesc)), NumEnums: 0, - NumMessages: 7, + NumMessages: 9, NumExtensions: 0, NumServices: 1, }, diff --git a/go/svc/environment/v1/environmentv1connect/service.connect.go b/go/svc/environment/v1/environmentv1connect/service.connect.go index 9ecf9d9..ac42eca 100644 --- a/go/svc/environment/v1/environmentv1connect/service.connect.go +++ b/go/svc/environment/v1/environmentv1connect/service.connect.go @@ -33,14 +33,14 @@ const ( // reflection-formatted method names, remove the leading slash and convert the remaining slash to a // period. const ( - // EnvironmentServiceListMachineProcedure is the fully-qualified name of the EnvironmentService's - // ListMachine RPC. - EnvironmentServiceListMachineProcedure = "/svc.environment.v1.EnvironmentService/ListMachine" + // EnvironmentServiceListResourceProcedure is the fully-qualified name of the EnvironmentService's + // ListResource RPC. + EnvironmentServiceListResourceProcedure = "/svc.environment.v1.EnvironmentService/ListResource" ) // EnvironmentServiceClient is a client for the svc.environment.v1.EnvironmentService service. type EnvironmentServiceClient interface { - ListMachine(context.Context, *connect.Request[v1.ListMachineRequest]) (*connect.Response[v1.ListMachineResponse], error) + ListResource(context.Context, *connect.Request[v1.ListResourceRequest]) (*connect.Response[v1.ListResourceResponse], error) } // NewEnvironmentServiceClient constructs a client for the svc.environment.v1.EnvironmentService @@ -54,10 +54,10 @@ func NewEnvironmentServiceClient(httpClient connect.HTTPClient, baseURL string, baseURL = strings.TrimRight(baseURL, "/") environmentServiceMethods := v1.File_svc_environment_v1_service_proto.Services().ByName("EnvironmentService").Methods() return &environmentServiceClient{ - listMachine: connect.NewClient[v1.ListMachineRequest, v1.ListMachineResponse]( + listResource: connect.NewClient[v1.ListResourceRequest, v1.ListResourceResponse]( httpClient, - baseURL+EnvironmentServiceListMachineProcedure, - connect.WithSchema(environmentServiceMethods.ByName("ListMachine")), + baseURL+EnvironmentServiceListResourceProcedure, + connect.WithSchema(environmentServiceMethods.ByName("ListResource")), connect.WithClientOptions(opts...), ), } @@ -65,18 +65,18 @@ func NewEnvironmentServiceClient(httpClient connect.HTTPClient, baseURL string, // environmentServiceClient implements EnvironmentServiceClient. type environmentServiceClient struct { - listMachine *connect.Client[v1.ListMachineRequest, v1.ListMachineResponse] + listResource *connect.Client[v1.ListResourceRequest, v1.ListResourceResponse] } -// ListMachine calls svc.environment.v1.EnvironmentService.ListMachine. -func (c *environmentServiceClient) ListMachine(ctx context.Context, req *connect.Request[v1.ListMachineRequest]) (*connect.Response[v1.ListMachineResponse], error) { - return c.listMachine.CallUnary(ctx, req) +// ListResource calls svc.environment.v1.EnvironmentService.ListResource. +func (c *environmentServiceClient) ListResource(ctx context.Context, req *connect.Request[v1.ListResourceRequest]) (*connect.Response[v1.ListResourceResponse], error) { + return c.listResource.CallUnary(ctx, req) } // EnvironmentServiceHandler is an implementation of the svc.environment.v1.EnvironmentService // service. type EnvironmentServiceHandler interface { - ListMachine(context.Context, *connect.Request[v1.ListMachineRequest]) (*connect.Response[v1.ListMachineResponse], error) + ListResource(context.Context, *connect.Request[v1.ListResourceRequest]) (*connect.Response[v1.ListResourceResponse], error) } // NewEnvironmentServiceHandler builds an HTTP handler from the service implementation. It returns @@ -86,16 +86,16 @@ type EnvironmentServiceHandler interface { // and JSON codecs. They also support gzip compression. func NewEnvironmentServiceHandler(svc EnvironmentServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { environmentServiceMethods := v1.File_svc_environment_v1_service_proto.Services().ByName("EnvironmentService").Methods() - environmentServiceListMachineHandler := connect.NewUnaryHandler( - EnvironmentServiceListMachineProcedure, - svc.ListMachine, - connect.WithSchema(environmentServiceMethods.ByName("ListMachine")), + environmentServiceListResourceHandler := connect.NewUnaryHandler( + EnvironmentServiceListResourceProcedure, + svc.ListResource, + connect.WithSchema(environmentServiceMethods.ByName("ListResource")), connect.WithHandlerOptions(opts...), ) return "/svc.environment.v1.EnvironmentService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { - case EnvironmentServiceListMachineProcedure: - environmentServiceListMachineHandler.ServeHTTP(w, r) + case EnvironmentServiceListResourceProcedure: + environmentServiceListResourceHandler.ServeHTTP(w, r) default: http.NotFound(w, r) } @@ -105,6 +105,6 @@ func NewEnvironmentServiceHandler(svc EnvironmentServiceHandler, opts ...connect // UnimplementedEnvironmentServiceHandler returns CodeUnimplemented from all methods. type UnimplementedEnvironmentServiceHandler struct{} -func (UnimplementedEnvironmentServiceHandler) ListMachine(context.Context, *connect.Request[v1.ListMachineRequest]) (*connect.Response[v1.ListMachineResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("svc.environment.v1.EnvironmentService.ListMachine is not implemented")) +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")) } diff --git a/go/svc/environment/v1/service.pb.go b/go/svc/environment/v1/service.pb.go index 6764522..0e78f06 100644 --- a/go/svc/environment/v1/service.pb.go +++ b/go/svc/environment/v1/service.pb.go @@ -22,7 +22,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type ListMachineRequest struct { +type ListResourceRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Cursor *v1.Cursor `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` @@ -31,20 +31,20 @@ type ListMachineRequest struct { sizeCache protoimpl.SizeCache } -func (x *ListMachineRequest) Reset() { - *x = ListMachineRequest{} +func (x *ListResourceRequest) Reset() { + *x = ListResourceRequest{} mi := &file_svc_environment_v1_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *ListMachineRequest) String() string { +func (x *ListResourceRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListMachineRequest) ProtoMessage() {} +func (*ListResourceRequest) ProtoMessage() {} -func (x *ListMachineRequest) ProtoReflect() protoreflect.Message { +func (x *ListResourceRequest) ProtoReflect() protoreflect.Message { mi := &file_svc_environment_v1_service_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -56,54 +56,54 @@ func (x *ListMachineRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListMachineRequest.ProtoReflect.Descriptor instead. -func (*ListMachineRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ListResourceRequest.ProtoReflect.Descriptor instead. +func (*ListResourceRequest) Descriptor() ([]byte, []int) { return file_svc_environment_v1_service_proto_rawDescGZIP(), []int{0} } -func (x *ListMachineRequest) GetCursor() *v1.Cursor { +func (x *ListResourceRequest) GetCursor() *v1.Cursor { if x != nil { return x.Cursor } return nil } -func (x *ListMachineRequest) GetLimit() int32 { +func (x *ListResourceRequest) GetLimit() int32 { if x != nil { return x.Limit } return 0 } -func (x *ListMachineRequest) GetEnvironmentId() int64 { +func (x *ListResourceRequest) GetEnvironmentId() int64 { if x != nil { return x.EnvironmentId } return 0 } -type ListMachineResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Next *v1.Cursor `protobuf:"bytes,1,opt,name=next,proto3" json:"next,omitempty"` - Items []*ListMachineResponse_ListItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` +type ListResourceResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Next *v1.Cursor `protobuf:"bytes,1,opt,name=next,proto3" json:"next,omitempty"` + Items []*ListResourceResponse_ListItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *ListMachineResponse) Reset() { - *x = ListMachineResponse{} +func (x *ListResourceResponse) Reset() { + *x = ListResourceResponse{} mi := &file_svc_environment_v1_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *ListMachineResponse) String() string { +func (x *ListResourceResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListMachineResponse) ProtoMessage() {} +func (*ListResourceResponse) ProtoMessage() {} -func (x *ListMachineResponse) ProtoReflect() protoreflect.Message { +func (x *ListResourceResponse) ProtoReflect() protoreflect.Message { mi := &file_svc_environment_v1_service_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -115,46 +115,46 @@ func (x *ListMachineResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListMachineResponse.ProtoReflect.Descriptor instead. -func (*ListMachineResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ListResourceResponse.ProtoReflect.Descriptor instead. +func (*ListResourceResponse) Descriptor() ([]byte, []int) { return file_svc_environment_v1_service_proto_rawDescGZIP(), []int{1} } -func (x *ListMachineResponse) GetNext() *v1.Cursor { +func (x *ListResourceResponse) GetNext() *v1.Cursor { if x != nil { return x.Next } return nil } -func (x *ListMachineResponse) GetItems() []*ListMachineResponse_ListItem { +func (x *ListResourceResponse) GetItems() []*ListResourceResponse_ListItem { if x != nil { return x.Items } return nil } -type ListMachineResponse_ListItem struct { +type ListResourceResponse_ListItem struct { state protoimpl.MessageState `protogen:"open.v1"` - Machine *v1.Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"` + Resource *v1.Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *ListMachineResponse_ListItem) Reset() { - *x = ListMachineResponse_ListItem{} +func (x *ListResourceResponse_ListItem) Reset() { + *x = ListResourceResponse_ListItem{} mi := &file_svc_environment_v1_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *ListMachineResponse_ListItem) String() string { +func (x *ListResourceResponse_ListItem) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListMachineResponse_ListItem) ProtoMessage() {} +func (*ListResourceResponse_ListItem) ProtoMessage() {} -func (x *ListMachineResponse_ListItem) ProtoReflect() protoreflect.Message { +func (x *ListResourceResponse_ListItem) ProtoReflect() protoreflect.Message { mi := &file_svc_environment_v1_service_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -166,14 +166,14 @@ func (x *ListMachineResponse_ListItem) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListMachineResponse_ListItem.ProtoReflect.Descriptor instead. -func (*ListMachineResponse_ListItem) Descriptor() ([]byte, []int) { +// Deprecated: Use ListResourceResponse_ListItem.ProtoReflect.Descriptor instead. +func (*ListResourceResponse_ListItem) Descriptor() ([]byte, []int) { return file_svc_environment_v1_service_proto_rawDescGZIP(), []int{1, 0} } -func (x *ListMachineResponse_ListItem) GetMachine() *v1.Machine { +func (x *ListResourceResponse_ListItem) GetResource() *v1.Resource { if x != nil { - return x.Machine + return x.Resource } return nil } @@ -182,18 +182,18 @@ 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\x16types/v1/machine.proto\"{\n" + - "\x12ListMachineRequest\x12(\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" + + "\x13ListResourceRequest\x12(\n" + "\x06cursor\x18\x01 \x01(\v2\x10.types.v1.CursorR\x06cursor\x12\x14\n" + "\x05limit\x18\x02 \x01(\x05R\x05limit\x12%\n" + - "\x0eenvironment_id\x18\x03 \x01(\x03R\renvironmentId\"\xbc\x01\n" + - "\x13ListMachineResponse\x12$\n" + - "\x04next\x18\x01 \x01(\v2\x10.types.v1.CursorR\x04next\x12F\n" + - "\x05items\x18\x02 \x03(\v20.svc.environment.v1.ListMachineResponse.ListItemR\x05items\x1a7\n" + - "\bListItem\x12+\n" + - "\amachine\x18\x01 \x01(\v2\x11.types.v1.MachineR\amachine2t\n" + - "\x12EnvironmentService\x12^\n" + - "\vListMachine\x12&.svc.environment.v1.ListMachineRequest\x1a'.svc.environment.v1.ListMachineResponseB\xcf\x01\n" + + "\x0eenvironment_id\x18\x03 \x01(\x03R\renvironmentId\"\xc1\x01\n" + + "\x14ListResourceResponse\x12$\n" + + "\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" + + "\x12EnvironmentService\x12a\n" + + "\fListResource\x12'.svc.environment.v1.ListResourceRequest\x1a(.svc.environment.v1.ListResourceResponseB\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 ( @@ -210,19 +210,19 @@ func file_svc_environment_v1_service_proto_rawDescGZIP() []byte { var file_svc_environment_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_svc_environment_v1_service_proto_goTypes = []any{ - (*ListMachineRequest)(nil), // 0: svc.environment.v1.ListMachineRequest - (*ListMachineResponse)(nil), // 1: svc.environment.v1.ListMachineResponse - (*ListMachineResponse_ListItem)(nil), // 2: svc.environment.v1.ListMachineResponse.ListItem - (*v1.Cursor)(nil), // 3: types.v1.Cursor - (*v1.Machine)(nil), // 4: types.v1.Machine + (*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 } var file_svc_environment_v1_service_proto_depIdxs = []int32{ - 3, // 0: svc.environment.v1.ListMachineRequest.cursor:type_name -> types.v1.Cursor - 3, // 1: svc.environment.v1.ListMachineResponse.next:type_name -> types.v1.Cursor - 2, // 2: svc.environment.v1.ListMachineResponse.items:type_name -> svc.environment.v1.ListMachineResponse.ListItem - 4, // 3: svc.environment.v1.ListMachineResponse.ListItem.machine:type_name -> types.v1.Machine - 0, // 4: svc.environment.v1.EnvironmentService.ListMachine:input_type -> svc.environment.v1.ListMachineRequest - 1, // 5: svc.environment.v1.EnvironmentService.ListMachine:output_type -> svc.environment.v1.ListMachineResponse + 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 diff --git a/go/svc/organization/v1/organizationv1connect/service.connect.go b/go/svc/organization/v1/organizationv1connect/service.connect.go index f7408fc..3fd7876 100644 --- a/go/svc/organization/v1/organizationv1connect/service.connect.go +++ b/go/svc/organization/v1/organizationv1connect/service.connect.go @@ -48,9 +48,12 @@ const ( // OrganizationServiceInviteUserProcedure is the fully-qualified name of the OrganizationService's // InviteUser RPC. OrganizationServiceInviteUserProcedure = "/svc.organization.v1.OrganizationService/InviteUser" - // OrganizationServiceRevokeUserProcedure is the fully-qualified name of the OrganizationService's - // RevokeUser RPC. - OrganizationServiceRevokeUserProcedure = "/svc.organization.v1.OrganizationService/RevokeUser" + // OrganizationServiceRevokeUserInvitationProcedure is the fully-qualified name of the + // OrganizationService's RevokeUserInvitation RPC. + OrganizationServiceRevokeUserInvitationProcedure = "/svc.organization.v1.OrganizationService/RevokeUserInvitation" + // OrganizationServiceListUserInvitationProcedure is the fully-qualified name of the + // OrganizationService's ListUserInvitation RPC. + OrganizationServiceListUserInvitationProcedure = "/svc.organization.v1.OrganizationService/ListUserInvitation" // OrganizationServiceCreateAddonSubscriptionProcedure is the fully-qualified name of the // OrganizationService's CreateAddonSubscription RPC. OrganizationServiceCreateAddonSubscriptionProcedure = "/svc.organization.v1.OrganizationService/CreateAddonSubscription" @@ -81,7 +84,8 @@ type OrganizationServiceClient interface { ListEnvironment(context.Context, *connect.Request[v1.ListEnvironmentRequest]) (*connect.Response[v1.ListEnvironmentResponse], error) ListUser(context.Context, *connect.Request[v1.ListUserRequest]) (*connect.Response[v1.ListUserResponse], error) InviteUser(context.Context, *connect.Request[v1.InviteUserRequest]) (*connect.Response[v1.InviteUserResponse], error) - RevokeUser(context.Context, *connect.Request[v1.RevokeUserRequest]) (*connect.Response[v1.RevokeUserResponse], error) + RevokeUserInvitation(context.Context, *connect.Request[v1.RevokeUserInvitationRequest]) (*connect.Response[v1.RevokeUserInvitationResponse], error) + ListUserInvitation(context.Context, *connect.Request[v1.ListUserInvitationRequest]) (*connect.Response[v1.ListUserInvitationResponse], error) CreateAddonSubscription(context.Context, *connect.Request[v1.CreateAddonSubscriptionRequest]) (*connect.Response[v1.CreateAddonSubscriptionResponse], error) ListAddonSubscription(context.Context, *connect.Request[v1.ListAddonSubscriptionRequest]) (*connect.Response[v1.ListAddonSubscriptionResponse], error) RemoveAddonSubscription(context.Context, *connect.Request[v1.RemoveAddonSubscriptionRequest]) (*connect.Response[v1.RemoveAddonSubscriptionResponse], error) @@ -133,10 +137,16 @@ func NewOrganizationServiceClient(httpClient connect.HTTPClient, baseURL string, connect.WithSchema(organizationServiceMethods.ByName("InviteUser")), connect.WithClientOptions(opts...), ), - revokeUser: connect.NewClient[v1.RevokeUserRequest, v1.RevokeUserResponse]( + revokeUserInvitation: connect.NewClient[v1.RevokeUserInvitationRequest, v1.RevokeUserInvitationResponse]( httpClient, - baseURL+OrganizationServiceRevokeUserProcedure, - connect.WithSchema(organizationServiceMethods.ByName("RevokeUser")), + baseURL+OrganizationServiceRevokeUserInvitationProcedure, + connect.WithSchema(organizationServiceMethods.ByName("RevokeUserInvitation")), + connect.WithClientOptions(opts...), + ), + listUserInvitation: connect.NewClient[v1.ListUserInvitationRequest, v1.ListUserInvitationResponse]( + httpClient, + baseURL+OrganizationServiceListUserInvitationProcedure, + connect.WithSchema(organizationServiceMethods.ByName("ListUserInvitation")), connect.WithClientOptions(opts...), ), createAddonSubscription: connect.NewClient[v1.CreateAddonSubscriptionRequest, v1.CreateAddonSubscriptionResponse]( @@ -191,7 +201,8 @@ type organizationServiceClient struct { listEnvironment *connect.Client[v1.ListEnvironmentRequest, v1.ListEnvironmentResponse] listUser *connect.Client[v1.ListUserRequest, v1.ListUserResponse] inviteUser *connect.Client[v1.InviteUserRequest, v1.InviteUserResponse] - revokeUser *connect.Client[v1.RevokeUserRequest, v1.RevokeUserResponse] + revokeUserInvitation *connect.Client[v1.RevokeUserInvitationRequest, v1.RevokeUserInvitationResponse] + listUserInvitation *connect.Client[v1.ListUserInvitationRequest, v1.ListUserInvitationResponse] createAddonSubscription *connect.Client[v1.CreateAddonSubscriptionRequest, v1.CreateAddonSubscriptionResponse] listAddonSubscription *connect.Client[v1.ListAddonSubscriptionRequest, v1.ListAddonSubscriptionResponse] removeAddonSubscription *connect.Client[v1.RemoveAddonSubscriptionRequest, v1.RemoveAddonSubscriptionResponse] @@ -226,9 +237,14 @@ func (c *organizationServiceClient) InviteUser(ctx context.Context, req *connect return c.inviteUser.CallUnary(ctx, req) } -// RevokeUser calls svc.organization.v1.OrganizationService.RevokeUser. -func (c *organizationServiceClient) RevokeUser(ctx context.Context, req *connect.Request[v1.RevokeUserRequest]) (*connect.Response[v1.RevokeUserResponse], error) { - return c.revokeUser.CallUnary(ctx, req) +// RevokeUserInvitation calls svc.organization.v1.OrganizationService.RevokeUserInvitation. +func (c *organizationServiceClient) RevokeUserInvitation(ctx context.Context, req *connect.Request[v1.RevokeUserInvitationRequest]) (*connect.Response[v1.RevokeUserInvitationResponse], error) { + return c.revokeUserInvitation.CallUnary(ctx, req) +} + +// ListUserInvitation calls svc.organization.v1.OrganizationService.ListUserInvitation. +func (c *organizationServiceClient) ListUserInvitation(ctx context.Context, req *connect.Request[v1.ListUserInvitationRequest]) (*connect.Response[v1.ListUserInvitationResponse], error) { + return c.listUserInvitation.CallUnary(ctx, req) } // CreateAddonSubscription calls svc.organization.v1.OrganizationService.CreateAddonSubscription. @@ -275,7 +291,8 @@ type OrganizationServiceHandler interface { ListEnvironment(context.Context, *connect.Request[v1.ListEnvironmentRequest]) (*connect.Response[v1.ListEnvironmentResponse], error) ListUser(context.Context, *connect.Request[v1.ListUserRequest]) (*connect.Response[v1.ListUserResponse], error) InviteUser(context.Context, *connect.Request[v1.InviteUserRequest]) (*connect.Response[v1.InviteUserResponse], error) - RevokeUser(context.Context, *connect.Request[v1.RevokeUserRequest]) (*connect.Response[v1.RevokeUserResponse], error) + RevokeUserInvitation(context.Context, *connect.Request[v1.RevokeUserInvitationRequest]) (*connect.Response[v1.RevokeUserInvitationResponse], error) + ListUserInvitation(context.Context, *connect.Request[v1.ListUserInvitationRequest]) (*connect.Response[v1.ListUserInvitationResponse], error) CreateAddonSubscription(context.Context, *connect.Request[v1.CreateAddonSubscriptionRequest]) (*connect.Response[v1.CreateAddonSubscriptionResponse], error) ListAddonSubscription(context.Context, *connect.Request[v1.ListAddonSubscriptionRequest]) (*connect.Response[v1.ListAddonSubscriptionResponse], error) RemoveAddonSubscription(context.Context, *connect.Request[v1.RemoveAddonSubscriptionRequest]) (*connect.Response[v1.RemoveAddonSubscriptionResponse], error) @@ -323,10 +340,16 @@ func NewOrganizationServiceHandler(svc OrganizationServiceHandler, opts ...conne connect.WithSchema(organizationServiceMethods.ByName("InviteUser")), connect.WithHandlerOptions(opts...), ) - organizationServiceRevokeUserHandler := connect.NewUnaryHandler( - OrganizationServiceRevokeUserProcedure, - svc.RevokeUser, - connect.WithSchema(organizationServiceMethods.ByName("RevokeUser")), + organizationServiceRevokeUserInvitationHandler := connect.NewUnaryHandler( + OrganizationServiceRevokeUserInvitationProcedure, + svc.RevokeUserInvitation, + connect.WithSchema(organizationServiceMethods.ByName("RevokeUserInvitation")), + connect.WithHandlerOptions(opts...), + ) + organizationServiceListUserInvitationHandler := connect.NewUnaryHandler( + OrganizationServiceListUserInvitationProcedure, + svc.ListUserInvitation, + connect.WithSchema(organizationServiceMethods.ByName("ListUserInvitation")), connect.WithHandlerOptions(opts...), ) organizationServiceCreateAddonSubscriptionHandler := connect.NewUnaryHandler( @@ -383,8 +406,10 @@ func NewOrganizationServiceHandler(svc OrganizationServiceHandler, opts ...conne organizationServiceListUserHandler.ServeHTTP(w, r) case OrganizationServiceInviteUserProcedure: organizationServiceInviteUserHandler.ServeHTTP(w, r) - case OrganizationServiceRevokeUserProcedure: - organizationServiceRevokeUserHandler.ServeHTTP(w, r) + case OrganizationServiceRevokeUserInvitationProcedure: + organizationServiceRevokeUserInvitationHandler.ServeHTTP(w, r) + case OrganizationServiceListUserInvitationProcedure: + organizationServiceListUserInvitationHandler.ServeHTTP(w, r) case OrganizationServiceCreateAddonSubscriptionProcedure: organizationServiceCreateAddonSubscriptionHandler.ServeHTTP(w, r) case OrganizationServiceListAddonSubscriptionProcedure: @@ -428,8 +453,12 @@ func (UnimplementedOrganizationServiceHandler) InviteUser(context.Context, *conn return nil, connect.NewError(connect.CodeUnimplemented, errors.New("svc.organization.v1.OrganizationService.InviteUser is not implemented")) } -func (UnimplementedOrganizationServiceHandler) RevokeUser(context.Context, *connect.Request[v1.RevokeUserRequest]) (*connect.Response[v1.RevokeUserResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("svc.organization.v1.OrganizationService.RevokeUser is not implemented")) +func (UnimplementedOrganizationServiceHandler) RevokeUserInvitation(context.Context, *connect.Request[v1.RevokeUserInvitationRequest]) (*connect.Response[v1.RevokeUserInvitationResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("svc.organization.v1.OrganizationService.RevokeUserInvitation is not implemented")) +} + +func (UnimplementedOrganizationServiceHandler) ListUserInvitation(context.Context, *connect.Request[v1.ListUserInvitationRequest]) (*connect.Response[v1.ListUserInvitationResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("svc.organization.v1.OrganizationService.ListUserInvitation is not implemented")) } func (UnimplementedOrganizationServiceHandler) CreateAddonSubscription(context.Context, *connect.Request[v1.CreateAddonSubscriptionRequest]) (*connect.Response[v1.CreateAddonSubscriptionResponse], error) { diff --git a/go/svc/organization/v1/service.pb.go b/go/svc/organization/v1/service.pb.go index 93532aa..1e54b0f 100644 --- a/go/svc/organization/v1/service.pb.go +++ b/go/svc/organization/v1/service.pb.go @@ -551,6 +551,7 @@ func (x *InviteUserRequest) GetUserEmail() string { type InviteUserResponse struct { state protoimpl.MessageState `protogen:"open.v1"` + Invitation *v1.Invitation `protobuf:"bytes,1,opt,name=invitation,proto3" json:"invitation,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -585,27 +586,34 @@ func (*InviteUserResponse) Descriptor() ([]byte, []int) { return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{9} } -type RevokeUserRequest struct { +func (x *InviteUserResponse) GetInvitation() *v1.Invitation { + if x != nil { + return x.Invitation + } + return nil +} + +type RevokeUserInvitationRequest struct { state protoimpl.MessageState `protogen:"open.v1"` - UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + InviteId int64 `protobuf:"varint,1,opt,name=invite_id,json=inviteId,proto3" json:"invite_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *RevokeUserRequest) Reset() { - *x = RevokeUserRequest{} +func (x *RevokeUserInvitationRequest) Reset() { + *x = RevokeUserInvitationRequest{} mi := &file_svc_organization_v1_service_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *RevokeUserRequest) String() string { +func (x *RevokeUserInvitationRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RevokeUserRequest) ProtoMessage() {} +func (*RevokeUserInvitationRequest) ProtoMessage() {} -func (x *RevokeUserRequest) ProtoReflect() protoreflect.Message { +func (x *RevokeUserInvitationRequest) ProtoReflect() protoreflect.Message { mi := &file_svc_organization_v1_service_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -617,38 +625,39 @@ func (x *RevokeUserRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RevokeUserRequest.ProtoReflect.Descriptor instead. -func (*RevokeUserRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use RevokeUserInvitationRequest.ProtoReflect.Descriptor instead. +func (*RevokeUserInvitationRequest) Descriptor() ([]byte, []int) { return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{10} } -func (x *RevokeUserRequest) GetUserId() int64 { +func (x *RevokeUserInvitationRequest) GetInviteId() int64 { if x != nil { - return x.UserId + return x.InviteId } return 0 } -type RevokeUserResponse struct { +type RevokeUserInvitationResponse struct { state protoimpl.MessageState `protogen:"open.v1"` + Invitation *v1.Invitation `protobuf:"bytes,1,opt,name=invitation,proto3" json:"invitation,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *RevokeUserResponse) Reset() { - *x = RevokeUserResponse{} +func (x *RevokeUserInvitationResponse) Reset() { + *x = RevokeUserInvitationResponse{} mi := &file_svc_organization_v1_service_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *RevokeUserResponse) String() string { +func (x *RevokeUserInvitationResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RevokeUserResponse) ProtoMessage() {} +func (*RevokeUserInvitationResponse) ProtoMessage() {} -func (x *RevokeUserResponse) ProtoReflect() protoreflect.Message { +func (x *RevokeUserInvitationResponse) ProtoReflect() protoreflect.Message { mi := &file_svc_organization_v1_service_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -660,11 +669,122 @@ func (x *RevokeUserResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RevokeUserResponse.ProtoReflect.Descriptor instead. -func (*RevokeUserResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use RevokeUserInvitationResponse.ProtoReflect.Descriptor instead. +func (*RevokeUserInvitationResponse) Descriptor() ([]byte, []int) { return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{11} } +func (x *RevokeUserInvitationResponse) GetInvitation() *v1.Invitation { + if x != nil { + return x.Invitation + } + return nil +} + +type ListUserInvitationRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Cursor *v1.Cursor `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"` + Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUserInvitationRequest) Reset() { + *x = ListUserInvitationRequest{} + mi := &file_svc_organization_v1_service_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUserInvitationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserInvitationRequest) ProtoMessage() {} + +func (x *ListUserInvitationRequest) ProtoReflect() protoreflect.Message { + mi := &file_svc_organization_v1_service_proto_msgTypes[12] + 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 ListUserInvitationRequest.ProtoReflect.Descriptor instead. +func (*ListUserInvitationRequest) Descriptor() ([]byte, []int) { + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{12} +} + +func (x *ListUserInvitationRequest) GetCursor() *v1.Cursor { + if x != nil { + return x.Cursor + } + return nil +} + +func (x *ListUserInvitationRequest) GetLimit() int32 { + if x != nil { + return x.Limit + } + return 0 +} + +type ListUserInvitationResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Next *v1.Cursor `protobuf:"bytes,1,opt,name=next,proto3" json:"next,omitempty"` + Items []*ListUserInvitationResponse_ListItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUserInvitationResponse) Reset() { + *x = ListUserInvitationResponse{} + mi := &file_svc_organization_v1_service_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUserInvitationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserInvitationResponse) ProtoMessage() {} + +func (x *ListUserInvitationResponse) ProtoReflect() protoreflect.Message { + mi := &file_svc_organization_v1_service_proto_msgTypes[13] + 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 ListUserInvitationResponse.ProtoReflect.Descriptor instead. +func (*ListUserInvitationResponse) Descriptor() ([]byte, []int) { + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{13} +} + +func (x *ListUserInvitationResponse) GetNext() *v1.Cursor { + if x != nil { + return x.Next + } + return nil +} + +func (x *ListUserInvitationResponse) GetItems() []*ListUserInvitationResponse_ListItem { + if x != nil { + return x.Items + } + return nil +} + type CreateAddonSubscriptionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Payment: @@ -677,7 +797,7 @@ type CreateAddonSubscriptionRequest struct { func (x *CreateAddonSubscriptionRequest) Reset() { *x = CreateAddonSubscriptionRequest{} - mi := &file_svc_organization_v1_service_proto_msgTypes[12] + mi := &file_svc_organization_v1_service_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -689,7 +809,7 @@ func (x *CreateAddonSubscriptionRequest) String() string { func (*CreateAddonSubscriptionRequest) ProtoMessage() {} func (x *CreateAddonSubscriptionRequest) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[12] + mi := &file_svc_organization_v1_service_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -702,7 +822,7 @@ func (x *CreateAddonSubscriptionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateAddonSubscriptionRequest.ProtoReflect.Descriptor instead. func (*CreateAddonSubscriptionRequest) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{12} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{14} } func (x *CreateAddonSubscriptionRequest) GetPayment() isCreateAddonSubscriptionRequest_Payment { @@ -743,7 +863,7 @@ type CreateAddonSubscriptionResponse struct { func (x *CreateAddonSubscriptionResponse) Reset() { *x = CreateAddonSubscriptionResponse{} - mi := &file_svc_organization_v1_service_proto_msgTypes[13] + mi := &file_svc_organization_v1_service_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -755,7 +875,7 @@ func (x *CreateAddonSubscriptionResponse) String() string { func (*CreateAddonSubscriptionResponse) ProtoMessage() {} func (x *CreateAddonSubscriptionResponse) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[13] + mi := &file_svc_organization_v1_service_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -768,7 +888,7 @@ func (x *CreateAddonSubscriptionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateAddonSubscriptionResponse.ProtoReflect.Descriptor instead. func (*CreateAddonSubscriptionResponse) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{13} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{15} } func (x *CreateAddonSubscriptionResponse) GetPayment() isCreateAddonSubscriptionResponse_Payment { @@ -807,7 +927,7 @@ type ListAddonSubscriptionRequest struct { func (x *ListAddonSubscriptionRequest) Reset() { *x = ListAddonSubscriptionRequest{} - mi := &file_svc_organization_v1_service_proto_msgTypes[14] + mi := &file_svc_organization_v1_service_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -819,7 +939,7 @@ func (x *ListAddonSubscriptionRequest) String() string { func (*ListAddonSubscriptionRequest) ProtoMessage() {} func (x *ListAddonSubscriptionRequest) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[14] + mi := &file_svc_organization_v1_service_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -832,7 +952,7 @@ func (x *ListAddonSubscriptionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAddonSubscriptionRequest.ProtoReflect.Descriptor instead. func (*ListAddonSubscriptionRequest) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{14} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{16} } func (x *ListAddonSubscriptionRequest) GetCursor() *v1.Cursor { @@ -859,7 +979,7 @@ type ListAddonSubscriptionResponse struct { func (x *ListAddonSubscriptionResponse) Reset() { *x = ListAddonSubscriptionResponse{} - mi := &file_svc_organization_v1_service_proto_msgTypes[15] + mi := &file_svc_organization_v1_service_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -871,7 +991,7 @@ func (x *ListAddonSubscriptionResponse) String() string { func (*ListAddonSubscriptionResponse) ProtoMessage() {} func (x *ListAddonSubscriptionResponse) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[15] + mi := &file_svc_organization_v1_service_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -884,7 +1004,7 @@ func (x *ListAddonSubscriptionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAddonSubscriptionResponse.ProtoReflect.Descriptor instead. func (*ListAddonSubscriptionResponse) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{15} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{17} } func (x *ListAddonSubscriptionResponse) GetNext() *v1.Cursor { @@ -911,7 +1031,7 @@ type RemoveAddonSubscriptionRequest struct { func (x *RemoveAddonSubscriptionRequest) Reset() { *x = RemoveAddonSubscriptionRequest{} - mi := &file_svc_organization_v1_service_proto_msgTypes[16] + mi := &file_svc_organization_v1_service_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -923,7 +1043,7 @@ func (x *RemoveAddonSubscriptionRequest) String() string { func (*RemoveAddonSubscriptionRequest) ProtoMessage() {} func (x *RemoveAddonSubscriptionRequest) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[16] + mi := &file_svc_organization_v1_service_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -936,7 +1056,7 @@ func (x *RemoveAddonSubscriptionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveAddonSubscriptionRequest.ProtoReflect.Descriptor instead. func (*RemoveAddonSubscriptionRequest) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{16} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{18} } func (x *RemoveAddonSubscriptionRequest) GetProduct() *v1.Product { @@ -961,7 +1081,7 @@ type RemoveAddonSubscriptionResponse struct { func (x *RemoveAddonSubscriptionResponse) Reset() { *x = RemoveAddonSubscriptionResponse{} - mi := &file_svc_organization_v1_service_proto_msgTypes[17] + mi := &file_svc_organization_v1_service_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -973,7 +1093,7 @@ func (x *RemoveAddonSubscriptionResponse) String() string { func (*RemoveAddonSubscriptionResponse) ProtoMessage() {} func (x *RemoveAddonSubscriptionResponse) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[17] + mi := &file_svc_organization_v1_service_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -986,7 +1106,7 @@ func (x *RemoveAddonSubscriptionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveAddonSubscriptionResponse.ProtoReflect.Descriptor instead. func (*RemoveAddonSubscriptionResponse) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{17} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{19} } type GetStripePublishableKeyRequest struct { @@ -997,7 +1117,7 @@ type GetStripePublishableKeyRequest struct { func (x *GetStripePublishableKeyRequest) Reset() { *x = GetStripePublishableKeyRequest{} - mi := &file_svc_organization_v1_service_proto_msgTypes[18] + mi := &file_svc_organization_v1_service_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1009,7 +1129,7 @@ func (x *GetStripePublishableKeyRequest) String() string { func (*GetStripePublishableKeyRequest) ProtoMessage() {} func (x *GetStripePublishableKeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[18] + mi := &file_svc_organization_v1_service_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1022,7 +1142,7 @@ func (x *GetStripePublishableKeyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetStripePublishableKeyRequest.ProtoReflect.Descriptor instead. func (*GetStripePublishableKeyRequest) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{18} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{20} } type GetStripePublishableKeyResponse struct { @@ -1034,7 +1154,7 @@ type GetStripePublishableKeyResponse struct { func (x *GetStripePublishableKeyResponse) Reset() { *x = GetStripePublishableKeyResponse{} - mi := &file_svc_organization_v1_service_proto_msgTypes[19] + mi := &file_svc_organization_v1_service_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1046,7 +1166,7 @@ func (x *GetStripePublishableKeyResponse) String() string { func (*GetStripePublishableKeyResponse) ProtoMessage() {} func (x *GetStripePublishableKeyResponse) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[19] + mi := &file_svc_organization_v1_service_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1059,7 +1179,7 @@ func (x *GetStripePublishableKeyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetStripePublishableKeyResponse.ProtoReflect.Descriptor instead. func (*GetStripePublishableKeyResponse) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{19} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{21} } func (x *GetStripePublishableKeyResponse) GetStripePublishableKey() string { @@ -1078,7 +1198,7 @@ type GetStripeBillingPortalRequest struct { func (x *GetStripeBillingPortalRequest) Reset() { *x = GetStripeBillingPortalRequest{} - mi := &file_svc_organization_v1_service_proto_msgTypes[20] + mi := &file_svc_organization_v1_service_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1090,7 +1210,7 @@ func (x *GetStripeBillingPortalRequest) String() string { func (*GetStripeBillingPortalRequest) ProtoMessage() {} func (x *GetStripeBillingPortalRequest) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[20] + mi := &file_svc_organization_v1_service_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1103,7 +1223,7 @@ func (x *GetStripeBillingPortalRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetStripeBillingPortalRequest.ProtoReflect.Descriptor instead. func (*GetStripeBillingPortalRequest) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{20} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{22} } func (x *GetStripeBillingPortalRequest) GetReturnToUrl() string { @@ -1123,7 +1243,7 @@ type GetStripeBillingPortalResponse struct { func (x *GetStripeBillingPortalResponse) Reset() { *x = GetStripeBillingPortalResponse{} - mi := &file_svc_organization_v1_service_proto_msgTypes[21] + mi := &file_svc_organization_v1_service_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1135,7 +1255,7 @@ func (x *GetStripeBillingPortalResponse) String() string { func (*GetStripeBillingPortalResponse) ProtoMessage() {} func (x *GetStripeBillingPortalResponse) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[21] + mi := &file_svc_organization_v1_service_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1148,7 +1268,7 @@ func (x *GetStripeBillingPortalResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetStripeBillingPortalResponse.ProtoReflect.Descriptor instead. func (*GetStripeBillingPortalResponse) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{21} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{23} } func (x *GetStripeBillingPortalResponse) GetReturnToUrl() string { @@ -1173,7 +1293,7 @@ type CreateStripeCustomerSessionRequest struct { func (x *CreateStripeCustomerSessionRequest) Reset() { *x = CreateStripeCustomerSessionRequest{} - mi := &file_svc_organization_v1_service_proto_msgTypes[22] + mi := &file_svc_organization_v1_service_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1185,7 +1305,7 @@ func (x *CreateStripeCustomerSessionRequest) String() string { func (*CreateStripeCustomerSessionRequest) ProtoMessage() {} func (x *CreateStripeCustomerSessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[22] + mi := &file_svc_organization_v1_service_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1198,7 +1318,7 @@ func (x *CreateStripeCustomerSessionRequest) ProtoReflect() protoreflect.Message // Deprecated: Use CreateStripeCustomerSessionRequest.ProtoReflect.Descriptor instead. func (*CreateStripeCustomerSessionRequest) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{22} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{24} } type CreateStripeCustomerSessionResponse struct { @@ -1210,7 +1330,7 @@ type CreateStripeCustomerSessionResponse struct { func (x *CreateStripeCustomerSessionResponse) Reset() { *x = CreateStripeCustomerSessionResponse{} - mi := &file_svc_organization_v1_service_proto_msgTypes[23] + mi := &file_svc_organization_v1_service_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1222,7 +1342,7 @@ func (x *CreateStripeCustomerSessionResponse) String() string { func (*CreateStripeCustomerSessionResponse) ProtoMessage() {} func (x *CreateStripeCustomerSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[23] + mi := &file_svc_organization_v1_service_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1235,7 +1355,7 @@ func (x *CreateStripeCustomerSessionResponse) ProtoReflect() protoreflect.Messag // Deprecated: Use CreateStripeCustomerSessionResponse.ProtoReflect.Descriptor instead. func (*CreateStripeCustomerSessionResponse) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{23} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{25} } func (x *CreateStripeCustomerSessionResponse) GetCustomerSessionClientSecret() string { @@ -1255,7 +1375,7 @@ type ListPaymentMethodRequest struct { func (x *ListPaymentMethodRequest) Reset() { *x = ListPaymentMethodRequest{} - mi := &file_svc_organization_v1_service_proto_msgTypes[24] + mi := &file_svc_organization_v1_service_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1267,7 +1387,7 @@ func (x *ListPaymentMethodRequest) String() string { func (*ListPaymentMethodRequest) ProtoMessage() {} func (x *ListPaymentMethodRequest) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[24] + mi := &file_svc_organization_v1_service_proto_msgTypes[26] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1280,7 +1400,7 @@ func (x *ListPaymentMethodRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPaymentMethodRequest.ProtoReflect.Descriptor instead. func (*ListPaymentMethodRequest) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{24} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{26} } func (x *ListPaymentMethodRequest) GetCursor() *v1.Cursor { @@ -1307,7 +1427,7 @@ type ListPaymentMethodResponse struct { func (x *ListPaymentMethodResponse) Reset() { *x = ListPaymentMethodResponse{} - mi := &file_svc_organization_v1_service_proto_msgTypes[25] + mi := &file_svc_organization_v1_service_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1319,7 +1439,7 @@ func (x *ListPaymentMethodResponse) String() string { func (*ListPaymentMethodResponse) ProtoMessage() {} func (x *ListPaymentMethodResponse) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[25] + mi := &file_svc_organization_v1_service_proto_msgTypes[27] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1332,7 +1452,7 @@ func (x *ListPaymentMethodResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPaymentMethodResponse.ProtoReflect.Descriptor instead. func (*ListPaymentMethodResponse) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{25} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{27} } func (x *ListPaymentMethodResponse) GetNext() *v1.Cursor { @@ -1359,7 +1479,7 @@ type CreateEnvironmentRequest_Stripe struct { func (x *CreateEnvironmentRequest_Stripe) Reset() { *x = CreateEnvironmentRequest_Stripe{} - mi := &file_svc_organization_v1_service_proto_msgTypes[26] + mi := &file_svc_organization_v1_service_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1371,7 +1491,7 @@ func (x *CreateEnvironmentRequest_Stripe) String() string { func (*CreateEnvironmentRequest_Stripe) ProtoMessage() {} func (x *CreateEnvironmentRequest_Stripe) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[26] + mi := &file_svc_organization_v1_service_proto_msgTypes[28] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1411,7 +1531,7 @@ type CreateEnvironmentResponse_Stripe struct { func (x *CreateEnvironmentResponse_Stripe) Reset() { *x = CreateEnvironmentResponse_Stripe{} - mi := &file_svc_organization_v1_service_proto_msgTypes[27] + mi := &file_svc_organization_v1_service_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1423,7 +1543,7 @@ func (x *CreateEnvironmentResponse_Stripe) String() string { func (*CreateEnvironmentResponse_Stripe) ProtoMessage() {} func (x *CreateEnvironmentResponse_Stripe) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[27] + mi := &file_svc_organization_v1_service_proto_msgTypes[29] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1463,7 +1583,7 @@ type ListEnvironmentResponse_ListItem struct { func (x *ListEnvironmentResponse_ListItem) Reset() { *x = ListEnvironmentResponse_ListItem{} - mi := &file_svc_organization_v1_service_proto_msgTypes[28] + mi := &file_svc_organization_v1_service_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1475,7 +1595,7 @@ func (x *ListEnvironmentResponse_ListItem) String() string { func (*ListEnvironmentResponse_ListItem) ProtoMessage() {} func (x *ListEnvironmentResponse_ListItem) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[28] + mi := &file_svc_organization_v1_service_proto_msgTypes[30] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1514,7 +1634,7 @@ type ListUserResponse_ListItem struct { func (x *ListUserResponse_ListItem) Reset() { *x = ListUserResponse_ListItem{} - mi := &file_svc_organization_v1_service_proto_msgTypes[29] + mi := &file_svc_organization_v1_service_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1526,7 +1646,7 @@ func (x *ListUserResponse_ListItem) String() string { func (*ListUserResponse_ListItem) ProtoMessage() {} func (x *ListUserResponse_ListItem) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[29] + mi := &file_svc_organization_v1_service_proto_msgTypes[31] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1549,6 +1669,50 @@ func (x *ListUserResponse_ListItem) GetUser() *v1.User { return nil } +type ListUserInvitationResponse_ListItem struct { + state protoimpl.MessageState `protogen:"open.v1"` + Invitation *v1.Invitation `protobuf:"bytes,1,opt,name=invitation,proto3" json:"invitation,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUserInvitationResponse_ListItem) Reset() { + *x = ListUserInvitationResponse_ListItem{} + mi := &file_svc_organization_v1_service_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUserInvitationResponse_ListItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserInvitationResponse_ListItem) ProtoMessage() {} + +func (x *ListUserInvitationResponse_ListItem) ProtoReflect() protoreflect.Message { + mi := &file_svc_organization_v1_service_proto_msgTypes[32] + 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 ListUserInvitationResponse_ListItem.ProtoReflect.Descriptor instead. +func (*ListUserInvitationResponse_ListItem) Descriptor() ([]byte, []int) { + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{13, 0} +} + +func (x *ListUserInvitationResponse_ListItem) GetInvitation() *v1.Invitation { + if x != nil { + return x.Invitation + } + return nil +} + type CreateAddonSubscriptionRequest_Stripe struct { state protoimpl.MessageState `protogen:"open.v1"` ConfirmationToken string `protobuf:"bytes,1,opt,name=confirmation_token,json=confirmationToken,proto3" json:"confirmation_token,omitempty"` @@ -1559,7 +1723,7 @@ type CreateAddonSubscriptionRequest_Stripe struct { func (x *CreateAddonSubscriptionRequest_Stripe) Reset() { *x = CreateAddonSubscriptionRequest_Stripe{} - mi := &file_svc_organization_v1_service_proto_msgTypes[30] + mi := &file_svc_organization_v1_service_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1571,7 +1735,7 @@ func (x *CreateAddonSubscriptionRequest_Stripe) String() string { func (*CreateAddonSubscriptionRequest_Stripe) ProtoMessage() {} func (x *CreateAddonSubscriptionRequest_Stripe) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[30] + mi := &file_svc_organization_v1_service_proto_msgTypes[33] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1584,7 +1748,7 @@ func (x *CreateAddonSubscriptionRequest_Stripe) ProtoReflect() protoreflect.Mess // Deprecated: Use CreateAddonSubscriptionRequest_Stripe.ProtoReflect.Descriptor instead. func (*CreateAddonSubscriptionRequest_Stripe) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{12, 0} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{14, 0} } func (x *CreateAddonSubscriptionRequest_Stripe) GetConfirmationToken() string { @@ -1611,7 +1775,7 @@ type CreateAddonSubscriptionResponse_Stripe struct { func (x *CreateAddonSubscriptionResponse_Stripe) Reset() { *x = CreateAddonSubscriptionResponse_Stripe{} - mi := &file_svc_organization_v1_service_proto_msgTypes[31] + mi := &file_svc_organization_v1_service_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1623,7 +1787,7 @@ func (x *CreateAddonSubscriptionResponse_Stripe) String() string { func (*CreateAddonSubscriptionResponse_Stripe) ProtoMessage() {} func (x *CreateAddonSubscriptionResponse_Stripe) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[31] + mi := &file_svc_organization_v1_service_proto_msgTypes[34] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1636,7 +1800,7 @@ func (x *CreateAddonSubscriptionResponse_Stripe) ProtoReflect() protoreflect.Mes // Deprecated: Use CreateAddonSubscriptionResponse_Stripe.ProtoReflect.Descriptor instead. func (*CreateAddonSubscriptionResponse_Stripe) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{13, 0} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{15, 0} } func (x *CreateAddonSubscriptionResponse_Stripe) GetStatus() string { @@ -1663,7 +1827,7 @@ type ListAddonSubscriptionResponse_ListItem struct { func (x *ListAddonSubscriptionResponse_ListItem) Reset() { *x = ListAddonSubscriptionResponse_ListItem{} - mi := &file_svc_organization_v1_service_proto_msgTypes[32] + mi := &file_svc_organization_v1_service_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1675,7 +1839,7 @@ func (x *ListAddonSubscriptionResponse_ListItem) String() string { func (*ListAddonSubscriptionResponse_ListItem) ProtoMessage() {} func (x *ListAddonSubscriptionResponse_ListItem) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[32] + mi := &file_svc_organization_v1_service_proto_msgTypes[35] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1688,7 +1852,7 @@ func (x *ListAddonSubscriptionResponse_ListItem) ProtoReflect() protoreflect.Mes // Deprecated: Use ListAddonSubscriptionResponse_ListItem.ProtoReflect.Descriptor instead. func (*ListAddonSubscriptionResponse_ListItem) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{15, 0} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{17, 0} } func (x *ListAddonSubscriptionResponse_ListItem) GetProduct() *v1.Product { @@ -1715,7 +1879,7 @@ type RemoveAddonSubscriptionRequest_Reason struct { func (x *RemoveAddonSubscriptionRequest_Reason) Reset() { *x = RemoveAddonSubscriptionRequest_Reason{} - mi := &file_svc_organization_v1_service_proto_msgTypes[33] + mi := &file_svc_organization_v1_service_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1727,7 +1891,7 @@ func (x *RemoveAddonSubscriptionRequest_Reason) String() string { func (*RemoveAddonSubscriptionRequest_Reason) ProtoMessage() {} func (x *RemoveAddonSubscriptionRequest_Reason) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[33] + mi := &file_svc_organization_v1_service_proto_msgTypes[36] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1740,7 +1904,7 @@ func (x *RemoveAddonSubscriptionRequest_Reason) ProtoReflect() protoreflect.Mess // Deprecated: Use RemoveAddonSubscriptionRequest_Reason.ProtoReflect.Descriptor instead. func (*RemoveAddonSubscriptionRequest_Reason) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{16, 0} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{18, 0} } func (x *RemoveAddonSubscriptionRequest_Reason) GetComment() string { @@ -1766,7 +1930,7 @@ type ListPaymentMethodResponse_ListItem struct { func (x *ListPaymentMethodResponse_ListItem) Reset() { *x = ListPaymentMethodResponse_ListItem{} - mi := &file_svc_organization_v1_service_proto_msgTypes[34] + mi := &file_svc_organization_v1_service_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1778,7 +1942,7 @@ func (x *ListPaymentMethodResponse_ListItem) String() string { func (*ListPaymentMethodResponse_ListItem) ProtoMessage() {} func (x *ListPaymentMethodResponse_ListItem) ProtoReflect() protoreflect.Message { - mi := &file_svc_organization_v1_service_proto_msgTypes[34] + mi := &file_svc_organization_v1_service_proto_msgTypes[37] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1791,7 +1955,7 @@ func (x *ListPaymentMethodResponse_ListItem) ProtoReflect() protoreflect.Message // Deprecated: Use ListPaymentMethodResponse_ListItem.ProtoReflect.Descriptor instead. func (*ListPaymentMethodResponse_ListItem) Descriptor() ([]byte, []int) { - return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{25, 0} + return file_svc_organization_v1_service_proto_rawDescGZIP(), []int{27, 0} } func (x *ListPaymentMethodResponse_ListItem) GetPaymentMethod() *v1.PaymentMethod { @@ -1845,11 +2009,27 @@ const file_svc_organization_v1_service_proto_rawDesc = "" + "\x04user\x18\x01 \x01(\v2\x0e.types.v1.UserR\x04user\"2\n" + "\x11InviteUserRequest\x12\x1d\n" + "\n" + - "user_email\x18\x01 \x01(\tR\tuserEmail\"\x14\n" + - "\x12InviteUserResponse\",\n" + - "\x11RevokeUserRequest\x12\x17\n" + - "\auser_id\x18\x01 \x01(\x03R\x06userId\"\x14\n" + - "\x12RevokeUserResponse\"\xd6\x01\n" + + "user_email\x18\x01 \x01(\tR\tuserEmail\"J\n" + + "\x12InviteUserResponse\x124\n" + + "\n" + + "invitation\x18\x01 \x01(\v2\x14.types.v1.InvitationR\n" + + "invitation\":\n" + + "\x1bRevokeUserInvitationRequest\x12\x1b\n" + + "\tinvite_id\x18\x01 \x01(\x03R\binviteId\"T\n" + + "\x1cRevokeUserInvitationResponse\x124\n" + + "\n" + + "invitation\x18\x01 \x01(\v2\x14.types.v1.InvitationR\n" + + "invitation\"[\n" + + "\x19ListUserInvitationRequest\x12(\n" + + "\x06cursor\x18\x01 \x01(\v2\x10.types.v1.CursorR\x06cursor\x12\x14\n" + + "\x05limit\x18\x02 \x01(\x05R\x05limit\"\xd4\x01\n" + + "\x1aListUserInvitationResponse\x12$\n" + + "\x04next\x18\x01 \x01(\v2\x10.types.v1.CursorR\x04next\x12N\n" + + "\x05items\x18\x02 \x03(\v28.svc.organization.v1.ListUserInvitationResponse.ListItemR\x05items\x1a@\n" + + "\bListItem\x124\n" + + "\n" + + "invitation\x18\x01 \x01(\v2\x14.types.v1.InvitationR\n" + + "invitation\"\xd6\x01\n" + "\x1eCreateAddonSubscriptionRequest\x12U\n" + "\x06stripe\x18\xc9\x01 \x01(\v2:.svc.organization.v1.CreateAddonSubscriptionRequest.StripeH\x00R\x06stripe\x1aR\n" + "\x06Stripe\x12-\n" + @@ -1898,16 +2078,16 @@ const file_svc_organization_v1_service_proto_rawDesc = "" + "\x04next\x18\x01 \x01(\v2\x10.types.v1.CursorR\x04next\x12M\n" + "\x05items\x18\x02 \x03(\v27.svc.organization.v1.ListPaymentMethodResponse.ListItemR\x05items\x1aJ\n" + "\bListItem\x12>\n" + - "\x0epayment_method\x18\x01 \x01(\v2\x17.types.v1.PaymentMethodR\rpaymentMethod2\xb4\f\n" + + "\x0epayment_method\x18\x01 \x01(\v2\x17.types.v1.PaymentMethodR\rpaymentMethod2\xcb\r\n" + "\x13OrganizationService\x12t\n" + "\x11CreateEnvironment\x12-.svc.organization.v1.CreateEnvironmentRequest\x1a..svc.organization.v1.CreateEnvironmentResponse\"\x00\x12k\n" + "\x0eGetEnvironment\x12*.svc.organization.v1.GetEnvironmentRequest\x1a+.svc.organization.v1.GetEnvironmentResponse\"\x00\x12n\n" + "\x0fListEnvironment\x12+.svc.organization.v1.ListEnvironmentRequest\x1a,.svc.organization.v1.ListEnvironmentResponse\"\x00\x12Y\n" + "\bListUser\x12$.svc.organization.v1.ListUserRequest\x1a%.svc.organization.v1.ListUserResponse\"\x00\x12_\n" + "\n" + - "InviteUser\x12&.svc.organization.v1.InviteUserRequest\x1a'.svc.organization.v1.InviteUserResponse\"\x00\x12_\n" + - "\n" + - "RevokeUser\x12&.svc.organization.v1.RevokeUserRequest\x1a'.svc.organization.v1.RevokeUserResponse\"\x00\x12\x86\x01\n" + + "InviteUser\x12&.svc.organization.v1.InviteUserRequest\x1a'.svc.organization.v1.InviteUserResponse\"\x00\x12}\n" + + "\x14RevokeUserInvitation\x120.svc.organization.v1.RevokeUserInvitationRequest\x1a1.svc.organization.v1.RevokeUserInvitationResponse\"\x00\x12w\n" + + "\x12ListUserInvitation\x12..svc.organization.v1.ListUserInvitationRequest\x1a/.svc.organization.v1.ListUserInvitationResponse\"\x00\x12\x86\x01\n" + "\x17CreateAddonSubscription\x123.svc.organization.v1.CreateAddonSubscriptionRequest\x1a4.svc.organization.v1.CreateAddonSubscriptionResponse\"\x00\x12\x80\x01\n" + "\x15ListAddonSubscription\x121.svc.organization.v1.ListAddonSubscriptionRequest\x1a2.svc.organization.v1.ListAddonSubscriptionResponse\"\x00\x12\x86\x01\n" + "\x17RemoveAddonSubscription\x123.svc.organization.v1.RemoveAddonSubscriptionRequest\x1a4.svc.organization.v1.RemoveAddonSubscriptionResponse\"\x00\x12\x86\x01\n" + @@ -1929,7 +2109,7 @@ func file_svc_organization_v1_service_proto_rawDescGZIP() []byte { return file_svc_organization_v1_service_proto_rawDescData } -var file_svc_organization_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 35) +var file_svc_organization_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 38) var file_svc_organization_v1_service_proto_goTypes = []any{ (*CreateEnvironmentRequest)(nil), // 0: svc.organization.v1.CreateEnvironmentRequest (*CreateEnvironmentResponse)(nil), // 1: svc.organization.v1.CreateEnvironmentResponse @@ -1941,96 +2121,108 @@ var file_svc_organization_v1_service_proto_goTypes = []any{ (*ListUserResponse)(nil), // 7: svc.organization.v1.ListUserResponse (*InviteUserRequest)(nil), // 8: svc.organization.v1.InviteUserRequest (*InviteUserResponse)(nil), // 9: svc.organization.v1.InviteUserResponse - (*RevokeUserRequest)(nil), // 10: svc.organization.v1.RevokeUserRequest - (*RevokeUserResponse)(nil), // 11: svc.organization.v1.RevokeUserResponse - (*CreateAddonSubscriptionRequest)(nil), // 12: svc.organization.v1.CreateAddonSubscriptionRequest - (*CreateAddonSubscriptionResponse)(nil), // 13: svc.organization.v1.CreateAddonSubscriptionResponse - (*ListAddonSubscriptionRequest)(nil), // 14: svc.organization.v1.ListAddonSubscriptionRequest - (*ListAddonSubscriptionResponse)(nil), // 15: svc.organization.v1.ListAddonSubscriptionResponse - (*RemoveAddonSubscriptionRequest)(nil), // 16: svc.organization.v1.RemoveAddonSubscriptionRequest - (*RemoveAddonSubscriptionResponse)(nil), // 17: svc.organization.v1.RemoveAddonSubscriptionResponse - (*GetStripePublishableKeyRequest)(nil), // 18: svc.organization.v1.GetStripePublishableKeyRequest - (*GetStripePublishableKeyResponse)(nil), // 19: svc.organization.v1.GetStripePublishableKeyResponse - (*GetStripeBillingPortalRequest)(nil), // 20: svc.organization.v1.GetStripeBillingPortalRequest - (*GetStripeBillingPortalResponse)(nil), // 21: svc.organization.v1.GetStripeBillingPortalResponse - (*CreateStripeCustomerSessionRequest)(nil), // 22: svc.organization.v1.CreateStripeCustomerSessionRequest - (*CreateStripeCustomerSessionResponse)(nil), // 23: svc.organization.v1.CreateStripeCustomerSessionResponse - (*ListPaymentMethodRequest)(nil), // 24: svc.organization.v1.ListPaymentMethodRequest - (*ListPaymentMethodResponse)(nil), // 25: svc.organization.v1.ListPaymentMethodResponse - (*CreateEnvironmentRequest_Stripe)(nil), // 26: svc.organization.v1.CreateEnvironmentRequest.Stripe - (*CreateEnvironmentResponse_Stripe)(nil), // 27: svc.organization.v1.CreateEnvironmentResponse.Stripe - (*ListEnvironmentResponse_ListItem)(nil), // 28: svc.organization.v1.ListEnvironmentResponse.ListItem - (*ListUserResponse_ListItem)(nil), // 29: svc.organization.v1.ListUserResponse.ListItem - (*CreateAddonSubscriptionRequest_Stripe)(nil), // 30: svc.organization.v1.CreateAddonSubscriptionRequest.Stripe - (*CreateAddonSubscriptionResponse_Stripe)(nil), // 31: svc.organization.v1.CreateAddonSubscriptionResponse.Stripe - (*ListAddonSubscriptionResponse_ListItem)(nil), // 32: svc.organization.v1.ListAddonSubscriptionResponse.ListItem - (*RemoveAddonSubscriptionRequest_Reason)(nil), // 33: svc.organization.v1.RemoveAddonSubscriptionRequest.Reason - (*ListPaymentMethodResponse_ListItem)(nil), // 34: svc.organization.v1.ListPaymentMethodResponse.ListItem - (*v1.Environment)(nil), // 35: types.v1.Environment - (*v1.Cursor)(nil), // 36: types.v1.Cursor - (*v1.Product)(nil), // 37: types.v1.Product - (*v1.User)(nil), // 38: types.v1.User - (*v1.Subscription)(nil), // 39: types.v1.Subscription - (*v1.PaymentMethod)(nil), // 40: types.v1.PaymentMethod + (*RevokeUserInvitationRequest)(nil), // 10: svc.organization.v1.RevokeUserInvitationRequest + (*RevokeUserInvitationResponse)(nil), // 11: svc.organization.v1.RevokeUserInvitationResponse + (*ListUserInvitationRequest)(nil), // 12: svc.organization.v1.ListUserInvitationRequest + (*ListUserInvitationResponse)(nil), // 13: svc.organization.v1.ListUserInvitationResponse + (*CreateAddonSubscriptionRequest)(nil), // 14: svc.organization.v1.CreateAddonSubscriptionRequest + (*CreateAddonSubscriptionResponse)(nil), // 15: svc.organization.v1.CreateAddonSubscriptionResponse + (*ListAddonSubscriptionRequest)(nil), // 16: svc.organization.v1.ListAddonSubscriptionRequest + (*ListAddonSubscriptionResponse)(nil), // 17: svc.organization.v1.ListAddonSubscriptionResponse + (*RemoveAddonSubscriptionRequest)(nil), // 18: svc.organization.v1.RemoveAddonSubscriptionRequest + (*RemoveAddonSubscriptionResponse)(nil), // 19: svc.organization.v1.RemoveAddonSubscriptionResponse + (*GetStripePublishableKeyRequest)(nil), // 20: svc.organization.v1.GetStripePublishableKeyRequest + (*GetStripePublishableKeyResponse)(nil), // 21: svc.organization.v1.GetStripePublishableKeyResponse + (*GetStripeBillingPortalRequest)(nil), // 22: svc.organization.v1.GetStripeBillingPortalRequest + (*GetStripeBillingPortalResponse)(nil), // 23: svc.organization.v1.GetStripeBillingPortalResponse + (*CreateStripeCustomerSessionRequest)(nil), // 24: svc.organization.v1.CreateStripeCustomerSessionRequest + (*CreateStripeCustomerSessionResponse)(nil), // 25: svc.organization.v1.CreateStripeCustomerSessionResponse + (*ListPaymentMethodRequest)(nil), // 26: svc.organization.v1.ListPaymentMethodRequest + (*ListPaymentMethodResponse)(nil), // 27: svc.organization.v1.ListPaymentMethodResponse + (*CreateEnvironmentRequest_Stripe)(nil), // 28: svc.organization.v1.CreateEnvironmentRequest.Stripe + (*CreateEnvironmentResponse_Stripe)(nil), // 29: svc.organization.v1.CreateEnvironmentResponse.Stripe + (*ListEnvironmentResponse_ListItem)(nil), // 30: svc.organization.v1.ListEnvironmentResponse.ListItem + (*ListUserResponse_ListItem)(nil), // 31: svc.organization.v1.ListUserResponse.ListItem + (*ListUserInvitationResponse_ListItem)(nil), // 32: svc.organization.v1.ListUserInvitationResponse.ListItem + (*CreateAddonSubscriptionRequest_Stripe)(nil), // 33: svc.organization.v1.CreateAddonSubscriptionRequest.Stripe + (*CreateAddonSubscriptionResponse_Stripe)(nil), // 34: svc.organization.v1.CreateAddonSubscriptionResponse.Stripe + (*ListAddonSubscriptionResponse_ListItem)(nil), // 35: svc.organization.v1.ListAddonSubscriptionResponse.ListItem + (*RemoveAddonSubscriptionRequest_Reason)(nil), // 36: svc.organization.v1.RemoveAddonSubscriptionRequest.Reason + (*ListPaymentMethodResponse_ListItem)(nil), // 37: svc.organization.v1.ListPaymentMethodResponse.ListItem + (*v1.Environment)(nil), // 38: types.v1.Environment + (*v1.Cursor)(nil), // 39: types.v1.Cursor + (*v1.Invitation)(nil), // 40: types.v1.Invitation + (*v1.Product)(nil), // 41: types.v1.Product + (*v1.User)(nil), // 42: types.v1.User + (*v1.Subscription)(nil), // 43: types.v1.Subscription + (*v1.PaymentMethod)(nil), // 44: types.v1.PaymentMethod } var file_svc_organization_v1_service_proto_depIdxs = []int32{ - 26, // 0: svc.organization.v1.CreateEnvironmentRequest.stripe:type_name -> svc.organization.v1.CreateEnvironmentRequest.Stripe - 35, // 1: svc.organization.v1.CreateEnvironmentResponse.environment:type_name -> types.v1.Environment - 27, // 2: svc.organization.v1.CreateEnvironmentResponse.stripe:type_name -> svc.organization.v1.CreateEnvironmentResponse.Stripe - 35, // 3: svc.organization.v1.GetEnvironmentResponse.environment:type_name -> types.v1.Environment - 36, // 4: svc.organization.v1.ListEnvironmentRequest.cursor:type_name -> types.v1.Cursor - 36, // 5: svc.organization.v1.ListEnvironmentResponse.next:type_name -> types.v1.Cursor - 28, // 6: svc.organization.v1.ListEnvironmentResponse.items:type_name -> svc.organization.v1.ListEnvironmentResponse.ListItem - 36, // 7: svc.organization.v1.ListUserRequest.cursor:type_name -> types.v1.Cursor - 36, // 8: svc.organization.v1.ListUserResponse.next:type_name -> types.v1.Cursor - 29, // 9: svc.organization.v1.ListUserResponse.items:type_name -> svc.organization.v1.ListUserResponse.ListItem - 30, // 10: svc.organization.v1.CreateAddonSubscriptionRequest.stripe:type_name -> svc.organization.v1.CreateAddonSubscriptionRequest.Stripe - 31, // 11: svc.organization.v1.CreateAddonSubscriptionResponse.stripe:type_name -> svc.organization.v1.CreateAddonSubscriptionResponse.Stripe - 36, // 12: svc.organization.v1.ListAddonSubscriptionRequest.cursor:type_name -> types.v1.Cursor - 36, // 13: svc.organization.v1.ListAddonSubscriptionResponse.next:type_name -> types.v1.Cursor - 32, // 14: svc.organization.v1.ListAddonSubscriptionResponse.items:type_name -> svc.organization.v1.ListAddonSubscriptionResponse.ListItem - 37, // 15: svc.organization.v1.RemoveAddonSubscriptionRequest.product:type_name -> types.v1.Product - 33, // 16: svc.organization.v1.RemoveAddonSubscriptionRequest.cancel_reason:type_name -> svc.organization.v1.RemoveAddonSubscriptionRequest.Reason - 36, // 17: svc.organization.v1.ListPaymentMethodRequest.cursor:type_name -> types.v1.Cursor - 36, // 18: svc.organization.v1.ListPaymentMethodResponse.next:type_name -> types.v1.Cursor - 34, // 19: svc.organization.v1.ListPaymentMethodResponse.items:type_name -> svc.organization.v1.ListPaymentMethodResponse.ListItem - 35, // 20: svc.organization.v1.ListEnvironmentResponse.ListItem.environment:type_name -> types.v1.Environment - 37, // 21: svc.organization.v1.ListEnvironmentResponse.ListItem.product:type_name -> types.v1.Product - 38, // 22: svc.organization.v1.ListUserResponse.ListItem.user:type_name -> types.v1.User - 37, // 23: svc.organization.v1.ListAddonSubscriptionResponse.ListItem.product:type_name -> types.v1.Product - 39, // 24: svc.organization.v1.ListAddonSubscriptionResponse.ListItem.subscription:type_name -> types.v1.Subscription - 40, // 25: svc.organization.v1.ListPaymentMethodResponse.ListItem.payment_method:type_name -> types.v1.PaymentMethod - 0, // 26: svc.organization.v1.OrganizationService.CreateEnvironment:input_type -> svc.organization.v1.CreateEnvironmentRequest - 2, // 27: svc.organization.v1.OrganizationService.GetEnvironment:input_type -> svc.organization.v1.GetEnvironmentRequest - 4, // 28: svc.organization.v1.OrganizationService.ListEnvironment:input_type -> svc.organization.v1.ListEnvironmentRequest - 6, // 29: svc.organization.v1.OrganizationService.ListUser:input_type -> svc.organization.v1.ListUserRequest - 8, // 30: svc.organization.v1.OrganizationService.InviteUser:input_type -> svc.organization.v1.InviteUserRequest - 10, // 31: svc.organization.v1.OrganizationService.RevokeUser:input_type -> svc.organization.v1.RevokeUserRequest - 12, // 32: svc.organization.v1.OrganizationService.CreateAddonSubscription:input_type -> svc.organization.v1.CreateAddonSubscriptionRequest - 14, // 33: svc.organization.v1.OrganizationService.ListAddonSubscription:input_type -> svc.organization.v1.ListAddonSubscriptionRequest - 16, // 34: svc.organization.v1.OrganizationService.RemoveAddonSubscription:input_type -> svc.organization.v1.RemoveAddonSubscriptionRequest - 18, // 35: svc.organization.v1.OrganizationService.GetStripePublishableKey:input_type -> svc.organization.v1.GetStripePublishableKeyRequest - 20, // 36: svc.organization.v1.OrganizationService.GetStripeBillingPortal:input_type -> svc.organization.v1.GetStripeBillingPortalRequest - 22, // 37: svc.organization.v1.OrganizationService.CreateStripeCustomerSession:input_type -> svc.organization.v1.CreateStripeCustomerSessionRequest - 24, // 38: svc.organization.v1.OrganizationService.ListPaymentMethod:input_type -> svc.organization.v1.ListPaymentMethodRequest - 1, // 39: svc.organization.v1.OrganizationService.CreateEnvironment:output_type -> svc.organization.v1.CreateEnvironmentResponse - 3, // 40: svc.organization.v1.OrganizationService.GetEnvironment:output_type -> svc.organization.v1.GetEnvironmentResponse - 5, // 41: svc.organization.v1.OrganizationService.ListEnvironment:output_type -> svc.organization.v1.ListEnvironmentResponse - 7, // 42: svc.organization.v1.OrganizationService.ListUser:output_type -> svc.organization.v1.ListUserResponse - 9, // 43: svc.organization.v1.OrganizationService.InviteUser:output_type -> svc.organization.v1.InviteUserResponse - 11, // 44: svc.organization.v1.OrganizationService.RevokeUser:output_type -> svc.organization.v1.RevokeUserResponse - 13, // 45: svc.organization.v1.OrganizationService.CreateAddonSubscription:output_type -> svc.organization.v1.CreateAddonSubscriptionResponse - 15, // 46: svc.organization.v1.OrganizationService.ListAddonSubscription:output_type -> svc.organization.v1.ListAddonSubscriptionResponse - 17, // 47: svc.organization.v1.OrganizationService.RemoveAddonSubscription:output_type -> svc.organization.v1.RemoveAddonSubscriptionResponse - 19, // 48: svc.organization.v1.OrganizationService.GetStripePublishableKey:output_type -> svc.organization.v1.GetStripePublishableKeyResponse - 21, // 49: svc.organization.v1.OrganizationService.GetStripeBillingPortal:output_type -> svc.organization.v1.GetStripeBillingPortalResponse - 23, // 50: svc.organization.v1.OrganizationService.CreateStripeCustomerSession:output_type -> svc.organization.v1.CreateStripeCustomerSessionResponse - 25, // 51: svc.organization.v1.OrganizationService.ListPaymentMethod:output_type -> svc.organization.v1.ListPaymentMethodResponse - 39, // [39:52] is the sub-list for method output_type - 26, // [26:39] is the sub-list for method input_type - 26, // [26:26] is the sub-list for extension type_name - 26, // [26:26] is the sub-list for extension extendee - 0, // [0:26] is the sub-list for field type_name + 28, // 0: svc.organization.v1.CreateEnvironmentRequest.stripe:type_name -> svc.organization.v1.CreateEnvironmentRequest.Stripe + 38, // 1: svc.organization.v1.CreateEnvironmentResponse.environment:type_name -> types.v1.Environment + 29, // 2: svc.organization.v1.CreateEnvironmentResponse.stripe:type_name -> svc.organization.v1.CreateEnvironmentResponse.Stripe + 38, // 3: svc.organization.v1.GetEnvironmentResponse.environment:type_name -> types.v1.Environment + 39, // 4: svc.organization.v1.ListEnvironmentRequest.cursor:type_name -> types.v1.Cursor + 39, // 5: svc.organization.v1.ListEnvironmentResponse.next:type_name -> types.v1.Cursor + 30, // 6: svc.organization.v1.ListEnvironmentResponse.items:type_name -> svc.organization.v1.ListEnvironmentResponse.ListItem + 39, // 7: svc.organization.v1.ListUserRequest.cursor:type_name -> types.v1.Cursor + 39, // 8: svc.organization.v1.ListUserResponse.next:type_name -> types.v1.Cursor + 31, // 9: svc.organization.v1.ListUserResponse.items:type_name -> svc.organization.v1.ListUserResponse.ListItem + 40, // 10: svc.organization.v1.InviteUserResponse.invitation:type_name -> types.v1.Invitation + 40, // 11: svc.organization.v1.RevokeUserInvitationResponse.invitation:type_name -> types.v1.Invitation + 39, // 12: svc.organization.v1.ListUserInvitationRequest.cursor:type_name -> types.v1.Cursor + 39, // 13: svc.organization.v1.ListUserInvitationResponse.next:type_name -> types.v1.Cursor + 32, // 14: svc.organization.v1.ListUserInvitationResponse.items:type_name -> svc.organization.v1.ListUserInvitationResponse.ListItem + 33, // 15: svc.organization.v1.CreateAddonSubscriptionRequest.stripe:type_name -> svc.organization.v1.CreateAddonSubscriptionRequest.Stripe + 34, // 16: svc.organization.v1.CreateAddonSubscriptionResponse.stripe:type_name -> svc.organization.v1.CreateAddonSubscriptionResponse.Stripe + 39, // 17: svc.organization.v1.ListAddonSubscriptionRequest.cursor:type_name -> types.v1.Cursor + 39, // 18: svc.organization.v1.ListAddonSubscriptionResponse.next:type_name -> types.v1.Cursor + 35, // 19: svc.organization.v1.ListAddonSubscriptionResponse.items:type_name -> svc.organization.v1.ListAddonSubscriptionResponse.ListItem + 41, // 20: svc.organization.v1.RemoveAddonSubscriptionRequest.product:type_name -> types.v1.Product + 36, // 21: svc.organization.v1.RemoveAddonSubscriptionRequest.cancel_reason:type_name -> svc.organization.v1.RemoveAddonSubscriptionRequest.Reason + 39, // 22: svc.organization.v1.ListPaymentMethodRequest.cursor:type_name -> types.v1.Cursor + 39, // 23: svc.organization.v1.ListPaymentMethodResponse.next:type_name -> types.v1.Cursor + 37, // 24: svc.organization.v1.ListPaymentMethodResponse.items:type_name -> svc.organization.v1.ListPaymentMethodResponse.ListItem + 38, // 25: svc.organization.v1.ListEnvironmentResponse.ListItem.environment:type_name -> types.v1.Environment + 41, // 26: svc.organization.v1.ListEnvironmentResponse.ListItem.product:type_name -> types.v1.Product + 42, // 27: svc.organization.v1.ListUserResponse.ListItem.user:type_name -> types.v1.User + 40, // 28: svc.organization.v1.ListUserInvitationResponse.ListItem.invitation:type_name -> types.v1.Invitation + 41, // 29: svc.organization.v1.ListAddonSubscriptionResponse.ListItem.product:type_name -> types.v1.Product + 43, // 30: svc.organization.v1.ListAddonSubscriptionResponse.ListItem.subscription:type_name -> types.v1.Subscription + 44, // 31: svc.organization.v1.ListPaymentMethodResponse.ListItem.payment_method:type_name -> types.v1.PaymentMethod + 0, // 32: svc.organization.v1.OrganizationService.CreateEnvironment:input_type -> svc.organization.v1.CreateEnvironmentRequest + 2, // 33: svc.organization.v1.OrganizationService.GetEnvironment:input_type -> svc.organization.v1.GetEnvironmentRequest + 4, // 34: svc.organization.v1.OrganizationService.ListEnvironment:input_type -> svc.organization.v1.ListEnvironmentRequest + 6, // 35: svc.organization.v1.OrganizationService.ListUser:input_type -> svc.organization.v1.ListUserRequest + 8, // 36: svc.organization.v1.OrganizationService.InviteUser:input_type -> svc.organization.v1.InviteUserRequest + 10, // 37: svc.organization.v1.OrganizationService.RevokeUserInvitation:input_type -> svc.organization.v1.RevokeUserInvitationRequest + 12, // 38: svc.organization.v1.OrganizationService.ListUserInvitation:input_type -> svc.organization.v1.ListUserInvitationRequest + 14, // 39: svc.organization.v1.OrganizationService.CreateAddonSubscription:input_type -> svc.organization.v1.CreateAddonSubscriptionRequest + 16, // 40: svc.organization.v1.OrganizationService.ListAddonSubscription:input_type -> svc.organization.v1.ListAddonSubscriptionRequest + 18, // 41: svc.organization.v1.OrganizationService.RemoveAddonSubscription:input_type -> svc.organization.v1.RemoveAddonSubscriptionRequest + 20, // 42: svc.organization.v1.OrganizationService.GetStripePublishableKey:input_type -> svc.organization.v1.GetStripePublishableKeyRequest + 22, // 43: svc.organization.v1.OrganizationService.GetStripeBillingPortal:input_type -> svc.organization.v1.GetStripeBillingPortalRequest + 24, // 44: svc.organization.v1.OrganizationService.CreateStripeCustomerSession:input_type -> svc.organization.v1.CreateStripeCustomerSessionRequest + 26, // 45: svc.organization.v1.OrganizationService.ListPaymentMethod:input_type -> svc.organization.v1.ListPaymentMethodRequest + 1, // 46: svc.organization.v1.OrganizationService.CreateEnvironment:output_type -> svc.organization.v1.CreateEnvironmentResponse + 3, // 47: svc.organization.v1.OrganizationService.GetEnvironment:output_type -> svc.organization.v1.GetEnvironmentResponse + 5, // 48: svc.organization.v1.OrganizationService.ListEnvironment:output_type -> svc.organization.v1.ListEnvironmentResponse + 7, // 49: svc.organization.v1.OrganizationService.ListUser:output_type -> svc.organization.v1.ListUserResponse + 9, // 50: svc.organization.v1.OrganizationService.InviteUser:output_type -> svc.organization.v1.InviteUserResponse + 11, // 51: svc.organization.v1.OrganizationService.RevokeUserInvitation:output_type -> svc.organization.v1.RevokeUserInvitationResponse + 13, // 52: svc.organization.v1.OrganizationService.ListUserInvitation:output_type -> svc.organization.v1.ListUserInvitationResponse + 15, // 53: svc.organization.v1.OrganizationService.CreateAddonSubscription:output_type -> svc.organization.v1.CreateAddonSubscriptionResponse + 17, // 54: svc.organization.v1.OrganizationService.ListAddonSubscription:output_type -> svc.organization.v1.ListAddonSubscriptionResponse + 19, // 55: svc.organization.v1.OrganizationService.RemoveAddonSubscription:output_type -> svc.organization.v1.RemoveAddonSubscriptionResponse + 21, // 56: svc.organization.v1.OrganizationService.GetStripePublishableKey:output_type -> svc.organization.v1.GetStripePublishableKeyResponse + 23, // 57: svc.organization.v1.OrganizationService.GetStripeBillingPortal:output_type -> svc.organization.v1.GetStripeBillingPortalResponse + 25, // 58: svc.organization.v1.OrganizationService.CreateStripeCustomerSession:output_type -> svc.organization.v1.CreateStripeCustomerSessionResponse + 27, // 59: svc.organization.v1.OrganizationService.ListPaymentMethod:output_type -> svc.organization.v1.ListPaymentMethodResponse + 46, // [46:60] is the sub-list for method output_type + 32, // [32:46] is the sub-list for method input_type + 32, // [32:32] is the sub-list for extension type_name + 32, // [32:32] is the sub-list for extension extendee + 0, // [0:32] is the sub-list for field type_name } func init() { file_svc_organization_v1_service_proto_init() } @@ -2048,20 +2240,20 @@ func file_svc_organization_v1_service_proto_init() { (*GetEnvironmentRequest_Id)(nil), (*GetEnvironmentRequest_Name)(nil), } - file_svc_organization_v1_service_proto_msgTypes[12].OneofWrappers = []any{ + file_svc_organization_v1_service_proto_msgTypes[14].OneofWrappers = []any{ (*CreateAddonSubscriptionRequest_Stripe_)(nil), } - file_svc_organization_v1_service_proto_msgTypes[13].OneofWrappers = []any{ + file_svc_organization_v1_service_proto_msgTypes[15].OneofWrappers = []any{ (*CreateAddonSubscriptionResponse_Stripe_)(nil), } - file_svc_organization_v1_service_proto_msgTypes[16].OneofWrappers = []any{} + file_svc_organization_v1_service_proto_msgTypes[18].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_svc_organization_v1_service_proto_rawDesc), len(file_svc_organization_v1_service_proto_rawDesc)), NumEnums: 0, - NumMessages: 35, + NumMessages: 38, NumExtensions: 0, NumServices: 1, }, diff --git a/go/types/v1/organization.pb.go b/go/types/v1/organization.pb.go index a6dd222..0d0236b 100644 --- a/go/types/v1/organization.pb.go +++ b/go/types/v1/organization.pb.go @@ -83,6 +83,312 @@ func (x *Organization) GetCreatedAt() *timestamppb.Timestamp { return nil } +type Invitation struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // Types that are valid to be assigned to State: + // + // *Invitation_Pending + // *Invitation_Accepted + // *Invitation_Revoked + // *Invitation_Expired + State isInvitation_State `protobuf_oneof:"state"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Invitation) Reset() { + *x = Invitation{} + mi := &file_types_v1_organization_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Invitation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Invitation) ProtoMessage() {} + +func (x *Invitation) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_organization_proto_msgTypes[1] + 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 Invitation.ProtoReflect.Descriptor instead. +func (*Invitation) Descriptor() ([]byte, []int) { + return file_types_v1_organization_proto_rawDescGZIP(), []int{1} +} + +func (x *Invitation) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *Invitation) GetState() isInvitation_State { + if x != nil { + return x.State + } + return nil +} + +func (x *Invitation) GetPending() *Invitation_StatePending { + if x != nil { + if x, ok := x.State.(*Invitation_Pending); ok { + return x.Pending + } + } + return nil +} + +func (x *Invitation) GetAccepted() *Invitation_StateAccepted { + if x != nil { + if x, ok := x.State.(*Invitation_Accepted); ok { + return x.Accepted + } + } + return nil +} + +func (x *Invitation) GetRevoked() *Invitation_StateRevoked { + if x != nil { + if x, ok := x.State.(*Invitation_Revoked); ok { + return x.Revoked + } + } + return nil +} + +func (x *Invitation) GetExpired() *Invitation_StateExpired { + if x != nil { + if x, ok := x.State.(*Invitation_Expired); ok { + return x.Expired + } + } + return nil +} + +type isInvitation_State interface { + isInvitation_State() +} + +type Invitation_Pending struct { + Pending *Invitation_StatePending `protobuf:"bytes,201,opt,name=pending,proto3,oneof"` +} + +type Invitation_Accepted struct { + Accepted *Invitation_StateAccepted `protobuf:"bytes,202,opt,name=accepted,proto3,oneof"` +} + +type Invitation_Revoked struct { + Revoked *Invitation_StateRevoked `protobuf:"bytes,203,opt,name=revoked,proto3,oneof"` +} + +type Invitation_Expired struct { + Expired *Invitation_StateExpired `protobuf:"bytes,204,opt,name=expired,proto3,oneof"` +} + +func (*Invitation_Pending) isInvitation_State() {} + +func (*Invitation_Accepted) isInvitation_State() {} + +func (*Invitation_Revoked) isInvitation_State() {} + +func (*Invitation_Expired) isInvitation_State() {} + +type Invitation_StatePending struct { + state protoimpl.MessageState `protogen:"open.v1"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Invitation_StatePending) Reset() { + *x = Invitation_StatePending{} + mi := &file_types_v1_organization_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Invitation_StatePending) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Invitation_StatePending) ProtoMessage() {} + +func (x *Invitation_StatePending) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_organization_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 Invitation_StatePending.ProtoReflect.Descriptor instead. +func (*Invitation_StatePending) Descriptor() ([]byte, []int) { + return file_types_v1_organization_proto_rawDescGZIP(), []int{1, 0} +} + +func (x *Invitation_StatePending) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *Invitation_StatePending) GetExpiresAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpiresAt + } + return nil +} + +type Invitation_StateAccepted struct { + state protoimpl.MessageState `protogen:"open.v1"` + AcceptedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=accepted_at,json=acceptedAt,proto3" json:"accepted_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Invitation_StateAccepted) Reset() { + *x = Invitation_StateAccepted{} + mi := &file_types_v1_organization_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Invitation_StateAccepted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Invitation_StateAccepted) ProtoMessage() {} + +func (x *Invitation_StateAccepted) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_organization_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 Invitation_StateAccepted.ProtoReflect.Descriptor instead. +func (*Invitation_StateAccepted) Descriptor() ([]byte, []int) { + return file_types_v1_organization_proto_rawDescGZIP(), []int{1, 1} +} + +func (x *Invitation_StateAccepted) GetAcceptedAt() *timestamppb.Timestamp { + if x != nil { + return x.AcceptedAt + } + return nil +} + +type Invitation_StateRevoked struct { + state protoimpl.MessageState `protogen:"open.v1"` + RevokedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Invitation_StateRevoked) Reset() { + *x = Invitation_StateRevoked{} + mi := &file_types_v1_organization_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Invitation_StateRevoked) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Invitation_StateRevoked) ProtoMessage() {} + +func (x *Invitation_StateRevoked) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_organization_proto_msgTypes[4] + 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 Invitation_StateRevoked.ProtoReflect.Descriptor instead. +func (*Invitation_StateRevoked) Descriptor() ([]byte, []int) { + return file_types_v1_organization_proto_rawDescGZIP(), []int{1, 2} +} + +func (x *Invitation_StateRevoked) GetRevokedAt() *timestamppb.Timestamp { + if x != nil { + return x.RevokedAt + } + return nil +} + +type Invitation_StateExpired struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Invitation_StateExpired) Reset() { + *x = Invitation_StateExpired{} + mi := &file_types_v1_organization_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Invitation_StateExpired) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Invitation_StateExpired) ProtoMessage() {} + +func (x *Invitation_StateExpired) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_organization_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 Invitation_StateExpired.ProtoReflect.Descriptor instead. +func (*Invitation_StateExpired) Descriptor() ([]byte, []int) { + return file_types_v1_organization_proto_rawDescGZIP(), []int{1, 3} +} + +func (x *Invitation_StateExpired) GetExpiredAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpiredAt + } + return nil +} + var File_types_v1_organization_proto protoreflect.FileDescriptor const file_types_v1_organization_proto_rawDesc = "" + @@ -92,7 +398,29 @@ const file_types_v1_organization_proto_rawDesc = "" + "\x02id\x18\x01 \x01(\x03R\x02id\x129\n" + "\x04name\x18\x02 \x01(\tB%\xbaH\"r \x10\x03\x18'2\x1a^[a-zA-Z0-9][a-zA-Z0-9-]+$R\x04name\x129\n" + "\n" + - "created_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAtB\x91\x01\n" + + "created_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"\x93\x05\n" + + "\n" + + "Invitation\x12\x0e\n" + + "\x02id\x18\x01 \x01(\x03R\x02id\x12>\n" + + "\apending\x18\xc9\x01 \x01(\v2!.types.v1.Invitation.StatePendingH\x00R\apending\x12A\n" + + "\baccepted\x18\xca\x01 \x01(\v2\".types.v1.Invitation.StateAcceptedH\x00R\baccepted\x12>\n" + + "\arevoked\x18\xcb\x01 \x01(\v2!.types.v1.Invitation.StateRevokedH\x00R\arevoked\x12>\n" + + "\aexpired\x18\xcc\x01 \x01(\v2!.types.v1.Invitation.StateExpiredH\x00R\aexpired\x1a\x84\x01\n" + + "\fStatePending\x129\n" + + "\n" + + "created_at\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "expires_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x1aL\n" + + "\rStateAccepted\x12;\n" + + "\vaccepted_at\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "acceptedAt\x1aI\n" + + "\fStateRevoked\x129\n" + + "\n" + + "revoked_at\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\trevokedAt\x1aI\n" + + "\fStateExpired\x129\n" + + "\n" + + "expired_at\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\texpiredAtB\a\n" + + "\x05stateB\x91\x01\n" + "\fcom.types.v1B\x11OrganizationProtoP\x01Z-github.com/humanlogio/api/go/types/v1;typesv1\xa2\x02\x03TXX\xaa\x02\bTypes.V1\xca\x02\bTypes\\V1\xe2\x02\x14Types\\V1\\GPBMetadata\xea\x02\tTypes::V1b\x06proto3" var ( @@ -107,18 +435,32 @@ func file_types_v1_organization_proto_rawDescGZIP() []byte { return file_types_v1_organization_proto_rawDescData } -var file_types_v1_organization_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_types_v1_organization_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_types_v1_organization_proto_goTypes = []any{ - (*Organization)(nil), // 0: types.v1.Organization - (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (*Organization)(nil), // 0: types.v1.Organization + (*Invitation)(nil), // 1: types.v1.Invitation + (*Invitation_StatePending)(nil), // 2: types.v1.Invitation.StatePending + (*Invitation_StateAccepted)(nil), // 3: types.v1.Invitation.StateAccepted + (*Invitation_StateRevoked)(nil), // 4: types.v1.Invitation.StateRevoked + (*Invitation_StateExpired)(nil), // 5: types.v1.Invitation.StateExpired + (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp } var file_types_v1_organization_proto_depIdxs = []int32{ - 1, // 0: types.v1.Organization.created_at:type_name -> google.protobuf.Timestamp - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name + 6, // 0: types.v1.Organization.created_at:type_name -> google.protobuf.Timestamp + 2, // 1: types.v1.Invitation.pending:type_name -> types.v1.Invitation.StatePending + 3, // 2: types.v1.Invitation.accepted:type_name -> types.v1.Invitation.StateAccepted + 4, // 3: types.v1.Invitation.revoked:type_name -> types.v1.Invitation.StateRevoked + 5, // 4: types.v1.Invitation.expired:type_name -> types.v1.Invitation.StateExpired + 6, // 5: types.v1.Invitation.StatePending.created_at:type_name -> google.protobuf.Timestamp + 6, // 6: types.v1.Invitation.StatePending.expires_at:type_name -> google.protobuf.Timestamp + 6, // 7: types.v1.Invitation.StateAccepted.accepted_at:type_name -> google.protobuf.Timestamp + 6, // 8: types.v1.Invitation.StateRevoked.revoked_at:type_name -> google.protobuf.Timestamp + 6, // 9: types.v1.Invitation.StateExpired.expired_at:type_name -> google.protobuf.Timestamp + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name } func init() { file_types_v1_organization_proto_init() } @@ -126,13 +468,19 @@ func file_types_v1_organization_proto_init() { if File_types_v1_organization_proto != nil { return } + file_types_v1_organization_proto_msgTypes[1].OneofWrappers = []any{ + (*Invitation_Pending)(nil), + (*Invitation_Accepted)(nil), + (*Invitation_Revoked)(nil), + (*Invitation_Expired)(nil), + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_types_v1_organization_proto_rawDesc), len(file_types_v1_organization_proto_rawDesc)), NumEnums: 0, - NumMessages: 1, + NumMessages: 6, NumExtensions: 0, NumServices: 0, }, diff --git a/js/svc/auth/v1/service-AuthService_connectquery.ts b/js/svc/auth/v1/service-AuthService_connectquery.ts index 3116b16..a79f925 100644 --- a/js/svc/auth/v1/service-AuthService_connectquery.ts +++ b/js/svc/auth/v1/service-AuthService_connectquery.ts @@ -18,3 +18,8 @@ export const beginDeviceAuth = AuthService.method.beginDeviceAuth; * @generated from rpc svc.auth.v1.AuthService.CompleteDeviceAuth */ export const completeDeviceAuth = AuthService.method.completeDeviceAuth; + +/** + * @generated from rpc svc.auth.v1.AuthService.CheckUsername + */ +export const checkUsername = AuthService.method.checkUsername; diff --git a/js/svc/auth/v1/service_pb.ts b/js/svc/auth/v1/service_pb.ts index a437f17..d165996 100644 --- a/js/svc/auth/v1/service_pb.ts +++ b/js/svc/auth/v1/service_pb.ts @@ -18,7 +18,41 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file svc/auth/v1/service.proto. */ export const file_svc_auth_v1_service: GenFile = /*@__PURE__*/ - fileDesc("ChlzdmMvYXV0aC92MS9zZXJ2aWNlLnByb3RvEgtzdmMuYXV0aC52MSKTAQoRR2V0QXV0aFVSTFJlcXVlc3QSDwoFYnlfaWQYZCABKANIABIRCgdieV9uYW1lGGUgASgJSAASFQoNcmV0dXJuX3RvX3VybBgCIAEoCRIzCglsb2NhbGhvc3QYAyABKAsyIC5zdmMuYXV0aC52MS5Mb2NhbGhvc3RWaWFCcm93c2VyQg4KDG9yZ2FuaXphdGlvbiJvChNMb2NhbGhvc3RWaWFCcm93c2VyEhQKDGFyY2hpdGVjdHVyZRgBIAEoCRIYChBvcGVyYXRpbmdfc3lzdGVtGAIgASgJEigKDXVzaW5nX3ZlcnNpb24YAyABKAsyES50eXBlcy52MS5WZXJzaW9uIiYKEkdldEF1dGhVUkxSZXNwb25zZRIQCghhdXRoX3VybBgBIAEoCSJjChZCZWdpbkRldmljZUF1dGhSZXF1ZXN0Eg8KBWJ5X2lkGGQgASgDSAASEQoHYnlfbmFtZRhlIAEoCUgAEhUKDXJldHVybl90b191cmwYAiABKAlCDgoMb3JnYW5pemF0aW9uIrABChdCZWdpbkRldmljZUF1dGhSZXNwb25zZRILCgN1cmwYASABKAkSEwoLZGV2aWNlX2NvZGUYAiABKAkSEQoJdXNlcl9jb2RlGAMgASgJEi4KCmV4cGlyZXNfYXQYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjAKDXBvbGxfaW50ZXJ2YWwYBSABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24icwoZQ29tcGxldGVEZXZpY2VBdXRoUmVxdWVzdBITCgtkZXZpY2VfY29kZRgBIAEoCRIRCgl1c2VyX2NvZGUYAiABKAkSFAoMYXJjaGl0ZWN0dXJlGAUgASgJEhgKEG9wZXJhdGluZ19zeXN0ZW0YBiABKAkiQAoaQ29tcGxldGVEZXZpY2VBdXRoUmVzcG9uc2USIgoFdG9rZW4YASABKAsyEy50eXBlcy52MS5Vc2VyVG9rZW4ypwIKC0F1dGhTZXJ2aWNlEk8KCkdldEF1dGhVUkwSHi5zdmMuYXV0aC52MS5HZXRBdXRoVVJMUmVxdWVzdBofLnN2Yy5hdXRoLnYxLkdldEF1dGhVUkxSZXNwb25zZSIAEl4KD0JlZ2luRGV2aWNlQXV0aBIjLnN2Yy5hdXRoLnYxLkJlZ2luRGV2aWNlQXV0aFJlcXVlc3QaJC5zdmMuYXV0aC52MS5CZWdpbkRldmljZUF1dGhSZXNwb25zZSIAEmcKEkNvbXBsZXRlRGV2aWNlQXV0aBImLnN2Yy5hdXRoLnYxLkNvbXBsZXRlRGV2aWNlQXV0aFJlcXVlc3QaJy5zdmMuYXV0aC52MS5Db21wbGV0ZURldmljZUF1dGhSZXNwb25zZSIAQp4BCg9jb20uc3ZjLmF1dGgudjFCDFNlcnZpY2VQcm90b1ABWi9naXRodWIuY29tL2h1bWFubG9naW8vYXBpL2dvL3N2Yy9hdXRoL3YxO2F1dGh2MaICA1NBWKoCC1N2Yy5BdXRoLlYxygILU3ZjXEF1dGhcVjHiAhdTdmNcQXV0aFxWMVxHUEJNZXRhZGF0YeoCDVN2Yzo6QXV0aDo6VjFiBnByb3RvMw", [file_google_protobuf_duration, file_google_protobuf_timestamp, file_types_v1_environment, file_types_v1_meta, file_types_v1_user_token, file_types_v1_version]); + fileDesc("ChlzdmMvYXV0aC92MS9zZXJ2aWNlLnByb3RvEgtzdmMuYXV0aC52MSIoChRDaGVja1VzZXJuYW1lUmVxdWVzdBIQCgh1c2VybmFtZRgBIAEoCSIqChVDaGVja1VzZXJuYW1lUmVzcG9uc2USEQoJYXZhaWxhYmxlGAEgASgIIqUBChFHZXRBdXRoVVJMUmVxdWVzdBIPCgVieV9pZBhkIAEoA0gAEhEKB2J5X25hbWUYZSABKAlIABIVCg1y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jEuR2V0QXV0aFVSTFJlc3BvbnNlIgASXgoPQmVnaW5EZXZpY2VBdXRoEiMuc3ZjLmF1dGgudjEuQmVnaW5EZXZpY2VBdXRoUmVxdWVzdBokLnN2Yy5hdXRoLnYxLkJlZ2luRGV2aWNlQXV0aFJlc3BvbnNlIgASZwoSQ29tcGxldGVEZXZpY2VBdXRoEiYuc3ZjLmF1dGgudjEuQ29tcGxldGVEZXZpY2VBdXRoUmVxdWVzdBonLnN2Yy5hdXRoLnYxLkNvbXBsZXRlRGV2aWNlQXV0aFJlc3BvbnNlIgASWAoNQ2hlY2tVc2VybmFtZRIhLnN2Yy5hdXRoLnYxLkNoZWNrVXNlcm5hbWVSZXF1ZXN0GiIuc3ZjLmF1dGgudjEuQ2hlY2tVc2VybmFtZVJlc3BvbnNlIgBCngEKD2NvbS5zdmMuYXV0aC52MUIMU2VydmljZVByb3RvUAFaL2dpdGh1Yi5jb20vaHVtYW5sb2dpby9hcGkvZ28vc3ZjL2F1dGgvdjE7YXV0aHYxogIDU0FYqgILU3ZjLkF1dGguVjHKAgtTdmNcQXV0aFxWMeICF1N2Y1xBdXRoXFYxXEdQQk1ldGFkYXRh6gINU3ZjOjpBdXRoOjpWMWIGcHJvdG8z", [file_google_protobuf_duration, file_google_protobuf_timestamp, file_types_v1_environment, file_types_v1_meta, file_types_v1_user_token, file_types_v1_version]); + +/** + * @generated from message svc.auth.v1.CheckUsernameRequest + */ +export type CheckUsernameRequest = Message<"svc.auth.v1.CheckUsernameRequest"> & { + /** + * @generated from field: string username = 1; + */ + username: string; +}; + +/** + * Describes the message svc.auth.v1.CheckUsernameRequest. + * Use `create(CheckUsernameRequestSchema)` to create a new message. + */ +export const CheckUsernameRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_svc_auth_v1_service, 0); + +/** + * @generated from message svc.auth.v1.CheckUsernameResponse + */ +export type CheckUsernameResponse = Message<"svc.auth.v1.CheckUsernameResponse"> & { + /** + * @generated from field: bool available = 1; + */ + available: boolean; +}; + +/** + * Describes the message svc.auth.v1.CheckUsernameResponse. + * Use `create(CheckUsernameResponseSchema)` to create a new message. + */ +export const CheckUsernameResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_svc_auth_v1_service, 1); /** * @generated from message svc.auth.v1.GetAuthURLRequest @@ -52,6 +86,11 @@ export type GetAuthURLRequest = Message<"svc.auth.v1.GetAuthURLRequest"> & { * @generated from field: svc.auth.v1.LocalhostViaBrowser localhost = 3; */ localhost?: LocalhostViaBrowser; + + /** + * @generated from field: string username = 4; + */ + username: string; }; /** @@ -59,7 +98,7 @@ export type GetAuthURLRequest = Message<"svc.auth.v1.GetAuthURLRequest"> & { * Use `create(GetAuthURLRequestSchema)` to create a new message. */ export const GetAuthURLRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_auth_v1_service, 0); + messageDesc(file_svc_auth_v1_service, 2); /** * @generated from message svc.auth.v1.LocalhostViaBrowser @@ -86,7 +125,7 @@ export type LocalhostViaBrowser = Message<"svc.auth.v1.LocalhostViaBrowser"> & { * Use `create(LocalhostViaBrowserSchema)` to create a new message. */ export const LocalhostViaBrowserSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_auth_v1_service, 1); + messageDesc(file_svc_auth_v1_service, 3); /** * @generated from message svc.auth.v1.GetAuthURLResponse @@ -103,7 +142,7 @@ export type GetAuthURLResponse = Message<"svc.auth.v1.GetAuthURLResponse"> & { * Use `create(GetAuthURLResponseSchema)` to create a new message. */ export const GetAuthURLResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_auth_v1_service, 2); + messageDesc(file_svc_auth_v1_service, 4); /** * @generated from message svc.auth.v1.BeginDeviceAuthRequest @@ -137,7 +176,7 @@ export type BeginDeviceAuthRequest = Message<"svc.auth.v1.BeginDeviceAuthRequest * Use `create(BeginDeviceAuthRequestSchema)` to create a new message. */ export const BeginDeviceAuthRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_auth_v1_service, 3); + messageDesc(file_svc_auth_v1_service, 5); /** * @generated from message svc.auth.v1.BeginDeviceAuthResponse @@ -176,7 +215,7 @@ export type BeginDeviceAuthResponse = Message<"svc.auth.v1.BeginDeviceAuthRespon * Use `create(BeginDeviceAuthResponseSchema)` to create a new message. */ export const BeginDeviceAuthResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_auth_v1_service, 4); + messageDesc(file_svc_auth_v1_service, 6); /** * @generated from message svc.auth.v1.CompleteDeviceAuthRequest @@ -211,7 +250,7 @@ export type CompleteDeviceAuthRequest = Message<"svc.auth.v1.CompleteDeviceAuthR * Use `create(CompleteDeviceAuthRequestSchema)` to create a new message. */ export const CompleteDeviceAuthRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_auth_v1_service, 5); + messageDesc(file_svc_auth_v1_service, 7); /** * @generated from message svc.auth.v1.CompleteDeviceAuthResponse @@ -228,7 +267,7 @@ export type CompleteDeviceAuthResponse = Message<"svc.auth.v1.CompleteDeviceAuth * Use `create(CompleteDeviceAuthResponseSchema)` to create a new message. */ export const CompleteDeviceAuthResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_auth_v1_service, 6); + messageDesc(file_svc_auth_v1_service, 8); /** * @generated from service svc.auth.v1.AuthService @@ -258,6 +297,14 @@ export const AuthService: GenService<{ input: typeof CompleteDeviceAuthRequestSchema; output: typeof CompleteDeviceAuthResponseSchema; }, + /** + * @generated from rpc svc.auth.v1.AuthService.CheckUsername + */ + checkUsername: { + methodKind: "unary"; + input: typeof CheckUsernameRequestSchema; + output: typeof CheckUsernameResponseSchema; + }, }> = /*@__PURE__*/ serviceDesc(file_svc_auth_v1_service, 0); diff --git a/js/svc/environment/v1/service-EnvironmentService_connectquery.ts b/js/svc/environment/v1/service-EnvironmentService_connectquery.ts index 767742c..e043a4f 100644 --- a/js/svc/environment/v1/service-EnvironmentService_connectquery.ts +++ b/js/svc/environment/v1/service-EnvironmentService_connectquery.ts @@ -5,6 +5,6 @@ import { EnvironmentService } from "./service_pb"; /** - * @generated from rpc svc.environment.v1.EnvironmentService.ListMachine + * @generated from rpc svc.environment.v1.EnvironmentService.ListResource */ -export const listMachine = EnvironmentService.method.listMachine; +export const listResource = EnvironmentService.method.listResource; diff --git a/js/svc/environment/v1/service_pb.ts b/js/svc/environment/v1/service_pb.ts index c1ccc44..24a3a6a 100644 --- a/js/svc/environment/v1/service_pb.ts +++ b/js/svc/environment/v1/service_pb.ts @@ -7,20 +7,20 @@ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2 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"; -import type { Machine } from "../../../types/v1/machine_pb"; -import { file_types_v1_machine } from "../../../types/v1/machine_pb"; +import type { Resource } from "../../../types/v1/otel_resource_pb"; +import { file_types_v1_otel_resource } from "../../../types/v1/otel_resource_pb"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file svc/environment/v1/service.proto. */ export const file_svc_environment_v1_service: GenFile = /*@__PURE__*/ - fileDesc("CiBzdmMvZW52aXJvbm1lbnQvdjEvc2VydmljZS5wcm90bxISc3ZjLmVudmlyb25tZW50LnYxIl0KEkxpc3RNYWNoaW5lUmVxdWVzdBIgCgZjdXJzb3IYASABKAsyEC50eXBlcy52MS5DdXJzb3ISDQoFbGltaXQYAiABKAUSFgoOZW52aXJvbm1lbnRfaWQYAyABKAMipgEKE0xpc3RNYWNoaW5lUmVzcG9uc2USHgoEbmV4dBgBIAEoCzIQLnR5cGVzLnYxLkN1cnNvchI/CgVpdGVtcxgCIAMoCzIwLnN2Yy5lbnZpcm9ubWVudC52MS5MaXN0TWFjaGluZVJlc3BvbnNlLkxpc3RJdGVtGi4KCExpc3RJdGVtEiIKB21hY2hpbmUYASABKAsyES50eXBlcy52MS5NYWNoaW5lMnQKEkVudmlyb25tZW50U2VydmljZRJeCgtMaXN0TWFjaGluZRImLnN2Yy5lbnZpcm9ubWVudC52MS5MaXN0TWFjaGluZVJlcXVlc3QaJy5zdmMuZW52aXJvbm1lbnQudjEuTGlzdE1hY2hpbmVSZXNwb25zZULPAQoWY29tLnN2Yy5lbnZpcm9ubWVudC52MUIMU2VydmljZVByb3RvUAFaPWdpdGh1Yi5jb20vaHVtYW5sb2dpby9hcGkvZ28vc3ZjL2Vudmlyb25tZW50L3YxO2Vudmlyb25tZW50djGiAgNTRViqAhJTdmMuRW52aXJvbm1lbnQuVjHKAhJTdmNcRW52aXJvbm1lbnRcVjHiAh5TdmNcRW52aXJvbm1lbnRcVjFcR1BCTWV0YWRhdGHqAhRTdmM6OkVudmlyb25tZW50OjpWMWIGcHJvdG8z", [file_types_v1_cursor, file_types_v1_environment, file_types_v1_machine]); + fileDesc("CiBzdmMvZW52aXJvbm1lbnQvdjEvc2VydmljZS5wcm90bxISc3ZjLmVudmlyb25tZW50LnYxIl4KE0xpc3RSZXNvdXJjZVJlcXVlc3QSIAoGY3Vyc29yGAEgASgLMhAudHlwZXMudjEuQ3Vyc29yEg0KBWxpbWl0GAIgASgFEhYKDmVudmlyb25tZW50X2lkGAMgASgDIqoBChRMaXN0UmVzb3VyY2VSZXNwb25zZRIeCgRuZXh0GAEgASgLMhAudHlwZXMudjEuQ3Vyc29yEkAKBWl0ZW1zGAIgAygLMjEuc3ZjLmVudmlyb25tZW50LnYxLkxpc3RSZXNvdXJjZVJlc3BvbnNlLkxpc3RJdGVtGjAKCExpc3RJdGVtEiQKCHJlc291cmNlGAEgASgLMhIudHlwZXMudjEuUmVzb3VyY2UydwoSRW52aXJvbm1lbnRTZXJ2aWNlEmEKDExpc3RSZXNvdXJjZRInLnN2Yy5lbnZpcm9ubWVudC52MS5MaXN0UmVzb3VyY2VSZXF1ZXN0Giguc3ZjLmVudmlyb25tZW50LnYxLkxpc3RSZXNvdXJjZVJlc3BvbnNlQs8BChZjb20uc3ZjLmVudmlyb25tZW50LnYxQgxTZXJ2aWNlUHJvdG9QAVo9Z2l0aHViLmNvbS9odW1hbmxvZ2lvL2FwaS9nby9zdmMvZW52aXJvbm1lbnQvdjE7ZW52aXJvbm1lbnR2MaICA1NFWKoCElN2Yy5FbnZpcm9ubWVudC5WMcoCElN2Y1xFbnZpcm9ubWVudFxWMeICHlN2Y1xFbnZpcm9ubWVudFxWMVxHUEJNZXRhZGF0YeoCFFN2Yzo6RW52aXJvbm1lbnQ6OlYxYgZwcm90bzM", [file_types_v1_cursor, file_types_v1_environment, file_types_v1_otel_resource]); /** - * @generated from message svc.environment.v1.ListMachineRequest + * @generated from message svc.environment.v1.ListResourceRequest */ -export type ListMachineRequest = Message<"svc.environment.v1.ListMachineRequest"> & { +export type ListResourceRequest = Message<"svc.environment.v1.ListResourceRequest"> & { /** * @generated from field: types.v1.Cursor cursor = 1; */ @@ -38,49 +38,49 @@ export type ListMachineRequest = Message<"svc.environment.v1.ListMachineRequest" }; /** - * Describes the message svc.environment.v1.ListMachineRequest. - * Use `create(ListMachineRequestSchema)` to create a new message. + * Describes the message svc.environment.v1.ListResourceRequest. + * Use `create(ListResourceRequestSchema)` to create a new message. */ -export const ListMachineRequestSchema: GenMessage = /*@__PURE__*/ +export const ListResourceRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_svc_environment_v1_service, 0); /** - * @generated from message svc.environment.v1.ListMachineResponse + * @generated from message svc.environment.v1.ListResourceResponse */ -export type ListMachineResponse = Message<"svc.environment.v1.ListMachineResponse"> & { +export type ListResourceResponse = Message<"svc.environment.v1.ListResourceResponse"> & { /** * @generated from field: types.v1.Cursor next = 1; */ next?: Cursor; /** - * @generated from field: repeated svc.environment.v1.ListMachineResponse.ListItem items = 2; + * @generated from field: repeated svc.environment.v1.ListResourceResponse.ListItem items = 2; */ - items: ListMachineResponse_ListItem[]; + items: ListResourceResponse_ListItem[]; }; /** - * Describes the message svc.environment.v1.ListMachineResponse. - * Use `create(ListMachineResponseSchema)` to create a new message. + * Describes the message svc.environment.v1.ListResourceResponse. + * Use `create(ListResourceResponseSchema)` to create a new message. */ -export const ListMachineResponseSchema: GenMessage = /*@__PURE__*/ +export const ListResourceResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_svc_environment_v1_service, 1); /** - * @generated from message svc.environment.v1.ListMachineResponse.ListItem + * @generated from message svc.environment.v1.ListResourceResponse.ListItem */ -export type ListMachineResponse_ListItem = Message<"svc.environment.v1.ListMachineResponse.ListItem"> & { +export type ListResourceResponse_ListItem = Message<"svc.environment.v1.ListResourceResponse.ListItem"> & { /** - * @generated from field: types.v1.Machine machine = 1; + * @generated from field: types.v1.Resource resource = 1; */ - machine?: Machine; + resource?: Resource; }; /** - * Describes the message svc.environment.v1.ListMachineResponse.ListItem. - * Use `create(ListMachineResponse_ListItemSchema)` to create a new message. + * Describes the message svc.environment.v1.ListResourceResponse.ListItem. + * Use `create(ListResourceResponse_ListItemSchema)` to create a new message. */ -export const ListMachineResponse_ListItemSchema: GenMessage = /*@__PURE__*/ +export const ListResourceResponse_ListItemSchema: GenMessage = /*@__PURE__*/ messageDesc(file_svc_environment_v1_service, 1, 0); /** @@ -88,12 +88,12 @@ export const ListMachineResponse_ListItemSchema: GenMessage = /*@__PURE__*/ serviceDesc(file_svc_environment_v1_service, 0); diff --git a/js/svc/organization/v1/service-OrganizationService_connectquery.ts b/js/svc/organization/v1/service-OrganizationService_connectquery.ts index c6d65c5..d239324 100644 --- a/js/svc/organization/v1/service-OrganizationService_connectquery.ts +++ b/js/svc/organization/v1/service-OrganizationService_connectquery.ts @@ -30,9 +30,14 @@ export const listUser = OrganizationService.method.listUser; export const inviteUser = OrganizationService.method.inviteUser; /** - * @generated from rpc svc.organization.v1.OrganizationService.RevokeUser + * @generated from rpc svc.organization.v1.OrganizationService.RevokeUserInvitation */ -export const revokeUser = OrganizationService.method.revokeUser; +export const revokeUserInvitation = OrganizationService.method.revokeUserInvitation; + +/** + * @generated from rpc svc.organization.v1.OrganizationService.ListUserInvitation + */ +export const listUserInvitation = OrganizationService.method.listUserInvitation; /** * @generated from rpc svc.organization.v1.OrganizationService.CreateAddonSubscription diff --git a/js/svc/organization/v1/service_pb.ts b/js/svc/organization/v1/service_pb.ts index 78b492c..edb4cf6 100644 --- a/js/svc/organization/v1/service_pb.ts +++ b/js/svc/organization/v1/service_pb.ts @@ -9,6 +9,7 @@ import type { Cursor } from "../../../types/v1/cursor_pb"; import { file_types_v1_cursor } from "../../../types/v1/cursor_pb"; import type { Environment } from "../../../types/v1/environment_pb"; import { file_types_v1_environment } from "../../../types/v1/environment_pb"; +import type { Invitation } from "../../../types/v1/organization_pb"; import { file_types_v1_organization } from "../../../types/v1/organization_pb"; import type { PaymentMethod } from "../../../types/v1/payment_method_pb"; import { file_types_v1_payment_method } from "../../../types/v1/payment_method_pb"; @@ -24,7 +25,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file svc/organization/v1/service.proto. */ export const file_svc_organization_v1_service: GenFile = /*@__PURE__*/ - fileDesc("CiFzdmMvb3JnYW5pemF0aW9uL3YxL3NlcnZpY2UucHJvdG8SE3N2Yy5vcmdhbml6YXRpb24udjEi5wEKGENyZWF0ZUVudmlyb25tZW50UmVxdWVzdBI/ChBlbnZpcm9ubWVudF9uYW1lGAEgASgJQiW6SCJyIBADGCcyGl5bYS16QS1aMC05XVthLXpBLVowLTktXSskEkcKBnN0cmlwZRjJASABKAsyNC5zdmMub3JnYW5pemF0aW9uLnYxLkNyZWF0ZUVudmlyb25tZW50UmVxdWVzdC5TdHJpcGVIABo2CgZTdHJpcGUSGgoSY29uZmlybWF0aW9uX3Rva2VuGAEgASgJEhAKCHByaWNlX2lkGAIgASgJQgkKB3BheW1lbnQizQEKGUNyZWF0ZUVudmlyb25tZW50UmVzcG9uc2USKgoLZW52aXJvbm1lbnQYASABKAsyFS50eXBlcy52MS5FbnZpcm9ubWVudBJICgZzdHJpcGUYyQEgASgLMjUuc3ZjLm9yZ2FuaXphdGlvbi52MS5DcmVhdGVFbnZpcm9ubWVudFJlc3BvbnNlLlN0cmlwZU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W8vYXBpL2dvL3N2Yy9vcmdhbml6YXRpb24vdjE7b3JnYW5pemF0aW9udjGiAgNTT1iqAhNTdmMuT3JnYW5pemF0aW9uLlYxygITU3ZjXE9yZ2FuaXphdGlvblxWMeICH1N2Y1xPcmdhbml6YXRpb25cVjFcR1BCTWV0YWRhdGHqAhVTdmM6Ok9yZ2FuaXphdGlvbjo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_types_v1_cursor, file_types_v1_environment, file_types_v1_organization, file_types_v1_payment_method, file_types_v1_product, file_types_v1_subscription, file_types_v1_user]); + fileDesc("CiFzdmMvb3JnYW5pemF0aW9uL3YxL3NlcnZpY2UucHJvdG8SE3N2Yy5vcmdhbml6YXRpb24udjEi5wEKGENyZWF0ZUVudmlyb25tZW50UmVxdWVzdBI/ChBlbnZpcm9ubWVudF9uYW1lGAEgASgJQiW6SCJyIBADGCcyGl5bYS16QS1aMC05XVthLXpBLVowLTktXSskEkcKBnN0cmlwZRjJASABKAsyNC5zdmMub3JnYW5pemF0aW9uLnYxLkNyZWF0ZUVudmlyb25tZW50UmVxdWVzdC5TdHJpcGVIABo2CgZTdHJpcGUSGgoSY29uZmlybWF0aW9uX3Rva2VuGAEgASgJEhAKCHByaWNlX2lkGAIgASgJQgkKB3BheW1lbnQizQEKGUNyZWF0ZUVudmlyb25tZW50UmVzcG9uc2USKgoLZW52aXJvbm1lbnQYASABKAsyFS50eXBlcy52MS5FbnZpcm9ubWVudBJICgZzdHJpcGUYyQEgASgLMjUuc3ZjLm9yZ2FuaXphdGlvbi52MS5DcmVhdGVFbnZpcm9ubWVudFJlc3BvbnNlLlN0cmlwZUgAGi8KBlN0cmlwZRIOCgZzdGF0dXMYASABKAkSFQoNY2xpZW50X3NlY3JldBgCIAEoCUIJCgdwYXltZW50IjsKFUdldEVudmlyb25tZW50UmVxdWVzdBIMCgJpZBgBIAEoA0gAEg4KBG5hbWUYAiABKAlIAEIECgJieSJEChZHZXRFbnZpcm9ubWVudFJlc3BvbnNlEioK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aXphdGlvbi52MS5HZXRTdHJpcGVCaWxsaW5nUG9ydGFsUmVzcG9uc2UiABKSAQobQ3JlYXRlU3RyaXBlQ3VzdG9tZXJTZXNzaW9uEjcuc3ZjLm9yZ2FuaXphdGlvbi52MS5DcmVhdGVTdHJpcGVDdXN0b21lclNlc3Npb25SZXF1ZXN0Gjguc3ZjLm9yZ2FuaXphdGlvbi52MS5DcmVhdGVTdHJpcGVDdXN0b21lclNlc3Npb25SZXNwb25zZSIAEnQKEUxpc3RQYXltZW50TWV0aG9kEi0uc3ZjLm9yZ2FuaXphdGlvbi52MS5MaXN0UGF5bWVudE1ldGhvZFJlcXVlc3QaLi5zdmMub3JnYW5pemF0aW9uLnYxLkxpc3RQYXltZW50TWV0aG9kUmVzcG9uc2UiAELWAQoXY29tLnN2Yy5vcmdhbml6YXRpb24udjFCDFNlcnZpY2VQcm90b1ABWj9naXRodWIuY29tL2h1bWFubG9naW8vYXBpL2dvL3N2Yy9vcmdhbml6YXRpb24vdjE7b3JnYW5pemF0aW9udjGiAgNTT1iqAhNTdmMuT3JnYW5pemF0aW9uLlYxygITU3ZjXE9yZ2FuaXphdGlvblxWMeICH1N2Y1xPcmdhbml6YXRpb25cVjFcR1BCTWV0YWRhdGHqAhVTdmM6Ok9yZ2FuaXphdGlvbjo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_types_v1_cursor, file_types_v1_environment, file_types_v1_organization, file_types_v1_payment_method, file_types_v1_product, file_types_v1_subscription, file_types_v1_user]); /** * @generated from message svc.organization.v1.CreateEnvironmentRequest @@ -320,6 +321,10 @@ export const InviteUserRequestSchema: GenMessage = /*@__PURE_ * @generated from message svc.organization.v1.InviteUserResponse */ export type InviteUserResponse = Message<"svc.organization.v1.InviteUserResponse"> & { + /** + * @generated from field: types.v1.Invitation invitation = 1; + */ + invitation?: Invitation; }; /** @@ -330,35 +335,100 @@ export const InviteUserResponseSchema: GenMessage = /*@__PUR messageDesc(file_svc_organization_v1_service, 9); /** - * @generated from message svc.organization.v1.RevokeUserRequest + * @generated from message svc.organization.v1.RevokeUserInvitationRequest */ -export type RevokeUserRequest = Message<"svc.organization.v1.RevokeUserRequest"> & { +export type RevokeUserInvitationRequest = Message<"svc.organization.v1.RevokeUserInvitationRequest"> & { /** - * @generated from field: int64 user_id = 1; + * @generated from field: int64 invite_id = 1; */ - userId: bigint; + inviteId: bigint; }; /** - * Describes the message svc.organization.v1.RevokeUserRequest. - * Use `create(RevokeUserRequestSchema)` to create a new message. + * Describes the message svc.organization.v1.RevokeUserInvitationRequest. + * Use `create(RevokeUserInvitationRequestSchema)` to create a new message. */ -export const RevokeUserRequestSchema: GenMessage = /*@__PURE__*/ +export const RevokeUserInvitationRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_svc_organization_v1_service, 10); /** - * @generated from message svc.organization.v1.RevokeUserResponse + * @generated from message svc.organization.v1.RevokeUserInvitationResponse */ -export type RevokeUserResponse = Message<"svc.organization.v1.RevokeUserResponse"> & { +export type RevokeUserInvitationResponse = Message<"svc.organization.v1.RevokeUserInvitationResponse"> & { + /** + * @generated from field: types.v1.Invitation invitation = 1; + */ + invitation?: Invitation; }; /** - * Describes the message svc.organization.v1.RevokeUserResponse. - * Use `create(RevokeUserResponseSchema)` to create a new message. + * Describes the message svc.organization.v1.RevokeUserInvitationResponse. + * Use `create(RevokeUserInvitationResponseSchema)` to create a new message. */ -export const RevokeUserResponseSchema: GenMessage = /*@__PURE__*/ +export const RevokeUserInvitationResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_svc_organization_v1_service, 11); +/** + * @generated from message svc.organization.v1.ListUserInvitationRequest + */ +export type ListUserInvitationRequest = Message<"svc.organization.v1.ListUserInvitationRequest"> & { + /** + * @generated from field: types.v1.Cursor cursor = 1; + */ + cursor?: Cursor; + + /** + * @generated from field: int32 limit = 2; + */ + limit: number; +}; + +/** + * Describes the message svc.organization.v1.ListUserInvitationRequest. + * Use `create(ListUserInvitationRequestSchema)` to create a new message. + */ +export const ListUserInvitationRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_svc_organization_v1_service, 12); + +/** + * @generated from message svc.organization.v1.ListUserInvitationResponse + */ +export type ListUserInvitationResponse = Message<"svc.organization.v1.ListUserInvitationResponse"> & { + /** + * @generated from field: types.v1.Cursor next = 1; + */ + next?: Cursor; + + /** + * @generated from field: repeated svc.organization.v1.ListUserInvitationResponse.ListItem items = 2; + */ + items: ListUserInvitationResponse_ListItem[]; +}; + +/** + * Describes the message svc.organization.v1.ListUserInvitationResponse. + * Use `create(ListUserInvitationResponseSchema)` to create a new message. + */ +export const ListUserInvitationResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_svc_organization_v1_service, 13); + +/** + * @generated from message svc.organization.v1.ListUserInvitationResponse.ListItem + */ +export type ListUserInvitationResponse_ListItem = Message<"svc.organization.v1.ListUserInvitationResponse.ListItem"> & { + /** + * @generated from field: types.v1.Invitation invitation = 1; + */ + invitation?: Invitation; +}; + +/** + * Describes the message svc.organization.v1.ListUserInvitationResponse.ListItem. + * Use `create(ListUserInvitationResponse_ListItemSchema)` to create a new message. + */ +export const ListUserInvitationResponse_ListItemSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_svc_organization_v1_service, 13, 0); + /** * @generated from message svc.organization.v1.CreateAddonSubscriptionRequest */ @@ -380,7 +450,7 @@ export type CreateAddonSubscriptionRequest = Message<"svc.organization.v1.Create * Use `create(CreateAddonSubscriptionRequestSchema)` to create a new message. */ export const CreateAddonSubscriptionRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 12); + messageDesc(file_svc_organization_v1_service, 14); /** * @generated from message svc.organization.v1.CreateAddonSubscriptionRequest.Stripe @@ -402,7 +472,7 @@ export type CreateAddonSubscriptionRequest_Stripe = Message<"svc.organization.v1 * Use `create(CreateAddonSubscriptionRequest_StripeSchema)` to create a new message. */ export const CreateAddonSubscriptionRequest_StripeSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 12, 0); + messageDesc(file_svc_organization_v1_service, 14, 0); /** * @generated from message svc.organization.v1.CreateAddonSubscriptionResponse @@ -425,7 +495,7 @@ export type CreateAddonSubscriptionResponse = Message<"svc.organization.v1.Creat * Use `create(CreateAddonSubscriptionResponseSchema)` to create a new message. */ export const CreateAddonSubscriptionResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 13); + messageDesc(file_svc_organization_v1_service, 15); /** * @generated from message svc.organization.v1.CreateAddonSubscriptionResponse.Stripe @@ -447,7 +517,7 @@ export type CreateAddonSubscriptionResponse_Stripe = Message<"svc.organization.v * Use `create(CreateAddonSubscriptionResponse_StripeSchema)` to create a new message. */ export const CreateAddonSubscriptionResponse_StripeSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 13, 0); + messageDesc(file_svc_organization_v1_service, 15, 0); /** * @generated from message svc.organization.v1.ListAddonSubscriptionRequest @@ -469,7 +539,7 @@ export type ListAddonSubscriptionRequest = Message<"svc.organization.v1.ListAddo * Use `create(ListAddonSubscriptionRequestSchema)` to create a new message. */ export const ListAddonSubscriptionRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 14); + messageDesc(file_svc_organization_v1_service, 16); /** * @generated from message svc.organization.v1.ListAddonSubscriptionResponse @@ -491,7 +561,7 @@ export type ListAddonSubscriptionResponse = Message<"svc.organization.v1.ListAdd * Use `create(ListAddonSubscriptionResponseSchema)` to create a new message. */ export const ListAddonSubscriptionResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 15); + messageDesc(file_svc_organization_v1_service, 17); /** * @generated from message svc.organization.v1.ListAddonSubscriptionResponse.ListItem @@ -513,7 +583,7 @@ export type ListAddonSubscriptionResponse_ListItem = Message<"svc.organization.v * Use `create(ListAddonSubscriptionResponse_ListItemSchema)` to create a new message. */ export const ListAddonSubscriptionResponse_ListItemSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 15, 0); + messageDesc(file_svc_organization_v1_service, 17, 0); /** * @generated from message svc.organization.v1.RemoveAddonSubscriptionRequest @@ -535,7 +605,7 @@ export type RemoveAddonSubscriptionRequest = Message<"svc.organization.v1.Remove * Use `create(RemoveAddonSubscriptionRequestSchema)` to create a new message. */ export const RemoveAddonSubscriptionRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 16); + messageDesc(file_svc_organization_v1_service, 18); /** * @generated from message svc.organization.v1.RemoveAddonSubscriptionRequest.Reason @@ -557,7 +627,7 @@ export type RemoveAddonSubscriptionRequest_Reason = Message<"svc.organization.v1 * Use `create(RemoveAddonSubscriptionRequest_ReasonSchema)` to create a new message. */ export const RemoveAddonSubscriptionRequest_ReasonSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 16, 0); + messageDesc(file_svc_organization_v1_service, 18, 0); /** * @generated from message svc.organization.v1.RemoveAddonSubscriptionResponse @@ -570,7 +640,7 @@ export type RemoveAddonSubscriptionResponse = Message<"svc.organization.v1.Remov * Use `create(RemoveAddonSubscriptionResponseSchema)` to create a new message. */ export const RemoveAddonSubscriptionResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 17); + messageDesc(file_svc_organization_v1_service, 19); /** * @generated from message svc.organization.v1.GetStripePublishableKeyRequest @@ -583,7 +653,7 @@ export type GetStripePublishableKeyRequest = Message<"svc.organization.v1.GetStr * Use `create(GetStripePublishableKeyRequestSchema)` to create a new message. */ export const GetStripePublishableKeyRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 18); + messageDesc(file_svc_organization_v1_service, 20); /** * @generated from message svc.organization.v1.GetStripePublishableKeyResponse @@ -600,7 +670,7 @@ export type GetStripePublishableKeyResponse = Message<"svc.organization.v1.GetSt * Use `create(GetStripePublishableKeyResponseSchema)` to create a new message. */ export const GetStripePublishableKeyResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 19); + messageDesc(file_svc_organization_v1_service, 21); /** * @generated from message svc.organization.v1.GetStripeBillingPortalRequest @@ -617,7 +687,7 @@ export type GetStripeBillingPortalRequest = Message<"svc.organization.v1.GetStri * Use `create(GetStripeBillingPortalRequestSchema)` to create a new message. */ export const GetStripeBillingPortalRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 20); + messageDesc(file_svc_organization_v1_service, 22); /** * @generated from message svc.organization.v1.GetStripeBillingPortalResponse @@ -639,7 +709,7 @@ export type GetStripeBillingPortalResponse = Message<"svc.organization.v1.GetStr * Use `create(GetStripeBillingPortalResponseSchema)` to create a new message. */ export const GetStripeBillingPortalResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 21); + messageDesc(file_svc_organization_v1_service, 23); /** * @generated from message svc.organization.v1.CreateStripeCustomerSessionRequest @@ -652,7 +722,7 @@ export type CreateStripeCustomerSessionRequest = Message<"svc.organization.v1.Cr * Use `create(CreateStripeCustomerSessionRequestSchema)` to create a new message. */ export const CreateStripeCustomerSessionRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 22); + messageDesc(file_svc_organization_v1_service, 24); /** * @generated from message svc.organization.v1.CreateStripeCustomerSessionResponse @@ -669,7 +739,7 @@ export type CreateStripeCustomerSessionResponse = Message<"svc.organization.v1.C * Use `create(CreateStripeCustomerSessionResponseSchema)` to create a new message. */ export const CreateStripeCustomerSessionResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 23); + messageDesc(file_svc_organization_v1_service, 25); /** * @generated from message svc.organization.v1.ListPaymentMethodRequest @@ -691,7 +761,7 @@ export type ListPaymentMethodRequest = Message<"svc.organization.v1.ListPaymentM * Use `create(ListPaymentMethodRequestSchema)` to create a new message. */ export const ListPaymentMethodRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 24); + messageDesc(file_svc_organization_v1_service, 26); /** * @generated from message svc.organization.v1.ListPaymentMethodResponse @@ -713,7 +783,7 @@ export type ListPaymentMethodResponse = Message<"svc.organization.v1.ListPayment * Use `create(ListPaymentMethodResponseSchema)` to create a new message. */ export const ListPaymentMethodResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 25); + messageDesc(file_svc_organization_v1_service, 27); /** * @generated from message svc.organization.v1.ListPaymentMethodResponse.ListItem @@ -730,7 +800,7 @@ export type ListPaymentMethodResponse_ListItem = Message<"svc.organization.v1.Li * Use `create(ListPaymentMethodResponse_ListItemSchema)` to create a new message. */ export const ListPaymentMethodResponse_ListItemSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_svc_organization_v1_service, 25, 0); + messageDesc(file_svc_organization_v1_service, 27, 0); /** * @generated from service svc.organization.v1.OrganizationService @@ -777,12 +847,20 @@ export const OrganizationService: GenService<{ output: typeof InviteUserResponseSchema; }, /** - * @generated from rpc svc.organization.v1.OrganizationService.RevokeUser + * @generated from rpc svc.organization.v1.OrganizationService.RevokeUserInvitation + */ + revokeUserInvitation: { + methodKind: "unary"; + input: typeof RevokeUserInvitationRequestSchema; + output: typeof RevokeUserInvitationResponseSchema; + }, + /** + * @generated from rpc svc.organization.v1.OrganizationService.ListUserInvitation */ - revokeUser: { + listUserInvitation: { methodKind: "unary"; - input: typeof RevokeUserRequestSchema; - output: typeof RevokeUserResponseSchema; + input: typeof ListUserInvitationRequestSchema; + output: typeof ListUserInvitationResponseSchema; }, /** * @generated from rpc svc.organization.v1.OrganizationService.CreateAddonSubscription diff --git a/js/types/v1/organization_pb.ts b/js/types/v1/organization_pb.ts index 17aa17d..0bfa04f 100644 --- a/js/types/v1/organization_pb.ts +++ b/js/types/v1/organization_pb.ts @@ -13,7 +13,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file types/v1/organization.proto. */ export const file_types_v1_organization: GenFile = /*@__PURE__*/ - fileDesc("Cht0eXBlcy92MS9vcmdhbml6YXRpb24ucHJvdG8SCHR5cGVzLnYxIn8KDE9yZ2FuaXphdGlvbhIKCgJpZBgBIAEoAxIzCgRuYW1lGAIgASgJQiW6SCJyIBADGCcyGl5bYS16QS1aMC05XVthLXpBLVowLTktXSskEi4KCmNyZWF0ZWRfYXQYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQpEBCgxjb20udHlwZXMudjFCEU9yZ2FuaXphdGlvblByb3RvUAFaLWdpdGh1Yi5jb20vaHVtYW5sb2dpby9hcGkvZ28vdHlwZXMvdjE7dHlwZXN2MaICA1RYWKoCCFR5cGVzLlYxygIIVHlwZXNcVjHiAhRUeXBlc1xWMVxHUEJNZXRhZGF0YeoCCVR5cGVzOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_google_protobuf_timestamp]); + fileDesc("Cht0eXBlcy92MS9vcmdhbml6YXRpb24ucHJvdG8SCHR5cGVzLnYxIn8KDE9yZ2FuaXphdGlvbhIKCgJpZBgBIAEoAxIzCgRuYW1lGAIgASgJQiW6SCJyIBADGCcyGl5bYS16QS1aMC05XVthLXpBLVowLTktXSskEi4KCmNyZWF0ZWRfYXQYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIrEECgpJbnZpdGF0aW9uEgoKAmlkGAEgASgDEjUKB3BlbmRpbmcYyQEgASgLMiEudHlwZXMudjEuSW52aXRhdGlvbi5TdGF0ZVBlbmRpbmdIABI3CghhY2NlcHRlZBjKASABKAsyIi50eXBlcy52MS5JbnZpdGF0aW9uLlN0YXRlQWNjZXB0ZWRIABI1CgdyZXZva2VkGMsBIAEoCzIhLnR5cGVzLnYxLkludml0YXRpb24uU3RhdGVSZXZva2VkSAASNQoHZXhwaXJlZBjMASABKAsyIS50eXBlcy52MS5JbnZpdGF0aW9uLlN0YXRlRXhwaXJlZEgAGm4KDFN0YXRlUGVuZGluZxIuCgpjcmVhdGVkX2F0GAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgpleHBpcmVzX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBpACg1TdGF0ZUFjY2VwdGVkEi8KC2FjY2VwdGVkX2F0GAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBo+CgxTdGF0ZVJldm9rZWQSLgoKcmV2b2tlZF9hdBgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAaPgoMU3RhdGVFeHBpcmVkEi4KCmV4cGlyZWRfYXQYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgcKBXN0YXRlQpEBCgxjb20udHlwZXMudjFCEU9yZ2FuaXphdGlvblByb3RvUAFaLWdpdGh1Yi5jb20vaHVtYW5sb2dpby9hcGkvZ28vdHlwZXMvdjE7dHlwZXN2MaICA1RYWKoCCFR5cGVzLlYxygIIVHlwZXNcVjHiAhRUeXBlc1xWMVxHUEJNZXRhZGF0YeoCCVR5cGVzOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_google_protobuf_timestamp]); /** * @generated from message types.v1.Organization @@ -42,3 +42,122 @@ export type Organization = Message<"types.v1.Organization"> & { export const OrganizationSchema: GenMessage = /*@__PURE__*/ messageDesc(file_types_v1_organization, 0); +/** + * @generated from message types.v1.Invitation + */ +export type Invitation = Message<"types.v1.Invitation"> & { + /** + * @generated from field: int64 id = 1; + */ + id: bigint; + + /** + * @generated from oneof types.v1.Invitation.state + */ + state: { + /** + * @generated from field: types.v1.Invitation.StatePending pending = 201; + */ + value: Invitation_StatePending; + case: "pending"; + } | { + /** + * @generated from field: types.v1.Invitation.StateAccepted accepted = 202; + */ + value: Invitation_StateAccepted; + case: "accepted"; + } | { + /** + * @generated from field: types.v1.Invitation.StateRevoked revoked = 203; + */ + value: Invitation_StateRevoked; + case: "revoked"; + } | { + /** + * @generated from field: types.v1.Invitation.StateExpired expired = 204; + */ + value: Invitation_StateExpired; + case: "expired"; + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message types.v1.Invitation. + * Use `create(InvitationSchema)` to create a new message. + */ +export const InvitationSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_types_v1_organization, 1); + +/** + * @generated from message types.v1.Invitation.StatePending + */ +export type Invitation_StatePending = Message<"types.v1.Invitation.StatePending"> & { + /** + * @generated from field: google.protobuf.Timestamp created_at = 1; + */ + createdAt?: Timestamp; + + /** + * @generated from field: google.protobuf.Timestamp expires_at = 2; + */ + expiresAt?: Timestamp; +}; + +/** + * Describes the message types.v1.Invitation.StatePending. + * Use `create(Invitation_StatePendingSchema)` to create a new message. + */ +export const Invitation_StatePendingSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_types_v1_organization, 1, 0); + +/** + * @generated from message types.v1.Invitation.StateAccepted + */ +export type Invitation_StateAccepted = Message<"types.v1.Invitation.StateAccepted"> & { + /** + * @generated from field: google.protobuf.Timestamp accepted_at = 1; + */ + acceptedAt?: Timestamp; +}; + +/** + * Describes the message types.v1.Invitation.StateAccepted. + * Use `create(Invitation_StateAcceptedSchema)` to create a new message. + */ +export const Invitation_StateAcceptedSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_types_v1_organization, 1, 1); + +/** + * @generated from message types.v1.Invitation.StateRevoked + */ +export type Invitation_StateRevoked = Message<"types.v1.Invitation.StateRevoked"> & { + /** + * @generated from field: google.protobuf.Timestamp revoked_at = 1; + */ + revokedAt?: Timestamp; +}; + +/** + * Describes the message types.v1.Invitation.StateRevoked. + * Use `create(Invitation_StateRevokedSchema)` to create a new message. + */ +export const Invitation_StateRevokedSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_types_v1_organization, 1, 2); + +/** + * @generated from message types.v1.Invitation.StateExpired + */ +export type Invitation_StateExpired = Message<"types.v1.Invitation.StateExpired"> & { + /** + * @generated from field: google.protobuf.Timestamp expired_at = 1; + */ + expiredAt?: Timestamp; +}; + +/** + * Describes the message types.v1.Invitation.StateExpired. + * Use `create(Invitation_StateExpiredSchema)` to create a new message. + */ +export const Invitation_StateExpiredSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_types_v1_organization, 1, 3); + diff --git a/proto/svc/auth/v1/service.proto b/proto/svc/auth/v1/service.proto index ecb6066..03f1390 100644 --- a/proto/svc/auth/v1/service.proto +++ b/proto/svc/auth/v1/service.proto @@ -15,6 +15,16 @@ service AuthService { rpc GetAuthURL(GetAuthURLRequest) returns (GetAuthURLResponse) {} rpc BeginDeviceAuth(BeginDeviceAuthRequest) returns (BeginDeviceAuthResponse) {} rpc CompleteDeviceAuth(CompleteDeviceAuthRequest) returns (CompleteDeviceAuthResponse) {} + + rpc CheckUsername(CheckUsernameRequest) returns (CheckUsernameResponse) {} +} + +message CheckUsernameRequest { + string username = 1; +} + +message CheckUsernameResponse { + bool available = 1; } message GetAuthURLRequest { @@ -25,6 +35,7 @@ message GetAuthURLRequest { } string return_to_url = 2; LocalhostViaBrowser localhost = 3; + string username = 4; } message LocalhostViaBrowser { diff --git a/proto/svc/environment/v1/service.proto b/proto/svc/environment/v1/service.proto index f92f92b..5b5659e 100644 --- a/proto/svc/environment/v1/service.proto +++ b/proto/svc/environment/v1/service.proto @@ -4,24 +4,24 @@ package svc.environment.v1; import "types/v1/cursor.proto"; import "types/v1/environment.proto"; -import "types/v1/machine.proto"; +import "types/v1/otel_resource.proto"; option go_package = "svc/environment/v1;environmentv1"; service EnvironmentService { - rpc ListMachine(ListMachineRequest) returns (ListMachineResponse); + rpc ListResource(ListResourceRequest) returns (ListResourceResponse); } -message ListMachineRequest { +message ListResourceRequest { types.v1.Cursor cursor = 1; int32 limit = 2; int64 environment_id = 3; } -message ListMachineResponse { +message ListResourceResponse { types.v1.Cursor next = 1; message ListItem { - types.v1.Machine machine = 1; + types.v1.Resource resource = 1; } repeated ListItem items = 2; } diff --git a/proto/svc/organization/v1/service.proto b/proto/svc/organization/v1/service.proto index e3ddb09..9971087 100644 --- a/proto/svc/organization/v1/service.proto +++ b/proto/svc/organization/v1/service.proto @@ -20,7 +20,8 @@ service OrganizationService { rpc ListUser(ListUserRequest) returns (ListUserResponse) {} rpc InviteUser(InviteUserRequest) returns (InviteUserResponse) {} - rpc RevokeUser(RevokeUserRequest) returns (RevokeUserResponse) {} + rpc RevokeUserInvitation(RevokeUserInvitationRequest) returns (RevokeUserInvitationResponse) {} + rpc ListUserInvitation(ListUserInvitationRequest) returns (ListUserInvitationResponse) {} rpc CreateAddonSubscription(CreateAddonSubscriptionRequest) returns (CreateAddonSubscriptionResponse) {} rpc ListAddonSubscription(ListAddonSubscriptionRequest) returns (ListAddonSubscriptionResponse) {} @@ -102,12 +103,28 @@ message ListUserResponse { message InviteUserRequest { string user_email = 1; } -message InviteUserResponse {} +message InviteUserResponse { + types.v1.Invitation invitation = 1; +} + +message RevokeUserInvitationRequest { + int64 invite_id = 1; +} +message RevokeUserInvitationResponse { + types.v1.Invitation invitation = 1; +} -message RevokeUserRequest { - int64 user_id = 1; +message ListUserInvitationRequest { + types.v1.Cursor cursor = 1; + int32 limit = 2; +} +message ListUserInvitationResponse { + types.v1.Cursor next = 1; + message ListItem { + types.v1.Invitation invitation = 1; + } + repeated ListItem items = 2; } -message RevokeUserResponse {} message CreateAddonSubscriptionRequest { message Stripe { diff --git a/proto/types/v1/organization.proto b/proto/types/v1/organization.proto index 076afc7..c324f01 100644 --- a/proto/types/v1/organization.proto +++ b/proto/types/v1/organization.proto @@ -16,3 +16,27 @@ message Organization { ]; google.protobuf.Timestamp created_at = 7; } + +message Invitation { + message StatePending { + google.protobuf.Timestamp created_at = 1; + google.protobuf.Timestamp expires_at = 2; + } + message StateAccepted { + google.protobuf.Timestamp accepted_at = 1; + } + message StateRevoked { + google.protobuf.Timestamp revoked_at = 1; + } + message StateExpired { + google.protobuf.Timestamp expired_at = 1; + } + + int64 id = 1; + oneof state { + StatePending pending = 201; + StateAccepted accepted = 202; + StateRevoked revoked = 203; + StateExpired expired = 204; + } +} diff --git a/script/generate b/script/generate index bf39aa4..e65541b 100755 --- a/script/generate +++ b/script/generate @@ -7,7 +7,7 @@ root=$(git rev-parse --show-toplevel) function main() { pushd ${root} - rm -r ${root}/js/* + rm -r ${root}/js/* || echo "no js to cleanup" generate_protobuf pushd ${root}/go go mod tidy