feat: add public flag instead of system setting to enable signup (#3589)

This commit is contained in:
Johnny 2024-06-19 22:03:12 +08:00 committed by GitHub
parent 387bf48fc8
commit 736637a362
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
36 changed files with 621 additions and 951 deletions

View File

@ -36,6 +36,7 @@ var (
data string data string
driver string driver string
dsn string dsn string
public bool
instanceProfile *profile.Profile instanceProfile *profile.Profile
rootCmd = &cobra.Command{ rootCmd = &cobra.Command{
@ -109,6 +110,7 @@ func init() {
rootCmd.PersistentFlags().StringVarP(&data, "data", "d", "", "data directory") rootCmd.PersistentFlags().StringVarP(&data, "data", "d", "", "data directory")
rootCmd.PersistentFlags().StringVarP(&driver, "driver", "", "", "database driver") rootCmd.PersistentFlags().StringVarP(&driver, "driver", "", "", "database driver")
rootCmd.PersistentFlags().StringVarP(&dsn, "dsn", "", "", "database source name(aka. DSN)") rootCmd.PersistentFlags().StringVarP(&dsn, "dsn", "", "", "database source name(aka. DSN)")
rootCmd.PersistentFlags().BoolVarP(&public, "public", "", true, "")
err := viper.BindPFlag("mode", rootCmd.PersistentFlags().Lookup("mode")) err := viper.BindPFlag("mode", rootCmd.PersistentFlags().Lookup("mode"))
if err != nil { if err != nil {
@ -134,11 +136,16 @@ func init() {
if err != nil { if err != nil {
panic(err) panic(err)
} }
err = viper.BindPFlag("public", rootCmd.PersistentFlags().Lookup("public"))
if err != nil {
panic(err)
}
viper.SetDefault("mode", "demo") viper.SetDefault("mode", "demo")
viper.SetDefault("driver", "sqlite") viper.SetDefault("driver", "sqlite")
viper.SetDefault("addr", "") viper.SetDefault("addr", "")
viper.SetDefault("port", 8081) viper.SetDefault("port", 8081)
viper.SetDefault("public", true)
viper.SetEnvPrefix("memos") viper.SetEnvPrefix("memos")
} }

View File

@ -301,16 +301,12 @@ paths:
type: integer type: integer
format: int32 format: int32
- name: pageToken - name: pageToken
description: |- description: "A page token, received from a previous `ListMemos` call.\r\nProvide this to retrieve the subsequent page."
A page token, received from a previous `ListMemos` call.
Provide this to retrieve the subsequent page.
in: query in: query
required: false required: false
type: string type: string
- name: filter - name: filter
description: |- description: "Filter is used to filter memos returned in the list.\r\nFormat: \"creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']\""
Filter is used to filter memos returned in the list.
Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
in: query in: query
required: false required: false
type: string type: string
@ -351,17 +347,12 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "name is the name of the user to get stats for.\r\nFormat: users/{id}"
name is the name of the user to get stats for.
Format: users/{id}
in: query in: query
required: false required: false
type: string type: string
- name: timezone - name: timezone
description: |- description: "timezone location\r\nFormat: uses tz identifier\r\nhttps://en.wikipedia.org/wiki/List_of_tz_database_time_zones"
timezone location
Format: uses tz identifier
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
in: query in: query
required: false required: false
type: string type: string
@ -408,9 +399,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: filter - name: filter
description: |- description: "Filter is used to filter memos returned.\r\nFormat: \"creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']\""
Filter is used to filter memos returned.
Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
in: query in: query
required: false required: false
type: string type: string
@ -543,9 +532,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: filter - name: filter
description: |- description: "Filter is used to filter users returned in the list.\r\nFormat: \"username == 'frank'\""
Filter is used to filter users returned in the list.
Format: "username == 'frank'"
in: query in: query
required: false required: false
type: string type: string
@ -706,9 +693,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The resource name of the workspace setting.\r\nFormat: settings/{setting}"
The resource name of the workspace setting.
Format: settings/{setting}
in: path in: path
required: true required: true
type: string type: string
@ -730,9 +715,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: setting.name - name: setting.name
description: |- description: "name is the name of the setting.\r\nFormat: settings/{setting}"
name is the name of the setting.
Format: settings/{setting}
in: path in: path
required: true required: true
type: string type: string
@ -768,9 +751,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: identityProvider.name - name: identityProvider.name
description: |- description: "The name of the identityProvider.\r\nFormat: identityProviders/{id}"
The name of the identityProvider.
Format: identityProviders/{id}
in: path in: path
required: true required: true
type: string type: string
@ -808,9 +789,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: inbox.name - name: inbox.name
description: |- description: "The name of the inbox.\r\nFormat: inboxes/{id}"
The name of the inbox.
Format: inboxes/{id}
in: path in: path
required: true required: true
type: string type: string
@ -854,10 +833,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: memo.name - name: memo.name
description: |- description: "The name of the memo.\r\nFormat: memos/{id}\r\nid is the system generated id."
The name of the memo.
Format: memos/{id}
id is the system generated id.
in: path in: path
required: true required: true
type: string type: string
@ -875,9 +851,7 @@ paths:
$ref: '#/definitions/v1RowStatus' $ref: '#/definitions/v1RowStatus'
creator: creator:
type: string type: string
title: |- title: "The name of the creator.\r\nFormat: users/{id}"
The name of the creator.
Format: users/{id}
createTime: createTime:
type: string type: string
format: date-time format: date-time
@ -930,9 +904,7 @@ paths:
readOnly: true readOnly: true
parent: parent:
type: string type: string
title: |- title: "The name of the parent memo.\r\nFormat: memos/{id}"
The name of the parent memo.
Format: memos/{id}
readOnly: true readOnly: true
tags: tags:
- MemoService - MemoService
@ -951,9 +923,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name_1 - name: name_1
description: |- description: "The name of the identityProvider to get.\r\nFormat: identityProviders/{id}"
The name of the identityProvider to get.
Format: identityProviders/{id}
in: path in: path
required: true required: true
type: string type: string
@ -975,9 +945,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name_1 - name: name_1
description: |- description: "The name of the identityProvider to delete.\r\nFormat: identityProviders/{id}"
The name of the identityProvider to delete.
Format: identityProviders/{id}
in: path in: path
required: true required: true
type: string type: string
@ -999,10 +967,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name_2 - name: name_2
description: |- description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier."
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
in: path in: path
required: true required: true
type: string type: string
@ -1024,9 +989,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name_2 - name: name_2
description: |- description: "The name of the inbox to delete.\r\nFormat: inboxes/{id}"
The name of the inbox to delete.
Format: inboxes/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1048,9 +1011,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name_3 - name: name_3
description: |- description: "The name of the memo.\r\nFormat: memos/{id}"
The name of the memo.
Format: memos/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1072,10 +1033,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name_3 - name: name_3
description: |- description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier."
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
in: path in: path
required: true required: true
type: string type: string
@ -1098,9 +1056,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name_4 - name: name_4
description: |- description: "The name of the memo.\r\nFormat: memos/{id}"
The name of the memo.
Format: memos/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1122,9 +1078,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the user.\r\nFormat: users/{id}"
The name of the user.
Format: users/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1146,9 +1100,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the user.\r\nFormat: users/{id}"
The name of the user.
Format: users/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1170,9 +1122,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the user.\r\nFormat: users/{id}"
The name of the user.
Format: users/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1193,9 +1143,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the user.\r\nFormat: users/{id}"
The name of the user.
Format: users/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1223,9 +1171,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the user.\r\nFormat: users/{id}"
The name of the user.
Format: users/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1252,9 +1198,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the memo.\r\nFormat: memos/{id}"
The name of the memo.
Format: memos/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1275,9 +1219,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the memo.\r\nFormat: memos/{id}"
The name of the memo.
Format: memos/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1304,9 +1246,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the memo.\r\nFormat: memos/{id}. Use \"memos/-\" to list all properties."
The name of the memo.
Format: memos/{id}. Use "memos/-" to list all properties.
in: path in: path
required: true required: true
type: string type: string
@ -1329,9 +1269,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the memo.\r\nFormat: memos/{id}. Use \"memos/-\" to rebuild all memos."
The name of the memo.
Format: memos/{id}. Use "memos/-" to rebuild all memos.
in: path in: path
required: true required: true
type: string type: string
@ -1358,9 +1296,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the memo.\r\nFormat: memos/{id}"
The name of the memo.
Format: memos/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1381,9 +1317,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the memo.\r\nFormat: memos/{id}"
The name of the memo.
Format: memos/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1410,9 +1344,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the memo.\r\nFormat: memos/{id}"
The name of the memo.
Format: memos/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1434,9 +1366,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the memo.\r\nFormat: memos/{id}"
The name of the memo.
Format: memos/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1463,9 +1393,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the memo.\r\nFormat: memos/{id}"
The name of the memo.
Format: memos/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1487,9 +1415,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the memo.\r\nFormat: memos/{id}"
The name of the memo.
Format: memos/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1516,9 +1442,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the user.\r\nFormat: users/{id}"
The name of the user.
Format: users/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1540,17 +1464,13 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: parent - name: parent
description: |- description: "The parent, who owns the tags.\r\nFormat: memos/{id}. Use \"memos/-\" to list all tags."
The parent, who owns the tags.
Format: memos/{id}. Use "memos/-" to list all tags.
in: path in: path
required: true required: true
type: string type: string
pattern: memos/[^/]+ pattern: memos/[^/]+
- name: filter - name: filter
description: |- description: "Filter is used to filter memos.\r\nFormat: \"creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']\""
Filter is used to filter memos.
Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
in: query in: query
required: false required: false
type: string type: string
@ -1572,9 +1492,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: parent - name: parent
description: |- description: "The parent, who owns the tags.\r\nFormat: memos/{id}. Use \"memos/-\" to delete all tags."
The parent, who owns the tags.
Format: memos/{id}. Use "memos/-" to delete all tags.
in: path in: path
required: true required: true
type: string type: string
@ -1605,9 +1523,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: parent - name: parent
description: |- description: "The parent, who owns the tags.\r\nFormat: memos/{id}. Use \"memos/-\" to rename all tags."
The parent, who owns the tags.
Format: memos/{id}. Use "memos/-" to rename all tags.
in: path in: path
required: true required: true
type: string type: string
@ -1634,10 +1550,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: resource.name - name: resource.name
description: |- description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier."
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
in: path in: path
required: true required: true
type: string type: string
@ -1669,9 +1582,7 @@ paths:
format: int64 format: int64
memo: memo:
type: string type: string
title: |- title: "The related memo.\r\nFormat: memos/{id}"
The related memo.
Format: memos/{id}
tags: tags:
- ResourceService - ResourceService
/api/v1/{setting.name}: /api/v1/{setting.name}:
@ -1689,9 +1600,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: setting.name - name: setting.name
description: |- description: "The name of the user.\r\nFormat: users/{id}"
The name of the user.
Format: users/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1728,9 +1637,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: user.name - name: user.name
description: |- description: "The name of the user.\r\nFormat: users/{id}"
The name of the user.
Format: users/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1784,9 +1691,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the user.\r\nFormat: users/{id}"
The name of the user.
Format: users/{id}
in: path in: path
required: true required: true
type: string type: string
@ -1819,10 +1724,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: name - name: name
description: |- description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier."
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
in: path in: path
required: true required: true
type: string type: string
@ -2003,9 +1905,7 @@ definitions:
properties: properties:
name: name:
type: string type: string
title: |- title: "The name of the identityProvider.\r\nFormat: identityProviders/{id}"
The name of the identityProvider.
Format: identityProviders/{id}
type: type:
$ref: '#/definitions/apiv1IdentityProviderType' $ref: '#/definitions/apiv1IdentityProviderType'
title: title:
@ -2049,9 +1949,7 @@ definitions:
properties: properties:
name: name:
type: string type: string
title: |- title: "The name of the user.\r\nFormat: users/{id}"
The name of the user.
Format: users/{id}
locale: locale:
type: string type: string
description: The preferred locale of the user. description: The preferred locale of the user.
@ -2077,12 +1975,6 @@ definitions:
apiv1WorkspaceGeneralSetting: apiv1WorkspaceGeneralSetting:
type: object type: object
properties: 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: additionalScript:
type: string type: string
description: additional_script is the additional script. description: additional_script is the additional script.
@ -2116,9 +2008,7 @@ definitions:
properties: properties:
name: name:
type: string type: string
title: |- title: "name is the name of the setting.\r\nFormat: settings/{setting}"
name is the name of the setting.
Format: settings/{setting}
generalSetting: generalSetting:
$ref: '#/definitions/apiv1WorkspaceGeneralSetting' $ref: '#/definitions/apiv1WorkspaceGeneralSetting'
storageSetting: storageSetting:
@ -2133,9 +2023,7 @@ definitions:
description: storage_type is the storage type. description: storage_type is the storage type.
filepathTemplate: filepathTemplate:
type: string type: string
title: |- title: "The template of file path.\r\ne.g. assets/{timestamp}_{filename}"
The template of file path.
e.g. assets/{timestamp}_{filename}
uploadSizeLimitMb: uploadSizeLimitMb:
type: string type: string
format: int64 format: int64
@ -2197,7 +2085,8 @@ definitions:
Note: this functionality is not currently available in the official Note: this functionality is not currently available in the official
protobuf release, and it is not used for type URLs beginning with 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 Schemes other than `http`, `https` (or the empty scheme) might be
used with implementation specific semantics. used with implementation specific semantics.
@ -2232,7 +2121,7 @@ definitions:
foo = any.unpack(Foo.getDefaultInstance()); 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(...) foo = Foo(...)
any = Any() any = Any()
@ -2242,7 +2131,7 @@ definitions:
any.Unpack(foo) any.Unpack(foo)
... ...
Example 4: Pack and unpack a message in Go Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...} foo := &pb.Foo{...}
any, err := anypb.New(foo) any, err := anypb.New(foo)
@ -2262,7 +2151,7 @@ definitions:
name "y.z". name "y.z".
JSON JSON
====
The JSON representation of an `Any` value uses the regular The JSON representation of an `Any` value uses the regular
representation of the deserialized, embedded message, with an representation of the deserialized, embedded message, with an
additional field `@type` which contains the type URL. Example: additional field `@type` which contains the type URL. Example:
@ -2403,9 +2292,7 @@ definitions:
additionalProperties: additionalProperties:
type: integer type: integer
format: int32 format: int32
description: |- description: "stats is the stats of memo creating/updating activities.\r\nkey is the year-month-day string. e.g. \"2020-01-01\"."
stats is the stats of memo creating/updating activities.
key is the year-month-day string. e.g. "2020-01-01".
v1HeadingNode: v1HeadingNode:
type: object type: object
properties: properties:
@ -2439,9 +2326,7 @@ definitions:
properties: properties:
name: name:
type: string type: string
title: |- title: "The name of the inbox.\r\nFormat: inboxes/{id}"
The name of the inbox.
Format: inboxes/{id}
sender: sender:
type: string type: string
title: 'Format: users/{id}' title: 'Format: users/{id}'
@ -2561,10 +2446,7 @@ definitions:
additionalProperties: additionalProperties:
type: integer type: integer
format: int32 format: int32
description: |- 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."
tag_amounts is the amount of tags.
key is the tag name. e.g. "tag1".
value is the amount of the tag.
v1ListMemosResponse: v1ListMemosResponse:
type: object type: object
properties: properties:
@ -2575,9 +2457,7 @@ definitions:
$ref: '#/definitions/v1Memo' $ref: '#/definitions/v1Memo'
nextPageToken: nextPageToken:
type: string type: string
description: |- 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."
A token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages.
v1ListResourcesResponse: v1ListResourcesResponse:
type: object type: object
properties: properties:
@ -2625,10 +2505,7 @@ definitions:
properties: properties:
name: name:
type: string type: string
description: |- description: "The name of the memo.\r\nFormat: memos/{id}\r\nid is the system generated id."
The name of the memo.
Format: memos/{id}
id is the system generated id.
uid: uid:
type: string type: string
description: The user defined id of the memo. description: The user defined id of the memo.
@ -2636,9 +2513,7 @@ definitions:
$ref: '#/definitions/v1RowStatus' $ref: '#/definitions/v1RowStatus'
creator: creator:
type: string type: string
title: |- title: "The name of the creator.\r\nFormat: users/{id}"
The name of the creator.
Format: users/{id}
createTime: createTime:
type: string type: string
format: date-time format: date-time
@ -2691,9 +2566,7 @@ definitions:
readOnly: true readOnly: true
parent: parent:
type: string type: string
title: |- title: "The name of the parent memo.\r\nFormat: memos/{id}"
The name of the parent memo.
Format: memos/{id}
readOnly: true readOnly: true
v1MemoProperty: v1MemoProperty:
type: object type: object
@ -2715,14 +2588,10 @@ definitions:
properties: properties:
memo: memo:
type: string type: string
title: |- title: "The name of memo.\r\nFormat: \"memos/{uid}\""
The name of memo.
Format: "memos/{uid}"
relatedMemo: relatedMemo:
type: string type: string
title: |- title: "The name of related memo.\r\nFormat: \"memos/{uid}\""
The name of related memo.
Format: "memos/{uid}"
type: type:
$ref: '#/definitions/v1MemoRelationType' $ref: '#/definitions/v1MemoRelationType'
v1MemoRelationType: v1MemoRelationType:
@ -2871,9 +2740,7 @@ definitions:
format: int32 format: int32
creator: creator:
type: string type: string
title: |- title: "The name of the creator.\r\nFormat: users/{id}"
The name of the creator.
Format: users/{id}
contentId: contentId:
type: string type: string
reactionType: reactionType:
@ -2907,10 +2774,7 @@ definitions:
properties: properties:
name: name:
type: string type: string
description: |- description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier."
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
uid: uid:
type: string type: string
description: The user defined id of the resource. description: The user defined id of the resource.
@ -2932,9 +2796,7 @@ definitions:
format: int64 format: int64
memo: memo:
type: string type: string
title: |- title: "The related memo.\r\nFormat: memos/{id}"
The related memo.
Format: memos/{id}
v1RestoreMarkdownRequest: v1RestoreMarkdownRequest:
type: object type: object
properties: properties:
@ -3058,9 +2920,7 @@ definitions:
properties: properties:
name: name:
type: string type: string
title: |- title: "The name of the user.\r\nFormat: users/{id}"
The name of the user.
Format: users/{id}
id: id:
type: integer type: integer
format: int32 format: int32
@ -3134,12 +2994,13 @@ definitions:
properties: properties:
owner: owner:
type: string type: string
title: |- title: "The name of instance owner.\r\nFormat: \"users/{id}\""
The name of instance owner.
Format: "users/{id}"
version: version:
type: string type: string
title: version is the current version of instance title: version is the current version of instance
mode: mode:
type: string type: string
description: mode is the instance mode (e.g. "prod", "dev" or "demo"). 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.

View File

@ -21,6 +21,8 @@ message WorkspaceProfile {
string version = 2; string version = 2;
// mode is the instance mode (e.g. "prod", "dev" or "demo"). // mode is the instance mode (e.g. "prod", "dev" or "demo").
string mode = 3; string mode = 3;
// public is a flag that the instance is open for other users.
bool public = 4;
} }
message GetWorkspaceProfileRequest {} message GetWorkspaceProfileRequest {}

View File

@ -36,10 +36,6 @@ message WorkspaceSetting {
} }
message WorkspaceGeneralSetting { 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. // additional_script is the additional script.
string additional_script = 3; string additional_script = 3;
// additional_style is the additional style. // additional_style is the additional style.

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/activity_service.proto // 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_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 (*Activity)(nil), // 0: memos.api.v1.Activity
(*ActivityMemoCommentPayload)(nil), // 1: memos.api.v1.ActivityMemoCommentPayload (*ActivityMemoCommentPayload)(nil), // 1: memos.api.v1.ActivityMemoCommentPayload
(*ActivityVersionUpdatePayload)(nil), // 2: memos.api.v1.ActivityVersionUpdatePayload (*ActivityVersionUpdatePayload)(nil), // 2: memos.api.v1.ActivityVersionUpdatePayload
@ -438,7 +438,7 @@ func file_api_v1_activity_service_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*Activity); i {
case 0: case 0:
return &v.state return &v.state
@ -450,7 +450,7 @@ func file_api_v1_activity_service_proto_init() {
return nil 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 { switch v := v.(*ActivityMemoCommentPayload); i {
case 0: case 0:
return &v.state return &v.state
@ -462,7 +462,7 @@ func file_api_v1_activity_service_proto_init() {
return nil 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 { switch v := v.(*ActivityVersionUpdatePayload); i {
case 0: case 0:
return &v.state return &v.state
@ -474,7 +474,7 @@ func file_api_v1_activity_service_proto_init() {
return nil 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 { switch v := v.(*ActivityPayload); i {
case 0: case 0:
return &v.state return &v.state
@ -486,7 +486,7 @@ func file_api_v1_activity_service_proto_init() {
return nil 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 { switch v := v.(*GetActivityRequest); i {
case 0: case 0:
return &v.state return &v.state

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/auth_service.proto // 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_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 (*GetAuthStatusRequest)(nil), // 0: memos.api.v1.GetAuthStatusRequest
(*GetAuthStatusResponse)(nil), // 1: memos.api.v1.GetAuthStatusResponse (*GetAuthStatusResponse)(nil), // 1: memos.api.v1.GetAuthStatusResponse
(*SignInRequest)(nil), // 2: memos.api.v1.SignInRequest (*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() file_api_v1_user_service_proto_init()
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*GetAuthStatusRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -475,7 +475,7 @@ func file_api_v1_auth_service_proto_init() {
return nil 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 { switch v := v.(*GetAuthStatusResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -487,7 +487,7 @@ func file_api_v1_auth_service_proto_init() {
return nil 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 { switch v := v.(*SignInRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -499,7 +499,7 @@ func file_api_v1_auth_service_proto_init() {
return nil 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 { switch v := v.(*SignInWithSSORequest); i {
case 0: case 0:
return &v.state return &v.state
@ -511,7 +511,7 @@ func file_api_v1_auth_service_proto_init() {
return nil 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 { switch v := v.(*SignUpRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -523,7 +523,7 @@ func file_api_v1_auth_service_proto_init() {
return nil 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 { switch v := v.(*SignOutRequest); i {
case 0: case 0:
return &v.state return &v.state

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/common.proto // 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_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_api_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 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 (RowStatus)(0), // 0: memos.api.v1.RowStatus
(*PageToken)(nil), // 1: memos.api.v1.PageToken (*PageToken)(nil), // 1: memos.api.v1.PageToken
} }
@ -183,7 +183,7 @@ func file_api_v1_common_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*PageToken); i {
case 0: case 0:
return &v.state return &v.state

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/idp_service.proto // 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_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_api_v1_idp_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10) 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_Type)(0), // 0: memos.api.v1.IdentityProvider.Type
(*IdentityProvider)(nil), // 1: memos.api.v1.IdentityProvider (*IdentityProvider)(nil), // 1: memos.api.v1.IdentityProvider
(*IdentityProviderConfig)(nil), // 2: memos.api.v1.IdentityProviderConfig (*IdentityProviderConfig)(nil), // 2: memos.api.v1.IdentityProviderConfig
@ -884,7 +884,7 @@ func file_api_v1_idp_service_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*IdentityProvider); i {
case 0: case 0:
return &v.state return &v.state
@ -896,7 +896,7 @@ func file_api_v1_idp_service_proto_init() {
return nil 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 { switch v := v.(*IdentityProviderConfig); i {
case 0: case 0:
return &v.state return &v.state
@ -908,7 +908,7 @@ func file_api_v1_idp_service_proto_init() {
return nil 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 { switch v := v.(*FieldMapping); i {
case 0: case 0:
return &v.state return &v.state
@ -920,7 +920,7 @@ func file_api_v1_idp_service_proto_init() {
return nil 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 { switch v := v.(*OAuth2Config); i {
case 0: case 0:
return &v.state return &v.state
@ -932,7 +932,7 @@ func file_api_v1_idp_service_proto_init() {
return nil 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 { switch v := v.(*ListIdentityProvidersRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -944,7 +944,7 @@ func file_api_v1_idp_service_proto_init() {
return nil 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 { switch v := v.(*ListIdentityProvidersResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -956,7 +956,7 @@ func file_api_v1_idp_service_proto_init() {
return nil 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 { switch v := v.(*GetIdentityProviderRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -968,7 +968,7 @@ func file_api_v1_idp_service_proto_init() {
return nil 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 { switch v := v.(*CreateIdentityProviderRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -980,7 +980,7 @@ func file_api_v1_idp_service_proto_init() {
return nil 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 { switch v := v.(*UpdateIdentityProviderRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -992,7 +992,7 @@ func file_api_v1_idp_service_proto_init() {
return nil 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 { switch v := v.(*DeleteIdentityProviderRequest); i {
case 0: case 0:
return &v.state 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), (*IdentityProviderConfig_Oauth2Config)(nil),
} }
type x struct{} type x struct{}

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/inbox_service.proto // 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_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_api_v1_inbox_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 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_Status)(0), // 0: memos.api.v1.Inbox.Status
(Inbox_Type)(0), // 1: memos.api.v1.Inbox.Type (Inbox_Type)(0), // 1: memos.api.v1.Inbox.Type
(*Inbox)(nil), // 2: memos.api.v1.Inbox (*Inbox)(nil), // 2: memos.api.v1.Inbox
@ -568,7 +568,7 @@ func file_api_v1_inbox_service_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*Inbox); i {
case 0: case 0:
return &v.state return &v.state
@ -580,7 +580,7 @@ func file_api_v1_inbox_service_proto_init() {
return nil 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 { switch v := v.(*ListInboxesRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -592,7 +592,7 @@ func file_api_v1_inbox_service_proto_init() {
return nil 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 { switch v := v.(*ListInboxesResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -604,7 +604,7 @@ func file_api_v1_inbox_service_proto_init() {
return nil 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 { switch v := v.(*UpdateInboxRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -616,7 +616,7 @@ func file_api_v1_inbox_service_proto_init() {
return nil 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 { switch v := v.(*DeleteInboxRequest); i {
case 0: case 0:
return &v.state 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{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/markdown_service.proto // 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_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_api_v1_markdown_service_proto_msgTypes = make([]protoimpl.MessageInfo, 37) 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 (NodeType)(0), // 0: memos.api.v1.NodeType
(*ParseMarkdownRequest)(nil), // 1: memos.api.v1.ParseMarkdownRequest (*ParseMarkdownRequest)(nil), // 1: memos.api.v1.ParseMarkdownRequest
(*ParseMarkdownResponse)(nil), // 2: memos.api.v1.ParseMarkdownResponse (*ParseMarkdownResponse)(nil), // 2: memos.api.v1.ParseMarkdownResponse
@ -2932,7 +2932,7 @@ func file_api_v1_markdown_service_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*ParseMarkdownRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2944,7 +2944,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*ParseMarkdownResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -2956,7 +2956,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*RestoreMarkdownRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2968,7 +2968,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*RestoreMarkdownResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -2980,7 +2980,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*GetLinkMetadataRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2992,7 +2992,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*LinkMetadata); i {
case 0: case 0:
return &v.state return &v.state
@ -3004,7 +3004,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*Node); i {
case 0: case 0:
return &v.state return &v.state
@ -3016,7 +3016,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*LineBreakNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3028,7 +3028,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*ParagraphNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3040,7 +3040,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*CodeBlockNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3052,7 +3052,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*HeadingNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3064,7 +3064,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*HorizontalRuleNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3076,7 +3076,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*BlockquoteNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3088,7 +3088,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*OrderedListNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3100,7 +3100,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*UnorderedListNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3112,7 +3112,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*TaskListNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3124,7 +3124,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*MathBlockNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3136,7 +3136,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*TableNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3148,7 +3148,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*EmbeddedContentNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3160,7 +3160,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*TextNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3172,7 +3172,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*BoldNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3184,7 +3184,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*ItalicNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3196,7 +3196,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*BoldItalicNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3208,7 +3208,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*CodeNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3220,7 +3220,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*ImageNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3232,7 +3232,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*LinkNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3244,7 +3244,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*AutoLinkNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3256,7 +3256,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*TagNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3268,7 +3268,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*StrikethroughNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3280,7 +3280,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*EscapingCharacterNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3292,7 +3292,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*MathNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3304,7 +3304,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*HighlightNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3316,7 +3316,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*SubscriptNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3328,7 +3328,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*SuperscriptNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3340,7 +3340,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*ReferencedContentNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3352,7 +3352,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*SpoilerNode); i {
case 0: case 0:
return &v.state return &v.state
@ -3364,7 +3364,7 @@ func file_api_v1_markdown_service_proto_init() {
return nil 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 { switch v := v.(*TableNode_Row); i {
case 0: case 0:
return &v.state 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_LineBreakNode)(nil),
(*Node_ParagraphNode)(nil), (*Node_ParagraphNode)(nil),
(*Node_CodeBlockNode)(nil), (*Node_CodeBlockNode)(nil),

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/memo_relation_service.proto // 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_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_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_Type)(0), // 0: memos.api.v1.MemoRelation.Type
(*MemoRelation)(nil), // 1: memos.api.v1.MemoRelation (*MemoRelation)(nil), // 1: memos.api.v1.MemoRelation
} }
@ -201,7 +201,7 @@ func file_api_v1_memo_relation_service_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*MemoRelation); i {
case 0: case 0:
return &v.state return &v.state

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/memo_service.proto // 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_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_api_v1_memo_service_proto_msgTypes = make([]protoimpl.MessageInfo, 36) 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 (Visibility)(0), // 0: memos.api.v1.Visibility
(*Memo)(nil), // 1: memos.api.v1.Memo (*Memo)(nil), // 1: memos.api.v1.Memo
(*MemoProperty)(nil), // 2: memos.api.v1.MemoProperty (*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_reaction_service_proto_init()
file_api_v1_resource_service_proto_init() file_api_v1_resource_service_proto_init()
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*Memo); i {
case 0: case 0:
return &v.state return &v.state
@ -2648,7 +2648,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*MemoProperty); i {
case 0: case 0:
return &v.state return &v.state
@ -2660,7 +2660,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*CreateMemoRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2672,7 +2672,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemosRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2684,7 +2684,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemosResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -2696,7 +2696,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*SearchMemosRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2708,7 +2708,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*SearchMemosResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -2720,7 +2720,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*GetMemoRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2732,7 +2732,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*UpdateMemoRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2744,7 +2744,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*DeleteMemoRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2756,7 +2756,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ExportMemosRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2768,7 +2768,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ExportMemosResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -2780,7 +2780,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemoPropertiesRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2792,7 +2792,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemoPropertiesResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -2804,7 +2804,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*RebuildMemoPropertyRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2816,7 +2816,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemoTagsRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2828,7 +2828,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemoTagsResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -2840,7 +2840,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*RenameMemoTagRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2852,7 +2852,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*DeleteMemoTagRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2864,7 +2864,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*SetMemoResourcesRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2876,7 +2876,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemoResourcesRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2888,7 +2888,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemoResourcesResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -2900,7 +2900,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*SetMemoRelationsRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2912,7 +2912,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemoRelationsRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2924,7 +2924,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemoRelationsResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -2936,7 +2936,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*CreateMemoCommentRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2948,7 +2948,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemoCommentsRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2960,7 +2960,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemoCommentsResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -2972,7 +2972,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*GetUserMemosStatsRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -2984,7 +2984,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*GetUserMemosStatsResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -2996,7 +2996,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemoReactionsRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -3008,7 +3008,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*ListMemoReactionsResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -3020,7 +3020,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*UpsertMemoReactionRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -3032,7 +3032,7 @@ func file_api_v1_memo_service_proto_init() {
return nil 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 { switch v := v.(*DeleteMemoReactionRequest); i {
case 0: case 0:
return &v.state 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{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/reaction_service.proto // 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_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_api_v1_reaction_service_proto_msgTypes = make([]protoimpl.MessageInfo, 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_Type)(0), // 0: memos.api.v1.Reaction.Type
(*Reaction)(nil), // 1: memos.api.v1.Reaction (*Reaction)(nil), // 1: memos.api.v1.Reaction
} }
@ -247,7 +247,7 @@ func file_api_v1_reaction_service_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*Reaction); i {
case 0: case 0:
return &v.state return &v.state

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/resource_service.proto // 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_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 (*Resource)(nil), // 0: memos.api.v1.Resource
(*CreateResourceRequest)(nil), // 1: memos.api.v1.CreateResourceRequest (*CreateResourceRequest)(nil), // 1: memos.api.v1.CreateResourceRequest
(*ListResourcesRequest)(nil), // 2: memos.api.v1.ListResourcesRequest (*ListResourcesRequest)(nil), // 2: memos.api.v1.ListResourcesRequest
@ -792,7 +792,7 @@ func file_api_v1_resource_service_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*Resource); i {
case 0: case 0:
return &v.state return &v.state
@ -804,7 +804,7 @@ func file_api_v1_resource_service_proto_init() {
return nil 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 { switch v := v.(*CreateResourceRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -816,7 +816,7 @@ func file_api_v1_resource_service_proto_init() {
return nil 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 { switch v := v.(*ListResourcesRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -828,7 +828,7 @@ func file_api_v1_resource_service_proto_init() {
return nil 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 { switch v := v.(*ListResourcesResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -840,7 +840,7 @@ func file_api_v1_resource_service_proto_init() {
return nil 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 { switch v := v.(*SearchResourcesRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -852,7 +852,7 @@ func file_api_v1_resource_service_proto_init() {
return nil 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 { switch v := v.(*SearchResourcesResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -864,7 +864,7 @@ func file_api_v1_resource_service_proto_init() {
return nil 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 { switch v := v.(*GetResourceRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -876,7 +876,7 @@ func file_api_v1_resource_service_proto_init() {
return nil 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 { switch v := v.(*GetResourceBinaryRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -888,7 +888,7 @@ func file_api_v1_resource_service_proto_init() {
return nil 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 { switch v := v.(*UpdateResourceRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -900,7 +900,7 @@ func file_api_v1_resource_service_proto_init() {
return nil 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 { switch v := v.(*DeleteResourceRequest); i {
case 0: case 0:
return &v.state 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{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/user_service.proto // 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_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_api_v1_user_service_proto_msgTypes = make([]protoimpl.MessageInfo, 18) 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_Role)(0), // 0: memos.api.v1.User.Role
(*User)(nil), // 1: memos.api.v1.User (*User)(nil), // 1: memos.api.v1.User
(*ListUsersRequest)(nil), // 2: memos.api.v1.ListUsersRequest (*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() file_api_v1_common_proto_init()
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*User); i {
case 0: case 0:
return &v.state return &v.state
@ -1490,7 +1490,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*ListUsersRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1502,7 +1502,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*ListUsersResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -1514,7 +1514,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*SearchUsersRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1526,7 +1526,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*SearchUsersResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -1538,7 +1538,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*GetUserRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1550,7 +1550,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*GetUserAvatarBinaryRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1562,7 +1562,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*CreateUserRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1574,7 +1574,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*UpdateUserRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1586,7 +1586,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*DeleteUserRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1598,7 +1598,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*UserSetting); i {
case 0: case 0:
return &v.state return &v.state
@ -1610,7 +1610,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*GetUserSettingRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1622,7 +1622,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*UpdateUserSettingRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1634,7 +1634,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*UserAccessToken); i {
case 0: case 0:
return &v.state return &v.state
@ -1646,7 +1646,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*ListUserAccessTokensRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1658,7 +1658,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*ListUserAccessTokensResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -1670,7 +1670,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*CreateUserAccessTokenRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -1682,7 +1682,7 @@ func file_api_v1_user_service_proto_init() {
return nil 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 { switch v := v.(*DeleteUserAccessTokenRequest); i {
case 0: case 0:
return &v.state 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{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/webhook_service.proto // 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_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 (*Webhook)(nil), // 0: memos.api.v1.Webhook
(*CreateWebhookRequest)(nil), // 1: memos.api.v1.CreateWebhookRequest (*CreateWebhookRequest)(nil), // 1: memos.api.v1.CreateWebhookRequest
(*GetWebhookRequest)(nil), // 2: memos.api.v1.GetWebhookRequest (*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_common_proto_init()
file_api_v1_memo_service_proto_init() file_api_v1_memo_service_proto_init()
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*Webhook); i {
case 0: case 0:
return &v.state return &v.state
@ -695,7 +695,7 @@ func file_api_v1_webhook_service_proto_init() {
return nil 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 { switch v := v.(*CreateWebhookRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -707,7 +707,7 @@ func file_api_v1_webhook_service_proto_init() {
return nil 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 { switch v := v.(*GetWebhookRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -719,7 +719,7 @@ func file_api_v1_webhook_service_proto_init() {
return nil 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 { switch v := v.(*ListWebhooksRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -731,7 +731,7 @@ func file_api_v1_webhook_service_proto_init() {
return nil 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 { switch v := v.(*ListWebhooksResponse); i {
case 0: case 0:
return &v.state return &v.state
@ -743,7 +743,7 @@ func file_api_v1_webhook_service_proto_init() {
return nil 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 { switch v := v.(*UpdateWebhookRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -755,7 +755,7 @@ func file_api_v1_webhook_service_proto_init() {
return nil 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 { switch v := v.(*DeleteWebhookRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -767,7 +767,7 @@ func file_api_v1_webhook_service_proto_init() {
return nil 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 { switch v := v.(*WebhookRequestPayload); i {
case 0: case 0:
return &v.state return &v.state

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/workspace_service.proto // 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"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// mode is the instance mode (e.g. "prod", "dev" or "demo"). // mode is the instance mode (e.g. "prod", "dev" or "demo").
Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"` 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() { func (x *WorkspaceProfile) Reset() {
@ -88,6 +90,13 @@ func (x *WorkspaceProfile) GetMode() string {
return "" return ""
} }
func (x *WorkspaceProfile) GetPublic() bool {
if x != nil {
return x.Public
}
return false
}
type GetWorkspaceProfileRequest struct { type GetWorkspaceProfileRequest struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache 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, 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, 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, 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, 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, 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, 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, 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, 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, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x04,
0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x22, 0x1c, 0x0a, 0x1a,
0x73, 0x74, 0x32, 0x97, 0x01, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66,
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x82, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x32, 0x97, 0x01, 0x0a, 0x10, 0x57,
0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x82, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65,
0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e,
0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70,
0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x1b, 0x12, 0x19, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c,
0x70, 0x61, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x42, 0xad, 0x01, 0x0a, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x31, 0x42, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x66, 0x69, 0x6c, 0x65, 0x42, 0xad, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d,
0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75,
0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72,
0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x56, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61,
0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d,
0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0x5c, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f,
0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, 0x65, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73,
0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64,
0x6f, 0x74, 0x6f, 0x33, 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 ( 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_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 (*WorkspaceProfile)(nil), // 0: memos.api.v1.WorkspaceProfile
(*GetWorkspaceProfileRequest)(nil), // 1: memos.api.v1.GetWorkspaceProfileRequest (*GetWorkspaceProfileRequest)(nil), // 1: memos.api.v1.GetWorkspaceProfileRequest
} }
@ -198,7 +208,7 @@ func file_api_v1_workspace_service_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*WorkspaceProfile); i {
case 0: case 0:
return &v.state return &v.state
@ -210,7 +220,7 @@ func file_api_v1_workspace_service_proto_init() {
return nil 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 { switch v := v.(*GetWorkspaceProfileRequest); i {
case 0: case 0:
return &v.state return &v.state

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: api/v1/workspace_setting_service.proto // source: api/v1/workspace_setting_service.proto
@ -186,10 +186,6 @@ type WorkspaceGeneralSetting struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields 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. // additional_script is the additional script.
AdditionalScript string `protobuf:"bytes,3,opt,name=additional_script,json=additionalScript,proto3" json:"additional_script,omitempty"` AdditionalScript string `protobuf:"bytes,3,opt,name=additional_script,json=additionalScript,proto3" json:"additional_script,omitempty"`
// additional_style is the additional style. // 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} 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 { func (x *WorkspaceGeneralSetting) GetAdditionalScript() string {
if x != nil { if x != nil {
return x.AdditionalScript 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, 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, 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, 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, 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, 0x2b, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63,
0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x72, 0x69, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69,
0x6f, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x29, 0x0a, 0x10,
0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65,
0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e,
0x6c, 0x6f, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x6f,
0x12, 0x2b, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x6d, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x64, 0x64, 0x24, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57,
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x29, 0x0a, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72,
0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f,
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,
0x6e, 0x61, 0x6c, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12,
0x6f, 0x6d, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x32, 0x24, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,
0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x6f, 0x5f,
0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x6f, 0x55,
0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01,
0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70,
0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x61, 0x70, 0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x91, 0x04, 0x0a, 0x17, 0x57,
0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x6f, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53,
0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x6f, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x54, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67,
0x55, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x6d,
0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b,
0x70, 0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74,
0x0a, 0x61, 0x70, 0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x91, 0x04, 0x0a, 0x17, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52,
0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x11,
0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x54, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,
0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 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, 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, 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, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73,
0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xa6, 0x01, 0x0a, 0x08, 0x53, 0x33, 0x43, 0x6f,
0x11, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b,
0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63,
0x74, 0x68, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x75, 0x70, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65,
0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20,
0x6d, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x53, 0x65,
0x53, 0x69, 0x7a, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x4d, 0x62, 0x12, 0x4b, 0x0a, 0x09, 0x73, 0x63, 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 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, 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, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x46,
0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0xda, 0x41, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36,
0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xa6, 0x01, 0x0a, 0x08, 0x53, 0x33, 0x43, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x2b, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x73, 0x65,
0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69,
0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x1c, 0x57, 0x6f, 0x72,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x53, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72,
0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74,
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73,
0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e,
0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03,
0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e,
0x74, 0x22, 0x4c, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56,
0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31,
0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d,
0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70,
0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10, 0x03, 0x22, 0x72, 0x6f, 0x74, 0x6f, 0x33,
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,
} }
var ( 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_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_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 (WorkspaceStorageSetting_StorageType)(0), // 0: memos.api.v1.WorkspaceStorageSetting.StorageType
(*WorkspaceSetting)(nil), // 1: memos.api.v1.WorkspaceSetting (*WorkspaceSetting)(nil), // 1: memos.api.v1.WorkspaceSetting
(*WorkspaceGeneralSetting)(nil), // 2: memos.api.v1.WorkspaceGeneralSetting (*WorkspaceGeneralSetting)(nil), // 2: memos.api.v1.WorkspaceGeneralSetting
@ -888,7 +864,7 @@ func file_api_v1_workspace_setting_service_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*WorkspaceSetting); i {
case 0: case 0:
return &v.state return &v.state
@ -900,7 +876,7 @@ func file_api_v1_workspace_setting_service_proto_init() {
return nil 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 { switch v := v.(*WorkspaceGeneralSetting); i {
case 0: case 0:
return &v.state return &v.state
@ -912,7 +888,7 @@ func file_api_v1_workspace_setting_service_proto_init() {
return nil 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 { switch v := v.(*WorkspaceCustomProfile); i {
case 0: case 0:
return &v.state return &v.state
@ -924,7 +900,7 @@ func file_api_v1_workspace_setting_service_proto_init() {
return nil 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 { switch v := v.(*WorkspaceStorageSetting); i {
case 0: case 0:
return &v.state return &v.state
@ -936,7 +912,7 @@ func file_api_v1_workspace_setting_service_proto_init() {
return nil 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 { switch v := v.(*WorkspaceMemoRelatedSetting); i {
case 0: case 0:
return &v.state return &v.state
@ -948,7 +924,7 @@ func file_api_v1_workspace_setting_service_proto_init() {
return nil 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 { switch v := v.(*GetWorkspaceSettingRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -960,7 +936,7 @@ func file_api_v1_workspace_setting_service_proto_init() {
return nil 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 { switch v := v.(*SetWorkspaceSettingRequest); i {
case 0: case 0:
return &v.state return &v.state
@ -972,7 +948,7 @@ func file_api_v1_workspace_setting_service_proto_init() {
return nil 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 { switch v := v.(*WorkspaceStorageSetting_S3Config); i {
case 0: case 0:
return &v.state 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_GeneralSetting)(nil),
(*WorkspaceSetting_StorageSetting)(nil), (*WorkspaceSetting_StorageSetting)(nil),
(*WorkspaceSetting_MemoRelatedSetting)(nil), (*WorkspaceSetting_MemoRelatedSetting)(nil),

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: store/activity.proto // 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_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 (*ActivityMemoCommentPayload)(nil), // 0: memos.store.ActivityMemoCommentPayload
(*ActivityVersionUpdatePayload)(nil), // 1: memos.store.ActivityVersionUpdatePayload (*ActivityVersionUpdatePayload)(nil), // 1: memos.store.ActivityVersionUpdatePayload
(*ActivityPayload)(nil), // 2: memos.store.ActivityPayload (*ActivityPayload)(nil), // 2: memos.store.ActivityPayload
@ -250,7 +250,7 @@ func file_store_activity_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*ActivityMemoCommentPayload); i {
case 0: case 0:
return &v.state return &v.state
@ -262,7 +262,7 @@ func file_store_activity_proto_init() {
return nil 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 { switch v := v.(*ActivityVersionUpdatePayload); i {
case 0: case 0:
return &v.state return &v.state
@ -274,7 +274,7 @@ func file_store_activity_proto_init() {
return nil 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 { switch v := v.(*ActivityPayload); i {
case 0: case 0:
return &v.state return &v.state

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: store/idp.proto // 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_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_store_idp_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 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_Type)(0), // 0: memos.store.IdentityProvider.Type
(*IdentityProvider)(nil), // 1: memos.store.IdentityProvider (*IdentityProvider)(nil), // 1: memos.store.IdentityProvider
(*IdentityProviderConfig)(nil), // 2: memos.store.IdentityProviderConfig (*IdentityProviderConfig)(nil), // 2: memos.store.IdentityProviderConfig
@ -472,7 +472,7 @@ func file_store_idp_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*IdentityProvider); i {
case 0: case 0:
return &v.state return &v.state
@ -484,7 +484,7 @@ func file_store_idp_proto_init() {
return nil 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 { switch v := v.(*IdentityProviderConfig); i {
case 0: case 0:
return &v.state return &v.state
@ -496,7 +496,7 @@ func file_store_idp_proto_init() {
return nil 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 { switch v := v.(*FieldMapping); i {
case 0: case 0:
return &v.state return &v.state
@ -508,7 +508,7 @@ func file_store_idp_proto_init() {
return nil 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 { switch v := v.(*OAuth2Config); i {
case 0: case 0:
return &v.state 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), (*IdentityProviderConfig_Oauth2Config)(nil),
} }
type x struct{} type x struct{}

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: store/inbox.proto // 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_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_store_inbox_proto_msgTypes = make([]protoimpl.MessageInfo, 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_Type)(0), // 0: memos.store.InboxMessage.Type
(*InboxMessage)(nil), // 1: memos.store.InboxMessage (*InboxMessage)(nil), // 1: memos.store.InboxMessage
} }
@ -186,7 +186,7 @@ func file_store_inbox_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*InboxMessage); i {
case 0: case 0:
return &v.state 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{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: store/memo.proto // 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_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)(nil), // 0: memos.store.MemoPayload
(*MemoPayload_Property)(nil), // 1: memos.store.MemoPayload.Property (*MemoPayload_Property)(nil), // 1: memos.store.MemoPayload.Property
} }
@ -212,7 +212,7 @@ func file_store_memo_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*MemoPayload); i {
case 0: case 0:
return &v.state return &v.state
@ -224,7 +224,7 @@ func file_store_memo_proto_init() {
return nil 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 { switch v := v.(*MemoPayload_Property); i {
case 0: case 0:
return &v.state return &v.state

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: store/reaction.proto // 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_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 (ReactionType)(0), // 0: memos.store.ReactionType
} }
var file_store_reaction_proto_depIdxs = []int32{ var file_store_reaction_proto_depIdxs = []int32{

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: store/resource.proto // 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_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_store_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 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 (ResourceStorageType)(0), // 0: memos.store.ResourceStorageType
(*ResourcePayload)(nil), // 1: memos.store.ResourcePayload (*ResourcePayload)(nil), // 1: memos.store.ResourcePayload
(*ResourcePayload_S3Object)(nil), // 2: memos.store.ResourcePayload.S3Object (*ResourcePayload_S3Object)(nil), // 2: memos.store.ResourcePayload.S3Object
@ -289,7 +289,7 @@ func file_store_resource_proto_init() {
} }
file_store_workspace_setting_proto_init() file_store_workspace_setting_proto_init()
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*ResourcePayload); i {
case 0: case 0:
return &v.state return &v.state
@ -301,7 +301,7 @@ func file_store_resource_proto_init() {
return nil 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 { switch v := v.(*ResourcePayload_S3Object); i {
case 0: case 0:
return &v.state 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), (*ResourcePayload_S3Object_)(nil),
} }
type x struct{} type x struct{}

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: store/user_setting.proto // 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_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_store_user_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 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 (UserSettingKey)(0), // 0: memos.store.UserSettingKey
(*UserSetting)(nil), // 1: memos.store.UserSetting (*UserSetting)(nil), // 1: memos.store.UserSetting
(*AccessTokensUserSetting)(nil), // 2: memos.store.AccessTokensUserSetting (*AccessTokensUserSetting)(nil), // 2: memos.store.AccessTokensUserSetting
@ -402,7 +402,7 @@ func file_store_user_setting_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*UserSetting); i {
case 0: case 0:
return &v.state return &v.state
@ -414,7 +414,7 @@ func file_store_user_setting_proto_init() {
return nil 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 { switch v := v.(*AccessTokensUserSetting); i {
case 0: case 0:
return &v.state return &v.state
@ -426,7 +426,7 @@ func file_store_user_setting_proto_init() {
return nil 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 { switch v := v.(*AccessTokensUserSetting_AccessToken); i {
case 0: case 0:
return &v.state 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_AccessTokens)(nil),
(*UserSetting_Locale)(nil), (*UserSetting_Locale)(nil),
(*UserSetting_Appearance)(nil), (*UserSetting_Appearance)(nil),

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.34.1 // protoc-gen-go v1.34.2
// protoc (unknown) // protoc (unknown)
// source: store/workspace_setting.proto // source: store/workspace_setting.proto
@ -303,10 +303,6 @@ type WorkspaceGeneralSetting struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields 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. // additional_script is the additional script.
AdditionalScript string `protobuf:"bytes,3,opt,name=additional_script,json=additionalScript,proto3" json:"additional_script,omitempty"` AdditionalScript string `protobuf:"bytes,3,opt,name=additional_script,json=additionalScript,proto3" json:"additional_script,omitempty"`
// additional_style is the additional style. // additional_style is the additional style.
@ -347,20 +343,6 @@ func (*WorkspaceGeneralSetting) Descriptor() ([]byte, []int) {
return file_store_workspace_setting_proto_rawDescGZIP(), []int{2} 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 { func (x *WorkspaceGeneralSetting) GetAdditionalScript() string {
if x != nil { if x != nil {
return x.AdditionalScript 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, 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, 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, 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, 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, 0x27, 0x0a, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x2b, 0x0a,
0x0f, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x72, 0x69,
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69,
0x53, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x64,
0x6f, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x04,
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x2b, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x4a, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f,
0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x72, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e,
0x69, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b,
0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69,
0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x6c, 0x65, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c,
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43,
0x6c, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x4a, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05,
0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74,
0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
0x69, 0x6c, 0x65, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x6f, 0x5f, 0x75, 0x72, 0x6c,
0x6c, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x6f, 0x55, 0x72, 0x6c, 0x12,
0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x65, 0x61,
0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70,
0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xd5, 0x02, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x6f, 0x5f, 0x75, 0x72, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74,
0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x6f, 0x55, 0x72, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x53, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x74,
0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
0x52, 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x65, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,
0x70, 0x65, 0x61, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xd5, 0x02, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x74, 0x6f,
0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x66, 0x69, 0x6c, 0x65,
0x74, 0x69, 0x6e, 0x67, 0x12, 0x53, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20,
0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x6d, 0x65, 0x6d, 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d,
0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f,
0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x62, 0x18, 0x03, 0x20,
0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x74, 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x4c,
0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x66, 0x69, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x4d, 0x62, 0x12, 0x39, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e,
0x65, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x54, 0x65, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53,
0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69,
0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x62, 0x18, 0x03, 0x67, 0x22, 0x4c, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65,
0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45,
0x4c, 0x69, 0x6d, 0x69, 0x74, 0x4d, 0x62, 0x12, 0x39, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c,
0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x65, 0x6d, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05,
0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10, 0x03, 0x22,
0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0xad, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x33, 0x43, 0x6f, 0x6e,
0x69, 0x67, 0x22, 0x4c, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65,
0x65, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65,
0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x73,
0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01,
0x05, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x63,
0x22, 0xad, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x33, 0x43, 0x6f, 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18,
0x6e, 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12,
0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65,
0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x22,
0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x53, 0x65, 0xa9, 0x02, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d,
0x63, 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x36, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x75, 0x62, 0x6c,
0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x69, 0x63, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63,
0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x56, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x70, 0x6c,
0x22, 0xa9, 0x02, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x61, 0x79, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74,
0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x70, 0x6c,
0x12, 0x36, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x75, 0x62, 0x61, 0x79, 0x57, 0x69, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,
0x6c, 0x69, 0x63, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x65, 0x6e, 0x67,
0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x68, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12,
0x63, 0x56, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x70, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x4c, 0x69, 0x6d,
0x6c, 0x61, 0x79, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x75, 0x74,
0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x70, 0x6f, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
0x6c, 0x61, 0x79, 0x57, 0x69, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x6f, 0x6d, 0x70, 0x61,
0x65, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x65, 0x6e, 0x63, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x75,
0x67, 0x74, 0x68, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x18, 0x05,
0x12, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x4c, 0x69, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x6f, 0x75, 0x62,
0x6d, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x75, 0x6c, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x64, 0x69, 0x74, 0x2a, 0x73, 0x0a, 0x13, 0x57,
0x74, 0x6f, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x4b,
0x52, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x6f, 0x6d, 0x70, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x21, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f,
0x61, 0x63, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50,
0x75, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x18, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x41, 0x53,
0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x6f, 0x75, 0x49, 0x43, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x10,
0x62, 0x6c, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x64, 0x69, 0x74, 0x2a, 0x73, 0x0a, 0x13, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, 0x10,
0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x0a, 0x0c, 0x4d, 0x45, 0x4d, 0x4f, 0x5f, 0x52, 0x45, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x04,
0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x21, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x42, 0xa0, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73,
0x5f, 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53,
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x41, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67,
0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d,
0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
0x10, 0x0a, 0x0c, 0x4d, 0x45, 0x4d, 0x4f, 0x5f, 0x52, 0x45, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x4d, 0x53, 0x58, 0xaa, 0x02,
0x04, 0x42, 0xa0, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0b, 0x4d,
0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x17, 0x4d, 0x65, 0x6d,
0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74,
0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
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 ( 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_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_store_workspace_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 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 (WorkspaceSettingKey)(0), // 0: memos.store.WorkspaceSettingKey
(WorkspaceStorageSetting_StorageType)(0), // 1: memos.store.WorkspaceStorageSetting.StorageType (WorkspaceStorageSetting_StorageType)(0), // 1: memos.store.WorkspaceStorageSetting.StorageType
(*WorkspaceSetting)(nil), // 2: memos.store.WorkspaceSetting (*WorkspaceSetting)(nil), // 2: memos.store.WorkspaceSetting
@ -883,7 +859,7 @@ func file_store_workspace_setting_proto_init() {
return return
} }
if !protoimpl.UnsafeEnabled { 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 { switch v := v.(*WorkspaceSetting); i {
case 0: case 0:
return &v.state return &v.state
@ -895,7 +871,7 @@ func file_store_workspace_setting_proto_init() {
return nil 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 { switch v := v.(*WorkspaceBasicSetting); i {
case 0: case 0:
return &v.state return &v.state
@ -907,7 +883,7 @@ func file_store_workspace_setting_proto_init() {
return nil 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 { switch v := v.(*WorkspaceGeneralSetting); i {
case 0: case 0:
return &v.state return &v.state
@ -919,7 +895,7 @@ func file_store_workspace_setting_proto_init() {
return nil 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 { switch v := v.(*WorkspaceCustomProfile); i {
case 0: case 0:
return &v.state return &v.state
@ -931,7 +907,7 @@ func file_store_workspace_setting_proto_init() {
return nil 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 { switch v := v.(*WorkspaceStorageSetting); i {
case 0: case 0:
return &v.state return &v.state
@ -943,7 +919,7 @@ func file_store_workspace_setting_proto_init() {
return nil 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 { switch v := v.(*StorageS3Config); i {
case 0: case 0:
return &v.state return &v.state
@ -955,7 +931,7 @@ func file_store_workspace_setting_proto_init() {
return nil 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 { switch v := v.(*WorkspaceMemoRelatedSetting); i {
case 0: case 0:
return &v.state 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_BasicSetting)(nil),
(*WorkspaceSetting_GeneralSetting)(nil), (*WorkspaceSetting_GeneralSetting)(nil),
(*WorkspaceSetting_StorageSetting)(nil), (*WorkspaceSetting_StorageSetting)(nil),

View File

@ -31,10 +31,6 @@ message WorkspaceBasicSetting {
} }
message WorkspaceGeneralSetting { 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. // additional_script is the additional script.
string additional_script = 3; string additional_script = 3;
// additional_style is the additional style. // additional_style is the additional style.

View File

@ -30,6 +30,8 @@ type Profile struct {
Driver string `json:"-"` Driver string `json:"-"`
// Version is the current version of server // Version is the current version of server
Version string `json:"version"` Version string `json:"version"`
// Pubic is the flag whether the instance is public for others.
Public bool `json:"public"`
} }
func (p *Profile) IsDev() bool { func (p *Profile) IsDev() bool {

View File

@ -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) { func (s *APIV1Service) SignUp(ctx context.Context, request *v1pb.SignUpRequest) (*v1pb.User, error) {
workspaceGeneralSetting, err := s.Store.GetWorkspaceGeneralSetting(ctx) if !s.Profile.Public {
if err != nil {
return nil, status.Errorf(codes.Internal, fmt.Sprintf("failed to get workspace setting, err: %s", err))
}
if workspaceGeneralSetting.DisallowSignup || workspaceGeneralSetting.DisallowPasswordLogin {
return nil, status.Errorf(codes.PermissionDenied, "sign up is not allowed") return nil, status.Errorf(codes.PermissionDenied, "sign up is not allowed")
} }

View File

@ -15,6 +15,7 @@ func (s *APIV1Service) GetWorkspaceProfile(ctx context.Context, _ *v1pb.GetWorks
workspaceProfile := &v1pb.WorkspaceProfile{ workspaceProfile := &v1pb.WorkspaceProfile{
Version: s.Profile.Version, Version: s.Profile.Version,
Mode: s.Profile.Mode, Mode: s.Profile.Mode,
Public: s.Profile.Public,
} }
owner, err := s.GetInstanceOwner(ctx) owner, err := s.GetInstanceOwner(ctx)
if err != nil { if err != nil {

View File

@ -132,10 +132,8 @@ func convertWorkspaceGeneralSettingFromStore(setting *storepb.WorkspaceGeneralSe
return nil return nil
} }
generalSetting := &v1pb.WorkspaceGeneralSetting{ generalSetting := &v1pb.WorkspaceGeneralSetting{
DisallowSignup: setting.DisallowSignup, AdditionalScript: setting.AdditionalScript,
DisallowPasswordLogin: setting.DisallowPasswordLogin, AdditionalStyle: setting.AdditionalStyle,
AdditionalScript: setting.AdditionalScript,
AdditionalStyle: setting.AdditionalStyle,
} }
if setting.CustomProfile != nil { if setting.CustomProfile != nil {
generalSetting.CustomProfile = &v1pb.WorkspaceCustomProfile{ generalSetting.CustomProfile = &v1pb.WorkspaceCustomProfile{
@ -154,10 +152,8 @@ func convertWorkspaceGeneralSettingToStore(setting *v1pb.WorkspaceGeneralSetting
return nil return nil
} }
generalSetting := &storepb.WorkspaceGeneralSetting{ generalSetting := &storepb.WorkspaceGeneralSetting{
DisallowSignup: setting.DisallowSignup, AdditionalScript: setting.AdditionalScript,
DisallowPasswordLogin: setting.DisallowPasswordLogin, AdditionalStyle: setting.AdditionalStyle,
AdditionalScript: setting.AdditionalScript,
AdditionalStyle: setting.AdditionalStyle,
} }
if setting.CustomProfile != nil { if setting.CustomProfile != nil {
generalSetting.CustomProfile = &storepb.WorkspaceCustomProfile{ generalSetting.CustomProfile = &storepb.WorkspaceCustomProfile{

View File

@ -17,7 +17,7 @@ func TestWorkspaceSettingV1Store(t *testing.T) {
Key: storepb.WorkspaceSettingKey_GENERAL, Key: storepb.WorkspaceSettingKey_GENERAL,
Value: &storepb.WorkspaceSetting_GeneralSetting{ Value: &storepb.WorkspaceSetting_GeneralSetting{
GeneralSetting: &storepb.WorkspaceGeneralSetting{ GeneralSetting: &storepb.WorkspaceGeneralSetting{
DisallowSignup: true, AdditionalScript: "",
}, },
}, },
}) })

View File

@ -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<Props> = ({ destroy }: Props) => {
const t = useTranslate();
const workspaceSettingStore = useWorkspaceSettingStore();
const workspaceGeneralSetting =
workspaceSettingStore.getWorkspaceSettingByKey(WorkspaceSettingKey.GENERAL).generalSetting || WorkspaceGeneralSetting.fromPartial({});
const [state, setState] = useState<State>({
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<HTMLInputElement>) => {
const text = e.target.value as string;
setTypingConfirmation(text);
};
return (
<>
<div className="dialog-header-container">
<p className="title-text">{t("setting.system-section.disable-password-login")}</p>
<IconButton size="sm" onClick={handleCloseBtnClick}>
<Icon.X className="w-5 h-auto" />
</IconButton>
</div>
<div className="dialog-content-container !w-72">
{confirmedOnce ? (
<>
<p className="">{t("setting.system-section.disable-password-login-final-warning")}</p>
<Input className="w-full mt-2" value={typingConfirmation} onChange={handleTypingConfirmationChanged} />
</>
) : (
<p className="">{t("setting.system-section.disable-password-login-warning")}</p>
)}
<div className="mt-4 w-full flex flex-row justify-end items-center space-x-2">
<Button variant="plain" color="neutral" onClick={handleCloseBtnClick}>
{t("common.close")}
</Button>
<Button onClick={handleConfirmBtnClick} color="danger" disabled={!allowConfirmAction()}>
{t("common.confirm")}
</Button>
</div>
</div>
</>
);
};
function showDisablePasswordLoginDialog() {
generateDialog(
{
className: "disable-password-login-dialog",
dialogName: "disable-password-login-dialog",
},
DisablePasswordLoginDialog,
);
}
export default showDisablePasswordLoginDialog;

View File

@ -1,4 +1,4 @@
import { Button, Switch, Textarea } from "@mui/joy"; import { Button, Textarea } from "@mui/joy";
import { useState } from "react"; import { useState } from "react";
import { toast } from "react-hot-toast"; import { toast } from "react-hot-toast";
import { Link } from "react-router-dom"; 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 { WorkspaceGeneralSetting } from "@/types/proto/api/v1/workspace_setting_service";
import { WorkspaceSettingKey } from "@/types/proto/store/workspace_setting"; import { WorkspaceSettingKey } from "@/types/proto/store/workspace_setting";
import { useTranslate } from "@/utils/i18n"; import { useTranslate } from "@/utils/i18n";
import { showCommonDialog } from "../Dialog/CommonDialog";
import Icon from "../Icon"; import Icon from "../Icon";
import showUpdateCustomizedProfileDialog from "../UpdateCustomizedProfileDialog"; import showUpdateCustomizedProfileDialog from "../UpdateCustomizedProfileDialog";
@ -18,43 +17,6 @@ const WorkspaceSection = () => {
WorkspaceGeneralSetting.fromPartial(workspaceSettingStore.getWorkspaceSettingByKey(WorkspaceSettingKey.GENERAL)?.generalSetting || {}), 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 = () => { const handleUpdateCustomizedProfileButtonClick = () => {
showUpdateCustomizedProfileDialog(); showUpdateCustomizedProfileDialog();
}; };
@ -110,17 +72,6 @@ const WorkspaceSection = () => {
<Button onClick={handleUpdateCustomizedProfileButtonClick}>{t("common.edit")}</Button> <Button onClick={handleUpdateCustomizedProfileButtonClick}>{t("common.edit")}</Button>
</div> </div>
<p className="font-medium text-gray-700 dark:text-gray-500">General</p> <p className="font-medium text-gray-700 dark:text-gray-500">General</p>
<div className="w-full flex flex-row justify-between items-center">
<span className="mr-1">{t("setting.system-section.allow-user-signup")}</span>
<Switch checked={!workspaceGeneralSetting.disallowSignup} onChange={(event) => handleAllowSignUpChanged(event.target.checked)} />
</div>
<div className="w-full flex flex-row justify-between items-center">
<span className="mr-1">{t("setting.system-section.disable-password-login")}</span>
<Switch
checked={workspaceGeneralSetting.disallowPasswordLogin}
onChange={(event) => handleDisablePasswordLoginChanged(event.target.checked)}
/>
</div>
<div className="space-y-2 border rounded-md py-2 px-3 dark:border-zinc-700"> <div className="space-y-2 border rounded-md py-2 px-3 dark:border-zinc-700">
<div className="w-full flex flex-row justify-between items-center"> <div className="w-full flex flex-row justify-between items-center">
<span>{t("setting.system-section.additional-style")}</span> <span>{t("setting.system-section.additional-style")}</span>

View File

@ -116,71 +116,67 @@ const SignIn = () => {
{workspaceGeneralSetting.customProfile?.title || "Memos"} {workspaceGeneralSetting.customProfile?.title || "Memos"}
</p> </p>
</div> </div>
{!workspaceGeneralSetting.disallowPasswordLogin && ( <form className="w-full mt-2" onSubmit={handleFormSubmit}>
<> <div className="flex flex-col justify-start items-start w-full gap-4">
<form className="w-full mt-2" onSubmit={handleFormSubmit}> <div className="w-full flex flex-col justify-start items-start gap-2">
<div className="flex flex-col justify-start items-start w-full gap-4"> <span className="leading-8 text-gray-600">{t("common.username")}</span>
<div className="w-full flex flex-col justify-start items-start gap-2"> <Input
<span className="leading-8 text-gray-600">{t("common.username")}</span> className="w-full"
<Input size="lg"
className="w-full" type="text"
size="lg" readOnly={actionBtnLoadingState.isLoading}
type="text" placeholder={t("common.username")}
readOnly={actionBtnLoadingState.isLoading} value={username}
placeholder={t("common.username")} onChange={handleUsernameInputChanged}
value={username} required
onChange={handleUsernameInputChanged} />
required </div>
/> <div className="w-full flex flex-col justify-start items-start gap-2">
</div> <span className="leading-8 text-gray-600">{t("common.password")}</span>
<div className="w-full flex flex-col justify-start items-start gap-2"> <Input
<span className="leading-8 text-gray-600">{t("common.password")}</span> className="w-full"
<Input size="lg"
className="w-full" type="password"
size="lg" readOnly={actionBtnLoadingState.isLoading}
type="password" placeholder={t("common.password")}
readOnly={actionBtnLoadingState.isLoading} value={password}
placeholder={t("common.password")} onChange={handlePasswordInputChanged}
value={password} required
onChange={handlePasswordInputChanged} />
required </div>
/> </div>
</div> <div className="flex flex-row justify-start items-center w-full mt-6">
</div> <Checkbox
<div className="flex flex-row justify-start items-center w-full mt-6"> className="dark:!text-gray-400"
<Checkbox label={t("common.remember-me")}
className="dark:!text-gray-400" checked={remember}
label={t("common.remember-me")} onChange={(e) => setRemember(e.target.checked)}
checked={remember} />
onChange={(e) => setRemember(e.target.checked)} </div>
/> <div className="flex flex-row justify-end items-center w-full mt-6">
</div> <Button
<div className="flex flex-row justify-end items-center w-full mt-6"> className="w-full"
<Button size="md"
className="w-full" type="submit"
size="md" disabled={actionBtnLoadingState.isLoading}
type="submit" loading={actionBtnLoadingState.isLoading}
disabled={actionBtnLoadingState.isLoading} onClick={handleSignInButtonClick}
loading={actionBtnLoadingState.isLoading} >
onClick={handleSignInButtonClick} {t("common.sign-in")}
> </Button>
{t("common.sign-in")} </div>
</Button> </form>
</div> {commonContext.profile.public && (
</form> <p className="w-full mt-4 text-sm">
{!workspaceGeneralSetting.disallowSignup && ( <span className="dark:text-gray-500">{t("auth.sign-up-tip")}</span>
<p className="w-full mt-4 text-sm"> <Link to="/auth/signup" className="cursor-pointer ml-2 text-blue-600 hover:underline" unstable_viewTransition>
<span className="dark:text-gray-500">{t("auth.sign-up-tip")}</span> {t("common.sign-up")}
<Link to="/auth/signup" className="cursor-pointer ml-2 text-blue-600 hover:underline" unstable_viewTransition> </Link>
{t("common.sign-up")} </p>
</Link>
</p>
)}
</>
)} )}
{identityProviderList.length > 0 && ( {identityProviderList.length > 0 && (
<> <>
{!workspaceGeneralSetting.disallowPasswordLogin && <Divider className="!my-4">{t("common.or")}</Divider>} <Divider className="!my-4">{t("common.or")}</Divider>
<div className="w-full flex flex-col space-y-2"> <div className="w-full flex flex-col space-y-2">
{identityProviderList.map((identityProvider) => ( {identityProviderList.map((identityProvider) => (
<Button <Button

View File

@ -1,6 +1,6 @@
import { Button, Input } from "@mui/joy"; import { Button, Input } from "@mui/joy";
import { ClientError } from "nice-grpc-web"; import { ClientError } from "nice-grpc-web";
import { useState } from "react"; import { useEffect, useState } from "react";
import { toast } from "react-hot-toast"; import { toast } from "react-hot-toast";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import AppearanceSelect from "@/components/AppearanceSelect"; import AppearanceSelect from "@/components/AppearanceSelect";
@ -26,6 +26,12 @@ const SignUp = () => {
const workspaceGeneralSetting = const workspaceGeneralSetting =
workspaceSettingStore.getWorkspaceSettingByKey(WorkspaceSettingKey.GENERAL).generalSetting || WorkspaceGeneralSetting.fromPartial({}); workspaceSettingStore.getWorkspaceSettingByKey(WorkspaceSettingKey.GENERAL).generalSetting || WorkspaceGeneralSetting.fromPartial({});
useEffect(() => {
if (!commonContext.profile.public) {
toast.error("Sign up is not allowed.");
}
}, []);
const handleUsernameInputChanged = (e: React.ChangeEvent<HTMLInputElement>) => { const handleUsernameInputChanged = (e: React.ChangeEvent<HTMLInputElement>) => {
const text = e.target.value as string; const text = e.target.value as string;
setUsername(text); setUsername(text);