idp.pb.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.4
  4. // protoc (unknown)
  5. // source: store/idp.proto
  6. package store
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type IdentityProvider_Type int32
  21. const (
  22. IdentityProvider_TYPE_UNSPECIFIED IdentityProvider_Type = 0
  23. IdentityProvider_OAUTH2 IdentityProvider_Type = 1
  24. )
  25. // Enum value maps for IdentityProvider_Type.
  26. var (
  27. IdentityProvider_Type_name = map[int32]string{
  28. 0: "TYPE_UNSPECIFIED",
  29. 1: "OAUTH2",
  30. }
  31. IdentityProvider_Type_value = map[string]int32{
  32. "TYPE_UNSPECIFIED": 0,
  33. "OAUTH2": 1,
  34. }
  35. )
  36. func (x IdentityProvider_Type) Enum() *IdentityProvider_Type {
  37. p := new(IdentityProvider_Type)
  38. *p = x
  39. return p
  40. }
  41. func (x IdentityProvider_Type) String() string {
  42. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  43. }
  44. func (IdentityProvider_Type) Descriptor() protoreflect.EnumDescriptor {
  45. return file_store_idp_proto_enumTypes[0].Descriptor()
  46. }
  47. func (IdentityProvider_Type) Type() protoreflect.EnumType {
  48. return &file_store_idp_proto_enumTypes[0]
  49. }
  50. func (x IdentityProvider_Type) Number() protoreflect.EnumNumber {
  51. return protoreflect.EnumNumber(x)
  52. }
  53. // Deprecated: Use IdentityProvider_Type.Descriptor instead.
  54. func (IdentityProvider_Type) EnumDescriptor() ([]byte, []int) {
  55. return file_store_idp_proto_rawDescGZIP(), []int{0, 0}
  56. }
  57. type IdentityProvider struct {
  58. state protoimpl.MessageState `protogen:"open.v1"`
  59. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  60. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  61. Type IdentityProvider_Type `protobuf:"varint,3,opt,name=type,proto3,enum=memos.store.IdentityProvider_Type" json:"type,omitempty"`
  62. IdentifierFilter string `protobuf:"bytes,4,opt,name=identifier_filter,json=identifierFilter,proto3" json:"identifier_filter,omitempty"`
  63. Config *IdentityProviderConfig `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`
  64. unknownFields protoimpl.UnknownFields
  65. sizeCache protoimpl.SizeCache
  66. }
  67. func (x *IdentityProvider) Reset() {
  68. *x = IdentityProvider{}
  69. mi := &file_store_idp_proto_msgTypes[0]
  70. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  71. ms.StoreMessageInfo(mi)
  72. }
  73. func (x *IdentityProvider) String() string {
  74. return protoimpl.X.MessageStringOf(x)
  75. }
  76. func (*IdentityProvider) ProtoMessage() {}
  77. func (x *IdentityProvider) ProtoReflect() protoreflect.Message {
  78. mi := &file_store_idp_proto_msgTypes[0]
  79. if x != nil {
  80. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  81. if ms.LoadMessageInfo() == nil {
  82. ms.StoreMessageInfo(mi)
  83. }
  84. return ms
  85. }
  86. return mi.MessageOf(x)
  87. }
  88. // Deprecated: Use IdentityProvider.ProtoReflect.Descriptor instead.
  89. func (*IdentityProvider) Descriptor() ([]byte, []int) {
  90. return file_store_idp_proto_rawDescGZIP(), []int{0}
  91. }
  92. func (x *IdentityProvider) GetId() int32 {
  93. if x != nil {
  94. return x.Id
  95. }
  96. return 0
  97. }
  98. func (x *IdentityProvider) GetName() string {
  99. if x != nil {
  100. return x.Name
  101. }
  102. return ""
  103. }
  104. func (x *IdentityProvider) GetType() IdentityProvider_Type {
  105. if x != nil {
  106. return x.Type
  107. }
  108. return IdentityProvider_TYPE_UNSPECIFIED
  109. }
  110. func (x *IdentityProvider) GetIdentifierFilter() string {
  111. if x != nil {
  112. return x.IdentifierFilter
  113. }
  114. return ""
  115. }
  116. func (x *IdentityProvider) GetConfig() *IdentityProviderConfig {
  117. if x != nil {
  118. return x.Config
  119. }
  120. return nil
  121. }
  122. type IdentityProviderConfig struct {
  123. state protoimpl.MessageState `protogen:"open.v1"`
  124. // Types that are valid to be assigned to Config:
  125. //
  126. // *IdentityProviderConfig_Oauth2Config
  127. Config isIdentityProviderConfig_Config `protobuf_oneof:"config"`
  128. unknownFields protoimpl.UnknownFields
  129. sizeCache protoimpl.SizeCache
  130. }
  131. func (x *IdentityProviderConfig) Reset() {
  132. *x = IdentityProviderConfig{}
  133. mi := &file_store_idp_proto_msgTypes[1]
  134. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  135. ms.StoreMessageInfo(mi)
  136. }
  137. func (x *IdentityProviderConfig) String() string {
  138. return protoimpl.X.MessageStringOf(x)
  139. }
  140. func (*IdentityProviderConfig) ProtoMessage() {}
  141. func (x *IdentityProviderConfig) ProtoReflect() protoreflect.Message {
  142. mi := &file_store_idp_proto_msgTypes[1]
  143. if x != nil {
  144. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  145. if ms.LoadMessageInfo() == nil {
  146. ms.StoreMessageInfo(mi)
  147. }
  148. return ms
  149. }
  150. return mi.MessageOf(x)
  151. }
  152. // Deprecated: Use IdentityProviderConfig.ProtoReflect.Descriptor instead.
  153. func (*IdentityProviderConfig) Descriptor() ([]byte, []int) {
  154. return file_store_idp_proto_rawDescGZIP(), []int{1}
  155. }
  156. func (x *IdentityProviderConfig) GetConfig() isIdentityProviderConfig_Config {
  157. if x != nil {
  158. return x.Config
  159. }
  160. return nil
  161. }
  162. func (x *IdentityProviderConfig) GetOauth2Config() *OAuth2Config {
  163. if x != nil {
  164. if x, ok := x.Config.(*IdentityProviderConfig_Oauth2Config); ok {
  165. return x.Oauth2Config
  166. }
  167. }
  168. return nil
  169. }
  170. type isIdentityProviderConfig_Config interface {
  171. isIdentityProviderConfig_Config()
  172. }
  173. type IdentityProviderConfig_Oauth2Config struct {
  174. Oauth2Config *OAuth2Config `protobuf:"bytes,1,opt,name=oauth2_config,json=oauth2Config,proto3,oneof"`
  175. }
  176. func (*IdentityProviderConfig_Oauth2Config) isIdentityProviderConfig_Config() {}
  177. type FieldMapping struct {
  178. state protoimpl.MessageState `protogen:"open.v1"`
  179. Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
  180. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
  181. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
  182. unknownFields protoimpl.UnknownFields
  183. sizeCache protoimpl.SizeCache
  184. }
  185. func (x *FieldMapping) Reset() {
  186. *x = FieldMapping{}
  187. mi := &file_store_idp_proto_msgTypes[2]
  188. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  189. ms.StoreMessageInfo(mi)
  190. }
  191. func (x *FieldMapping) String() string {
  192. return protoimpl.X.MessageStringOf(x)
  193. }
  194. func (*FieldMapping) ProtoMessage() {}
  195. func (x *FieldMapping) ProtoReflect() protoreflect.Message {
  196. mi := &file_store_idp_proto_msgTypes[2]
  197. if x != nil {
  198. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  199. if ms.LoadMessageInfo() == nil {
  200. ms.StoreMessageInfo(mi)
  201. }
  202. return ms
  203. }
  204. return mi.MessageOf(x)
  205. }
  206. // Deprecated: Use FieldMapping.ProtoReflect.Descriptor instead.
  207. func (*FieldMapping) Descriptor() ([]byte, []int) {
  208. return file_store_idp_proto_rawDescGZIP(), []int{2}
  209. }
  210. func (x *FieldMapping) GetIdentifier() string {
  211. if x != nil {
  212. return x.Identifier
  213. }
  214. return ""
  215. }
  216. func (x *FieldMapping) GetDisplayName() string {
  217. if x != nil {
  218. return x.DisplayName
  219. }
  220. return ""
  221. }
  222. func (x *FieldMapping) GetEmail() string {
  223. if x != nil {
  224. return x.Email
  225. }
  226. return ""
  227. }
  228. type OAuth2Config struct {
  229. state protoimpl.MessageState `protogen:"open.v1"`
  230. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
  231. ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
  232. AuthUrl string `protobuf:"bytes,3,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`
  233. TokenUrl string `protobuf:"bytes,4,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`
  234. UserInfoUrl string `protobuf:"bytes,5,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"`
  235. Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`
  236. FieldMapping *FieldMapping `protobuf:"bytes,7,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`
  237. unknownFields protoimpl.UnknownFields
  238. sizeCache protoimpl.SizeCache
  239. }
  240. func (x *OAuth2Config) Reset() {
  241. *x = OAuth2Config{}
  242. mi := &file_store_idp_proto_msgTypes[3]
  243. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  244. ms.StoreMessageInfo(mi)
  245. }
  246. func (x *OAuth2Config) String() string {
  247. return protoimpl.X.MessageStringOf(x)
  248. }
  249. func (*OAuth2Config) ProtoMessage() {}
  250. func (x *OAuth2Config) ProtoReflect() protoreflect.Message {
  251. mi := &file_store_idp_proto_msgTypes[3]
  252. if x != nil {
  253. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  254. if ms.LoadMessageInfo() == nil {
  255. ms.StoreMessageInfo(mi)
  256. }
  257. return ms
  258. }
  259. return mi.MessageOf(x)
  260. }
  261. // Deprecated: Use OAuth2Config.ProtoReflect.Descriptor instead.
  262. func (*OAuth2Config) Descriptor() ([]byte, []int) {
  263. return file_store_idp_proto_rawDescGZIP(), []int{3}
  264. }
  265. func (x *OAuth2Config) GetClientId() string {
  266. if x != nil {
  267. return x.ClientId
  268. }
  269. return ""
  270. }
  271. func (x *OAuth2Config) GetClientSecret() string {
  272. if x != nil {
  273. return x.ClientSecret
  274. }
  275. return ""
  276. }
  277. func (x *OAuth2Config) GetAuthUrl() string {
  278. if x != nil {
  279. return x.AuthUrl
  280. }
  281. return ""
  282. }
  283. func (x *OAuth2Config) GetTokenUrl() string {
  284. if x != nil {
  285. return x.TokenUrl
  286. }
  287. return ""
  288. }
  289. func (x *OAuth2Config) GetUserInfoUrl() string {
  290. if x != nil {
  291. return x.UserInfoUrl
  292. }
  293. return ""
  294. }
  295. func (x *OAuth2Config) GetScopes() []string {
  296. if x != nil {
  297. return x.Scopes
  298. }
  299. return nil
  300. }
  301. func (x *OAuth2Config) GetFieldMapping() *FieldMapping {
  302. if x != nil {
  303. return x.FieldMapping
  304. }
  305. return nil
  306. }
  307. var File_store_idp_proto protoreflect.FileDescriptor
  308. var file_store_idp_proto_rawDesc = string([]byte{
  309. 0x0a, 0x0f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  310. 0x6f, 0x12, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x82,
  311. 0x02, 0x0a, 0x10, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69,
  312. 0x64, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
  313. 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  314. 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
  315. 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74,
  316. 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,
  317. 0x69, 0x64, 0x65, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
  318. 0x2b, 0x0a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x66, 0x69,
  319. 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x69, 0x64, 0x65, 0x6e,
  320. 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x06,
  321. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6d,
  322. 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74,
  323. 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  324. 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x28, 0x0a, 0x04, 0x54, 0x79, 0x70,
  325. 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
  326. 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x41, 0x55, 0x54, 0x48,
  327. 0x32, 0x10, 0x01, 0x22, 0x64, 0x0a, 0x16, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50,
  328. 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x40, 0x0a,
  329. 0x0d, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01,
  330. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f,
  331. 0x72, 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48,
  332. 0x00, 0x52, 0x0c, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42,
  333. 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x67, 0x0a, 0x0c, 0x46, 0x69, 0x65,
  334. 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65,
  335. 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69,
  336. 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73,
  337. 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  338. 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,
  339. 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61,
  340. 0x69, 0x6c, 0x22, 0x84, 0x02, 0x0a, 0x0c, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x43, 0x6f, 0x6e,
  341. 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64,
  342. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64,
  343. 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65,
  344. 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53,
  345. 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x75, 0x72,
  346. 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x55, 0x72, 0x6c,
  347. 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20,
  348. 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x22, 0x0a,
  349. 0x0d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05,
  350. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x55, 0x72,
  351. 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28,
  352. 0x09, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x0d, 0x66, 0x69, 0x65,
  353. 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
  354. 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x46,
  355. 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65,
  356. 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x42, 0x93, 0x01, 0x0a, 0x0f, 0x63, 0x6f,
  357. 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x08, 0x49,
  358. 0x64, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75,
  359. 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d,
  360. 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73,
  361. 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x4d, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x4d, 0x65, 0x6d,
  362. 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73,
  363. 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x17, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53,
  364. 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
  365. 0xea, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62,
  366. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  367. })
  368. var (
  369. file_store_idp_proto_rawDescOnce sync.Once
  370. file_store_idp_proto_rawDescData []byte
  371. )
  372. func file_store_idp_proto_rawDescGZIP() []byte {
  373. file_store_idp_proto_rawDescOnce.Do(func() {
  374. file_store_idp_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_idp_proto_rawDesc), len(file_store_idp_proto_rawDesc)))
  375. })
  376. return file_store_idp_proto_rawDescData
  377. }
  378. var file_store_idp_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  379. var file_store_idp_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  380. var file_store_idp_proto_goTypes = []any{
  381. (IdentityProvider_Type)(0), // 0: memos.store.IdentityProvider.Type
  382. (*IdentityProvider)(nil), // 1: memos.store.IdentityProvider
  383. (*IdentityProviderConfig)(nil), // 2: memos.store.IdentityProviderConfig
  384. (*FieldMapping)(nil), // 3: memos.store.FieldMapping
  385. (*OAuth2Config)(nil), // 4: memos.store.OAuth2Config
  386. }
  387. var file_store_idp_proto_depIdxs = []int32{
  388. 0, // 0: memos.store.IdentityProvider.type:type_name -> memos.store.IdentityProvider.Type
  389. 2, // 1: memos.store.IdentityProvider.config:type_name -> memos.store.IdentityProviderConfig
  390. 4, // 2: memos.store.IdentityProviderConfig.oauth2_config:type_name -> memos.store.OAuth2Config
  391. 3, // 3: memos.store.OAuth2Config.field_mapping:type_name -> memos.store.FieldMapping
  392. 4, // [4:4] is the sub-list for method output_type
  393. 4, // [4:4] is the sub-list for method input_type
  394. 4, // [4:4] is the sub-list for extension type_name
  395. 4, // [4:4] is the sub-list for extension extendee
  396. 0, // [0:4] is the sub-list for field type_name
  397. }
  398. func init() { file_store_idp_proto_init() }
  399. func file_store_idp_proto_init() {
  400. if File_store_idp_proto != nil {
  401. return
  402. }
  403. file_store_idp_proto_msgTypes[1].OneofWrappers = []any{
  404. (*IdentityProviderConfig_Oauth2Config)(nil),
  405. }
  406. type x struct{}
  407. out := protoimpl.TypeBuilder{
  408. File: protoimpl.DescBuilder{
  409. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  410. RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_idp_proto_rawDesc), len(file_store_idp_proto_rawDesc)),
  411. NumEnums: 1,
  412. NumMessages: 4,
  413. NumExtensions: 0,
  414. NumServices: 0,
  415. },
  416. GoTypes: file_store_idp_proto_goTypes,
  417. DependencyIndexes: file_store_idp_proto_depIdxs,
  418. EnumInfos: file_store_idp_proto_enumTypes,
  419. MessageInfos: file_store_idp_proto_msgTypes,
  420. }.Build()
  421. File_store_idp_proto = out.File
  422. file_store_idp_proto_goTypes = nil
  423. file_store_idp_proto_depIdxs = nil
  424. }