auth_service.pb.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.4
  4. // protoc (unknown)
  5. // source: api/v1/auth_service.proto
  6. package apiv1
  7. import (
  8. _ "google.golang.org/genproto/googleapis/api/annotations"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. emptypb "google.golang.org/protobuf/types/known/emptypb"
  12. reflect "reflect"
  13. sync "sync"
  14. unsafe "unsafe"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. type GetAuthStatusRequest struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. unknownFields protoimpl.UnknownFields
  25. sizeCache protoimpl.SizeCache
  26. }
  27. func (x *GetAuthStatusRequest) Reset() {
  28. *x = GetAuthStatusRequest{}
  29. mi := &file_api_v1_auth_service_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. func (x *GetAuthStatusRequest) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*GetAuthStatusRequest) ProtoMessage() {}
  37. func (x *GetAuthStatusRequest) ProtoReflect() protoreflect.Message {
  38. mi := &file_api_v1_auth_service_proto_msgTypes[0]
  39. if x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use GetAuthStatusRequest.ProtoReflect.Descriptor instead.
  49. func (*GetAuthStatusRequest) Descriptor() ([]byte, []int) {
  50. return file_api_v1_auth_service_proto_rawDescGZIP(), []int{0}
  51. }
  52. type GetAuthStatusResponse struct {
  53. state protoimpl.MessageState `protogen:"open.v1"`
  54. User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
  55. unknownFields protoimpl.UnknownFields
  56. sizeCache protoimpl.SizeCache
  57. }
  58. func (x *GetAuthStatusResponse) Reset() {
  59. *x = GetAuthStatusResponse{}
  60. mi := &file_api_v1_auth_service_proto_msgTypes[1]
  61. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  62. ms.StoreMessageInfo(mi)
  63. }
  64. func (x *GetAuthStatusResponse) String() string {
  65. return protoimpl.X.MessageStringOf(x)
  66. }
  67. func (*GetAuthStatusResponse) ProtoMessage() {}
  68. func (x *GetAuthStatusResponse) ProtoReflect() protoreflect.Message {
  69. mi := &file_api_v1_auth_service_proto_msgTypes[1]
  70. if x != nil {
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. if ms.LoadMessageInfo() == nil {
  73. ms.StoreMessageInfo(mi)
  74. }
  75. return ms
  76. }
  77. return mi.MessageOf(x)
  78. }
  79. // Deprecated: Use GetAuthStatusResponse.ProtoReflect.Descriptor instead.
  80. func (*GetAuthStatusResponse) Descriptor() ([]byte, []int) {
  81. return file_api_v1_auth_service_proto_rawDescGZIP(), []int{1}
  82. }
  83. func (x *GetAuthStatusResponse) GetUser() *User {
  84. if x != nil {
  85. return x.User
  86. }
  87. return nil
  88. }
  89. type SignInRequest struct {
  90. state protoimpl.MessageState `protogen:"open.v1"`
  91. // The username to sign in with.
  92. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  93. // The password to sign in with.
  94. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  95. // Whether the session should never expire.
  96. NeverExpire bool `protobuf:"varint,3,opt,name=never_expire,json=neverExpire,proto3" json:"never_expire,omitempty"`
  97. unknownFields protoimpl.UnknownFields
  98. sizeCache protoimpl.SizeCache
  99. }
  100. func (x *SignInRequest) Reset() {
  101. *x = SignInRequest{}
  102. mi := &file_api_v1_auth_service_proto_msgTypes[2]
  103. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  104. ms.StoreMessageInfo(mi)
  105. }
  106. func (x *SignInRequest) String() string {
  107. return protoimpl.X.MessageStringOf(x)
  108. }
  109. func (*SignInRequest) ProtoMessage() {}
  110. func (x *SignInRequest) ProtoReflect() protoreflect.Message {
  111. mi := &file_api_v1_auth_service_proto_msgTypes[2]
  112. if x != nil {
  113. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  114. if ms.LoadMessageInfo() == nil {
  115. ms.StoreMessageInfo(mi)
  116. }
  117. return ms
  118. }
  119. return mi.MessageOf(x)
  120. }
  121. // Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
  122. func (*SignInRequest) Descriptor() ([]byte, []int) {
  123. return file_api_v1_auth_service_proto_rawDescGZIP(), []int{2}
  124. }
  125. func (x *SignInRequest) GetUsername() string {
  126. if x != nil {
  127. return x.Username
  128. }
  129. return ""
  130. }
  131. func (x *SignInRequest) GetPassword() string {
  132. if x != nil {
  133. return x.Password
  134. }
  135. return ""
  136. }
  137. func (x *SignInRequest) GetNeverExpire() bool {
  138. if x != nil {
  139. return x.NeverExpire
  140. }
  141. return false
  142. }
  143. type SignInWithSSORequest struct {
  144. state protoimpl.MessageState `protogen:"open.v1"`
  145. // The ID of the SSO provider.
  146. IdpId int32 `protobuf:"varint,1,opt,name=idp_id,json=idpId,proto3" json:"idp_id,omitempty"`
  147. // The code to sign in with.
  148. Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
  149. // The redirect URI.
  150. RedirectUri string `protobuf:"bytes,3,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
  151. unknownFields protoimpl.UnknownFields
  152. sizeCache protoimpl.SizeCache
  153. }
  154. func (x *SignInWithSSORequest) Reset() {
  155. *x = SignInWithSSORequest{}
  156. mi := &file_api_v1_auth_service_proto_msgTypes[3]
  157. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  158. ms.StoreMessageInfo(mi)
  159. }
  160. func (x *SignInWithSSORequest) String() string {
  161. return protoimpl.X.MessageStringOf(x)
  162. }
  163. func (*SignInWithSSORequest) ProtoMessage() {}
  164. func (x *SignInWithSSORequest) ProtoReflect() protoreflect.Message {
  165. mi := &file_api_v1_auth_service_proto_msgTypes[3]
  166. if x != nil {
  167. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  168. if ms.LoadMessageInfo() == nil {
  169. ms.StoreMessageInfo(mi)
  170. }
  171. return ms
  172. }
  173. return mi.MessageOf(x)
  174. }
  175. // Deprecated: Use SignInWithSSORequest.ProtoReflect.Descriptor instead.
  176. func (*SignInWithSSORequest) Descriptor() ([]byte, []int) {
  177. return file_api_v1_auth_service_proto_rawDescGZIP(), []int{3}
  178. }
  179. func (x *SignInWithSSORequest) GetIdpId() int32 {
  180. if x != nil {
  181. return x.IdpId
  182. }
  183. return 0
  184. }
  185. func (x *SignInWithSSORequest) GetCode() string {
  186. if x != nil {
  187. return x.Code
  188. }
  189. return ""
  190. }
  191. func (x *SignInWithSSORequest) GetRedirectUri() string {
  192. if x != nil {
  193. return x.RedirectUri
  194. }
  195. return ""
  196. }
  197. type SignUpRequest struct {
  198. state protoimpl.MessageState `protogen:"open.v1"`
  199. // The username to sign up with.
  200. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  201. // The password to sign up with.
  202. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  203. unknownFields protoimpl.UnknownFields
  204. sizeCache protoimpl.SizeCache
  205. }
  206. func (x *SignUpRequest) Reset() {
  207. *x = SignUpRequest{}
  208. mi := &file_api_v1_auth_service_proto_msgTypes[4]
  209. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  210. ms.StoreMessageInfo(mi)
  211. }
  212. func (x *SignUpRequest) String() string {
  213. return protoimpl.X.MessageStringOf(x)
  214. }
  215. func (*SignUpRequest) ProtoMessage() {}
  216. func (x *SignUpRequest) ProtoReflect() protoreflect.Message {
  217. mi := &file_api_v1_auth_service_proto_msgTypes[4]
  218. if x != nil {
  219. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  220. if ms.LoadMessageInfo() == nil {
  221. ms.StoreMessageInfo(mi)
  222. }
  223. return ms
  224. }
  225. return mi.MessageOf(x)
  226. }
  227. // Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.
  228. func (*SignUpRequest) Descriptor() ([]byte, []int) {
  229. return file_api_v1_auth_service_proto_rawDescGZIP(), []int{4}
  230. }
  231. func (x *SignUpRequest) GetUsername() string {
  232. if x != nil {
  233. return x.Username
  234. }
  235. return ""
  236. }
  237. func (x *SignUpRequest) GetPassword() string {
  238. if x != nil {
  239. return x.Password
  240. }
  241. return ""
  242. }
  243. type SignOutRequest struct {
  244. state protoimpl.MessageState `protogen:"open.v1"`
  245. unknownFields protoimpl.UnknownFields
  246. sizeCache protoimpl.SizeCache
  247. }
  248. func (x *SignOutRequest) Reset() {
  249. *x = SignOutRequest{}
  250. mi := &file_api_v1_auth_service_proto_msgTypes[5]
  251. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  252. ms.StoreMessageInfo(mi)
  253. }
  254. func (x *SignOutRequest) String() string {
  255. return protoimpl.X.MessageStringOf(x)
  256. }
  257. func (*SignOutRequest) ProtoMessage() {}
  258. func (x *SignOutRequest) ProtoReflect() protoreflect.Message {
  259. mi := &file_api_v1_auth_service_proto_msgTypes[5]
  260. if x != nil {
  261. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  262. if ms.LoadMessageInfo() == nil {
  263. ms.StoreMessageInfo(mi)
  264. }
  265. return ms
  266. }
  267. return mi.MessageOf(x)
  268. }
  269. // Deprecated: Use SignOutRequest.ProtoReflect.Descriptor instead.
  270. func (*SignOutRequest) Descriptor() ([]byte, []int) {
  271. return file_api_v1_auth_service_proto_rawDescGZIP(), []int{5}
  272. }
  273. var File_api_v1_auth_service_proto protoreflect.FileDescriptor
  274. var file_api_v1_auth_service_proto_rawDesc = string([]byte{
  275. 0x0a, 0x19, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x65,
  276. 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x6d,
  277. 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x61, 0x70, 0x69, 0x2f, 0x76,
  278. 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70,
  279. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
  280. 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  281. 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  282. 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
  283. 0x16, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
  284. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3f, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, 0x75,
  285. 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  286. 0x12, 0x26, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12,
  287. 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73,
  288. 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x6a, 0x0a, 0x0d, 0x53, 0x69, 0x67, 0x6e,
  289. 0x49, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65,
  290. 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65,
  291. 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
  292. 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
  293. 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x76, 0x65, 0x72, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72,
  294. 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x6e, 0x65, 0x76, 0x65, 0x72, 0x45, 0x78,
  295. 0x70, 0x69, 0x72, 0x65, 0x22, 0x64, 0x0a, 0x14, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x57, 0x69,
  296. 0x74, 0x68, 0x53, 0x53, 0x4f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06,
  297. 0x69, 0x64, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x64,
  298. 0x70, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  299. 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x64, 0x69, 0x72,
  300. 0x65, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72,
  301. 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x22, 0x47, 0x0a, 0x0d, 0x53, 0x69,
  302. 0x67, 0x6e, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75,
  303. 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
  304. 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
  305. 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
  306. 0x6f, 0x72, 0x64, 0x22, 0x10, 0x0a, 0x0e, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x75, 0x74, 0x52, 0x65,
  307. 0x71, 0x75, 0x65, 0x73, 0x74, 0x32, 0xec, 0x03, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65,
  308. 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x64, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68,
  309. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61,
  310. 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x61,
  311. 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x6d, 0x65, 0x6d,
  312. 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x1b,
  313. 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f,
  314. 0x61, 0x75, 0x74, 0x68, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x56, 0x0a, 0x06, 0x53,
  315. 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x12, 0x1b, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70,
  316. 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
  317. 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
  318. 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x22, 0x13,
  319. 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x73, 0x69, 0x67,
  320. 0x6e, 0x69, 0x6e, 0x12, 0x68, 0x0a, 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x57, 0x69, 0x74,
  321. 0x68, 0x53, 0x53, 0x4f, 0x12, 0x22, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
  322. 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x53, 0x53,
  323. 0x4f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73,
  324. 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x1f, 0x82, 0xd3,
  325. 0xe4, 0x93, 0x02, 0x19, 0x22, 0x17, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75,
  326. 0x74, 0x68, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x2f, 0x73, 0x73, 0x6f, 0x12, 0x56, 0x0a,
  327. 0x06, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x12, 0x1b, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e,
  328. 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x52, 0x65, 0x71,
  329. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
  330. 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15,
  331. 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x73,
  332. 0x69, 0x67, 0x6e, 0x75, 0x70, 0x12, 0x5d, 0x0a, 0x07, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x75, 0x74,
  333. 0x12, 0x1c, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
  334. 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,
  335. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  336. 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, 0x14,
  337. 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x73, 0x69, 0x67,
  338. 0x6e, 0x6f, 0x75, 0x74, 0x42, 0xa8, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d,
  339. 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x41, 0x75, 0x74, 0x68, 0x53,
  340. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67,
  341. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d,
  342. 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
  343. 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2,
  344. 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70,
  345. 0x69, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69,
  346. 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c,
  347. 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
  348. 0x0e, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62,
  349. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  350. })
  351. var (
  352. file_api_v1_auth_service_proto_rawDescOnce sync.Once
  353. file_api_v1_auth_service_proto_rawDescData []byte
  354. )
  355. func file_api_v1_auth_service_proto_rawDescGZIP() []byte {
  356. file_api_v1_auth_service_proto_rawDescOnce.Do(func() {
  357. file_api_v1_auth_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_v1_auth_service_proto_rawDesc), len(file_api_v1_auth_service_proto_rawDesc)))
  358. })
  359. return file_api_v1_auth_service_proto_rawDescData
  360. }
  361. var file_api_v1_auth_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  362. var file_api_v1_auth_service_proto_goTypes = []any{
  363. (*GetAuthStatusRequest)(nil), // 0: memos.api.v1.GetAuthStatusRequest
  364. (*GetAuthStatusResponse)(nil), // 1: memos.api.v1.GetAuthStatusResponse
  365. (*SignInRequest)(nil), // 2: memos.api.v1.SignInRequest
  366. (*SignInWithSSORequest)(nil), // 3: memos.api.v1.SignInWithSSORequest
  367. (*SignUpRequest)(nil), // 4: memos.api.v1.SignUpRequest
  368. (*SignOutRequest)(nil), // 5: memos.api.v1.SignOutRequest
  369. (*User)(nil), // 6: memos.api.v1.User
  370. (*emptypb.Empty)(nil), // 7: google.protobuf.Empty
  371. }
  372. var file_api_v1_auth_service_proto_depIdxs = []int32{
  373. 6, // 0: memos.api.v1.GetAuthStatusResponse.user:type_name -> memos.api.v1.User
  374. 0, // 1: memos.api.v1.AuthService.GetAuthStatus:input_type -> memos.api.v1.GetAuthStatusRequest
  375. 2, // 2: memos.api.v1.AuthService.SignIn:input_type -> memos.api.v1.SignInRequest
  376. 3, // 3: memos.api.v1.AuthService.SignInWithSSO:input_type -> memos.api.v1.SignInWithSSORequest
  377. 4, // 4: memos.api.v1.AuthService.SignUp:input_type -> memos.api.v1.SignUpRequest
  378. 5, // 5: memos.api.v1.AuthService.SignOut:input_type -> memos.api.v1.SignOutRequest
  379. 6, // 6: memos.api.v1.AuthService.GetAuthStatus:output_type -> memos.api.v1.User
  380. 6, // 7: memos.api.v1.AuthService.SignIn:output_type -> memos.api.v1.User
  381. 6, // 8: memos.api.v1.AuthService.SignInWithSSO:output_type -> memos.api.v1.User
  382. 6, // 9: memos.api.v1.AuthService.SignUp:output_type -> memos.api.v1.User
  383. 7, // 10: memos.api.v1.AuthService.SignOut:output_type -> google.protobuf.Empty
  384. 6, // [6:11] is the sub-list for method output_type
  385. 1, // [1:6] is the sub-list for method input_type
  386. 1, // [1:1] is the sub-list for extension type_name
  387. 1, // [1:1] is the sub-list for extension extendee
  388. 0, // [0:1] is the sub-list for field type_name
  389. }
  390. func init() { file_api_v1_auth_service_proto_init() }
  391. func file_api_v1_auth_service_proto_init() {
  392. if File_api_v1_auth_service_proto != nil {
  393. return
  394. }
  395. file_api_v1_user_service_proto_init()
  396. type x struct{}
  397. out := protoimpl.TypeBuilder{
  398. File: protoimpl.DescBuilder{
  399. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  400. RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_v1_auth_service_proto_rawDesc), len(file_api_v1_auth_service_proto_rawDesc)),
  401. NumEnums: 0,
  402. NumMessages: 6,
  403. NumExtensions: 0,
  404. NumServices: 1,
  405. },
  406. GoTypes: file_api_v1_auth_service_proto_goTypes,
  407. DependencyIndexes: file_api_v1_auth_service_proto_depIdxs,
  408. MessageInfos: file_api_v1_auth_service_proto_msgTypes,
  409. }.Build()
  410. File_api_v1_auth_service_proto = out.File
  411. file_api_v1_auth_service_proto_goTypes = nil
  412. file_api_v1_auth_service_proto_depIdxs = nil
  413. }