|
|
|
@ -11,6 +11,7 @@ import (
|
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
|
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
|
|
|
reflect "reflect"
|
|
|
|
|
sync "sync"
|
|
|
|
|
unsafe "unsafe"
|
|
|
|
@ -60,8 +61,10 @@ func (*GetCurrentSessionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetCurrentSessionResponse struct {
|
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
// Current session expiration time (if available).
|
|
|
|
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
}
|
|
|
|
@ -103,16 +106,23 @@ func (x *GetCurrentSessionResponse) GetUser() *User {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *GetCurrentSessionResponse) GetExpiresAt() *timestamppb.Timestamp {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ExpiresAt
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CreateSessionRequest struct {
|
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
|
|
// Provide one authentication method (username/password or SSO).
|
|
|
|
|
// Required field to specify the authentication method.
|
|
|
|
|
//
|
|
|
|
|
// Types that are valid to be assigned to Method:
|
|
|
|
|
// Types that are valid to be assigned to Credentials:
|
|
|
|
|
//
|
|
|
|
|
// *CreateSessionRequest_PasswordCredentials_
|
|
|
|
|
// *CreateSessionRequest_SsoCredentials
|
|
|
|
|
Method isCreateSessionRequest_Method `protobuf_oneof:"method"`
|
|
|
|
|
Credentials isCreateSessionRequest_Credentials `protobuf_oneof:"credentials"`
|
|
|
|
|
// Whether the session should never expire.
|
|
|
|
|
// Optional field that defaults to false for security.
|
|
|
|
|
NeverExpire bool `protobuf:"varint,3,opt,name=never_expire,json=neverExpire,proto3" json:"never_expire,omitempty"`
|
|
|
|
@ -150,16 +160,16 @@ func (*CreateSessionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_api_v1_auth_service_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateSessionRequest) GetMethod() isCreateSessionRequest_Method {
|
|
|
|
|
func (x *CreateSessionRequest) GetCredentials() isCreateSessionRequest_Credentials {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Method
|
|
|
|
|
return x.Credentials
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateSessionRequest) GetPasswordCredentials() *CreateSessionRequest_PasswordCredentials {
|
|
|
|
|
if x != nil {
|
|
|
|
|
if x, ok := x.Method.(*CreateSessionRequest_PasswordCredentials_); ok {
|
|
|
|
|
if x, ok := x.Credentials.(*CreateSessionRequest_PasswordCredentials_); ok {
|
|
|
|
|
return x.PasswordCredentials
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -168,7 +178,7 @@ func (x *CreateSessionRequest) GetPasswordCredentials() *CreateSessionRequest_Pa
|
|
|
|
|
|
|
|
|
|
func (x *CreateSessionRequest) GetSsoCredentials() *CreateSessionRequest_SSOCredentials {
|
|
|
|
|
if x != nil {
|
|
|
|
|
if x, ok := x.Method.(*CreateSessionRequest_SsoCredentials); ok {
|
|
|
|
|
if x, ok := x.Credentials.(*CreateSessionRequest_SsoCredentials); ok {
|
|
|
|
|
return x.SsoCredentials
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -182,8 +192,8 @@ func (x *CreateSessionRequest) GetNeverExpire() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type isCreateSessionRequest_Method interface {
|
|
|
|
|
isCreateSessionRequest_Method()
|
|
|
|
|
type isCreateSessionRequest_Credentials interface {
|
|
|
|
|
isCreateSessionRequest_Credentials()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CreateSessionRequest_PasswordCredentials_ struct {
|
|
|
|
@ -196,9 +206,63 @@ type CreateSessionRequest_SsoCredentials struct {
|
|
|
|
|
SsoCredentials *CreateSessionRequest_SSOCredentials `protobuf:"bytes,2,opt,name=sso_credentials,json=ssoCredentials,proto3,oneof"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*CreateSessionRequest_PasswordCredentials_) isCreateSessionRequest_Method() {}
|
|
|
|
|
func (*CreateSessionRequest_PasswordCredentials_) isCreateSessionRequest_Credentials() {}
|
|
|
|
|
|
|
|
|
|
func (*CreateSessionRequest_SsoCredentials) isCreateSessionRequest_Credentials() {}
|
|
|
|
|
|
|
|
|
|
type CreateSessionResponse struct {
|
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
|
|
// The authenticated user information.
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
// Token expiration time.
|
|
|
|
|
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 *CreateSessionResponse) Reset() {
|
|
|
|
|
*x = CreateSessionResponse{}
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[3]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateSessionResponse) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*CreateSessionRequest_SsoCredentials) isCreateSessionRequest_Method() {}
|
|
|
|
|
func (*CreateSessionResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *CreateSessionResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[3]
|
|
|
|
|
if x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use CreateSessionResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CreateSessionResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_api_v1_auth_service_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateSessionResponse) GetUser() *User {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.User
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateSessionResponse) GetExpiresAt() *timestamppb.Timestamp {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ExpiresAt
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DeleteSessionRequest struct {
|
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
|
@ -208,7 +272,7 @@ type DeleteSessionRequest struct {
|
|
|
|
|
|
|
|
|
|
func (x *DeleteSessionRequest) Reset() {
|
|
|
|
|
*x = DeleteSessionRequest{}
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[3]
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[4]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
@ -220,7 +284,7 @@ func (x *DeleteSessionRequest) String() string {
|
|
|
|
|
func (*DeleteSessionRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *DeleteSessionRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[3]
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[4]
|
|
|
|
|
if x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
@ -233,7 +297,7 @@ func (x *DeleteSessionRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use DeleteSessionRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*DeleteSessionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_api_v1_auth_service_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
return file_api_v1_auth_service_proto_rawDescGZIP(), []int{4}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Nested message for password-based authentication credentials.
|
|
|
|
@ -251,7 +315,7 @@ type CreateSessionRequest_PasswordCredentials struct {
|
|
|
|
|
|
|
|
|
|
func (x *CreateSessionRequest_PasswordCredentials) Reset() {
|
|
|
|
|
*x = CreateSessionRequest_PasswordCredentials{}
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[4]
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[5]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
@ -263,7 +327,7 @@ func (x *CreateSessionRequest_PasswordCredentials) String() string {
|
|
|
|
|
func (*CreateSessionRequest_PasswordCredentials) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *CreateSessionRequest_PasswordCredentials) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[4]
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[5]
|
|
|
|
|
if x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
@ -311,7 +375,7 @@ type CreateSessionRequest_SSOCredentials struct {
|
|
|
|
|
|
|
|
|
|
func (x *CreateSessionRequest_SSOCredentials) Reset() {
|
|
|
|
|
*x = CreateSessionRequest_SSOCredentials{}
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[5]
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[6]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
@ -323,7 +387,7 @@ func (x *CreateSessionRequest_SSOCredentials) String() string {
|
|
|
|
|
func (*CreateSessionRequest_SSOCredentials) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *CreateSessionRequest_SSOCredentials) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[5]
|
|
|
|
|
mi := &file_api_v1_auth_service_proto_msgTypes[6]
|
|
|
|
|
if x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
@ -364,10 +428,12 @@ var File_api_v1_auth_service_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
const file_api_v1_auth_service_proto_rawDesc = "" +
|
|
|
|
|
"\n" +
|
|
|
|
|
"\x19api/v1/auth_service.proto\x12\fmemos.api.v1\x1a\x19api/v1/user_service.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x1a\n" +
|
|
|
|
|
"\x18GetCurrentSessionRequest\"C\n" +
|
|
|
|
|
"\x19api/v1/auth_service.proto\x12\fmemos.api.v1\x1a\x19api/v1/user_service.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x1a\n" +
|
|
|
|
|
"\x18GetCurrentSessionRequest\"~\n" +
|
|
|
|
|
"\x19GetCurrentSessionResponse\x12&\n" +
|
|
|
|
|
"\x04user\x18\x01 \x01(\v2\x12.memos.api.v1.UserR\x04user\"\xdb\x03\n" +
|
|
|
|
|
"\x04user\x18\x01 \x01(\v2\x12.memos.api.v1.UserR\x04user\x129\n" +
|
|
|
|
|
"\n" +
|
|
|
|
|
"expires_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\"\xe0\x03\n" +
|
|
|
|
|
"\x14CreateSessionRequest\x12k\n" +
|
|
|
|
|
"\x14password_credentials\x18\x01 \x01(\v26.memos.api.v1.CreateSessionRequest.PasswordCredentialsH\x00R\x13passwordCredentials\x12\\\n" +
|
|
|
|
|
"\x0fsso_credentials\x18\x02 \x01(\v21.memos.api.v1.CreateSessionRequest.SSOCredentialsH\x00R\x0essoCredentials\x12&\n" +
|
|
|
|
@ -378,12 +444,16 @@ const file_api_v1_auth_service_proto_rawDesc = "" +
|
|
|
|
|
"\x0eSSOCredentials\x12\x1a\n" +
|
|
|
|
|
"\x06idp_id\x18\x01 \x01(\x05B\x03\xe0A\x02R\x05idpId\x12\x17\n" +
|
|
|
|
|
"\x04code\x18\x02 \x01(\tB\x03\xe0A\x02R\x04code\x12&\n" +
|
|
|
|
|
"\fredirect_uri\x18\x03 \x01(\tB\x03\xe0A\x02R\vredirectUriB\b\n" +
|
|
|
|
|
"\x06method\"\x16\n" +
|
|
|
|
|
"\x14DeleteSessionRequest2\xe4\x02\n" +
|
|
|
|
|
"\vAuthService\x12v\n" +
|
|
|
|
|
"\x11GetCurrentSession\x12&.memos.api.v1.GetCurrentSessionRequest\x1a\x12.memos.api.v1.User\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/api/v1/auth/sessions/current\x12i\n" +
|
|
|
|
|
"\rCreateSession\x12\".memos.api.v1.CreateSessionRequest\x1a\x12.memos.api.v1.User\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/api/v1/auth/sessions\x12r\n" +
|
|
|
|
|
"\fredirect_uri\x18\x03 \x01(\tB\x03\xe0A\x02R\vredirectUriB\r\n" +
|
|
|
|
|
"\vcredentials\"z\n" +
|
|
|
|
|
"\x15CreateSessionResponse\x12&\n" +
|
|
|
|
|
"\x04user\x18\x01 \x01(\v2\x12.memos.api.v1.UserR\x04user\x129\n" +
|
|
|
|
|
"\n" +
|
|
|
|
|
"expires_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\"\x16\n" +
|
|
|
|
|
"\x14DeleteSessionRequest2\x8b\x03\n" +
|
|
|
|
|
"\vAuthService\x12\x8b\x01\n" +
|
|
|
|
|
"\x11GetCurrentSession\x12&.memos.api.v1.GetCurrentSessionRequest\x1a'.memos.api.v1.GetCurrentSessionResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/api/v1/auth/sessions/current\x12z\n" +
|
|
|
|
|
"\rCreateSession\x12\".memos.api.v1.CreateSessionRequest\x1a#.memos.api.v1.CreateSessionResponse\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/api/v1/auth/sessions\x12r\n" +
|
|
|
|
|
"\rDeleteSession\x12\".memos.api.v1.DeleteSessionRequest\x1a\x16.google.protobuf.Empty\"%\x82\xd3\xe4\x93\x02\x1f*\x1d/api/v1/auth/sessions/currentB\xa8\x01\n" +
|
|
|
|
|
"\x10com.memos.api.v1B\x10AuthServiceProtoP\x01Z0github.com/usememos/memos/proto/gen/api/v1;apiv1\xa2\x02\x03MAX\xaa\x02\fMemos.Api.V1\xca\x02\fMemos\\Api\\V1\xe2\x02\x18Memos\\Api\\V1\\GPBMetadata\xea\x02\x0eMemos::Api::V1b\x06proto3"
|
|
|
|
|
|
|
|
|
@ -399,32 +469,37 @@ func file_api_v1_auth_service_proto_rawDescGZIP() []byte {
|
|
|
|
|
return file_api_v1_auth_service_proto_rawDescData
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var file_api_v1_auth_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
|
|
|
var file_api_v1_auth_service_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
|
|
|
var file_api_v1_auth_service_proto_goTypes = []any{
|
|
|
|
|
(*GetCurrentSessionRequest)(nil), // 0: memos.api.v1.GetCurrentSessionRequest
|
|
|
|
|
(*GetCurrentSessionResponse)(nil), // 1: memos.api.v1.GetCurrentSessionResponse
|
|
|
|
|
(*CreateSessionRequest)(nil), // 2: memos.api.v1.CreateSessionRequest
|
|
|
|
|
(*DeleteSessionRequest)(nil), // 3: memos.api.v1.DeleteSessionRequest
|
|
|
|
|
(*CreateSessionRequest_PasswordCredentials)(nil), // 4: memos.api.v1.CreateSessionRequest.PasswordCredentials
|
|
|
|
|
(*CreateSessionRequest_SSOCredentials)(nil), // 5: memos.api.v1.CreateSessionRequest.SSOCredentials
|
|
|
|
|
(*User)(nil), // 6: memos.api.v1.User
|
|
|
|
|
(*emptypb.Empty)(nil), // 7: google.protobuf.Empty
|
|
|
|
|
(*CreateSessionResponse)(nil), // 3: memos.api.v1.CreateSessionResponse
|
|
|
|
|
(*DeleteSessionRequest)(nil), // 4: memos.api.v1.DeleteSessionRequest
|
|
|
|
|
(*CreateSessionRequest_PasswordCredentials)(nil), // 5: memos.api.v1.CreateSessionRequest.PasswordCredentials
|
|
|
|
|
(*CreateSessionRequest_SSOCredentials)(nil), // 6: memos.api.v1.CreateSessionRequest.SSOCredentials
|
|
|
|
|
(*User)(nil), // 7: memos.api.v1.User
|
|
|
|
|
(*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp
|
|
|
|
|
(*emptypb.Empty)(nil), // 9: google.protobuf.Empty
|
|
|
|
|
}
|
|
|
|
|
var file_api_v1_auth_service_proto_depIdxs = []int32{
|
|
|
|
|
6, // 0: memos.api.v1.GetCurrentSessionResponse.user:type_name -> memos.api.v1.User
|
|
|
|
|
4, // 1: memos.api.v1.CreateSessionRequest.password_credentials:type_name -> memos.api.v1.CreateSessionRequest.PasswordCredentials
|
|
|
|
|
5, // 2: memos.api.v1.CreateSessionRequest.sso_credentials:type_name -> memos.api.v1.CreateSessionRequest.SSOCredentials
|
|
|
|
|
0, // 3: memos.api.v1.AuthService.GetCurrentSession:input_type -> memos.api.v1.GetCurrentSessionRequest
|
|
|
|
|
2, // 4: memos.api.v1.AuthService.CreateSession:input_type -> memos.api.v1.CreateSessionRequest
|
|
|
|
|
3, // 5: memos.api.v1.AuthService.DeleteSession:input_type -> memos.api.v1.DeleteSessionRequest
|
|
|
|
|
6, // 6: memos.api.v1.AuthService.GetCurrentSession:output_type -> memos.api.v1.User
|
|
|
|
|
6, // 7: memos.api.v1.AuthService.CreateSession:output_type -> memos.api.v1.User
|
|
|
|
|
7, // 8: memos.api.v1.AuthService.DeleteSession:output_type -> google.protobuf.Empty
|
|
|
|
|
6, // [6:9] is the sub-list for method output_type
|
|
|
|
|
3, // [3:6] is the sub-list for method input_type
|
|
|
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
|
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:3] is the sub-list for field type_name
|
|
|
|
|
7, // 0: memos.api.v1.GetCurrentSessionResponse.user:type_name -> memos.api.v1.User
|
|
|
|
|
8, // 1: memos.api.v1.GetCurrentSessionResponse.expires_at:type_name -> google.protobuf.Timestamp
|
|
|
|
|
5, // 2: memos.api.v1.CreateSessionRequest.password_credentials:type_name -> memos.api.v1.CreateSessionRequest.PasswordCredentials
|
|
|
|
|
6, // 3: memos.api.v1.CreateSessionRequest.sso_credentials:type_name -> memos.api.v1.CreateSessionRequest.SSOCredentials
|
|
|
|
|
7, // 4: memos.api.v1.CreateSessionResponse.user:type_name -> memos.api.v1.User
|
|
|
|
|
8, // 5: memos.api.v1.CreateSessionResponse.expires_at:type_name -> google.protobuf.Timestamp
|
|
|
|
|
0, // 6: memos.api.v1.AuthService.GetCurrentSession:input_type -> memos.api.v1.GetCurrentSessionRequest
|
|
|
|
|
2, // 7: memos.api.v1.AuthService.CreateSession:input_type -> memos.api.v1.CreateSessionRequest
|
|
|
|
|
4, // 8: memos.api.v1.AuthService.DeleteSession:input_type -> memos.api.v1.DeleteSessionRequest
|
|
|
|
|
1, // 9: memos.api.v1.AuthService.GetCurrentSession:output_type -> memos.api.v1.GetCurrentSessionResponse
|
|
|
|
|
3, // 10: memos.api.v1.AuthService.CreateSession:output_type -> memos.api.v1.CreateSessionResponse
|
|
|
|
|
9, // 11: memos.api.v1.AuthService.DeleteSession:output_type -> google.protobuf.Empty
|
|
|
|
|
9, // [9:12] is the sub-list for method output_type
|
|
|
|
|
6, // [6:9] is the sub-list for method input_type
|
|
|
|
|
6, // [6:6] is the sub-list for extension type_name
|
|
|
|
|
6, // [6:6] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:6] is the sub-list for field type_name
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { file_api_v1_auth_service_proto_init() }
|
|
|
|
@ -443,7 +518,7 @@ func file_api_v1_auth_service_proto_init() {
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_v1_auth_service_proto_rawDesc), len(file_api_v1_auth_service_proto_rawDesc)),
|
|
|
|
|
NumEnums: 0,
|
|
|
|
|
NumMessages: 6,
|
|
|
|
|
NumMessages: 7,
|
|
|
|
|
NumExtensions: 0,
|
|
|
|
|
NumServices: 1,
|
|
|
|
|
},
|
|
|
|
|