From 736637a362a2fde42f7bb60f03ae980073b99ef0 Mon Sep 17 00:00:00 2001 From: Johnny Date: Wed, 19 Jun 2024 22:03:12 +0800 Subject: [PATCH] feat: add public flag instead of system setting to enable signup (#3589) --- bin/memos/main.go | 7 + docs/apidocs.swagger.yaml | 283 +++++------------- proto/api/v1/workspace_service.proto | 2 + proto/api/v1/workspace_setting_service.proto | 4 - proto/gen/api/v1/activity_service.pb.go | 14 +- proto/gen/api/v1/auth_service.pb.go | 16 +- proto/gen/api/v1/common.pb.go | 6 +- proto/gen/api/v1/idp_service.pb.go | 26 +- proto/gen/api/v1/inbox_service.pb.go | 16 +- proto/gen/api/v1/markdown_service.pb.go | 80 ++--- proto/gen/api/v1/memo_relation_service.pb.go | 6 +- proto/gen/api/v1/memo_service.pb.go | 74 ++--- proto/gen/api/v1/reaction_service.pb.go | 6 +- proto/gen/api/v1/resource_service.pb.go | 26 +- proto/gen/api/v1/user_service.pb.go | 42 +-- proto/gen/api/v1/webhook_service.pb.go | 20 +- proto/gen/api/v1/workspace_service.pb.go | 68 +++-- .../api/v1/workspace_setting_service.pb.go | 274 ++++++++--------- proto/gen/store/activity.pb.go | 10 +- proto/gen/store/idp.pb.go | 14 +- proto/gen/store/inbox.pb.go | 8 +- proto/gen/store/memo.pb.go | 8 +- proto/gen/store/reaction.pb.go | 4 +- proto/gen/store/resource.pb.go | 10 +- proto/gen/store/user_setting.pb.go | 12 +- proto/gen/store/workspace_setting.pb.go | 228 +++++++------- proto/store/workspace_setting.proto | 4 - server/profile/profile.go | 2 + server/router/api/v1/auth_service.go | 6 +- server/router/api/v1/workspace_service.go | 1 + .../api/v1/workspace_setting_service.go | 12 +- test/store/workspace_setting_test.go | 2 +- .../components/DisablePasswordLoginDialog.tsx | 102 ------- .../components/Settings/WorkspaceSection.tsx | 51 +--- web/src/pages/SignIn.tsx | 120 ++++---- web/src/pages/SignUp.tsx | 8 +- 36 files changed, 621 insertions(+), 951 deletions(-) delete mode 100644 web/src/components/DisablePasswordLoginDialog.tsx diff --git a/bin/memos/main.go b/bin/memos/main.go index 0496cba1d..1e5855bc1 100644 --- a/bin/memos/main.go +++ b/bin/memos/main.go @@ -36,6 +36,7 @@ var ( data string driver string dsn string + public bool instanceProfile *profile.Profile rootCmd = &cobra.Command{ @@ -109,6 +110,7 @@ func init() { rootCmd.PersistentFlags().StringVarP(&data, "data", "d", "", "data directory") rootCmd.PersistentFlags().StringVarP(&driver, "driver", "", "", "database driver") rootCmd.PersistentFlags().StringVarP(&dsn, "dsn", "", "", "database source name(aka. DSN)") + rootCmd.PersistentFlags().BoolVarP(&public, "public", "", true, "") err := viper.BindPFlag("mode", rootCmd.PersistentFlags().Lookup("mode")) if err != nil { @@ -134,11 +136,16 @@ func init() { if err != nil { panic(err) } + err = viper.BindPFlag("public", rootCmd.PersistentFlags().Lookup("public")) + if err != nil { + panic(err) + } viper.SetDefault("mode", "demo") viper.SetDefault("driver", "sqlite") viper.SetDefault("addr", "") viper.SetDefault("port", 8081) + viper.SetDefault("public", true) viper.SetEnvPrefix("memos") } diff --git a/docs/apidocs.swagger.yaml b/docs/apidocs.swagger.yaml index dd34b60c6..f50b8ce27 100644 --- a/docs/apidocs.swagger.yaml +++ b/docs/apidocs.swagger.yaml @@ -301,16 +301,12 @@ paths: type: integer format: int32 - name: pageToken - description: |- - A page token, received from a previous `ListMemos` call. - Provide this to retrieve the subsequent page. + description: "A page token, received from a previous `ListMemos` call.\r\nProvide this to retrieve the subsequent page." in: query required: false type: string - name: filter - description: |- - Filter is used to filter memos returned in the list. - Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']" + description: "Filter is used to filter memos returned in the list.\r\nFormat: \"creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']\"" in: query required: false type: string @@ -351,17 +347,12 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - name is the name of the user to get stats for. - Format: users/{id} + description: "name is the name of the user to get stats for.\r\nFormat: users/{id}" in: query required: false type: string - name: timezone - description: |- - timezone location - Format: uses tz identifier - https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + description: "timezone location\r\nFormat: uses tz identifier\r\nhttps://en.wikipedia.org/wiki/List_of_tz_database_time_zones" in: query required: false type: string @@ -408,9 +399,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: filter - description: |- - Filter is used to filter memos returned. - Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']" + description: "Filter is used to filter memos returned.\r\nFormat: \"creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']\"" in: query required: false type: string @@ -543,9 +532,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: filter - description: |- - Filter is used to filter users returned in the list. - Format: "username == 'frank'" + description: "Filter is used to filter users returned in the list.\r\nFormat: \"username == 'frank'\"" in: query required: false type: string @@ -706,9 +693,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The resource name of the workspace setting. - Format: settings/{setting} + description: "The resource name of the workspace setting.\r\nFormat: settings/{setting}" in: path required: true type: string @@ -730,9 +715,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: setting.name - description: |- - name is the name of the setting. - Format: settings/{setting} + description: "name is the name of the setting.\r\nFormat: settings/{setting}" in: path required: true type: string @@ -768,9 +751,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: identityProvider.name - description: |- - The name of the identityProvider. - Format: identityProviders/{id} + description: "The name of the identityProvider.\r\nFormat: identityProviders/{id}" in: path required: true type: string @@ -808,9 +789,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: inbox.name - description: |- - The name of the inbox. - Format: inboxes/{id} + description: "The name of the inbox.\r\nFormat: inboxes/{id}" in: path required: true type: string @@ -854,10 +833,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: memo.name - description: |- - The name of the memo. - Format: memos/{id} - id is the system generated id. + description: "The name of the memo.\r\nFormat: memos/{id}\r\nid is the system generated id." in: path required: true type: string @@ -875,9 +851,7 @@ paths: $ref: '#/definitions/v1RowStatus' creator: type: string - title: |- - The name of the creator. - Format: users/{id} + title: "The name of the creator.\r\nFormat: users/{id}" createTime: type: string format: date-time @@ -930,9 +904,7 @@ paths: readOnly: true parent: type: string - title: |- - The name of the parent memo. - Format: memos/{id} + title: "The name of the parent memo.\r\nFormat: memos/{id}" readOnly: true tags: - MemoService @@ -951,9 +923,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name_1 - description: |- - The name of the identityProvider to get. - Format: identityProviders/{id} + description: "The name of the identityProvider to get.\r\nFormat: identityProviders/{id}" in: path required: true type: string @@ -975,9 +945,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name_1 - description: |- - The name of the identityProvider to delete. - Format: identityProviders/{id} + description: "The name of the identityProvider to delete.\r\nFormat: identityProviders/{id}" in: path required: true type: string @@ -999,10 +967,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name_2 - description: |- - The name of the resource. - Format: resources/{id} - id is the system generated unique identifier. + description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier." in: path required: true type: string @@ -1024,9 +989,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name_2 - description: |- - The name of the inbox to delete. - Format: inboxes/{id} + description: "The name of the inbox to delete.\r\nFormat: inboxes/{id}" in: path required: true type: string @@ -1048,9 +1011,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name_3 - description: |- - The name of the memo. - Format: memos/{id} + description: "The name of the memo.\r\nFormat: memos/{id}" in: path required: true type: string @@ -1072,10 +1033,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name_3 - description: |- - The name of the resource. - Format: resources/{id} - id is the system generated unique identifier. + description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier." in: path required: true type: string @@ -1098,9 +1056,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name_4 - description: |- - The name of the memo. - Format: memos/{id} + description: "The name of the memo.\r\nFormat: memos/{id}" in: path required: true type: string @@ -1122,9 +1078,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the user. - Format: users/{id} + description: "The name of the user.\r\nFormat: users/{id}" in: path required: true type: string @@ -1146,9 +1100,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the user. - Format: users/{id} + description: "The name of the user.\r\nFormat: users/{id}" in: path required: true type: string @@ -1170,9 +1122,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the user. - Format: users/{id} + description: "The name of the user.\r\nFormat: users/{id}" in: path required: true type: string @@ -1193,9 +1143,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the user. - Format: users/{id} + description: "The name of the user.\r\nFormat: users/{id}" in: path required: true type: string @@ -1223,9 +1171,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the user. - Format: users/{id} + description: "The name of the user.\r\nFormat: users/{id}" in: path required: true type: string @@ -1252,9 +1198,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the memo. - Format: memos/{id} + description: "The name of the memo.\r\nFormat: memos/{id}" in: path required: true type: string @@ -1275,9 +1219,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the memo. - Format: memos/{id} + description: "The name of the memo.\r\nFormat: memos/{id}" in: path required: true type: string @@ -1304,9 +1246,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the memo. - Format: memos/{id}. Use "memos/-" to list all properties. + description: "The name of the memo.\r\nFormat: memos/{id}. Use \"memos/-\" to list all properties." in: path required: true type: string @@ -1329,9 +1269,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the memo. - Format: memos/{id}. Use "memos/-" to rebuild all memos. + description: "The name of the memo.\r\nFormat: memos/{id}. Use \"memos/-\" to rebuild all memos." in: path required: true type: string @@ -1358,9 +1296,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the memo. - Format: memos/{id} + description: "The name of the memo.\r\nFormat: memos/{id}" in: path required: true type: string @@ -1381,9 +1317,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the memo. - Format: memos/{id} + description: "The name of the memo.\r\nFormat: memos/{id}" in: path required: true type: string @@ -1410,9 +1344,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the memo. - Format: memos/{id} + description: "The name of the memo.\r\nFormat: memos/{id}" in: path required: true type: string @@ -1434,9 +1366,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the memo. - Format: memos/{id} + description: "The name of the memo.\r\nFormat: memos/{id}" in: path required: true type: string @@ -1463,9 +1393,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the memo. - Format: memos/{id} + description: "The name of the memo.\r\nFormat: memos/{id}" in: path required: true type: string @@ -1487,9 +1415,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the memo. - Format: memos/{id} + description: "The name of the memo.\r\nFormat: memos/{id}" in: path required: true type: string @@ -1516,9 +1442,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the user. - Format: users/{id} + description: "The name of the user.\r\nFormat: users/{id}" in: path required: true type: string @@ -1540,17 +1464,13 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: parent - description: |- - The parent, who owns the tags. - Format: memos/{id}. Use "memos/-" to list all tags. + description: "The parent, who owns the tags.\r\nFormat: memos/{id}. Use \"memos/-\" to list all tags." in: path required: true type: string pattern: memos/[^/]+ - name: filter - description: |- - Filter is used to filter memos. - Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']" + description: "Filter is used to filter memos.\r\nFormat: \"creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']\"" in: query required: false type: string @@ -1572,9 +1492,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: parent - description: |- - The parent, who owns the tags. - Format: memos/{id}. Use "memos/-" to delete all tags. + description: "The parent, who owns the tags.\r\nFormat: memos/{id}. Use \"memos/-\" to delete all tags." in: path required: true type: string @@ -1605,9 +1523,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: parent - description: |- - The parent, who owns the tags. - Format: memos/{id}. Use "memos/-" to rename all tags. + description: "The parent, who owns the tags.\r\nFormat: memos/{id}. Use \"memos/-\" to rename all tags." in: path required: true type: string @@ -1634,10 +1550,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: resource.name - description: |- - The name of the resource. - Format: resources/{id} - id is the system generated unique identifier. + description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier." in: path required: true type: string @@ -1669,9 +1582,7 @@ paths: format: int64 memo: type: string - title: |- - The related memo. - Format: memos/{id} + title: "The related memo.\r\nFormat: memos/{id}" tags: - ResourceService /api/v1/{setting.name}: @@ -1689,9 +1600,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: setting.name - description: |- - The name of the user. - Format: users/{id} + description: "The name of the user.\r\nFormat: users/{id}" in: path required: true type: string @@ -1728,9 +1637,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: user.name - description: |- - The name of the user. - Format: users/{id} + description: "The name of the user.\r\nFormat: users/{id}" in: path required: true type: string @@ -1784,9 +1691,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the user. - Format: users/{id} + description: "The name of the user.\r\nFormat: users/{id}" in: path required: true type: string @@ -1819,10 +1724,7 @@ paths: $ref: '#/definitions/googlerpcStatus' parameters: - name: name - description: |- - The name of the resource. - Format: resources/{id} - id is the system generated unique identifier. + description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier." in: path required: true type: string @@ -2003,9 +1905,7 @@ definitions: properties: name: type: string - title: |- - The name of the identityProvider. - Format: identityProviders/{id} + title: "The name of the identityProvider.\r\nFormat: identityProviders/{id}" type: $ref: '#/definitions/apiv1IdentityProviderType' title: @@ -2049,9 +1949,7 @@ definitions: properties: name: type: string - title: |- - The name of the user. - Format: users/{id} + title: "The name of the user.\r\nFormat: users/{id}" locale: type: string description: The preferred locale of the user. @@ -2077,12 +1975,6 @@ definitions: apiv1WorkspaceGeneralSetting: type: object properties: - disallowSignup: - type: boolean - description: disallow_signup is the flag to disallow signup. - disallowPasswordLogin: - type: boolean - description: disallow_password_login is the flag to disallow password login. additionalScript: type: string description: additional_script is the additional script. @@ -2116,9 +2008,7 @@ definitions: properties: name: type: string - title: |- - name is the name of the setting. - Format: settings/{setting} + title: "name is the name of the setting.\r\nFormat: settings/{setting}" generalSetting: $ref: '#/definitions/apiv1WorkspaceGeneralSetting' storageSetting: @@ -2133,9 +2023,7 @@ definitions: description: storage_type is the storage type. filepathTemplate: type: string - title: |- - The template of file path. - e.g. assets/{timestamp}_{filename} + title: "The template of file path.\r\ne.g. assets/{timestamp}_{filename}" uploadSizeLimitMb: type: string format: int64 @@ -2197,7 +2085,8 @@ definitions: Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. + type.googleapis.com. As of May 2023, there are no widely used type server + implementations and no plans to implement one. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. @@ -2232,7 +2121,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -2242,7 +2131,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -2262,7 +2151,7 @@ definitions: name "y.z". JSON - + ==== The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example: @@ -2403,9 +2292,7 @@ definitions: additionalProperties: type: integer format: int32 - description: |- - stats is the stats of memo creating/updating activities. - key is the year-month-day string. e.g. "2020-01-01". + description: "stats is the stats of memo creating/updating activities.\r\nkey is the year-month-day string. e.g. \"2020-01-01\"." v1HeadingNode: type: object properties: @@ -2439,9 +2326,7 @@ definitions: properties: name: type: string - title: |- - The name of the inbox. - Format: inboxes/{id} + title: "The name of the inbox.\r\nFormat: inboxes/{id}" sender: type: string title: 'Format: users/{id}' @@ -2561,10 +2446,7 @@ definitions: additionalProperties: type: integer format: int32 - description: |- - tag_amounts is the amount of tags. - key is the tag name. e.g. "tag1". - value is the amount of the tag. + description: "tag_amounts is the amount of tags.\r\nkey is the tag name. e.g. \"tag1\".\r\nvalue is the amount of the tag." v1ListMemosResponse: type: object properties: @@ -2575,9 +2457,7 @@ definitions: $ref: '#/definitions/v1Memo' nextPageToken: type: string - description: |- - A token, which can be sent as `page_token` to retrieve the next page. - If this field is omitted, there are no subsequent pages. + description: "A token, which can be sent as `page_token` to retrieve the next page.\r\nIf this field is omitted, there are no subsequent pages." v1ListResourcesResponse: type: object properties: @@ -2625,10 +2505,7 @@ definitions: properties: name: type: string - description: |- - The name of the memo. - Format: memos/{id} - id is the system generated id. + description: "The name of the memo.\r\nFormat: memos/{id}\r\nid is the system generated id." uid: type: string description: The user defined id of the memo. @@ -2636,9 +2513,7 @@ definitions: $ref: '#/definitions/v1RowStatus' creator: type: string - title: |- - The name of the creator. - Format: users/{id} + title: "The name of the creator.\r\nFormat: users/{id}" createTime: type: string format: date-time @@ -2691,9 +2566,7 @@ definitions: readOnly: true parent: type: string - title: |- - The name of the parent memo. - Format: memos/{id} + title: "The name of the parent memo.\r\nFormat: memos/{id}" readOnly: true v1MemoProperty: type: object @@ -2715,14 +2588,10 @@ definitions: properties: memo: type: string - title: |- - The name of memo. - Format: "memos/{uid}" + title: "The name of memo.\r\nFormat: \"memos/{uid}\"" relatedMemo: type: string - title: |- - The name of related memo. - Format: "memos/{uid}" + title: "The name of related memo.\r\nFormat: \"memos/{uid}\"" type: $ref: '#/definitions/v1MemoRelationType' v1MemoRelationType: @@ -2871,9 +2740,7 @@ definitions: format: int32 creator: type: string - title: |- - The name of the creator. - Format: users/{id} + title: "The name of the creator.\r\nFormat: users/{id}" contentId: type: string reactionType: @@ -2907,10 +2774,7 @@ definitions: properties: name: type: string - description: |- - The name of the resource. - Format: resources/{id} - id is the system generated unique identifier. + description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier." uid: type: string description: The user defined id of the resource. @@ -2932,9 +2796,7 @@ definitions: format: int64 memo: type: string - title: |- - The related memo. - Format: memos/{id} + title: "The related memo.\r\nFormat: memos/{id}" v1RestoreMarkdownRequest: type: object properties: @@ -3058,9 +2920,7 @@ definitions: properties: name: type: string - title: |- - The name of the user. - Format: users/{id} + title: "The name of the user.\r\nFormat: users/{id}" id: type: integer format: int32 @@ -3134,12 +2994,13 @@ definitions: properties: owner: type: string - title: |- - The name of instance owner. - Format: "users/{id}" + title: "The name of instance owner.\r\nFormat: \"users/{id}\"" version: type: string title: version is the current version of instance mode: type: string description: mode is the instance mode (e.g. "prod", "dev" or "demo"). + public: + type: boolean + description: public is a flag that the instance is open for other users. diff --git a/proto/api/v1/workspace_service.proto b/proto/api/v1/workspace_service.proto index 1f80b07e5..12568d18d 100644 --- a/proto/api/v1/workspace_service.proto +++ b/proto/api/v1/workspace_service.proto @@ -21,6 +21,8 @@ message WorkspaceProfile { string version = 2; // mode is the instance mode (e.g. "prod", "dev" or "demo"). string mode = 3; + // public is a flag that the instance is open for other users. + bool public = 4; } message GetWorkspaceProfileRequest {} diff --git a/proto/api/v1/workspace_setting_service.proto b/proto/api/v1/workspace_setting_service.proto index 69bf8d6a4..6c88f643f 100644 --- a/proto/api/v1/workspace_setting_service.proto +++ b/proto/api/v1/workspace_setting_service.proto @@ -36,10 +36,6 @@ message WorkspaceSetting { } message WorkspaceGeneralSetting { - // disallow_signup is the flag to disallow signup. - bool disallow_signup = 1; - // disallow_password_login is the flag to disallow password login. - bool disallow_password_login = 2; // additional_script is the additional script. string additional_script = 3; // additional_style is the additional style. diff --git a/proto/gen/api/v1/activity_service.pb.go b/proto/gen/api/v1/activity_service.pb.go index d6742fb56..1d9faf2de 100644 --- a/proto/gen/api/v1/activity_service.pb.go +++ b/proto/gen/api/v1/activity_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/activity_service.proto @@ -410,7 +410,7 @@ func file_api_v1_activity_service_proto_rawDescGZIP() []byte { } var file_api_v1_activity_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_api_v1_activity_service_proto_goTypes = []interface{}{ +var file_api_v1_activity_service_proto_goTypes = []any{ (*Activity)(nil), // 0: memos.api.v1.Activity (*ActivityMemoCommentPayload)(nil), // 1: memos.api.v1.ActivityMemoCommentPayload (*ActivityVersionUpdatePayload)(nil), // 2: memos.api.v1.ActivityVersionUpdatePayload @@ -438,7 +438,7 @@ func file_api_v1_activity_service_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_api_v1_activity_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_activity_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Activity); i { case 0: return &v.state @@ -450,7 +450,7 @@ func file_api_v1_activity_service_proto_init() { return nil } } - file_api_v1_activity_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_activity_service_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ActivityMemoCommentPayload); i { case 0: return &v.state @@ -462,7 +462,7 @@ func file_api_v1_activity_service_proto_init() { return nil } } - file_api_v1_activity_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_activity_service_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ActivityVersionUpdatePayload); i { case 0: return &v.state @@ -474,7 +474,7 @@ func file_api_v1_activity_service_proto_init() { return nil } } - file_api_v1_activity_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_activity_service_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*ActivityPayload); i { case 0: return &v.state @@ -486,7 +486,7 @@ func file_api_v1_activity_service_proto_init() { return nil } } - file_api_v1_activity_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_activity_service_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*GetActivityRequest); i { case 0: return &v.state diff --git a/proto/gen/api/v1/auth_service.pb.go b/proto/gen/api/v1/auth_service.pb.go index 985749a56..3ce9adad6 100644 --- a/proto/gen/api/v1/auth_service.pb.go +++ b/proto/gen/api/v1/auth_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/auth_service.proto @@ -427,7 +427,7 @@ func file_api_v1_auth_service_proto_rawDescGZIP() []byte { } var file_api_v1_auth_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_api_v1_auth_service_proto_goTypes = []interface{}{ +var file_api_v1_auth_service_proto_goTypes = []any{ (*GetAuthStatusRequest)(nil), // 0: memos.api.v1.GetAuthStatusRequest (*GetAuthStatusResponse)(nil), // 1: memos.api.v1.GetAuthStatusResponse (*SignInRequest)(nil), // 2: memos.api.v1.SignInRequest @@ -463,7 +463,7 @@ func file_api_v1_auth_service_proto_init() { } file_api_v1_user_service_proto_init() if !protoimpl.UnsafeEnabled { - file_api_v1_auth_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_auth_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*GetAuthStatusRequest); i { case 0: return &v.state @@ -475,7 +475,7 @@ func file_api_v1_auth_service_proto_init() { return nil } } - file_api_v1_auth_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_auth_service_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*GetAuthStatusResponse); i { case 0: return &v.state @@ -487,7 +487,7 @@ func file_api_v1_auth_service_proto_init() { return nil } } - file_api_v1_auth_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_auth_service_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*SignInRequest); i { case 0: return &v.state @@ -499,7 +499,7 @@ func file_api_v1_auth_service_proto_init() { return nil } } - file_api_v1_auth_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_auth_service_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*SignInWithSSORequest); i { case 0: return &v.state @@ -511,7 +511,7 @@ func file_api_v1_auth_service_proto_init() { return nil } } - file_api_v1_auth_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_auth_service_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*SignUpRequest); i { case 0: return &v.state @@ -523,7 +523,7 @@ func file_api_v1_auth_service_proto_init() { return nil } } - file_api_v1_auth_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_auth_service_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*SignOutRequest); i { case 0: return &v.state diff --git a/proto/gen/api/v1/common.pb.go b/proto/gen/api/v1/common.pb.go index 93d0a05b4..de1ef438c 100644 --- a/proto/gen/api/v1/common.pb.go +++ b/proto/gen/api/v1/common.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/common.proto @@ -165,7 +165,7 @@ func file_api_v1_common_proto_rawDescGZIP() []byte { var file_api_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_api_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_api_v1_common_proto_goTypes = []interface{}{ +var file_api_v1_common_proto_goTypes = []any{ (RowStatus)(0), // 0: memos.api.v1.RowStatus (*PageToken)(nil), // 1: memos.api.v1.PageToken } @@ -183,7 +183,7 @@ func file_api_v1_common_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_api_v1_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_common_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*PageToken); i { case 0: return &v.state diff --git a/proto/gen/api/v1/idp_service.pb.go b/proto/gen/api/v1/idp_service.pb.go index 059029b66..65957c8a0 100644 --- a/proto/gen/api/v1/idp_service.pb.go +++ b/proto/gen/api/v1/idp_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/idp_service.proto @@ -837,7 +837,7 @@ func file_api_v1_idp_service_proto_rawDescGZIP() []byte { var file_api_v1_idp_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_api_v1_idp_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_api_v1_idp_service_proto_goTypes = []interface{}{ +var file_api_v1_idp_service_proto_goTypes = []any{ (IdentityProvider_Type)(0), // 0: memos.api.v1.IdentityProvider.Type (*IdentityProvider)(nil), // 1: memos.api.v1.IdentityProvider (*IdentityProviderConfig)(nil), // 2: memos.api.v1.IdentityProviderConfig @@ -884,7 +884,7 @@ func file_api_v1_idp_service_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_api_v1_idp_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_idp_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*IdentityProvider); i { case 0: return &v.state @@ -896,7 +896,7 @@ func file_api_v1_idp_service_proto_init() { return nil } } - file_api_v1_idp_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_idp_service_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*IdentityProviderConfig); i { case 0: return &v.state @@ -908,7 +908,7 @@ func file_api_v1_idp_service_proto_init() { return nil } } - file_api_v1_idp_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_idp_service_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*FieldMapping); i { case 0: return &v.state @@ -920,7 +920,7 @@ func file_api_v1_idp_service_proto_init() { return nil } } - file_api_v1_idp_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_idp_service_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*OAuth2Config); i { case 0: return &v.state @@ -932,7 +932,7 @@ func file_api_v1_idp_service_proto_init() { return nil } } - file_api_v1_idp_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_idp_service_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*ListIdentityProvidersRequest); i { case 0: return &v.state @@ -944,7 +944,7 @@ func file_api_v1_idp_service_proto_init() { return nil } } - file_api_v1_idp_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_idp_service_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*ListIdentityProvidersResponse); i { case 0: return &v.state @@ -956,7 +956,7 @@ func file_api_v1_idp_service_proto_init() { return nil } } - file_api_v1_idp_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_idp_service_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*GetIdentityProviderRequest); i { case 0: return &v.state @@ -968,7 +968,7 @@ func file_api_v1_idp_service_proto_init() { return nil } } - file_api_v1_idp_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_idp_service_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*CreateIdentityProviderRequest); i { case 0: return &v.state @@ -980,7 +980,7 @@ func file_api_v1_idp_service_proto_init() { return nil } } - file_api_v1_idp_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_idp_service_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*UpdateIdentityProviderRequest); i { case 0: return &v.state @@ -992,7 +992,7 @@ func file_api_v1_idp_service_proto_init() { return nil } } - file_api_v1_idp_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_idp_service_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*DeleteIdentityProviderRequest); i { case 0: return &v.state @@ -1005,7 +1005,7 @@ func file_api_v1_idp_service_proto_init() { } } } - file_api_v1_idp_service_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_api_v1_idp_service_proto_msgTypes[1].OneofWrappers = []any{ (*IdentityProviderConfig_Oauth2Config)(nil), } type x struct{} diff --git a/proto/gen/api/v1/inbox_service.pb.go b/proto/gen/api/v1/inbox_service.pb.go index 8f552eccd..89208214b 100644 --- a/proto/gen/api/v1/inbox_service.pb.go +++ b/proto/gen/api/v1/inbox_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/inbox_service.proto @@ -530,7 +530,7 @@ func file_api_v1_inbox_service_proto_rawDescGZIP() []byte { var file_api_v1_inbox_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_api_v1_inbox_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_api_v1_inbox_service_proto_goTypes = []interface{}{ +var file_api_v1_inbox_service_proto_goTypes = []any{ (Inbox_Status)(0), // 0: memos.api.v1.Inbox.Status (Inbox_Type)(0), // 1: memos.api.v1.Inbox.Type (*Inbox)(nil), // 2: memos.api.v1.Inbox @@ -568,7 +568,7 @@ func file_api_v1_inbox_service_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_api_v1_inbox_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_inbox_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Inbox); i { case 0: return &v.state @@ -580,7 +580,7 @@ func file_api_v1_inbox_service_proto_init() { return nil } } - file_api_v1_inbox_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_inbox_service_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ListInboxesRequest); i { case 0: return &v.state @@ -592,7 +592,7 @@ func file_api_v1_inbox_service_proto_init() { return nil } } - file_api_v1_inbox_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_inbox_service_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ListInboxesResponse); i { case 0: return &v.state @@ -604,7 +604,7 @@ func file_api_v1_inbox_service_proto_init() { return nil } } - file_api_v1_inbox_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_inbox_service_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*UpdateInboxRequest); i { case 0: return &v.state @@ -616,7 +616,7 @@ func file_api_v1_inbox_service_proto_init() { return nil } } - file_api_v1_inbox_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_inbox_service_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*DeleteInboxRequest); i { case 0: return &v.state @@ -629,7 +629,7 @@ func file_api_v1_inbox_service_proto_init() { } } } - file_api_v1_inbox_service_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_api_v1_inbox_service_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/proto/gen/api/v1/markdown_service.pb.go b/proto/gen/api/v1/markdown_service.pb.go index aa9ec9728..617f6d5b9 100644 --- a/proto/gen/api/v1/markdown_service.pb.go +++ b/proto/gen/api/v1/markdown_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/markdown_service.proto @@ -2832,7 +2832,7 @@ func file_api_v1_markdown_service_proto_rawDescGZIP() []byte { var file_api_v1_markdown_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_api_v1_markdown_service_proto_msgTypes = make([]protoimpl.MessageInfo, 37) -var file_api_v1_markdown_service_proto_goTypes = []interface{}{ +var file_api_v1_markdown_service_proto_goTypes = []any{ (NodeType)(0), // 0: memos.api.v1.NodeType (*ParseMarkdownRequest)(nil), // 1: memos.api.v1.ParseMarkdownRequest (*ParseMarkdownResponse)(nil), // 2: memos.api.v1.ParseMarkdownResponse @@ -2932,7 +2932,7 @@ func file_api_v1_markdown_service_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_api_v1_markdown_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ParseMarkdownRequest); i { case 0: return &v.state @@ -2944,7 +2944,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ParseMarkdownResponse); i { case 0: return &v.state @@ -2956,7 +2956,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*RestoreMarkdownRequest); i { case 0: return &v.state @@ -2968,7 +2968,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*RestoreMarkdownResponse); i { case 0: return &v.state @@ -2980,7 +2980,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*GetLinkMetadataRequest); i { case 0: return &v.state @@ -2992,7 +2992,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*LinkMetadata); i { case 0: return &v.state @@ -3004,7 +3004,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*Node); i { case 0: return &v.state @@ -3016,7 +3016,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*LineBreakNode); i { case 0: return &v.state @@ -3028,7 +3028,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*ParagraphNode); i { case 0: return &v.state @@ -3040,7 +3040,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*CodeBlockNode); i { case 0: return &v.state @@ -3052,7 +3052,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*HeadingNode); i { case 0: return &v.state @@ -3064,7 +3064,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*HorizontalRuleNode); i { case 0: return &v.state @@ -3076,7 +3076,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*BlockquoteNode); i { case 0: return &v.state @@ -3088,7 +3088,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*OrderedListNode); i { case 0: return &v.state @@ -3100,7 +3100,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*UnorderedListNode); i { case 0: return &v.state @@ -3112,7 +3112,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*TaskListNode); i { case 0: return &v.state @@ -3124,7 +3124,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*MathBlockNode); i { case 0: return &v.state @@ -3136,7 +3136,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*TableNode); i { case 0: return &v.state @@ -3148,7 +3148,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*EmbeddedContentNode); i { case 0: return &v.state @@ -3160,7 +3160,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*TextNode); i { case 0: return &v.state @@ -3172,7 +3172,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*BoldNode); i { case 0: return &v.state @@ -3184,7 +3184,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*ItalicNode); i { case 0: return &v.state @@ -3196,7 +3196,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*BoldItalicNode); i { case 0: return &v.state @@ -3208,7 +3208,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*CodeNode); i { case 0: return &v.state @@ -3220,7 +3220,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*ImageNode); i { case 0: return &v.state @@ -3232,7 +3232,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*LinkNode); i { case 0: return &v.state @@ -3244,7 +3244,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*AutoLinkNode); i { case 0: return &v.state @@ -3256,7 +3256,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[27].Exporter = func(v any, i int) any { switch v := v.(*TagNode); i { case 0: return &v.state @@ -3268,7 +3268,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[28].Exporter = func(v any, i int) any { switch v := v.(*StrikethroughNode); i { case 0: return &v.state @@ -3280,7 +3280,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[29].Exporter = func(v any, i int) any { switch v := v.(*EscapingCharacterNode); i { case 0: return &v.state @@ -3292,7 +3292,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[30].Exporter = func(v any, i int) any { switch v := v.(*MathNode); i { case 0: return &v.state @@ -3304,7 +3304,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[31].Exporter = func(v any, i int) any { switch v := v.(*HighlightNode); i { case 0: return &v.state @@ -3316,7 +3316,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[32].Exporter = func(v any, i int) any { switch v := v.(*SubscriptNode); i { case 0: return &v.state @@ -3328,7 +3328,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[33].Exporter = func(v any, i int) any { switch v := v.(*SuperscriptNode); i { case 0: return &v.state @@ -3340,7 +3340,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[34].Exporter = func(v any, i int) any { switch v := v.(*ReferencedContentNode); i { case 0: return &v.state @@ -3352,7 +3352,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[35].Exporter = func(v any, i int) any { switch v := v.(*SpoilerNode); i { case 0: return &v.state @@ -3364,7 +3364,7 @@ func file_api_v1_markdown_service_proto_init() { return nil } } - file_api_v1_markdown_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_markdown_service_proto_msgTypes[36].Exporter = func(v any, i int) any { switch v := v.(*TableNode_Row); i { case 0: return &v.state @@ -3377,7 +3377,7 @@ func file_api_v1_markdown_service_proto_init() { } } } - file_api_v1_markdown_service_proto_msgTypes[6].OneofWrappers = []interface{}{ + file_api_v1_markdown_service_proto_msgTypes[6].OneofWrappers = []any{ (*Node_LineBreakNode)(nil), (*Node_ParagraphNode)(nil), (*Node_CodeBlockNode)(nil), diff --git a/proto/gen/api/v1/memo_relation_service.pb.go b/proto/gen/api/v1/memo_relation_service.pb.go index cfd946754..0f3864623 100644 --- a/proto/gen/api/v1/memo_relation_service.pb.go +++ b/proto/gen/api/v1/memo_relation_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/memo_relation_service.proto @@ -182,7 +182,7 @@ func file_api_v1_memo_relation_service_proto_rawDescGZIP() []byte { var file_api_v1_memo_relation_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_api_v1_memo_relation_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_api_v1_memo_relation_service_proto_goTypes = []interface{}{ +var file_api_v1_memo_relation_service_proto_goTypes = []any{ (MemoRelation_Type)(0), // 0: memos.api.v1.MemoRelation.Type (*MemoRelation)(nil), // 1: memos.api.v1.MemoRelation } @@ -201,7 +201,7 @@ func file_api_v1_memo_relation_service_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_api_v1_memo_relation_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_relation_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*MemoRelation); i { case 0: return &v.state diff --git a/proto/gen/api/v1/memo_service.pb.go b/proto/gen/api/v1/memo_service.pb.go index 29a6d165e..5d1ed4ea3 100644 --- a/proto/gen/api/v1/memo_service.pb.go +++ b/proto/gen/api/v1/memo_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/memo_service.proto @@ -2500,7 +2500,7 @@ func file_api_v1_memo_service_proto_rawDescGZIP() []byte { var file_api_v1_memo_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_api_v1_memo_service_proto_msgTypes = make([]protoimpl.MessageInfo, 36) -var file_api_v1_memo_service_proto_goTypes = []interface{}{ +var file_api_v1_memo_service_proto_goTypes = []any{ (Visibility)(0), // 0: memos.api.v1.Visibility (*Memo)(nil), // 1: memos.api.v1.Memo (*MemoProperty)(nil), // 2: memos.api.v1.MemoProperty @@ -2636,7 +2636,7 @@ func file_api_v1_memo_service_proto_init() { file_api_v1_reaction_service_proto_init() file_api_v1_resource_service_proto_init() if !protoimpl.UnsafeEnabled { - file_api_v1_memo_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Memo); i { case 0: return &v.state @@ -2648,7 +2648,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*MemoProperty); i { case 0: return &v.state @@ -2660,7 +2660,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*CreateMemoRequest); i { case 0: return &v.state @@ -2672,7 +2672,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*ListMemosRequest); i { case 0: return &v.state @@ -2684,7 +2684,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*ListMemosResponse); i { case 0: return &v.state @@ -2696,7 +2696,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*SearchMemosRequest); i { case 0: return &v.state @@ -2708,7 +2708,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*SearchMemosResponse); i { case 0: return &v.state @@ -2720,7 +2720,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*GetMemoRequest); i { case 0: return &v.state @@ -2732,7 +2732,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*UpdateMemoRequest); i { case 0: return &v.state @@ -2744,7 +2744,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*DeleteMemoRequest); i { case 0: return &v.state @@ -2756,7 +2756,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*ExportMemosRequest); i { case 0: return &v.state @@ -2768,7 +2768,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*ExportMemosResponse); i { case 0: return &v.state @@ -2780,7 +2780,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*ListMemoPropertiesRequest); i { case 0: return &v.state @@ -2792,7 +2792,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*ListMemoPropertiesResponse); i { case 0: return &v.state @@ -2804,7 +2804,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*RebuildMemoPropertyRequest); i { case 0: return &v.state @@ -2816,7 +2816,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*ListMemoTagsRequest); i { case 0: return &v.state @@ -2828,7 +2828,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*ListMemoTagsResponse); i { case 0: return &v.state @@ -2840,7 +2840,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*RenameMemoTagRequest); i { case 0: return &v.state @@ -2852,7 +2852,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*DeleteMemoTagRequest); i { case 0: return &v.state @@ -2864,7 +2864,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*SetMemoResourcesRequest); i { case 0: return &v.state @@ -2876,7 +2876,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*ListMemoResourcesRequest); i { case 0: return &v.state @@ -2888,7 +2888,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*ListMemoResourcesResponse); i { case 0: return &v.state @@ -2900,7 +2900,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*SetMemoRelationsRequest); i { case 0: return &v.state @@ -2912,7 +2912,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*ListMemoRelationsRequest); i { case 0: return &v.state @@ -2924,7 +2924,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*ListMemoRelationsResponse); i { case 0: return &v.state @@ -2936,7 +2936,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*CreateMemoCommentRequest); i { case 0: return &v.state @@ -2948,7 +2948,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*ListMemoCommentsRequest); i { case 0: return &v.state @@ -2960,7 +2960,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[27].Exporter = func(v any, i int) any { switch v := v.(*ListMemoCommentsResponse); i { case 0: return &v.state @@ -2972,7 +2972,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[28].Exporter = func(v any, i int) any { switch v := v.(*GetUserMemosStatsRequest); i { case 0: return &v.state @@ -2984,7 +2984,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[29].Exporter = func(v any, i int) any { switch v := v.(*GetUserMemosStatsResponse); i { case 0: return &v.state @@ -2996,7 +2996,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[30].Exporter = func(v any, i int) any { switch v := v.(*ListMemoReactionsRequest); i { case 0: return &v.state @@ -3008,7 +3008,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[31].Exporter = func(v any, i int) any { switch v := v.(*ListMemoReactionsResponse); i { case 0: return &v.state @@ -3020,7 +3020,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[32].Exporter = func(v any, i int) any { switch v := v.(*UpsertMemoReactionRequest); i { case 0: return &v.state @@ -3032,7 +3032,7 @@ func file_api_v1_memo_service_proto_init() { return nil } } - file_api_v1_memo_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_memo_service_proto_msgTypes[33].Exporter = func(v any, i int) any { switch v := v.(*DeleteMemoReactionRequest); i { case 0: return &v.state @@ -3045,7 +3045,7 @@ func file_api_v1_memo_service_proto_init() { } } } - file_api_v1_memo_service_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_api_v1_memo_service_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/proto/gen/api/v1/reaction_service.pb.go b/proto/gen/api/v1/reaction_service.pb.go index 270d25d36..3a8a63dd7 100644 --- a/proto/gen/api/v1/reaction_service.pb.go +++ b/proto/gen/api/v1/reaction_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/reaction_service.proto @@ -228,7 +228,7 @@ func file_api_v1_reaction_service_proto_rawDescGZIP() []byte { var file_api_v1_reaction_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_api_v1_reaction_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_api_v1_reaction_service_proto_goTypes = []interface{}{ +var file_api_v1_reaction_service_proto_goTypes = []any{ (Reaction_Type)(0), // 0: memos.api.v1.Reaction.Type (*Reaction)(nil), // 1: memos.api.v1.Reaction } @@ -247,7 +247,7 @@ func file_api_v1_reaction_service_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_api_v1_reaction_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_reaction_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Reaction); i { case 0: return &v.state diff --git a/proto/gen/api/v1/resource_service.pb.go b/proto/gen/api/v1/resource_service.pb.go index 9a3a7bc8a..3e33a5beb 100644 --- a/proto/gen/api/v1/resource_service.pb.go +++ b/proto/gen/api/v1/resource_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/resource_service.proto @@ -742,7 +742,7 @@ func file_api_v1_resource_service_proto_rawDescGZIP() []byte { } var file_api_v1_resource_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_api_v1_resource_service_proto_goTypes = []interface{}{ +var file_api_v1_resource_service_proto_goTypes = []any{ (*Resource)(nil), // 0: memos.api.v1.Resource (*CreateResourceRequest)(nil), // 1: memos.api.v1.CreateResourceRequest (*ListResourcesRequest)(nil), // 2: memos.api.v1.ListResourcesRequest @@ -792,7 +792,7 @@ func file_api_v1_resource_service_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_api_v1_resource_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_resource_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Resource); i { case 0: return &v.state @@ -804,7 +804,7 @@ func file_api_v1_resource_service_proto_init() { return nil } } - file_api_v1_resource_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_resource_service_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*CreateResourceRequest); i { case 0: return &v.state @@ -816,7 +816,7 @@ func file_api_v1_resource_service_proto_init() { return nil } } - file_api_v1_resource_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_resource_service_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ListResourcesRequest); i { case 0: return &v.state @@ -828,7 +828,7 @@ func file_api_v1_resource_service_proto_init() { return nil } } - file_api_v1_resource_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_resource_service_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*ListResourcesResponse); i { case 0: return &v.state @@ -840,7 +840,7 @@ func file_api_v1_resource_service_proto_init() { return nil } } - file_api_v1_resource_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_resource_service_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*SearchResourcesRequest); i { case 0: return &v.state @@ -852,7 +852,7 @@ func file_api_v1_resource_service_proto_init() { return nil } } - file_api_v1_resource_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_resource_service_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*SearchResourcesResponse); i { case 0: return &v.state @@ -864,7 +864,7 @@ func file_api_v1_resource_service_proto_init() { return nil } } - file_api_v1_resource_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_resource_service_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*GetResourceRequest); i { case 0: return &v.state @@ -876,7 +876,7 @@ func file_api_v1_resource_service_proto_init() { return nil } } - file_api_v1_resource_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_resource_service_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*GetResourceBinaryRequest); i { case 0: return &v.state @@ -888,7 +888,7 @@ func file_api_v1_resource_service_proto_init() { return nil } } - file_api_v1_resource_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_resource_service_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*UpdateResourceRequest); i { case 0: return &v.state @@ -900,7 +900,7 @@ func file_api_v1_resource_service_proto_init() { return nil } } - file_api_v1_resource_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_resource_service_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*DeleteResourceRequest); i { case 0: return &v.state @@ -913,7 +913,7 @@ func file_api_v1_resource_service_proto_init() { } } } - file_api_v1_resource_service_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_api_v1_resource_service_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/proto/gen/api/v1/user_service.pb.go b/proto/gen/api/v1/user_service.pb.go index c1fa7ff00..9f25cf9e1 100644 --- a/proto/gen/api/v1/user_service.pb.go +++ b/proto/gen/api/v1/user_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/user_service.proto @@ -1397,7 +1397,7 @@ func file_api_v1_user_service_proto_rawDescGZIP() []byte { var file_api_v1_user_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_api_v1_user_service_proto_msgTypes = make([]protoimpl.MessageInfo, 18) -var file_api_v1_user_service_proto_goTypes = []interface{}{ +var file_api_v1_user_service_proto_goTypes = []any{ (User_Role)(0), // 0: memos.api.v1.User.Role (*User)(nil), // 1: memos.api.v1.User (*ListUsersRequest)(nil), // 2: memos.api.v1.ListUsersRequest @@ -1478,7 +1478,7 @@ func file_api_v1_user_service_proto_init() { } file_api_v1_common_proto_init() if !protoimpl.UnsafeEnabled { - file_api_v1_user_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*User); i { case 0: return &v.state @@ -1490,7 +1490,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ListUsersRequest); i { case 0: return &v.state @@ -1502,7 +1502,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ListUsersResponse); i { case 0: return &v.state @@ -1514,7 +1514,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*SearchUsersRequest); i { case 0: return &v.state @@ -1526,7 +1526,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*SearchUsersResponse); i { case 0: return &v.state @@ -1538,7 +1538,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*GetUserRequest); i { case 0: return &v.state @@ -1550,7 +1550,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*GetUserAvatarBinaryRequest); i { case 0: return &v.state @@ -1562,7 +1562,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*CreateUserRequest); i { case 0: return &v.state @@ -1574,7 +1574,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*UpdateUserRequest); i { case 0: return &v.state @@ -1586,7 +1586,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*DeleteUserRequest); i { case 0: return &v.state @@ -1598,7 +1598,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*UserSetting); i { case 0: return &v.state @@ -1610,7 +1610,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*GetUserSettingRequest); i { case 0: return &v.state @@ -1622,7 +1622,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*UpdateUserSettingRequest); i { case 0: return &v.state @@ -1634,7 +1634,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*UserAccessToken); i { case 0: return &v.state @@ -1646,7 +1646,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*ListUserAccessTokensRequest); i { case 0: return &v.state @@ -1658,7 +1658,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*ListUserAccessTokensResponse); i { case 0: return &v.state @@ -1670,7 +1670,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*CreateUserAccessTokenRequest); i { case 0: return &v.state @@ -1682,7 +1682,7 @@ func file_api_v1_user_service_proto_init() { return nil } } - file_api_v1_user_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_user_service_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*DeleteUserAccessTokenRequest); i { case 0: return &v.state @@ -1695,7 +1695,7 @@ func file_api_v1_user_service_proto_init() { } } } - file_api_v1_user_service_proto_msgTypes[16].OneofWrappers = []interface{}{} + file_api_v1_user_service_proto_msgTypes[16].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/proto/gen/api/v1/webhook_service.pb.go b/proto/gen/api/v1/webhook_service.pb.go index 47d704fcc..3a2c83dcf 100644 --- a/proto/gen/api/v1/webhook_service.pb.go +++ b/proto/gen/api/v1/webhook_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/webhook_service.proto @@ -634,7 +634,7 @@ func file_api_v1_webhook_service_proto_rawDescGZIP() []byte { } var file_api_v1_webhook_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_api_v1_webhook_service_proto_goTypes = []interface{}{ +var file_api_v1_webhook_service_proto_goTypes = []any{ (*Webhook)(nil), // 0: memos.api.v1.Webhook (*CreateWebhookRequest)(nil), // 1: memos.api.v1.CreateWebhookRequest (*GetWebhookRequest)(nil), // 2: memos.api.v1.GetWebhookRequest @@ -683,7 +683,7 @@ func file_api_v1_webhook_service_proto_init() { file_api_v1_common_proto_init() file_api_v1_memo_service_proto_init() if !protoimpl.UnsafeEnabled { - file_api_v1_webhook_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_webhook_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Webhook); i { case 0: return &v.state @@ -695,7 +695,7 @@ func file_api_v1_webhook_service_proto_init() { return nil } } - file_api_v1_webhook_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_webhook_service_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*CreateWebhookRequest); i { case 0: return &v.state @@ -707,7 +707,7 @@ func file_api_v1_webhook_service_proto_init() { return nil } } - file_api_v1_webhook_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_webhook_service_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*GetWebhookRequest); i { case 0: return &v.state @@ -719,7 +719,7 @@ func file_api_v1_webhook_service_proto_init() { return nil } } - file_api_v1_webhook_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_webhook_service_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*ListWebhooksRequest); i { case 0: return &v.state @@ -731,7 +731,7 @@ func file_api_v1_webhook_service_proto_init() { return nil } } - file_api_v1_webhook_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_webhook_service_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*ListWebhooksResponse); i { case 0: return &v.state @@ -743,7 +743,7 @@ func file_api_v1_webhook_service_proto_init() { return nil } } - file_api_v1_webhook_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_webhook_service_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*UpdateWebhookRequest); i { case 0: return &v.state @@ -755,7 +755,7 @@ func file_api_v1_webhook_service_proto_init() { return nil } } - file_api_v1_webhook_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_webhook_service_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*DeleteWebhookRequest); i { case 0: return &v.state @@ -767,7 +767,7 @@ func file_api_v1_webhook_service_proto_init() { return nil } } - file_api_v1_webhook_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_webhook_service_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*WebhookRequestPayload); i { case 0: return &v.state diff --git a/proto/gen/api/v1/workspace_service.pb.go b/proto/gen/api/v1/workspace_service.pb.go index 817d385d0..312ef5d8f 100644 --- a/proto/gen/api/v1/workspace_service.pb.go +++ b/proto/gen/api/v1/workspace_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/workspace_service.proto @@ -33,6 +33,8 @@ type WorkspaceProfile struct { Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // mode is the instance mode (e.g. "prod", "dev" or "demo"). Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"` + // public is a flag that the instance is open for other users. + Public bool `protobuf:"varint,4,opt,name=public,proto3" json:"public,omitempty"` } func (x *WorkspaceProfile) Reset() { @@ -88,6 +90,13 @@ func (x *WorkspaceProfile) GetMode() string { return "" } +func (x *WorkspaceProfile) GetPublic() bool { + if x != nil { + return x.Public + } + return false +} + type GetWorkspaceProfileRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -133,36 +142,37 @@ var file_api_v1_workspace_service_proto_rawDesc = []byte{ 0x63, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x56, 0x0a, 0x10, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x1c, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x32, 0x97, 0x01, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x82, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, - 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, - 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1b, 0x12, 0x19, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x42, 0xad, 0x01, 0x0a, - 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x42, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, - 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, - 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x56, - 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, - 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, 0x65, - 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x22, 0x1c, 0x0a, 0x1a, + 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, + 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x32, 0x97, 0x01, 0x0a, 0x10, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x82, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, + 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x66, 0x69, 0x6c, 0x65, 0x42, 0xad, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, + 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, + 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, + 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, + 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, + 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, + 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -178,7 +188,7 @@ func file_api_v1_workspace_service_proto_rawDescGZIP() []byte { } var file_api_v1_workspace_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_api_v1_workspace_service_proto_goTypes = []interface{}{ +var file_api_v1_workspace_service_proto_goTypes = []any{ (*WorkspaceProfile)(nil), // 0: memos.api.v1.WorkspaceProfile (*GetWorkspaceProfileRequest)(nil), // 1: memos.api.v1.GetWorkspaceProfileRequest } @@ -198,7 +208,7 @@ func file_api_v1_workspace_service_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_api_v1_workspace_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_workspace_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*WorkspaceProfile); i { case 0: return &v.state @@ -210,7 +220,7 @@ func file_api_v1_workspace_service_proto_init() { return nil } } - file_api_v1_workspace_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_workspace_service_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*GetWorkspaceProfileRequest); i { case 0: return &v.state diff --git a/proto/gen/api/v1/workspace_setting_service.pb.go b/proto/gen/api/v1/workspace_setting_service.pb.go index 83e4524e8..0d31d8564 100644 --- a/proto/gen/api/v1/workspace_setting_service.pb.go +++ b/proto/gen/api/v1/workspace_setting_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: api/v1/workspace_setting_service.proto @@ -186,10 +186,6 @@ type WorkspaceGeneralSetting struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // disallow_signup is the flag to disallow signup. - DisallowSignup bool `protobuf:"varint,1,opt,name=disallow_signup,json=disallowSignup,proto3" json:"disallow_signup,omitempty"` - // disallow_password_login is the flag to disallow password login. - DisallowPasswordLogin bool `protobuf:"varint,2,opt,name=disallow_password_login,json=disallowPasswordLogin,proto3" json:"disallow_password_login,omitempty"` // additional_script is the additional script. AdditionalScript string `protobuf:"bytes,3,opt,name=additional_script,json=additionalScript,proto3" json:"additional_script,omitempty"` // additional_style is the additional style. @@ -230,20 +226,6 @@ func (*WorkspaceGeneralSetting) Descriptor() ([]byte, []int) { return file_api_v1_workspace_setting_service_proto_rawDescGZIP(), []int{1} } -func (x *WorkspaceGeneralSetting) GetDisallowSignup() bool { - if x != nil { - return x.DisallowSignup - } - return false -} - -func (x *WorkspaceGeneralSetting) GetDisallowPasswordLogin() bool { - if x != nil { - return x.DisallowPasswordLogin - } - return false -} - func (x *WorkspaceGeneralSetting) GetAdditionalScript() string { if x != nil { return x.AdditionalScript @@ -712,130 +694,124 @@ var file_api_v1_workspace_setting_service_proto_rawDesc = []byte{ 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x22, 0x9f, 0x02, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, + 0x6c, 0x75, 0x65, 0x22, 0xbe, 0x01, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, - 0x27, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x69, 0x67, 0x6e, - 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, - 0x6f, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, - 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x6c, 0x6f, - 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x6c, - 0x6c, 0x6f, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x67, 0x69, 0x6e, - 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x64, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x29, 0x0a, - 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x79, 0x6c, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x6f, - 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x6f, - 0x55, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, - 0x70, 0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x61, 0x70, 0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x91, 0x04, 0x0a, 0x17, - 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x54, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, + 0x2b, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x29, 0x0a, 0x10, + 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, + 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, + 0x66, 0x69, 0x6c, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x6f, 0x5f, + 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x6f, 0x55, + 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, + 0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x61, 0x70, 0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x91, 0x04, 0x0a, 0x17, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x54, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x6d, + 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x11, + 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, + 0x68, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x75, 0x70, 0x6c, + 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x6d, + 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, + 0x69, 0x7a, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x4d, 0x62, 0x12, 0x4b, 0x0a, 0x09, 0x73, 0x33, + 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, - 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, - 0x11, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, - 0x74, 0x68, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x75, 0x70, - 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, - 0x6d, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, - 0x53, 0x69, 0x7a, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x4d, 0x62, 0x12, 0x4b, 0x0a, 0x09, 0x73, - 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, + 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, + 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xa6, 0x01, 0x0a, 0x08, 0x53, 0x33, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, + 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x53, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, + 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, + 0x22, 0x4c, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, + 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4c, + 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10, 0x03, 0x22, 0xa9, + 0x02, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x6f, + 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x36, + 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x15, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x56, + 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, + 0x79, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, + 0x79, 0x57, 0x69, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x30, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, + 0x68, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x63, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x4c, 0x69, 0x6d, 0x69, + 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x6f, + 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, + 0x74, 0x12, 0x37, 0x0a, 0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x75, 0x62, + 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, + 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x64, 0x69, 0x74, 0x22, 0x36, 0x0a, 0x1a, 0x47, 0x65, + 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0x56, 0x0a, 0x1a, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x38, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0xd9, 0x02, 0x0a, 0x17, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, + 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x28, + 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x32, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, + 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa7, 0x01, 0x0a, + 0x13, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, - 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, - 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xa6, 0x01, 0x0a, 0x08, 0x53, 0x33, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, - 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x53, - 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, - 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, - 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, - 0x74, 0x22, 0x4c, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, - 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, - 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10, 0x03, 0x22, - 0xa9, 0x02, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, - 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, - 0x36, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x56, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x70, 0x6c, - 0x61, 0x79, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x70, 0x6c, - 0x61, 0x79, 0x57, 0x69, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, - 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x65, 0x6e, 0x67, - 0x74, 0x68, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, - 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x4c, 0x69, 0x6d, - 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x75, 0x74, - 0x6f, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x6f, 0x6d, 0x70, 0x61, - 0x63, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x75, - 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x6f, 0x75, 0x62, - 0x6c, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x64, 0x69, 0x74, 0x22, 0x36, 0x0a, 0x1a, 0x47, - 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, - 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x22, 0x56, 0x0a, 0x1a, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x38, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, - 0x6e, 0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0xd9, 0x02, 0x0a, 0x17, - 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, - 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, - 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, - 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x32, 0xda, 0x41, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, - 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa7, 0x01, - 0x0a, 0x13, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, - 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, - 0x46, 0xda, 0x41, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x36, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x2b, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x73, - 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, - 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, - 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x1c, 0x57, 0x6f, - 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, - 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, - 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, - 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, - 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, - 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x46, + 0xda, 0x41, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, + 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x2b, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x73, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, + 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x1c, 0x57, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, + 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, + 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, + 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -852,7 +828,7 @@ func file_api_v1_workspace_setting_service_proto_rawDescGZIP() []byte { var file_api_v1_workspace_setting_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_api_v1_workspace_setting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_api_v1_workspace_setting_service_proto_goTypes = []interface{}{ +var file_api_v1_workspace_setting_service_proto_goTypes = []any{ (WorkspaceStorageSetting_StorageType)(0), // 0: memos.api.v1.WorkspaceStorageSetting.StorageType (*WorkspaceSetting)(nil), // 1: memos.api.v1.WorkspaceSetting (*WorkspaceGeneralSetting)(nil), // 2: memos.api.v1.WorkspaceGeneralSetting @@ -888,7 +864,7 @@ func file_api_v1_workspace_setting_service_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_api_v1_workspace_setting_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_workspace_setting_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*WorkspaceSetting); i { case 0: return &v.state @@ -900,7 +876,7 @@ func file_api_v1_workspace_setting_service_proto_init() { return nil } } - file_api_v1_workspace_setting_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_workspace_setting_service_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*WorkspaceGeneralSetting); i { case 0: return &v.state @@ -912,7 +888,7 @@ func file_api_v1_workspace_setting_service_proto_init() { return nil } } - file_api_v1_workspace_setting_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_workspace_setting_service_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*WorkspaceCustomProfile); i { case 0: return &v.state @@ -924,7 +900,7 @@ func file_api_v1_workspace_setting_service_proto_init() { return nil } } - file_api_v1_workspace_setting_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_workspace_setting_service_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*WorkspaceStorageSetting); i { case 0: return &v.state @@ -936,7 +912,7 @@ func file_api_v1_workspace_setting_service_proto_init() { return nil } } - file_api_v1_workspace_setting_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_workspace_setting_service_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*WorkspaceMemoRelatedSetting); i { case 0: return &v.state @@ -948,7 +924,7 @@ func file_api_v1_workspace_setting_service_proto_init() { return nil } } - file_api_v1_workspace_setting_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_workspace_setting_service_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*GetWorkspaceSettingRequest); i { case 0: return &v.state @@ -960,7 +936,7 @@ func file_api_v1_workspace_setting_service_proto_init() { return nil } } - file_api_v1_workspace_setting_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_workspace_setting_service_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*SetWorkspaceSettingRequest); i { case 0: return &v.state @@ -972,7 +948,7 @@ func file_api_v1_workspace_setting_service_proto_init() { return nil } } - file_api_v1_workspace_setting_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_api_v1_workspace_setting_service_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*WorkspaceStorageSetting_S3Config); i { case 0: return &v.state @@ -985,7 +961,7 @@ func file_api_v1_workspace_setting_service_proto_init() { } } } - file_api_v1_workspace_setting_service_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_api_v1_workspace_setting_service_proto_msgTypes[0].OneofWrappers = []any{ (*WorkspaceSetting_GeneralSetting)(nil), (*WorkspaceSetting_StorageSetting)(nil), (*WorkspaceSetting_MemoRelatedSetting)(nil), diff --git a/proto/gen/store/activity.pb.go b/proto/gen/store/activity.pb.go index 53f4ea53b..8844dbf42 100644 --- a/proto/gen/store/activity.pb.go +++ b/proto/gen/store/activity.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: store/activity.proto @@ -229,7 +229,7 @@ func file_store_activity_proto_rawDescGZIP() []byte { } var file_store_activity_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_store_activity_proto_goTypes = []interface{}{ +var file_store_activity_proto_goTypes = []any{ (*ActivityMemoCommentPayload)(nil), // 0: memos.store.ActivityMemoCommentPayload (*ActivityVersionUpdatePayload)(nil), // 1: memos.store.ActivityVersionUpdatePayload (*ActivityPayload)(nil), // 2: memos.store.ActivityPayload @@ -250,7 +250,7 @@ func file_store_activity_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_store_activity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_store_activity_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ActivityMemoCommentPayload); i { case 0: return &v.state @@ -262,7 +262,7 @@ func file_store_activity_proto_init() { return nil } } - file_store_activity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_store_activity_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ActivityVersionUpdatePayload); i { case 0: return &v.state @@ -274,7 +274,7 @@ func file_store_activity_proto_init() { return nil } } - file_store_activity_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_store_activity_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ActivityPayload); i { case 0: return &v.state diff --git a/proto/gen/store/idp.pb.go b/proto/gen/store/idp.pb.go index 3d4e4406c..6a48db97d 100644 --- a/proto/gen/store/idp.pb.go +++ b/proto/gen/store/idp.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: store/idp.proto @@ -447,7 +447,7 @@ func file_store_idp_proto_rawDescGZIP() []byte { var file_store_idp_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_store_idp_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_store_idp_proto_goTypes = []interface{}{ +var file_store_idp_proto_goTypes = []any{ (IdentityProvider_Type)(0), // 0: memos.store.IdentityProvider.Type (*IdentityProvider)(nil), // 1: memos.store.IdentityProvider (*IdentityProviderConfig)(nil), // 2: memos.store.IdentityProviderConfig @@ -472,7 +472,7 @@ func file_store_idp_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_store_idp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_store_idp_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*IdentityProvider); i { case 0: return &v.state @@ -484,7 +484,7 @@ func file_store_idp_proto_init() { return nil } } - file_store_idp_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_store_idp_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*IdentityProviderConfig); i { case 0: return &v.state @@ -496,7 +496,7 @@ func file_store_idp_proto_init() { return nil } } - file_store_idp_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_store_idp_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*FieldMapping); i { case 0: return &v.state @@ -508,7 +508,7 @@ func file_store_idp_proto_init() { return nil } } - file_store_idp_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_store_idp_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*OAuth2Config); i { case 0: return &v.state @@ -521,7 +521,7 @@ func file_store_idp_proto_init() { } } } - file_store_idp_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_store_idp_proto_msgTypes[1].OneofWrappers = []any{ (*IdentityProviderConfig_Oauth2Config)(nil), } type x struct{} diff --git a/proto/gen/store/inbox.pb.go b/proto/gen/store/inbox.pb.go index 1ee7bd856..6afd863dc 100644 --- a/proto/gen/store/inbox.pb.go +++ b/proto/gen/store/inbox.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: store/inbox.proto @@ -167,7 +167,7 @@ func file_store_inbox_proto_rawDescGZIP() []byte { var file_store_inbox_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_store_inbox_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_store_inbox_proto_goTypes = []interface{}{ +var file_store_inbox_proto_goTypes = []any{ (InboxMessage_Type)(0), // 0: memos.store.InboxMessage.Type (*InboxMessage)(nil), // 1: memos.store.InboxMessage } @@ -186,7 +186,7 @@ func file_store_inbox_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_store_inbox_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_store_inbox_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*InboxMessage); i { case 0: return &v.state @@ -199,7 +199,7 @@ func file_store_inbox_proto_init() { } } } - file_store_inbox_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_store_inbox_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/proto/gen/store/memo.pb.go b/proto/gen/store/memo.pb.go index baab5c0db..91f856a90 100644 --- a/proto/gen/store/memo.pb.go +++ b/proto/gen/store/memo.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: store/memo.proto @@ -193,7 +193,7 @@ func file_store_memo_proto_rawDescGZIP() []byte { } var file_store_memo_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_store_memo_proto_goTypes = []interface{}{ +var file_store_memo_proto_goTypes = []any{ (*MemoPayload)(nil), // 0: memos.store.MemoPayload (*MemoPayload_Property)(nil), // 1: memos.store.MemoPayload.Property } @@ -212,7 +212,7 @@ func file_store_memo_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_store_memo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_store_memo_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*MemoPayload); i { case 0: return &v.state @@ -224,7 +224,7 @@ func file_store_memo_proto_init() { return nil } } - file_store_memo_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_store_memo_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*MemoPayload_Property); i { case 0: return &v.state diff --git a/proto/gen/store/reaction.pb.go b/proto/gen/store/reaction.pb.go index 678f9d0ca..fb27fd1d9 100644 --- a/proto/gen/store/reaction.pb.go +++ b/proto/gen/store/reaction.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: store/reaction.proto @@ -144,7 +144,7 @@ func file_store_reaction_proto_rawDescGZIP() []byte { } var file_store_reaction_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_store_reaction_proto_goTypes = []interface{}{ +var file_store_reaction_proto_goTypes = []any{ (ReactionType)(0), // 0: memos.store.ReactionType } var file_store_reaction_proto_depIdxs = []int32{ diff --git a/proto/gen/store/resource.pb.go b/proto/gen/store/resource.pb.go index 8c1753a3c..e797e8b40 100644 --- a/proto/gen/store/resource.pb.go +++ b/proto/gen/store/resource.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: store/resource.proto @@ -264,7 +264,7 @@ func file_store_resource_proto_rawDescGZIP() []byte { var file_store_resource_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_store_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_store_resource_proto_goTypes = []interface{}{ +var file_store_resource_proto_goTypes = []any{ (ResourceStorageType)(0), // 0: memos.store.ResourceStorageType (*ResourcePayload)(nil), // 1: memos.store.ResourcePayload (*ResourcePayload_S3Object)(nil), // 2: memos.store.ResourcePayload.S3Object @@ -289,7 +289,7 @@ func file_store_resource_proto_init() { } file_store_workspace_setting_proto_init() if !protoimpl.UnsafeEnabled { - file_store_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_store_resource_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ResourcePayload); i { case 0: return &v.state @@ -301,7 +301,7 @@ func file_store_resource_proto_init() { return nil } } - file_store_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_store_resource_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ResourcePayload_S3Object); i { case 0: return &v.state @@ -314,7 +314,7 @@ func file_store_resource_proto_init() { } } } - file_store_resource_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_store_resource_proto_msgTypes[0].OneofWrappers = []any{ (*ResourcePayload_S3Object_)(nil), } type x struct{} diff --git a/proto/gen/store/user_setting.pb.go b/proto/gen/store/user_setting.pb.go index 78601fe65..cd3115a54 100644 --- a/proto/gen/store/user_setting.pb.go +++ b/proto/gen/store/user_setting.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: store/user_setting.proto @@ -379,7 +379,7 @@ func file_store_user_setting_proto_rawDescGZIP() []byte { var file_store_user_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_store_user_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_store_user_setting_proto_goTypes = []interface{}{ +var file_store_user_setting_proto_goTypes = []any{ (UserSettingKey)(0), // 0: memos.store.UserSettingKey (*UserSetting)(nil), // 1: memos.store.UserSetting (*AccessTokensUserSetting)(nil), // 2: memos.store.AccessTokensUserSetting @@ -402,7 +402,7 @@ func file_store_user_setting_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_store_user_setting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_store_user_setting_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*UserSetting); i { case 0: return &v.state @@ -414,7 +414,7 @@ func file_store_user_setting_proto_init() { return nil } } - file_store_user_setting_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_store_user_setting_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*AccessTokensUserSetting); i { case 0: return &v.state @@ -426,7 +426,7 @@ func file_store_user_setting_proto_init() { return nil } } - file_store_user_setting_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_store_user_setting_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*AccessTokensUserSetting_AccessToken); i { case 0: return &v.state @@ -439,7 +439,7 @@ func file_store_user_setting_proto_init() { } } } - file_store_user_setting_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_store_user_setting_proto_msgTypes[0].OneofWrappers = []any{ (*UserSetting_AccessTokens)(nil), (*UserSetting_Locale)(nil), (*UserSetting_Appearance)(nil), diff --git a/proto/gen/store/workspace_setting.pb.go b/proto/gen/store/workspace_setting.pb.go index 170b3b3bc..4119cc2b9 100644 --- a/proto/gen/store/workspace_setting.pb.go +++ b/proto/gen/store/workspace_setting.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: store/workspace_setting.proto @@ -303,10 +303,6 @@ type WorkspaceGeneralSetting struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // disallow_signup is the flag to disallow signup. - DisallowSignup bool `protobuf:"varint,1,opt,name=disallow_signup,json=disallowSignup,proto3" json:"disallow_signup,omitempty"` - // disallow_password_login is the flag to disallow password login. - DisallowPasswordLogin bool `protobuf:"varint,2,opt,name=disallow_password_login,json=disallowPasswordLogin,proto3" json:"disallow_password_login,omitempty"` // additional_script is the additional script. AdditionalScript string `protobuf:"bytes,3,opt,name=additional_script,json=additionalScript,proto3" json:"additional_script,omitempty"` // additional_style is the additional style. @@ -347,20 +343,6 @@ func (*WorkspaceGeneralSetting) Descriptor() ([]byte, []int) { return file_store_workspace_setting_proto_rawDescGZIP(), []int{2} } -func (x *WorkspaceGeneralSetting) GetDisallowSignup() bool { - if x != nil { - return x.DisallowSignup - } - return false -} - -func (x *WorkspaceGeneralSetting) GetDisallowPasswordLogin() bool { - if x != nil { - return x.DisallowPasswordLogin - } - return false -} - func (x *WorkspaceGeneralSetting) GetAdditionalScript() string { if x != nil { return x.AdditionalScript @@ -736,104 +718,98 @@ var file_store_workspace_setting_proto_rawDesc = []byte{ 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x42, 0x61, 0x73, 0x69, 0x63, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, - 0x79, 0x22, 0x9e, 0x02, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x27, 0x0a, - 0x0f, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x75, 0x70, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, - 0x53, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, - 0x6f, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x6c, 0x6f, 0x67, 0x69, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, - 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x2b, - 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x61, - 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x4a, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, - 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, - 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x6f, 0x5f, 0x75, 0x72, - 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x6f, 0x55, 0x72, 0x6c, - 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x65, - 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, - 0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xd5, 0x02, 0x0a, 0x17, 0x57, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, - 0x74, 0x69, 0x6e, 0x67, 0x12, 0x53, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x6d, 0x65, 0x6d, - 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, - 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x66, 0x69, 0x6c, - 0x65, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x54, 0x65, - 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, - 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x62, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x69, 0x7a, 0x65, - 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x4d, 0x62, 0x12, 0x39, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x65, 0x6d, - 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x22, 0x4c, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, - 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, - 0x05, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10, 0x03, - 0x22, 0xad, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x33, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, - 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x53, 0x65, - 0x63, 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, - 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, - 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, - 0x22, 0xa9, 0x02, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, - 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, - 0x12, 0x36, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x75, 0x62, - 0x6c, 0x69, 0x63, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x56, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x70, - 0x6c, 0x61, 0x79, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x70, - 0x6c, 0x61, 0x79, 0x57, 0x69, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, - 0x65, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x65, 0x6e, - 0x67, 0x74, 0x68, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x4c, 0x69, - 0x6d, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x75, - 0x74, 0x6f, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x6f, 0x6d, 0x70, - 0x61, 0x63, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x6f, - 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x6f, 0x75, - 0x62, 0x6c, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x64, 0x69, 0x74, 0x2a, 0x73, 0x0a, 0x13, - 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, - 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x21, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, - 0x5f, 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x41, - 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, - 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, - 0x10, 0x0a, 0x0c, 0x4d, 0x45, 0x4d, 0x4f, 0x5f, 0x52, 0x45, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, - 0x04, 0x42, 0xa0, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, - 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x4d, 0x53, 0x58, 0xaa, - 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0b, - 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x17, 0x4d, 0x65, - 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x53, - 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x79, 0x22, 0xbd, 0x01, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x2b, 0x0a, + 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x64, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x4a, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, + 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, + 0x6c, 0x65, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, + 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, + 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x6f, 0x5f, 0x75, 0x72, 0x6c, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x6f, 0x55, 0x72, 0x6c, 0x12, + 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x65, 0x61, + 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, + 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xd5, 0x02, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x12, 0x53, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, + 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x66, 0x69, 0x6c, 0x65, + 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x62, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x4c, + 0x69, 0x6d, 0x69, 0x74, 0x4d, 0x62, 0x12, 0x39, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, + 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, + 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x22, 0x4c, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, + 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, + 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10, 0x03, 0x22, + 0xad, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x33, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, + 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x63, + 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x22, + 0xa9, 0x02, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, + 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, + 0x36, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x56, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x70, 0x6c, + 0x61, 0x79, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x70, 0x6c, + 0x61, 0x79, 0x57, 0x69, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, + 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x65, 0x6e, 0x67, + 0x74, 0x68, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, + 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x4c, 0x69, 0x6d, + 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x75, 0x74, + 0x6f, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x6f, 0x6d, 0x70, 0x61, + 0x63, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x75, + 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x6f, 0x75, 0x62, + 0x6c, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x64, 0x69, 0x74, 0x2a, 0x73, 0x0a, 0x13, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x4b, + 0x65, 0x79, 0x12, 0x25, 0x0a, 0x21, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, + 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x41, 0x53, + 0x49, 0x43, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x10, + 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, 0x10, + 0x0a, 0x0c, 0x4d, 0x45, 0x4d, 0x4f, 0x5f, 0x52, 0x45, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x04, + 0x42, 0xa0, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x65, 0x42, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, + 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x4d, 0x53, 0x58, 0xaa, 0x02, + 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0b, 0x4d, + 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x17, 0x4d, 0x65, 0x6d, + 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, + 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -850,7 +826,7 @@ func file_store_workspace_setting_proto_rawDescGZIP() []byte { var file_store_workspace_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_store_workspace_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_store_workspace_setting_proto_goTypes = []interface{}{ +var file_store_workspace_setting_proto_goTypes = []any{ (WorkspaceSettingKey)(0), // 0: memos.store.WorkspaceSettingKey (WorkspaceStorageSetting_StorageType)(0), // 1: memos.store.WorkspaceStorageSetting.StorageType (*WorkspaceSetting)(nil), // 2: memos.store.WorkspaceSetting @@ -883,7 +859,7 @@ func file_store_workspace_setting_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_store_workspace_setting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_store_workspace_setting_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*WorkspaceSetting); i { case 0: return &v.state @@ -895,7 +871,7 @@ func file_store_workspace_setting_proto_init() { return nil } } - file_store_workspace_setting_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_store_workspace_setting_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*WorkspaceBasicSetting); i { case 0: return &v.state @@ -907,7 +883,7 @@ func file_store_workspace_setting_proto_init() { return nil } } - file_store_workspace_setting_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_store_workspace_setting_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*WorkspaceGeneralSetting); i { case 0: return &v.state @@ -919,7 +895,7 @@ func file_store_workspace_setting_proto_init() { return nil } } - file_store_workspace_setting_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_store_workspace_setting_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*WorkspaceCustomProfile); i { case 0: return &v.state @@ -931,7 +907,7 @@ func file_store_workspace_setting_proto_init() { return nil } } - file_store_workspace_setting_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_store_workspace_setting_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*WorkspaceStorageSetting); i { case 0: return &v.state @@ -943,7 +919,7 @@ func file_store_workspace_setting_proto_init() { return nil } } - file_store_workspace_setting_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_store_workspace_setting_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*StorageS3Config); i { case 0: return &v.state @@ -955,7 +931,7 @@ func file_store_workspace_setting_proto_init() { return nil } } - file_store_workspace_setting_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_store_workspace_setting_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*WorkspaceMemoRelatedSetting); i { case 0: return &v.state @@ -968,7 +944,7 @@ func file_store_workspace_setting_proto_init() { } } } - file_store_workspace_setting_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_store_workspace_setting_proto_msgTypes[0].OneofWrappers = []any{ (*WorkspaceSetting_BasicSetting)(nil), (*WorkspaceSetting_GeneralSetting)(nil), (*WorkspaceSetting_StorageSetting)(nil), diff --git a/proto/store/workspace_setting.proto b/proto/store/workspace_setting.proto index 22dd606fb..aed6d095c 100644 --- a/proto/store/workspace_setting.proto +++ b/proto/store/workspace_setting.proto @@ -31,10 +31,6 @@ message WorkspaceBasicSetting { } message WorkspaceGeneralSetting { - // disallow_signup is the flag to disallow signup. - bool disallow_signup = 1; - // disallow_password_login is the flag to disallow password login. - bool disallow_password_login = 2; // additional_script is the additional script. string additional_script = 3; // additional_style is the additional style. diff --git a/server/profile/profile.go b/server/profile/profile.go index 020dca782..55c14ea80 100644 --- a/server/profile/profile.go +++ b/server/profile/profile.go @@ -30,6 +30,8 @@ type Profile struct { Driver string `json:"-"` // Version is the current version of server Version string `json:"version"` + // Pubic is the flag whether the instance is public for others. + Public bool `json:"public"` } func (p *Profile) IsDev() bool { diff --git a/server/router/api/v1/auth_service.go b/server/router/api/v1/auth_service.go index 33676b995..3efad1dfb 100644 --- a/server/router/api/v1/auth_service.go +++ b/server/router/api/v1/auth_service.go @@ -167,11 +167,7 @@ func (s *APIV1Service) doSignIn(ctx context.Context, user *store.User, expireTim } func (s *APIV1Service) SignUp(ctx context.Context, request *v1pb.SignUpRequest) (*v1pb.User, error) { - workspaceGeneralSetting, err := s.Store.GetWorkspaceGeneralSetting(ctx) - if err != nil { - return nil, status.Errorf(codes.Internal, fmt.Sprintf("failed to get workspace setting, err: %s", err)) - } - if workspaceGeneralSetting.DisallowSignup || workspaceGeneralSetting.DisallowPasswordLogin { + if !s.Profile.Public { return nil, status.Errorf(codes.PermissionDenied, "sign up is not allowed") } diff --git a/server/router/api/v1/workspace_service.go b/server/router/api/v1/workspace_service.go index 9e94ee08c..3796d3f46 100644 --- a/server/router/api/v1/workspace_service.go +++ b/server/router/api/v1/workspace_service.go @@ -15,6 +15,7 @@ func (s *APIV1Service) GetWorkspaceProfile(ctx context.Context, _ *v1pb.GetWorks workspaceProfile := &v1pb.WorkspaceProfile{ Version: s.Profile.Version, Mode: s.Profile.Mode, + Public: s.Profile.Public, } owner, err := s.GetInstanceOwner(ctx) if err != nil { diff --git a/server/router/api/v1/workspace_setting_service.go b/server/router/api/v1/workspace_setting_service.go index c14ac0a0e..58e6f6a64 100644 --- a/server/router/api/v1/workspace_setting_service.go +++ b/server/router/api/v1/workspace_setting_service.go @@ -132,10 +132,8 @@ func convertWorkspaceGeneralSettingFromStore(setting *storepb.WorkspaceGeneralSe return nil } generalSetting := &v1pb.WorkspaceGeneralSetting{ - DisallowSignup: setting.DisallowSignup, - DisallowPasswordLogin: setting.DisallowPasswordLogin, - AdditionalScript: setting.AdditionalScript, - AdditionalStyle: setting.AdditionalStyle, + AdditionalScript: setting.AdditionalScript, + AdditionalStyle: setting.AdditionalStyle, } if setting.CustomProfile != nil { generalSetting.CustomProfile = &v1pb.WorkspaceCustomProfile{ @@ -154,10 +152,8 @@ func convertWorkspaceGeneralSettingToStore(setting *v1pb.WorkspaceGeneralSetting return nil } generalSetting := &storepb.WorkspaceGeneralSetting{ - DisallowSignup: setting.DisallowSignup, - DisallowPasswordLogin: setting.DisallowPasswordLogin, - AdditionalScript: setting.AdditionalScript, - AdditionalStyle: setting.AdditionalStyle, + AdditionalScript: setting.AdditionalScript, + AdditionalStyle: setting.AdditionalStyle, } if setting.CustomProfile != nil { generalSetting.CustomProfile = &storepb.WorkspaceCustomProfile{ diff --git a/test/store/workspace_setting_test.go b/test/store/workspace_setting_test.go index 59882946c..79b371569 100644 --- a/test/store/workspace_setting_test.go +++ b/test/store/workspace_setting_test.go @@ -17,7 +17,7 @@ func TestWorkspaceSettingV1Store(t *testing.T) { Key: storepb.WorkspaceSettingKey_GENERAL, Value: &storepb.WorkspaceSetting_GeneralSetting{ GeneralSetting: &storepb.WorkspaceGeneralSetting{ - DisallowSignup: true, + AdditionalScript: "", }, }, }) diff --git a/web/src/components/DisablePasswordLoginDialog.tsx b/web/src/components/DisablePasswordLoginDialog.tsx deleted file mode 100644 index fe8641978..000000000 --- a/web/src/components/DisablePasswordLoginDialog.tsx +++ /dev/null @@ -1,102 +0,0 @@ -import { Button, IconButton, Input } from "@mui/joy"; -import { useState } from "react"; -import { toast } from "react-hot-toast"; -import { WorkspaceSettingPrefix, useWorkspaceSettingStore } from "@/store/v1"; -import { WorkspaceGeneralSetting } from "@/types/proto/api/v1/workspace_setting_service"; -import { WorkspaceSettingKey } from "@/types/proto/store/workspace_setting"; -import { useTranslate } from "@/utils/i18n"; -import { generateDialog } from "./Dialog"; -import Icon from "./Icon"; - -type Props = DialogProps; - -interface State { - disablePasswordLogin: boolean; -} - -const DisablePasswordLoginDialog: React.FC = ({ destroy }: Props) => { - const t = useTranslate(); - const workspaceSettingStore = useWorkspaceSettingStore(); - const workspaceGeneralSetting = - workspaceSettingStore.getWorkspaceSettingByKey(WorkspaceSettingKey.GENERAL).generalSetting || WorkspaceGeneralSetting.fromPartial({}); - const [state, setState] = useState({ - disablePasswordLogin: workspaceGeneralSetting.disallowPasswordLogin, - }); - const [confirmedOnce, setConfirmedOnce] = useState(false); - const [typingConfirmation, setTypingConfirmation] = useState(""); - - const handleCloseBtnClick = () => { - destroy(); - }; - - const allowConfirmAction = () => { - return !confirmedOnce || typingConfirmation === "CONFIRM"; - }; - - const handleConfirmBtnClick = async () => { - if (!confirmedOnce) { - setConfirmedOnce(true); - } else { - setState({ ...state, disablePasswordLogin: true }); - try { - await workspaceSettingStore.setWorkspaceSetting({ - name: `${WorkspaceSettingPrefix}${WorkspaceSettingKey.GENERAL}`, - generalSetting: { - ...workspaceGeneralSetting, - disallowPasswordLogin: true, - }, - }); - handleCloseBtnClick(); - } catch (error: any) { - console.error(error); - toast.error(error.response.data.message); - } - } - }; - - const handleTypingConfirmationChanged = (e: React.ChangeEvent) => { - const text = e.target.value as string; - setTypingConfirmation(text); - }; - - return ( - <> -
-

{t("setting.system-section.disable-password-login")}

- - - -
-
- {confirmedOnce ? ( - <> -

{t("setting.system-section.disable-password-login-final-warning")}

- - - ) : ( -

{t("setting.system-section.disable-password-login-warning")}

- )} -
- - -
-
- - ); -}; - -function showDisablePasswordLoginDialog() { - generateDialog( - { - className: "disable-password-login-dialog", - dialogName: "disable-password-login-dialog", - }, - DisablePasswordLoginDialog, - ); -} - -export default showDisablePasswordLoginDialog; diff --git a/web/src/components/Settings/WorkspaceSection.tsx b/web/src/components/Settings/WorkspaceSection.tsx index 3a7e57817..ebba028b1 100644 --- a/web/src/components/Settings/WorkspaceSection.tsx +++ b/web/src/components/Settings/WorkspaceSection.tsx @@ -1,4 +1,4 @@ -import { Button, Switch, Textarea } from "@mui/joy"; +import { Button, Textarea } from "@mui/joy"; import { useState } from "react"; import { toast } from "react-hot-toast"; import { Link } from "react-router-dom"; @@ -7,7 +7,6 @@ import { WorkspaceSettingPrefix, useWorkspaceSettingStore } from "@/store/v1"; import { WorkspaceGeneralSetting } from "@/types/proto/api/v1/workspace_setting_service"; import { WorkspaceSettingKey } from "@/types/proto/store/workspace_setting"; import { useTranslate } from "@/utils/i18n"; -import { showCommonDialog } from "../Dialog/CommonDialog"; import Icon from "../Icon"; import showUpdateCustomizedProfileDialog from "../UpdateCustomizedProfileDialog"; @@ -18,43 +17,6 @@ const WorkspaceSection = () => { WorkspaceGeneralSetting.fromPartial(workspaceSettingStore.getWorkspaceSettingByKey(WorkspaceSettingKey.GENERAL)?.generalSetting || {}), ); - const handleAllowSignUpChanged = async (value: boolean) => { - const setting = { ...workspaceGeneralSetting, disallowSignup: !value }; - await workspaceSettingServiceClient.setWorkspaceSetting({ - setting: { - name: `${WorkspaceSettingPrefix}${WorkspaceSettingKey.GENERAL}`, - generalSetting: setting, - }, - }); - setWorkspaceGeneralSetting(setting); - }; - - const handleDisablePasswordLoginChanged = async (value: boolean) => { - const updateSetting = async () => { - const setting = { ...workspaceGeneralSetting, disallowPasswordLogin: value }; - await workspaceSettingServiceClient.setWorkspaceSetting({ - setting: { - name: `${WorkspaceSettingPrefix}${WorkspaceSettingKey.GENERAL}`, - generalSetting: setting, - }, - }); - setWorkspaceGeneralSetting(setting); - }; - if (value) { - showCommonDialog({ - title: "Confirm", - content: "Are you sure to disable password login?", - style: "danger", - dialogName: "disable-password-login-dialog", - onConfirm: async () => { - await updateSetting(); - }, - }); - } else { - await updateSetting(); - } - }; - const handleUpdateCustomizedProfileButtonClick = () => { showUpdateCustomizedProfileDialog(); }; @@ -110,17 +72,6 @@ const WorkspaceSection = () => {

General

-
- {t("setting.system-section.allow-user-signup")} - handleAllowSignUpChanged(event.target.checked)} /> -
-
- {t("setting.system-section.disable-password-login")} - handleDisablePasswordLoginChanged(event.target.checked)} - /> -
{t("setting.system-section.additional-style")} diff --git a/web/src/pages/SignIn.tsx b/web/src/pages/SignIn.tsx index 4b9cd3729..4155dae74 100644 --- a/web/src/pages/SignIn.tsx +++ b/web/src/pages/SignIn.tsx @@ -116,71 +116,67 @@ const SignIn = () => { {workspaceGeneralSetting.customProfile?.title || "Memos"}

- {!workspaceGeneralSetting.disallowPasswordLogin && ( - <> -
-
-
- {t("common.username")} - -
-
- {t("common.password")} - -
-
-
- setRemember(e.target.checked)} - /> -
-
- -
-
- {!workspaceGeneralSetting.disallowSignup && ( -

- {t("auth.sign-up-tip")} - - {t("common.sign-up")} - -

- )} - +
+
+
+ {t("common.username")} + +
+
+ {t("common.password")} + +
+
+
+ setRemember(e.target.checked)} + /> +
+
+ +
+
+ {commonContext.profile.public && ( +

+ {t("auth.sign-up-tip")} + + {t("common.sign-up")} + +

)} {identityProviderList.length > 0 && ( <> - {!workspaceGeneralSetting.disallowPasswordLogin && {t("common.or")}} + {t("common.or")}
{identityProviderList.map((identityProvider) => (