idp.pb.go 19 KB

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