mirror of
https://github.com/usememos/memos.git
synced 2025-04-21 21:07:35 +02:00
refactor: move tags from property to payload (#4229)
* refactor: move tags from property to payload * chore: fix tests * chore: drop memo tags * chore: update --------- Co-authored-by: Steven <stevenlgtm@gmail.com>
This commit is contained in:
parent
f15346e615
commit
e913271f15
@ -179,11 +179,10 @@ message Memo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message MemoProperty {
|
message MemoProperty {
|
||||||
repeated string tags = 1;
|
bool has_link = 1;
|
||||||
bool has_link = 2;
|
bool has_task_list = 2;
|
||||||
bool has_task_list = 3;
|
bool has_code = 3;
|
||||||
bool has_code = 4;
|
bool has_incomplete_tasks = 4;
|
||||||
bool has_incomplete_tasks = 5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message Location {
|
message Location {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: api/v1/activity_service.proto
|
// source: api/v1/activity_service.proto
|
||||||
|
|
||||||
@ -23,10 +23,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Activity struct {
|
type Activity struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the activity.
|
// The name of the activity.
|
||||||
// Format: activities/{id}
|
// Format: activities/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
@ -40,6 +37,8 @@ type Activity struct {
|
|||||||
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
||||||
// The payload of the activity.
|
// The payload of the activity.
|
||||||
Payload *ActivityPayload `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"`
|
Payload *ActivityPayload `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Activity) Reset() {
|
func (x *Activity) Reset() {
|
||||||
@ -115,12 +114,11 @@ func (x *Activity) GetPayload() *ActivityPayload {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ActivityPayload struct {
|
type ActivityPayload struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
MemoComment *ActivityMemoCommentPayload `protobuf:"bytes,1,opt,name=memo_comment,json=memoComment,proto3" json:"memo_comment,omitempty"`
|
MemoComment *ActivityMemoCommentPayload `protobuf:"bytes,1,opt,name=memo_comment,json=memoComment,proto3" json:"memo_comment,omitempty"`
|
||||||
VersionUpdate *ActivityVersionUpdatePayload `protobuf:"bytes,2,opt,name=version_update,json=versionUpdate,proto3" json:"version_update,omitempty"`
|
VersionUpdate *ActivityVersionUpdatePayload `protobuf:"bytes,2,opt,name=version_update,json=versionUpdate,proto3" json:"version_update,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ActivityPayload) Reset() {
|
func (x *ActivityPayload) Reset() {
|
||||||
@ -169,14 +167,13 @@ func (x *ActivityPayload) GetVersionUpdate() *ActivityVersionUpdatePayload {
|
|||||||
|
|
||||||
// ActivityMemoCommentPayload represents the payload of a memo comment activity.
|
// ActivityMemoCommentPayload represents the payload of a memo comment activity.
|
||||||
type ActivityMemoCommentPayload struct {
|
type ActivityMemoCommentPayload struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The memo id of comment.
|
// The memo id of comment.
|
||||||
MemoId int32 `protobuf:"varint,1,opt,name=memo_id,json=memoId,proto3" json:"memo_id,omitempty"`
|
MemoId int32 `protobuf:"varint,1,opt,name=memo_id,json=memoId,proto3" json:"memo_id,omitempty"`
|
||||||
// The memo id of related memo.
|
// The memo id of related memo.
|
||||||
RelatedMemoId int32 `protobuf:"varint,2,opt,name=related_memo_id,json=relatedMemoId,proto3" json:"related_memo_id,omitempty"`
|
RelatedMemoId int32 `protobuf:"varint,2,opt,name=related_memo_id,json=relatedMemoId,proto3" json:"related_memo_id,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ActivityMemoCommentPayload) Reset() {
|
func (x *ActivityMemoCommentPayload) Reset() {
|
||||||
@ -224,12 +221,11 @@ func (x *ActivityMemoCommentPayload) GetRelatedMemoId() int32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ActivityVersionUpdatePayload struct {
|
type ActivityVersionUpdatePayload struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The updated version of memos.
|
// The updated version of memos.
|
||||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ActivityVersionUpdatePayload) Reset() {
|
func (x *ActivityVersionUpdatePayload) Reset() {
|
||||||
@ -270,13 +266,12 @@ func (x *ActivityVersionUpdatePayload) GetVersion() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetActivityRequest struct {
|
type GetActivityRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the activity.
|
// The name of the activity.
|
||||||
// Format: activities/{id}
|
// Format: activities/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetActivityRequest) Reset() {
|
func (x *GetActivityRequest) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: api/v1/auth_service.proto
|
// source: api/v1/auth_service.proto
|
||||||
|
|
||||||
@ -23,9 +23,9 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type GetAuthStatusRequest struct {
|
type GetAuthStatusRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetAuthStatusRequest) Reset() {
|
func (x *GetAuthStatusRequest) Reset() {
|
||||||
@ -59,11 +59,10 @@ func (*GetAuthStatusRequest) Descriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetAuthStatusResponse struct {
|
type GetAuthStatusResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetAuthStatusResponse) Reset() {
|
func (x *GetAuthStatusResponse) Reset() {
|
||||||
@ -104,16 +103,15 @@ func (x *GetAuthStatusResponse) GetUser() *User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SignInRequest struct {
|
type SignInRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The username to sign in with.
|
// The username to sign in with.
|
||||||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
||||||
// The password to sign in with.
|
// The password to sign in with.
|
||||||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||||
// Whether the session should never expire.
|
// Whether the session should never expire.
|
||||||
NeverExpire bool `protobuf:"varint,3,opt,name=never_expire,json=neverExpire,proto3" json:"never_expire,omitempty"`
|
NeverExpire bool `protobuf:"varint,3,opt,name=never_expire,json=neverExpire,proto3" json:"never_expire,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SignInRequest) Reset() {
|
func (x *SignInRequest) Reset() {
|
||||||
@ -168,16 +166,15 @@ func (x *SignInRequest) GetNeverExpire() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SignInWithSSORequest struct {
|
type SignInWithSSORequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The ID of the SSO provider.
|
// The ID of the SSO provider.
|
||||||
IdpId int32 `protobuf:"varint,1,opt,name=idp_id,json=idpId,proto3" json:"idp_id,omitempty"`
|
IdpId int32 `protobuf:"varint,1,opt,name=idp_id,json=idpId,proto3" json:"idp_id,omitempty"`
|
||||||
// The code to sign in with.
|
// The code to sign in with.
|
||||||
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
|
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
|
||||||
// The redirect URI.
|
// The redirect URI.
|
||||||
RedirectUri string `protobuf:"bytes,3,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
|
RedirectUri string `protobuf:"bytes,3,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SignInWithSSORequest) Reset() {
|
func (x *SignInWithSSORequest) Reset() {
|
||||||
@ -232,14 +229,13 @@ func (x *SignInWithSSORequest) GetRedirectUri() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SignUpRequest struct {
|
type SignUpRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The username to sign up with.
|
// The username to sign up with.
|
||||||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
||||||
// The password to sign up with.
|
// The password to sign up with.
|
||||||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SignUpRequest) Reset() {
|
func (x *SignUpRequest) Reset() {
|
||||||
@ -287,9 +283,9 @@ func (x *SignUpRequest) GetPassword() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SignOutRequest struct {
|
type SignOutRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SignOutRequest) Reset() {
|
func (x *SignOutRequest) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: api/v1/common.proto
|
// source: api/v1/common.proto
|
||||||
|
|
||||||
@ -71,12 +71,11 @@ func (RowStatus) EnumDescriptor() ([]byte, []int) {
|
|||||||
|
|
||||||
// Used internally for obfuscating the page token.
|
// Used internally for obfuscating the page token.
|
||||||
type PageToken struct {
|
type PageToken struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
|
Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
|
||||||
Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
|
Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *PageToken) Reset() {
|
func (x *PageToken) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: api/v1/idp_service.proto
|
// source: api/v1/idp_service.proto
|
||||||
|
|
||||||
@ -70,10 +70,7 @@ func (IdentityProvider_Type) EnumDescriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type IdentityProvider struct {
|
type IdentityProvider struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the identityProvider.
|
// The name of the identityProvider.
|
||||||
// Format: identityProviders/{id}
|
// Format: identityProviders/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
@ -81,6 +78,8 @@ type IdentityProvider struct {
|
|||||||
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
|
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
|
||||||
IdentifierFilter string `protobuf:"bytes,4,opt,name=identifier_filter,json=identifierFilter,proto3" json:"identifier_filter,omitempty"`
|
IdentifierFilter string `protobuf:"bytes,4,opt,name=identifier_filter,json=identifierFilter,proto3" json:"identifier_filter,omitempty"`
|
||||||
Config *IdentityProviderConfig `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`
|
Config *IdentityProviderConfig `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *IdentityProvider) Reset() {
|
func (x *IdentityProvider) Reset() {
|
||||||
@ -149,14 +148,13 @@ func (x *IdentityProvider) GetConfig() *IdentityProviderConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type IdentityProviderConfig struct {
|
type IdentityProviderConfig struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
// Types that are valid to be assigned to Config:
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// Types that are assignable to Config:
|
|
||||||
//
|
//
|
||||||
// *IdentityProviderConfig_Oauth2Config
|
// *IdentityProviderConfig_Oauth2Config
|
||||||
Config isIdentityProviderConfig_Config `protobuf_oneof:"config"`
|
Config isIdentityProviderConfig_Config `protobuf_oneof:"config"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *IdentityProviderConfig) Reset() {
|
func (x *IdentityProviderConfig) Reset() {
|
||||||
@ -189,17 +187,19 @@ func (*IdentityProviderConfig) Descriptor() ([]byte, []int) {
|
|||||||
return file_api_v1_idp_service_proto_rawDescGZIP(), []int{1}
|
return file_api_v1_idp_service_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *IdentityProviderConfig) GetConfig() isIdentityProviderConfig_Config {
|
func (x *IdentityProviderConfig) GetConfig() isIdentityProviderConfig_Config {
|
||||||
if m != nil {
|
if x != nil {
|
||||||
return m.Config
|
return x.Config
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *IdentityProviderConfig) GetOauth2Config() *OAuth2Config {
|
func (x *IdentityProviderConfig) GetOauth2Config() *OAuth2Config {
|
||||||
if x, ok := x.GetConfig().(*IdentityProviderConfig_Oauth2Config); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Config.(*IdentityProviderConfig_Oauth2Config); ok {
|
||||||
return x.Oauth2Config
|
return x.Oauth2Config
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -214,13 +214,12 @@ type IdentityProviderConfig_Oauth2Config struct {
|
|||||||
func (*IdentityProviderConfig_Oauth2Config) isIdentityProviderConfig_Config() {}
|
func (*IdentityProviderConfig_Oauth2Config) isIdentityProviderConfig_Config() {}
|
||||||
|
|
||||||
type FieldMapping struct {
|
type FieldMapping struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
|
Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
|
||||||
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||||
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
|
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FieldMapping) Reset() {
|
func (x *FieldMapping) Reset() {
|
||||||
@ -275,10 +274,7 @@ func (x *FieldMapping) GetEmail() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type OAuth2Config struct {
|
type OAuth2Config struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||||
ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
|
ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
|
||||||
AuthUrl string `protobuf:"bytes,3,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`
|
AuthUrl string `protobuf:"bytes,3,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`
|
||||||
@ -286,6 +282,8 @@ type OAuth2Config struct {
|
|||||||
UserInfoUrl string `protobuf:"bytes,5,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"`
|
UserInfoUrl string `protobuf:"bytes,5,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"`
|
||||||
Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`
|
Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`
|
||||||
FieldMapping *FieldMapping `protobuf:"bytes,7,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`
|
FieldMapping *FieldMapping `protobuf:"bytes,7,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *OAuth2Config) Reset() {
|
func (x *OAuth2Config) Reset() {
|
||||||
@ -368,9 +366,9 @@ func (x *OAuth2Config) GetFieldMapping() *FieldMapping {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListIdentityProvidersRequest struct {
|
type ListIdentityProvidersRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListIdentityProvidersRequest) Reset() {
|
func (x *ListIdentityProvidersRequest) Reset() {
|
||||||
@ -404,11 +402,10 @@ func (*ListIdentityProvidersRequest) Descriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListIdentityProvidersResponse struct {
|
type ListIdentityProvidersResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
IdentityProviders []*IdentityProvider `protobuf:"bytes,1,rep,name=identity_providers,json=identityProviders,proto3" json:"identity_providers,omitempty"`
|
IdentityProviders []*IdentityProvider `protobuf:"bytes,1,rep,name=identity_providers,json=identityProviders,proto3" json:"identity_providers,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListIdentityProvidersResponse) Reset() {
|
func (x *ListIdentityProvidersResponse) Reset() {
|
||||||
@ -449,13 +446,12 @@ func (x *ListIdentityProvidersResponse) GetIdentityProviders() []*IdentityProvid
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetIdentityProviderRequest struct {
|
type GetIdentityProviderRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the identityProvider to get.
|
// The name of the identityProvider to get.
|
||||||
// Format: identityProviders/{id}
|
// Format: identityProviders/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetIdentityProviderRequest) Reset() {
|
func (x *GetIdentityProviderRequest) Reset() {
|
||||||
@ -496,12 +492,11 @@ func (x *GetIdentityProviderRequest) GetName() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type CreateIdentityProviderRequest struct {
|
type CreateIdentityProviderRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The identityProvider to create.
|
// The identityProvider to create.
|
||||||
IdentityProvider *IdentityProvider `protobuf:"bytes,1,opt,name=identity_provider,json=identityProvider,proto3" json:"identity_provider,omitempty"`
|
IdentityProvider *IdentityProvider `protobuf:"bytes,1,opt,name=identity_provider,json=identityProvider,proto3" json:"identity_provider,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CreateIdentityProviderRequest) Reset() {
|
func (x *CreateIdentityProviderRequest) Reset() {
|
||||||
@ -542,15 +537,14 @@ func (x *CreateIdentityProviderRequest) GetIdentityProvider() *IdentityProvider
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UpdateIdentityProviderRequest struct {
|
type UpdateIdentityProviderRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The identityProvider to update.
|
// The identityProvider to update.
|
||||||
IdentityProvider *IdentityProvider `protobuf:"bytes,1,opt,name=identity_provider,json=identityProvider,proto3" json:"identity_provider,omitempty"`
|
IdentityProvider *IdentityProvider `protobuf:"bytes,1,opt,name=identity_provider,json=identityProvider,proto3" json:"identity_provider,omitempty"`
|
||||||
// The update mask applies to the resource. Only the top level fields of
|
// The update mask applies to the resource. Only the top level fields of
|
||||||
// IdentityProvider are supported.
|
// IdentityProvider are supported.
|
||||||
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateIdentityProviderRequest) Reset() {
|
func (x *UpdateIdentityProviderRequest) Reset() {
|
||||||
@ -598,13 +592,12 @@ func (x *UpdateIdentityProviderRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DeleteIdentityProviderRequest struct {
|
type DeleteIdentityProviderRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the identityProvider to delete.
|
// The name of the identityProvider to delete.
|
||||||
// Format: identityProviders/{id}
|
// Format: identityProviders/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DeleteIdentityProviderRequest) Reset() {
|
func (x *DeleteIdentityProviderRequest) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: api/v1/inbox_service.proto
|
// source: api/v1/inbox_service.proto
|
||||||
|
|
||||||
@ -123,10 +123,7 @@ func (Inbox_Type) EnumDescriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Inbox struct {
|
type Inbox struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the inbox.
|
// The name of the inbox.
|
||||||
// Format: inboxes/{id}
|
// Format: inboxes/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
@ -138,6 +135,8 @@ type Inbox struct {
|
|||||||
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
||||||
Type Inbox_Type `protobuf:"varint,6,opt,name=type,proto3,enum=memos.api.v1.Inbox_Type" json:"type,omitempty"`
|
Type Inbox_Type `protobuf:"varint,6,opt,name=type,proto3,enum=memos.api.v1.Inbox_Type" json:"type,omitempty"`
|
||||||
ActivityId *int32 `protobuf:"varint,7,opt,name=activity_id,json=activityId,proto3,oneof" json:"activity_id,omitempty"`
|
ActivityId *int32 `protobuf:"varint,7,opt,name=activity_id,json=activityId,proto3,oneof" json:"activity_id,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Inbox) Reset() {
|
func (x *Inbox) Reset() {
|
||||||
@ -220,16 +219,15 @@ func (x *Inbox) GetActivityId() int32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListInboxesRequest struct {
|
type ListInboxesRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// Format: users/{id}
|
// Format: users/{id}
|
||||||
User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
||||||
// The maximum number of inbox to return.
|
// The maximum number of inbox to return.
|
||||||
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
||||||
// Provide this to retrieve the subsequent page.
|
// Provide this to retrieve the subsequent page.
|
||||||
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListInboxesRequest) Reset() {
|
func (x *ListInboxesRequest) Reset() {
|
||||||
@ -284,14 +282,13 @@ func (x *ListInboxesRequest) GetPageToken() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListInboxesResponse struct {
|
type ListInboxesResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Inboxes []*Inbox `protobuf:"bytes,1,rep,name=inboxes,proto3" json:"inboxes,omitempty"`
|
Inboxes []*Inbox `protobuf:"bytes,1,rep,name=inboxes,proto3" json:"inboxes,omitempty"`
|
||||||
// A token, which can be sent as `page_token` to retrieve the next page.
|
// A token, which can be sent as `page_token` to retrieve the next page.
|
||||||
// If this field is omitted, there are no subsequent pages.
|
// If this field is omitted, there are no subsequent pages.
|
||||||
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListInboxesResponse) Reset() {
|
func (x *ListInboxesResponse) Reset() {
|
||||||
@ -339,12 +336,11 @@ func (x *ListInboxesResponse) GetNextPageToken() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UpdateInboxRequest struct {
|
type UpdateInboxRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Inbox *Inbox `protobuf:"bytes,1,opt,name=inbox,proto3" json:"inbox,omitempty"`
|
Inbox *Inbox `protobuf:"bytes,1,opt,name=inbox,proto3" json:"inbox,omitempty"`
|
||||||
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateInboxRequest) Reset() {
|
func (x *UpdateInboxRequest) Reset() {
|
||||||
@ -392,13 +388,12 @@ func (x *UpdateInboxRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DeleteInboxRequest struct {
|
type DeleteInboxRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the inbox to delete.
|
// The name of the inbox to delete.
|
||||||
// Format: inboxes/{id}
|
// Format: inboxes/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DeleteInboxRequest) Reset() {
|
func (x *DeleteInboxRequest) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: api/v1/markdown_service.proto
|
// source: api/v1/markdown_service.proto
|
||||||
|
|
||||||
@ -212,11 +212,10 @@ func (ListNode_Kind) EnumDescriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ParseMarkdownRequest struct {
|
type ParseMarkdownRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Markdown string `protobuf:"bytes,1,opt,name=markdown,proto3" json:"markdown,omitempty"`
|
Markdown string `protobuf:"bytes,1,opt,name=markdown,proto3" json:"markdown,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ParseMarkdownRequest) Reset() {
|
func (x *ParseMarkdownRequest) Reset() {
|
||||||
@ -257,11 +256,10 @@ func (x *ParseMarkdownRequest) GetMarkdown() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ParseMarkdownResponse struct {
|
type ParseMarkdownResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ParseMarkdownResponse) Reset() {
|
func (x *ParseMarkdownResponse) Reset() {
|
||||||
@ -302,11 +300,10 @@ func (x *ParseMarkdownResponse) GetNodes() []*Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type RestoreMarkdownNodesRequest struct {
|
type RestoreMarkdownNodesRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RestoreMarkdownNodesRequest) Reset() {
|
func (x *RestoreMarkdownNodesRequest) Reset() {
|
||||||
@ -347,11 +344,10 @@ func (x *RestoreMarkdownNodesRequest) GetNodes() []*Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type RestoreMarkdownNodesResponse struct {
|
type RestoreMarkdownNodesResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Markdown string `protobuf:"bytes,1,opt,name=markdown,proto3" json:"markdown,omitempty"`
|
Markdown string `protobuf:"bytes,1,opt,name=markdown,proto3" json:"markdown,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RestoreMarkdownNodesResponse) Reset() {
|
func (x *RestoreMarkdownNodesResponse) Reset() {
|
||||||
@ -392,11 +388,10 @@ func (x *RestoreMarkdownNodesResponse) GetMarkdown() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type StringifyMarkdownNodesRequest struct {
|
type StringifyMarkdownNodesRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *StringifyMarkdownNodesRequest) Reset() {
|
func (x *StringifyMarkdownNodesRequest) Reset() {
|
||||||
@ -437,11 +432,10 @@ func (x *StringifyMarkdownNodesRequest) GetNodes() []*Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type StringifyMarkdownNodesResponse struct {
|
type StringifyMarkdownNodesResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
PlainText string `protobuf:"bytes,1,opt,name=plain_text,json=plainText,proto3" json:"plain_text,omitempty"`
|
PlainText string `protobuf:"bytes,1,opt,name=plain_text,json=plainText,proto3" json:"plain_text,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *StringifyMarkdownNodesResponse) Reset() {
|
func (x *StringifyMarkdownNodesResponse) Reset() {
|
||||||
@ -482,11 +476,10 @@ func (x *StringifyMarkdownNodesResponse) GetPlainText() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetLinkMetadataRequest struct {
|
type GetLinkMetadataRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"`
|
Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetLinkMetadataRequest) Reset() {
|
func (x *GetLinkMetadataRequest) Reset() {
|
||||||
@ -527,13 +520,12 @@ func (x *GetLinkMetadataRequest) GetLink() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type LinkMetadata struct {
|
type LinkMetadata struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
|
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
|
||||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||||
Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
|
Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *LinkMetadata) Reset() {
|
func (x *LinkMetadata) Reset() {
|
||||||
@ -588,12 +580,9 @@ func (x *LinkMetadata) GetImage() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Node struct {
|
type Node struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Type NodeType `protobuf:"varint,1,opt,name=type,proto3,enum=memos.api.v1.NodeType" json:"type,omitempty"`
|
Type NodeType `protobuf:"varint,1,opt,name=type,proto3,enum=memos.api.v1.NodeType" json:"type,omitempty"`
|
||||||
// Types that are assignable to Node:
|
// Types that are valid to be assigned to Node:
|
||||||
//
|
//
|
||||||
// *Node_LineBreakNode
|
// *Node_LineBreakNode
|
||||||
// *Node_ParagraphNode
|
// *Node_ParagraphNode
|
||||||
@ -627,6 +616,8 @@ type Node struct {
|
|||||||
// *Node_SpoilerNode
|
// *Node_SpoilerNode
|
||||||
// *Node_HtmlElementNode
|
// *Node_HtmlElementNode
|
||||||
Node isNode_Node `protobuf_oneof:"node"`
|
Node isNode_Node `protobuf_oneof:"node"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) Reset() {
|
func (x *Node) Reset() {
|
||||||
@ -666,227 +657,289 @@ func (x *Node) GetType() NodeType {
|
|||||||
return NodeType_NODE_UNSPECIFIED
|
return NodeType_NODE_UNSPECIFIED
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Node) GetNode() isNode_Node {
|
func (x *Node) GetNode() isNode_Node {
|
||||||
if m != nil {
|
if x != nil {
|
||||||
return m.Node
|
return x.Node
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetLineBreakNode() *LineBreakNode {
|
func (x *Node) GetLineBreakNode() *LineBreakNode {
|
||||||
if x, ok := x.GetNode().(*Node_LineBreakNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_LineBreakNode); ok {
|
||||||
return x.LineBreakNode
|
return x.LineBreakNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetParagraphNode() *ParagraphNode {
|
func (x *Node) GetParagraphNode() *ParagraphNode {
|
||||||
if x, ok := x.GetNode().(*Node_ParagraphNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_ParagraphNode); ok {
|
||||||
return x.ParagraphNode
|
return x.ParagraphNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetCodeBlockNode() *CodeBlockNode {
|
func (x *Node) GetCodeBlockNode() *CodeBlockNode {
|
||||||
if x, ok := x.GetNode().(*Node_CodeBlockNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_CodeBlockNode); ok {
|
||||||
return x.CodeBlockNode
|
return x.CodeBlockNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetHeadingNode() *HeadingNode {
|
func (x *Node) GetHeadingNode() *HeadingNode {
|
||||||
if x, ok := x.GetNode().(*Node_HeadingNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_HeadingNode); ok {
|
||||||
return x.HeadingNode
|
return x.HeadingNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetHorizontalRuleNode() *HorizontalRuleNode {
|
func (x *Node) GetHorizontalRuleNode() *HorizontalRuleNode {
|
||||||
if x, ok := x.GetNode().(*Node_HorizontalRuleNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_HorizontalRuleNode); ok {
|
||||||
return x.HorizontalRuleNode
|
return x.HorizontalRuleNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetBlockquoteNode() *BlockquoteNode {
|
func (x *Node) GetBlockquoteNode() *BlockquoteNode {
|
||||||
if x, ok := x.GetNode().(*Node_BlockquoteNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_BlockquoteNode); ok {
|
||||||
return x.BlockquoteNode
|
return x.BlockquoteNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetListNode() *ListNode {
|
func (x *Node) GetListNode() *ListNode {
|
||||||
if x, ok := x.GetNode().(*Node_ListNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_ListNode); ok {
|
||||||
return x.ListNode
|
return x.ListNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetOrderedListItemNode() *OrderedListItemNode {
|
func (x *Node) GetOrderedListItemNode() *OrderedListItemNode {
|
||||||
if x, ok := x.GetNode().(*Node_OrderedListItemNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_OrderedListItemNode); ok {
|
||||||
return x.OrderedListItemNode
|
return x.OrderedListItemNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetUnorderedListItemNode() *UnorderedListItemNode {
|
func (x *Node) GetUnorderedListItemNode() *UnorderedListItemNode {
|
||||||
if x, ok := x.GetNode().(*Node_UnorderedListItemNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_UnorderedListItemNode); ok {
|
||||||
return x.UnorderedListItemNode
|
return x.UnorderedListItemNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetTaskListItemNode() *TaskListItemNode {
|
func (x *Node) GetTaskListItemNode() *TaskListItemNode {
|
||||||
if x, ok := x.GetNode().(*Node_TaskListItemNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_TaskListItemNode); ok {
|
||||||
return x.TaskListItemNode
|
return x.TaskListItemNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetMathBlockNode() *MathBlockNode {
|
func (x *Node) GetMathBlockNode() *MathBlockNode {
|
||||||
if x, ok := x.GetNode().(*Node_MathBlockNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_MathBlockNode); ok {
|
||||||
return x.MathBlockNode
|
return x.MathBlockNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetTableNode() *TableNode {
|
func (x *Node) GetTableNode() *TableNode {
|
||||||
if x, ok := x.GetNode().(*Node_TableNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_TableNode); ok {
|
||||||
return x.TableNode
|
return x.TableNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetEmbeddedContentNode() *EmbeddedContentNode {
|
func (x *Node) GetEmbeddedContentNode() *EmbeddedContentNode {
|
||||||
if x, ok := x.GetNode().(*Node_EmbeddedContentNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_EmbeddedContentNode); ok {
|
||||||
return x.EmbeddedContentNode
|
return x.EmbeddedContentNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetTextNode() *TextNode {
|
func (x *Node) GetTextNode() *TextNode {
|
||||||
if x, ok := x.GetNode().(*Node_TextNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_TextNode); ok {
|
||||||
return x.TextNode
|
return x.TextNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetBoldNode() *BoldNode {
|
func (x *Node) GetBoldNode() *BoldNode {
|
||||||
if x, ok := x.GetNode().(*Node_BoldNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_BoldNode); ok {
|
||||||
return x.BoldNode
|
return x.BoldNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetItalicNode() *ItalicNode {
|
func (x *Node) GetItalicNode() *ItalicNode {
|
||||||
if x, ok := x.GetNode().(*Node_ItalicNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_ItalicNode); ok {
|
||||||
return x.ItalicNode
|
return x.ItalicNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetBoldItalicNode() *BoldItalicNode {
|
func (x *Node) GetBoldItalicNode() *BoldItalicNode {
|
||||||
if x, ok := x.GetNode().(*Node_BoldItalicNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_BoldItalicNode); ok {
|
||||||
return x.BoldItalicNode
|
return x.BoldItalicNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetCodeNode() *CodeNode {
|
func (x *Node) GetCodeNode() *CodeNode {
|
||||||
if x, ok := x.GetNode().(*Node_CodeNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_CodeNode); ok {
|
||||||
return x.CodeNode
|
return x.CodeNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetImageNode() *ImageNode {
|
func (x *Node) GetImageNode() *ImageNode {
|
||||||
if x, ok := x.GetNode().(*Node_ImageNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_ImageNode); ok {
|
||||||
return x.ImageNode
|
return x.ImageNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetLinkNode() *LinkNode {
|
func (x *Node) GetLinkNode() *LinkNode {
|
||||||
if x, ok := x.GetNode().(*Node_LinkNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_LinkNode); ok {
|
||||||
return x.LinkNode
|
return x.LinkNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetAutoLinkNode() *AutoLinkNode {
|
func (x *Node) GetAutoLinkNode() *AutoLinkNode {
|
||||||
if x, ok := x.GetNode().(*Node_AutoLinkNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_AutoLinkNode); ok {
|
||||||
return x.AutoLinkNode
|
return x.AutoLinkNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetTagNode() *TagNode {
|
func (x *Node) GetTagNode() *TagNode {
|
||||||
if x, ok := x.GetNode().(*Node_TagNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_TagNode); ok {
|
||||||
return x.TagNode
|
return x.TagNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetStrikethroughNode() *StrikethroughNode {
|
func (x *Node) GetStrikethroughNode() *StrikethroughNode {
|
||||||
if x, ok := x.GetNode().(*Node_StrikethroughNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_StrikethroughNode); ok {
|
||||||
return x.StrikethroughNode
|
return x.StrikethroughNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetEscapingCharacterNode() *EscapingCharacterNode {
|
func (x *Node) GetEscapingCharacterNode() *EscapingCharacterNode {
|
||||||
if x, ok := x.GetNode().(*Node_EscapingCharacterNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_EscapingCharacterNode); ok {
|
||||||
return x.EscapingCharacterNode
|
return x.EscapingCharacterNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetMathNode() *MathNode {
|
func (x *Node) GetMathNode() *MathNode {
|
||||||
if x, ok := x.GetNode().(*Node_MathNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_MathNode); ok {
|
||||||
return x.MathNode
|
return x.MathNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetHighlightNode() *HighlightNode {
|
func (x *Node) GetHighlightNode() *HighlightNode {
|
||||||
if x, ok := x.GetNode().(*Node_HighlightNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_HighlightNode); ok {
|
||||||
return x.HighlightNode
|
return x.HighlightNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetSubscriptNode() *SubscriptNode {
|
func (x *Node) GetSubscriptNode() *SubscriptNode {
|
||||||
if x, ok := x.GetNode().(*Node_SubscriptNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_SubscriptNode); ok {
|
||||||
return x.SubscriptNode
|
return x.SubscriptNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetSuperscriptNode() *SuperscriptNode {
|
func (x *Node) GetSuperscriptNode() *SuperscriptNode {
|
||||||
if x, ok := x.GetNode().(*Node_SuperscriptNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_SuperscriptNode); ok {
|
||||||
return x.SuperscriptNode
|
return x.SuperscriptNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetReferencedContentNode() *ReferencedContentNode {
|
func (x *Node) GetReferencedContentNode() *ReferencedContentNode {
|
||||||
if x, ok := x.GetNode().(*Node_ReferencedContentNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_ReferencedContentNode); ok {
|
||||||
return x.ReferencedContentNode
|
return x.ReferencedContentNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetSpoilerNode() *SpoilerNode {
|
func (x *Node) GetSpoilerNode() *SpoilerNode {
|
||||||
if x, ok := x.GetNode().(*Node_SpoilerNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_SpoilerNode); ok {
|
||||||
return x.SpoilerNode
|
return x.SpoilerNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Node) GetHtmlElementNode() *HTMLElementNode {
|
func (x *Node) GetHtmlElementNode() *HTMLElementNode {
|
||||||
if x, ok := x.GetNode().(*Node_HtmlElementNode); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Node.(*Node_HtmlElementNode); ok {
|
||||||
return x.HtmlElementNode
|
return x.HtmlElementNode
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1083,9 +1136,9 @@ func (*Node_SpoilerNode) isNode_Node() {}
|
|||||||
func (*Node_HtmlElementNode) isNode_Node() {}
|
func (*Node_HtmlElementNode) isNode_Node() {}
|
||||||
|
|
||||||
type LineBreakNode struct {
|
type LineBreakNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *LineBreakNode) Reset() {
|
func (x *LineBreakNode) Reset() {
|
||||||
@ -1119,11 +1172,10 @@ func (*LineBreakNode) Descriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ParagraphNode struct {
|
type ParagraphNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Children []*Node `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"`
|
Children []*Node `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ParagraphNode) Reset() {
|
func (x *ParagraphNode) Reset() {
|
||||||
@ -1164,12 +1216,11 @@ func (x *ParagraphNode) GetChildren() []*Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type CodeBlockNode struct {
|
type CodeBlockNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
|
Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
|
||||||
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CodeBlockNode) Reset() {
|
func (x *CodeBlockNode) Reset() {
|
||||||
@ -1217,12 +1268,11 @@ func (x *CodeBlockNode) GetContent() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type HeadingNode struct {
|
type HeadingNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
|
Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
|
||||||
Children []*Node `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
|
Children []*Node `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *HeadingNode) Reset() {
|
func (x *HeadingNode) Reset() {
|
||||||
@ -1270,11 +1320,10 @@ func (x *HeadingNode) GetChildren() []*Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type HorizontalRuleNode struct {
|
type HorizontalRuleNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *HorizontalRuleNode) Reset() {
|
func (x *HorizontalRuleNode) Reset() {
|
||||||
@ -1315,11 +1364,10 @@ func (x *HorizontalRuleNode) GetSymbol() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type BlockquoteNode struct {
|
type BlockquoteNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Children []*Node `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"`
|
Children []*Node `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *BlockquoteNode) Reset() {
|
func (x *BlockquoteNode) Reset() {
|
||||||
@ -1360,13 +1408,12 @@ func (x *BlockquoteNode) GetChildren() []*Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListNode struct {
|
type ListNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Kind ListNode_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=memos.api.v1.ListNode_Kind" json:"kind,omitempty"`
|
Kind ListNode_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=memos.api.v1.ListNode_Kind" json:"kind,omitempty"`
|
||||||
Indent int32 `protobuf:"varint,2,opt,name=indent,proto3" json:"indent,omitempty"`
|
Indent int32 `protobuf:"varint,2,opt,name=indent,proto3" json:"indent,omitempty"`
|
||||||
Children []*Node `protobuf:"bytes,3,rep,name=children,proto3" json:"children,omitempty"`
|
Children []*Node `protobuf:"bytes,3,rep,name=children,proto3" json:"children,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListNode) Reset() {
|
func (x *ListNode) Reset() {
|
||||||
@ -1421,13 +1468,12 @@ func (x *ListNode) GetChildren() []*Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type OrderedListItemNode struct {
|
type OrderedListItemNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
|
Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
|
||||||
Indent int32 `protobuf:"varint,2,opt,name=indent,proto3" json:"indent,omitempty"`
|
Indent int32 `protobuf:"varint,2,opt,name=indent,proto3" json:"indent,omitempty"`
|
||||||
Children []*Node `protobuf:"bytes,3,rep,name=children,proto3" json:"children,omitempty"`
|
Children []*Node `protobuf:"bytes,3,rep,name=children,proto3" json:"children,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *OrderedListItemNode) Reset() {
|
func (x *OrderedListItemNode) Reset() {
|
||||||
@ -1482,13 +1528,12 @@ func (x *OrderedListItemNode) GetChildren() []*Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UnorderedListItemNode struct {
|
type UnorderedListItemNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
||||||
Indent int32 `protobuf:"varint,2,opt,name=indent,proto3" json:"indent,omitempty"`
|
Indent int32 `protobuf:"varint,2,opt,name=indent,proto3" json:"indent,omitempty"`
|
||||||
Children []*Node `protobuf:"bytes,3,rep,name=children,proto3" json:"children,omitempty"`
|
Children []*Node `protobuf:"bytes,3,rep,name=children,proto3" json:"children,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UnorderedListItemNode) Reset() {
|
func (x *UnorderedListItemNode) Reset() {
|
||||||
@ -1543,14 +1588,13 @@ func (x *UnorderedListItemNode) GetChildren() []*Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type TaskListItemNode struct {
|
type TaskListItemNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
||||||
Indent int32 `protobuf:"varint,2,opt,name=indent,proto3" json:"indent,omitempty"`
|
Indent int32 `protobuf:"varint,2,opt,name=indent,proto3" json:"indent,omitempty"`
|
||||||
Complete bool `protobuf:"varint,3,opt,name=complete,proto3" json:"complete,omitempty"`
|
Complete bool `protobuf:"varint,3,opt,name=complete,proto3" json:"complete,omitempty"`
|
||||||
Children []*Node `protobuf:"bytes,4,rep,name=children,proto3" json:"children,omitempty"`
|
Children []*Node `protobuf:"bytes,4,rep,name=children,proto3" json:"children,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TaskListItemNode) Reset() {
|
func (x *TaskListItemNode) Reset() {
|
||||||
@ -1612,11 +1656,10 @@ func (x *TaskListItemNode) GetChildren() []*Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type MathBlockNode struct {
|
type MathBlockNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *MathBlockNode) Reset() {
|
func (x *MathBlockNode) Reset() {
|
||||||
@ -1657,13 +1700,12 @@ func (x *MathBlockNode) GetContent() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type TableNode struct {
|
type TableNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Header []*Node `protobuf:"bytes,1,rep,name=header,proto3" json:"header,omitempty"`
|
Header []*Node `protobuf:"bytes,1,rep,name=header,proto3" json:"header,omitempty"`
|
||||||
Delimiter []string `protobuf:"bytes,2,rep,name=delimiter,proto3" json:"delimiter,omitempty"`
|
Delimiter []string `protobuf:"bytes,2,rep,name=delimiter,proto3" json:"delimiter,omitempty"`
|
||||||
Rows []*TableNode_Row `protobuf:"bytes,3,rep,name=rows,proto3" json:"rows,omitempty"`
|
Rows []*TableNode_Row `protobuf:"bytes,3,rep,name=rows,proto3" json:"rows,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TableNode) Reset() {
|
func (x *TableNode) Reset() {
|
||||||
@ -1718,12 +1760,11 @@ func (x *TableNode) GetRows() []*TableNode_Row {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type EmbeddedContentNode struct {
|
type EmbeddedContentNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
|
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
|
||||||
Params string `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
|
Params string `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *EmbeddedContentNode) Reset() {
|
func (x *EmbeddedContentNode) Reset() {
|
||||||
@ -1771,11 +1812,10 @@ func (x *EmbeddedContentNode) GetParams() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type TextNode struct {
|
type TextNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TextNode) Reset() {
|
func (x *TextNode) Reset() {
|
||||||
@ -1816,12 +1856,11 @@ func (x *TextNode) GetContent() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type BoldNode struct {
|
type BoldNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
||||||
Children []*Node `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
|
Children []*Node `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *BoldNode) Reset() {
|
func (x *BoldNode) Reset() {
|
||||||
@ -1869,12 +1908,11 @@ func (x *BoldNode) GetChildren() []*Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ItalicNode struct {
|
type ItalicNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
||||||
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ItalicNode) Reset() {
|
func (x *ItalicNode) Reset() {
|
||||||
@ -1922,12 +1960,11 @@ func (x *ItalicNode) GetContent() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type BoldItalicNode struct {
|
type BoldItalicNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
||||||
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *BoldItalicNode) Reset() {
|
func (x *BoldItalicNode) Reset() {
|
||||||
@ -1975,11 +2012,10 @@ func (x *BoldItalicNode) GetContent() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type CodeNode struct {
|
type CodeNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CodeNode) Reset() {
|
func (x *CodeNode) Reset() {
|
||||||
@ -2020,12 +2056,11 @@ func (x *CodeNode) GetContent() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImageNode struct {
|
type ImageNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
AltText string `protobuf:"bytes,1,opt,name=alt_text,json=altText,proto3" json:"alt_text,omitempty"`
|
AltText string `protobuf:"bytes,1,opt,name=alt_text,json=altText,proto3" json:"alt_text,omitempty"`
|
||||||
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ImageNode) Reset() {
|
func (x *ImageNode) Reset() {
|
||||||
@ -2073,12 +2108,11 @@ func (x *ImageNode) GetUrl() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type LinkNode struct {
|
type LinkNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
|
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
|
||||||
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *LinkNode) Reset() {
|
func (x *LinkNode) Reset() {
|
||||||
@ -2126,12 +2160,11 @@ func (x *LinkNode) GetUrl() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type AutoLinkNode struct {
|
type AutoLinkNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||||
IsRawText bool `protobuf:"varint,2,opt,name=is_raw_text,json=isRawText,proto3" json:"is_raw_text,omitempty"`
|
IsRawText bool `protobuf:"varint,2,opt,name=is_raw_text,json=isRawText,proto3" json:"is_raw_text,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AutoLinkNode) Reset() {
|
func (x *AutoLinkNode) Reset() {
|
||||||
@ -2179,11 +2212,10 @@ func (x *AutoLinkNode) GetIsRawText() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type TagNode struct {
|
type TagNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TagNode) Reset() {
|
func (x *TagNode) Reset() {
|
||||||
@ -2224,11 +2256,10 @@ func (x *TagNode) GetContent() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type StrikethroughNode struct {
|
type StrikethroughNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *StrikethroughNode) Reset() {
|
func (x *StrikethroughNode) Reset() {
|
||||||
@ -2269,11 +2300,10 @@ func (x *StrikethroughNode) GetContent() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type EscapingCharacterNode struct {
|
type EscapingCharacterNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *EscapingCharacterNode) Reset() {
|
func (x *EscapingCharacterNode) Reset() {
|
||||||
@ -2314,11 +2344,10 @@ func (x *EscapingCharacterNode) GetSymbol() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type MathNode struct {
|
type MathNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *MathNode) Reset() {
|
func (x *MathNode) Reset() {
|
||||||
@ -2359,11 +2388,10 @@ func (x *MathNode) GetContent() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type HighlightNode struct {
|
type HighlightNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *HighlightNode) Reset() {
|
func (x *HighlightNode) Reset() {
|
||||||
@ -2404,11 +2432,10 @@ func (x *HighlightNode) GetContent() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SubscriptNode struct {
|
type SubscriptNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SubscriptNode) Reset() {
|
func (x *SubscriptNode) Reset() {
|
||||||
@ -2449,11 +2476,10 @@ func (x *SubscriptNode) GetContent() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SuperscriptNode struct {
|
type SuperscriptNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SuperscriptNode) Reset() {
|
func (x *SuperscriptNode) Reset() {
|
||||||
@ -2494,12 +2520,11 @@ func (x *SuperscriptNode) GetContent() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReferencedContentNode struct {
|
type ReferencedContentNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
|
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
|
||||||
Params string `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
|
Params string `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ReferencedContentNode) Reset() {
|
func (x *ReferencedContentNode) Reset() {
|
||||||
@ -2547,11 +2572,10 @@ func (x *ReferencedContentNode) GetParams() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SpoilerNode struct {
|
type SpoilerNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SpoilerNode) Reset() {
|
func (x *SpoilerNode) Reset() {
|
||||||
@ -2592,12 +2616,11 @@ func (x *SpoilerNode) GetContent() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type HTMLElementNode struct {
|
type HTMLElementNode struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
TagName string `protobuf:"bytes,1,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"`
|
TagName string `protobuf:"bytes,1,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"`
|
||||||
Attributes map[string]string `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
Attributes map[string]string `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *HTMLElementNode) Reset() {
|
func (x *HTMLElementNode) Reset() {
|
||||||
@ -2645,11 +2668,10 @@ func (x *HTMLElementNode) GetAttributes() map[string]string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type TableNode_Row struct {
|
type TableNode_Row struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Cells []*Node `protobuf:"bytes,1,rep,name=cells,proto3" json:"cells,omitempty"`
|
Cells []*Node `protobuf:"bytes,1,rep,name=cells,proto3" json:"cells,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TableNode_Row) Reset() {
|
func (x *TableNode_Row) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: api/v1/memo_relation_service.proto
|
// source: api/v1/memo_relation_service.proto
|
||||||
|
|
||||||
@ -71,10 +71,7 @@ func (MemoRelation_Type) EnumDescriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type MemoRelation struct {
|
type MemoRelation struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of memo.
|
// The name of memo.
|
||||||
// Format: "memos/{uid}"
|
// Format: "memos/{uid}"
|
||||||
Memo *MemoRelation_Memo `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
|
Memo *MemoRelation_Memo `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
|
||||||
@ -82,6 +79,8 @@ type MemoRelation struct {
|
|||||||
// Format: "memos/{uid}"
|
// Format: "memos/{uid}"
|
||||||
RelatedMemo *MemoRelation_Memo `protobuf:"bytes,2,opt,name=related_memo,json=relatedMemo,proto3" json:"related_memo,omitempty"`
|
RelatedMemo *MemoRelation_Memo `protobuf:"bytes,2,opt,name=related_memo,json=relatedMemo,proto3" json:"related_memo,omitempty"`
|
||||||
Type MemoRelation_Type `protobuf:"varint,3,opt,name=type,proto3,enum=memos.api.v1.MemoRelation_Type" json:"type,omitempty"`
|
Type MemoRelation_Type `protobuf:"varint,3,opt,name=type,proto3,enum=memos.api.v1.MemoRelation_Type" json:"type,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *MemoRelation) Reset() {
|
func (x *MemoRelation) Reset() {
|
||||||
@ -136,16 +135,15 @@ func (x *MemoRelation) GetType() MemoRelation_Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type MemoRelation_Memo struct {
|
type MemoRelation_Memo struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the memo.
|
// The name of the memo.
|
||||||
// Format: memos/{id}
|
// Format: memos/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
|
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
|
||||||
// The snippet of the memo content. Plain text only.
|
// The snippet of the memo content. Plain text only.
|
||||||
Snippet string `protobuf:"bytes,3,opt,name=snippet,proto3" json:"snippet,omitempty"`
|
Snippet string `protobuf:"bytes,3,opt,name=snippet,proto3" json:"snippet,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *MemoRelation_Memo) Reset() {
|
func (x *MemoRelation_Memo) Reset() {
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: api/v1/reaction_service.proto
|
// source: api/v1/reaction_service.proto
|
||||||
|
|
||||||
@ -21,16 +21,15 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Reaction struct {
|
type Reaction struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||||
// The name of the creator.
|
// The name of the creator.
|
||||||
// Format: users/{id}
|
// Format: users/{id}
|
||||||
Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
|
Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
|
||||||
ContentId string `protobuf:"bytes,3,opt,name=content_id,json=contentId,proto3" json:"content_id,omitempty"`
|
ContentId string `protobuf:"bytes,3,opt,name=content_id,json=contentId,proto3" json:"content_id,omitempty"`
|
||||||
ReactionType string `protobuf:"bytes,4,opt,name=reaction_type,json=reactionType,proto3" json:"reaction_type,omitempty"`
|
ReactionType string `protobuf:"bytes,4,opt,name=reaction_type,json=reactionType,proto3" json:"reaction_type,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Reaction) Reset() {
|
func (x *Reaction) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: api/v1/resource_service.proto
|
// source: api/v1/resource_service.proto
|
||||||
|
|
||||||
@ -26,10 +26,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Resource struct {
|
type Resource struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the resource.
|
// The name of the resource.
|
||||||
// Format: resources/{id}
|
// Format: resources/{id}
|
||||||
// id is the system generated unique identifier.
|
// id is the system generated unique identifier.
|
||||||
@ -45,6 +42,8 @@ type Resource struct {
|
|||||||
// The related memo.
|
// The related memo.
|
||||||
// Format: memos/{id}
|
// Format: memos/{id}
|
||||||
Memo *string `protobuf:"bytes,9,opt,name=memo,proto3,oneof" json:"memo,omitempty"`
|
Memo *string `protobuf:"bytes,9,opt,name=memo,proto3,oneof" json:"memo,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Resource) Reset() {
|
func (x *Resource) Reset() {
|
||||||
@ -141,11 +140,10 @@ func (x *Resource) GetMemo() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type CreateResourceRequest struct {
|
type CreateResourceRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
|
Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CreateResourceRequest) Reset() {
|
func (x *CreateResourceRequest) Reset() {
|
||||||
@ -186,9 +184,9 @@ func (x *CreateResourceRequest) GetResource() *Resource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListResourcesRequest struct {
|
type ListResourcesRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListResourcesRequest) Reset() {
|
func (x *ListResourcesRequest) Reset() {
|
||||||
@ -222,11 +220,10 @@ func (*ListResourcesRequest) Descriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListResourcesResponse struct {
|
type ListResourcesResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Resources []*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
|
Resources []*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListResourcesResponse) Reset() {
|
func (x *ListResourcesResponse) Reset() {
|
||||||
@ -267,14 +264,13 @@ func (x *ListResourcesResponse) GetResources() []*Resource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetResourceRequest struct {
|
type GetResourceRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the resource.
|
// The name of the resource.
|
||||||
// Format: resources/{id}
|
// Format: resources/{id}
|
||||||
// id is the system generated unique identifier.
|
// id is the system generated unique identifier.
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetResourceRequest) Reset() {
|
func (x *GetResourceRequest) Reset() {
|
||||||
@ -315,12 +311,11 @@ func (x *GetResourceRequest) GetName() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetResourceByUidRequest struct {
|
type GetResourceByUidRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The uid of the resource.
|
// The uid of the resource.
|
||||||
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
|
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetResourceByUidRequest) Reset() {
|
func (x *GetResourceByUidRequest) Reset() {
|
||||||
@ -361,10 +356,7 @@ func (x *GetResourceByUidRequest) GetUid() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetResourceBinaryRequest struct {
|
type GetResourceBinaryRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the resource.
|
// The name of the resource.
|
||||||
// Format: resources/{id}
|
// Format: resources/{id}
|
||||||
// id is the system generated unique identifier.
|
// id is the system generated unique identifier.
|
||||||
@ -373,6 +365,8 @@ type GetResourceBinaryRequest struct {
|
|||||||
Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
|
Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
|
||||||
// A flag indicating if the thumbnail version of the resource should be returned
|
// A flag indicating if the thumbnail version of the resource should be returned
|
||||||
Thumbnail bool `protobuf:"varint,3,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
|
Thumbnail bool `protobuf:"varint,3,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetResourceBinaryRequest) Reset() {
|
func (x *GetResourceBinaryRequest) Reset() {
|
||||||
@ -427,12 +421,11 @@ func (x *GetResourceBinaryRequest) GetThumbnail() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UpdateResourceRequest struct {
|
type UpdateResourceRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
|
Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
|
||||||
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateResourceRequest) Reset() {
|
func (x *UpdateResourceRequest) Reset() {
|
||||||
@ -480,14 +473,13 @@ func (x *UpdateResourceRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DeleteResourceRequest struct {
|
type DeleteResourceRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the resource.
|
// The name of the resource.
|
||||||
// Format: resources/{id}
|
// Format: resources/{id}
|
||||||
// id is the system generated unique identifier.
|
// id is the system generated unique identifier.
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DeleteResourceRequest) Reset() {
|
func (x *DeleteResourceRequest) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: api/v1/user_service.proto
|
// source: api/v1/user_service.proto
|
||||||
|
|
||||||
@ -78,10 +78,7 @@ func (User_Role) EnumDescriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type User struct {
|
type User struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the user.
|
// The name of the user.
|
||||||
// Format: users/{id}
|
// Format: users/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
@ -97,6 +94,8 @@ type User struct {
|
|||||||
RowStatus RowStatus `protobuf:"varint,10,opt,name=row_status,json=rowStatus,proto3,enum=memos.api.v1.RowStatus" json:"row_status,omitempty"`
|
RowStatus RowStatus `protobuf:"varint,10,opt,name=row_status,json=rowStatus,proto3,enum=memos.api.v1.RowStatus" json:"row_status,omitempty"`
|
||||||
CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
||||||
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
|
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *User) Reset() {
|
func (x *User) Reset() {
|
||||||
@ -214,9 +213,9 @@ func (x *User) GetUpdateTime() *timestamppb.Timestamp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListUsersRequest struct {
|
type ListUsersRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListUsersRequest) Reset() {
|
func (x *ListUsersRequest) Reset() {
|
||||||
@ -250,11 +249,10 @@ func (*ListUsersRequest) Descriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListUsersResponse struct {
|
type ListUsersResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
|
Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListUsersResponse) Reset() {
|
func (x *ListUsersResponse) Reset() {
|
||||||
@ -295,13 +293,12 @@ func (x *ListUsersResponse) GetUsers() []*User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SearchUsersRequest struct {
|
type SearchUsersRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// Filter is used to filter users returned in the list.
|
// Filter is used to filter users returned in the list.
|
||||||
// Format: "username == 'frank'"
|
// Format: "username == 'frank'"
|
||||||
Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
|
Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SearchUsersRequest) Reset() {
|
func (x *SearchUsersRequest) Reset() {
|
||||||
@ -342,11 +339,10 @@ func (x *SearchUsersRequest) GetFilter() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SearchUsersResponse struct {
|
type SearchUsersResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
|
Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SearchUsersResponse) Reset() {
|
func (x *SearchUsersResponse) Reset() {
|
||||||
@ -387,13 +383,12 @@ func (x *SearchUsersResponse) GetUsers() []*User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetUserRequest struct {
|
type GetUserRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the user.
|
// The name of the user.
|
||||||
// Format: users/{id}
|
// Format: users/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetUserRequest) Reset() {
|
func (x *GetUserRequest) Reset() {
|
||||||
@ -434,15 +429,14 @@ func (x *GetUserRequest) GetName() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetUserAvatarBinaryRequest struct {
|
type GetUserAvatarBinaryRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the user.
|
// The name of the user.
|
||||||
// Format: users/{id}
|
// Format: users/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
// The raw HTTP body is bound to this field.
|
// The raw HTTP body is bound to this field.
|
||||||
HttpBody *httpbody.HttpBody `protobuf:"bytes,2,opt,name=http_body,json=httpBody,proto3" json:"http_body,omitempty"`
|
HttpBody *httpbody.HttpBody `protobuf:"bytes,2,opt,name=http_body,json=httpBody,proto3" json:"http_body,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetUserAvatarBinaryRequest) Reset() {
|
func (x *GetUserAvatarBinaryRequest) Reset() {
|
||||||
@ -490,11 +484,10 @@ func (x *GetUserAvatarBinaryRequest) GetHttpBody() *httpbody.HttpBody {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type CreateUserRequest struct {
|
type CreateUserRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CreateUserRequest) Reset() {
|
func (x *CreateUserRequest) Reset() {
|
||||||
@ -535,12 +528,11 @@ func (x *CreateUserRequest) GetUser() *User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UpdateUserRequest struct {
|
type UpdateUserRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
||||||
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateUserRequest) Reset() {
|
func (x *UpdateUserRequest) Reset() {
|
||||||
@ -588,13 +580,12 @@ func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DeleteUserRequest struct {
|
type DeleteUserRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the user.
|
// The name of the user.
|
||||||
// Format: users/{id}
|
// Format: users/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DeleteUserRequest) Reset() {
|
func (x *DeleteUserRequest) Reset() {
|
||||||
@ -635,10 +626,7 @@ func (x *DeleteUserRequest) GetName() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UserSetting struct {
|
type UserSetting struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the user.
|
// The name of the user.
|
||||||
// Format: users/{id}
|
// Format: users/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
@ -648,6 +636,8 @@ type UserSetting struct {
|
|||||||
Appearance string `protobuf:"bytes,3,opt,name=appearance,proto3" json:"appearance,omitempty"`
|
Appearance string `protobuf:"bytes,3,opt,name=appearance,proto3" json:"appearance,omitempty"`
|
||||||
// The default visibility of the memo.
|
// The default visibility of the memo.
|
||||||
MemoVisibility string `protobuf:"bytes,4,opt,name=memo_visibility,json=memoVisibility,proto3" json:"memo_visibility,omitempty"`
|
MemoVisibility string `protobuf:"bytes,4,opt,name=memo_visibility,json=memoVisibility,proto3" json:"memo_visibility,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSetting) Reset() {
|
func (x *UserSetting) Reset() {
|
||||||
@ -709,13 +699,12 @@ func (x *UserSetting) GetMemoVisibility() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetUserSettingRequest struct {
|
type GetUserSettingRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the user.
|
// The name of the user.
|
||||||
// Format: users/{id}
|
// Format: users/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetUserSettingRequest) Reset() {
|
func (x *GetUserSettingRequest) Reset() {
|
||||||
@ -756,12 +745,11 @@ func (x *GetUserSettingRequest) GetName() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UpdateUserSettingRequest struct {
|
type UpdateUserSettingRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Setting *UserSetting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"`
|
Setting *UserSetting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"`
|
||||||
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateUserSettingRequest) Reset() {
|
func (x *UpdateUserSettingRequest) Reset() {
|
||||||
@ -809,14 +797,13 @@ func (x *UpdateUserSettingRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UserAccessToken struct {
|
type UserAccessToken struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
||||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||||
IssuedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
|
IssuedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
|
||||||
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserAccessToken) Reset() {
|
func (x *UserAccessToken) Reset() {
|
||||||
@ -878,13 +865,12 @@ func (x *UserAccessToken) GetExpiresAt() *timestamppb.Timestamp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListUserAccessTokensRequest struct {
|
type ListUserAccessTokensRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the user.
|
// The name of the user.
|
||||||
// Format: users/{id}
|
// Format: users/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListUserAccessTokensRequest) Reset() {
|
func (x *ListUserAccessTokensRequest) Reset() {
|
||||||
@ -925,11 +911,10 @@ func (x *ListUserAccessTokensRequest) GetName() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListUserAccessTokensResponse struct {
|
type ListUserAccessTokensResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
AccessTokens []*UserAccessToken `protobuf:"bytes,1,rep,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"`
|
AccessTokens []*UserAccessToken `protobuf:"bytes,1,rep,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListUserAccessTokensResponse) Reset() {
|
func (x *ListUserAccessTokensResponse) Reset() {
|
||||||
@ -970,15 +955,14 @@ func (x *ListUserAccessTokensResponse) GetAccessTokens() []*UserAccessToken {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type CreateUserAccessTokenRequest struct {
|
type CreateUserAccessTokenRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the user.
|
// The name of the user.
|
||||||
// Format: users/{id}
|
// Format: users/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||||
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"`
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CreateUserAccessTokenRequest) Reset() {
|
func (x *CreateUserAccessTokenRequest) Reset() {
|
||||||
@ -1033,15 +1017,14 @@ func (x *CreateUserAccessTokenRequest) GetExpiresAt() *timestamppb.Timestamp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DeleteUserAccessTokenRequest struct {
|
type DeleteUserAccessTokenRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of the user.
|
// The name of the user.
|
||||||
// Format: users/{id}
|
// Format: users/{id}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
// access_token is the access token to delete.
|
// access_token is the access token to delete.
|
||||||
AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DeleteUserAccessTokenRequest) Reset() {
|
func (x *DeleteUserAccessTokenRequest) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: api/v1/webhook_service.proto
|
// source: api/v1/webhook_service.proto
|
||||||
|
|
||||||
@ -25,10 +25,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Webhook struct {
|
type Webhook struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||||
CreatorId int32 `protobuf:"varint,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
|
CreatorId int32 `protobuf:"varint,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
|
||||||
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
||||||
@ -36,6 +33,8 @@ type Webhook struct {
|
|||||||
RowStatus RowStatus `protobuf:"varint,5,opt,name=row_status,json=rowStatus,proto3,enum=memos.api.v1.RowStatus" json:"row_status,omitempty"`
|
RowStatus RowStatus `protobuf:"varint,5,opt,name=row_status,json=rowStatus,proto3,enum=memos.api.v1.RowStatus" json:"row_status,omitempty"`
|
||||||
Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"`
|
Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Webhook) Reset() {
|
func (x *Webhook) Reset() {
|
||||||
@ -118,12 +117,11 @@ func (x *Webhook) GetUrl() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type CreateWebhookRequest struct {
|
type CreateWebhookRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CreateWebhookRequest) Reset() {
|
func (x *CreateWebhookRequest) Reset() {
|
||||||
@ -171,11 +169,10 @@ func (x *CreateWebhookRequest) GetUrl() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetWebhookRequest struct {
|
type GetWebhookRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetWebhookRequest) Reset() {
|
func (x *GetWebhookRequest) Reset() {
|
||||||
@ -216,11 +213,10 @@ func (x *GetWebhookRequest) GetId() int32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListWebhooksRequest struct {
|
type ListWebhooksRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
CreatorId int32 `protobuf:"varint,1,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
|
CreatorId int32 `protobuf:"varint,1,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListWebhooksRequest) Reset() {
|
func (x *ListWebhooksRequest) Reset() {
|
||||||
@ -261,11 +257,10 @@ func (x *ListWebhooksRequest) GetCreatorId() int32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListWebhooksResponse struct {
|
type ListWebhooksResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Webhooks []*Webhook `protobuf:"bytes,1,rep,name=webhooks,proto3" json:"webhooks,omitempty"`
|
Webhooks []*Webhook `protobuf:"bytes,1,rep,name=webhooks,proto3" json:"webhooks,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListWebhooksResponse) Reset() {
|
func (x *ListWebhooksResponse) Reset() {
|
||||||
@ -306,12 +301,11 @@ func (x *ListWebhooksResponse) GetWebhooks() []*Webhook {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UpdateWebhookRequest struct {
|
type UpdateWebhookRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Webhook *Webhook `protobuf:"bytes,1,opt,name=webhook,proto3" json:"webhook,omitempty"`
|
Webhook *Webhook `protobuf:"bytes,1,opt,name=webhook,proto3" json:"webhook,omitempty"`
|
||||||
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateWebhookRequest) Reset() {
|
func (x *UpdateWebhookRequest) Reset() {
|
||||||
@ -359,11 +353,10 @@ func (x *UpdateWebhookRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DeleteWebhookRequest struct {
|
type DeleteWebhookRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DeleteWebhookRequest) Reset() {
|
func (x *DeleteWebhookRequest) Reset() {
|
||||||
@ -404,15 +397,14 @@ func (x *DeleteWebhookRequest) GetId() int32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type WebhookRequestPayload struct {
|
type WebhookRequestPayload struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||||
ActivityType string `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"`
|
ActivityType string `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"`
|
||||||
CreatorId int32 `protobuf:"varint,3,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
|
CreatorId int32 `protobuf:"varint,3,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
|
||||||
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
||||||
Memo *Memo `protobuf:"bytes,5,opt,name=memo,proto3" json:"memo,omitempty"`
|
Memo *Memo `protobuf:"bytes,5,opt,name=memo,proto3" json:"memo,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WebhookRequestPayload) Reset() {
|
func (x *WebhookRequestPayload) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: api/v1/workspace_service.proto
|
// source: api/v1/workspace_service.proto
|
||||||
|
|
||||||
@ -22,10 +22,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type WorkspaceProfile struct {
|
type WorkspaceProfile struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The name of instance owner.
|
// The name of instance owner.
|
||||||
// Format: "users/{id}"
|
// Format: "users/{id}"
|
||||||
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
|
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
|
||||||
@ -35,6 +32,8 @@ type WorkspaceProfile struct {
|
|||||||
Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
|
Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
|
||||||
// instance_url is the URL of the instance.
|
// instance_url is the URL of the instance.
|
||||||
InstanceUrl string `protobuf:"bytes,6,opt,name=instance_url,json=instanceUrl,proto3" json:"instance_url,omitempty"`
|
InstanceUrl string `protobuf:"bytes,6,opt,name=instance_url,json=instanceUrl,proto3" json:"instance_url,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceProfile) Reset() {
|
func (x *WorkspaceProfile) Reset() {
|
||||||
@ -96,9 +95,9 @@ func (x *WorkspaceProfile) GetInstanceUrl() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetWorkspaceProfileRequest struct {
|
type GetWorkspaceProfileRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetWorkspaceProfileRequest) Reset() {
|
func (x *GetWorkspaceProfileRequest) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: api/v1/workspace_setting_service.proto
|
// source: api/v1/workspace_setting_service.proto
|
||||||
|
|
||||||
@ -77,19 +77,18 @@ func (WorkspaceStorageSetting_StorageType) EnumDescriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type WorkspaceSetting struct {
|
type WorkspaceSetting struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// name is the name of the setting.
|
// name is the name of the setting.
|
||||||
// Format: settings/{setting}
|
// Format: settings/{setting}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
// Types that are assignable to Value:
|
// Types that are valid to be assigned to Value:
|
||||||
//
|
//
|
||||||
// *WorkspaceSetting_GeneralSetting
|
// *WorkspaceSetting_GeneralSetting
|
||||||
// *WorkspaceSetting_StorageSetting
|
// *WorkspaceSetting_StorageSetting
|
||||||
// *WorkspaceSetting_MemoRelatedSetting
|
// *WorkspaceSetting_MemoRelatedSetting
|
||||||
Value isWorkspaceSetting_Value `protobuf_oneof:"value"`
|
Value isWorkspaceSetting_Value `protobuf_oneof:"value"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceSetting) Reset() {
|
func (x *WorkspaceSetting) Reset() {
|
||||||
@ -129,31 +128,37 @@ func (x *WorkspaceSetting) GetName() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *WorkspaceSetting) GetValue() isWorkspaceSetting_Value {
|
func (x *WorkspaceSetting) GetValue() isWorkspaceSetting_Value {
|
||||||
if m != nil {
|
if x != nil {
|
||||||
return m.Value
|
return x.Value
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceSetting) GetGeneralSetting() *WorkspaceGeneralSetting {
|
func (x *WorkspaceSetting) GetGeneralSetting() *WorkspaceGeneralSetting {
|
||||||
if x, ok := x.GetValue().(*WorkspaceSetting_GeneralSetting); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Value.(*WorkspaceSetting_GeneralSetting); ok {
|
||||||
return x.GeneralSetting
|
return x.GeneralSetting
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceSetting) GetStorageSetting() *WorkspaceStorageSetting {
|
func (x *WorkspaceSetting) GetStorageSetting() *WorkspaceStorageSetting {
|
||||||
if x, ok := x.GetValue().(*WorkspaceSetting_StorageSetting); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Value.(*WorkspaceSetting_StorageSetting); ok {
|
||||||
return x.StorageSetting
|
return x.StorageSetting
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceSetting) GetMemoRelatedSetting() *WorkspaceMemoRelatedSetting {
|
func (x *WorkspaceSetting) GetMemoRelatedSetting() *WorkspaceMemoRelatedSetting {
|
||||||
if x, ok := x.GetValue().(*WorkspaceSetting_MemoRelatedSetting); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Value.(*WorkspaceSetting_MemoRelatedSetting); ok {
|
||||||
return x.MemoRelatedSetting
|
return x.MemoRelatedSetting
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,10 +185,7 @@ func (*WorkspaceSetting_StorageSetting) isWorkspaceSetting_Value() {}
|
|||||||
func (*WorkspaceSetting_MemoRelatedSetting) isWorkspaceSetting_Value() {}
|
func (*WorkspaceSetting_MemoRelatedSetting) isWorkspaceSetting_Value() {}
|
||||||
|
|
||||||
type WorkspaceGeneralSetting struct {
|
type WorkspaceGeneralSetting struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// disallow_user_registration disallows user registration.
|
// disallow_user_registration disallows user registration.
|
||||||
DisallowUserRegistration bool `protobuf:"varint,1,opt,name=disallow_user_registration,json=disallowUserRegistration,proto3" json:"disallow_user_registration,omitempty"`
|
DisallowUserRegistration bool `protobuf:"varint,1,opt,name=disallow_user_registration,json=disallowUserRegistration,proto3" json:"disallow_user_registration,omitempty"`
|
||||||
// disallow_password_auth disallows password authentication.
|
// disallow_password_auth disallows password authentication.
|
||||||
@ -202,6 +204,8 @@ type WorkspaceGeneralSetting struct {
|
|||||||
DisallowChangeUsername bool `protobuf:"varint,7,opt,name=disallow_change_username,json=disallowChangeUsername,proto3" json:"disallow_change_username,omitempty"`
|
DisallowChangeUsername bool `protobuf:"varint,7,opt,name=disallow_change_username,json=disallowChangeUsername,proto3" json:"disallow_change_username,omitempty"`
|
||||||
// disallow_change_nickname disallows changing nickname.
|
// disallow_change_nickname disallows changing nickname.
|
||||||
DisallowChangeNickname bool `protobuf:"varint,8,opt,name=disallow_change_nickname,json=disallowChangeNickname,proto3" json:"disallow_change_nickname,omitempty"`
|
DisallowChangeNickname bool `protobuf:"varint,8,opt,name=disallow_change_nickname,json=disallowChangeNickname,proto3" json:"disallow_change_nickname,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceGeneralSetting) Reset() {
|
func (x *WorkspaceGeneralSetting) Reset() {
|
||||||
@ -291,15 +295,14 @@ func (x *WorkspaceGeneralSetting) GetDisallowChangeNickname() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type WorkspaceCustomProfile struct {
|
type WorkspaceCustomProfile struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
|
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
|
||||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||||
LogoUrl string `protobuf:"bytes,3,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
|
LogoUrl string `protobuf:"bytes,3,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
|
||||||
Locale string `protobuf:"bytes,4,opt,name=locale,proto3" json:"locale,omitempty"`
|
Locale string `protobuf:"bytes,4,opt,name=locale,proto3" json:"locale,omitempty"`
|
||||||
Appearance string `protobuf:"bytes,5,opt,name=appearance,proto3" json:"appearance,omitempty"`
|
Appearance string `protobuf:"bytes,5,opt,name=appearance,proto3" json:"appearance,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceCustomProfile) Reset() {
|
func (x *WorkspaceCustomProfile) Reset() {
|
||||||
@ -368,10 +371,7 @@ func (x *WorkspaceCustomProfile) GetAppearance() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type WorkspaceStorageSetting struct {
|
type WorkspaceStorageSetting struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// storage_type is the storage type.
|
// storage_type is the storage type.
|
||||||
StorageType WorkspaceStorageSetting_StorageType `protobuf:"varint,1,opt,name=storage_type,json=storageType,proto3,enum=memos.api.v1.WorkspaceStorageSetting_StorageType" json:"storage_type,omitempty"`
|
StorageType WorkspaceStorageSetting_StorageType `protobuf:"varint,1,opt,name=storage_type,json=storageType,proto3,enum=memos.api.v1.WorkspaceStorageSetting_StorageType" json:"storage_type,omitempty"`
|
||||||
// The template of file path.
|
// The template of file path.
|
||||||
@ -381,6 +381,8 @@ type WorkspaceStorageSetting struct {
|
|||||||
UploadSizeLimitMb int64 `protobuf:"varint,3,opt,name=upload_size_limit_mb,json=uploadSizeLimitMb,proto3" json:"upload_size_limit_mb,omitempty"`
|
UploadSizeLimitMb int64 `protobuf:"varint,3,opt,name=upload_size_limit_mb,json=uploadSizeLimitMb,proto3" json:"upload_size_limit_mb,omitempty"`
|
||||||
// The S3 config.
|
// The S3 config.
|
||||||
S3Config *WorkspaceStorageSetting_S3Config `protobuf:"bytes,4,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"`
|
S3Config *WorkspaceStorageSetting_S3Config `protobuf:"bytes,4,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceStorageSetting) Reset() {
|
func (x *WorkspaceStorageSetting) Reset() {
|
||||||
@ -442,10 +444,7 @@ func (x *WorkspaceStorageSetting) GetS3Config() *WorkspaceStorageSetting_S3Confi
|
|||||||
}
|
}
|
||||||
|
|
||||||
type WorkspaceMemoRelatedSetting struct {
|
type WorkspaceMemoRelatedSetting struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// disallow_public_visibility disallows set memo as public visibility.
|
// disallow_public_visibility disallows set memo as public visibility.
|
||||||
DisallowPublicVisibility bool `protobuf:"varint,1,opt,name=disallow_public_visibility,json=disallowPublicVisibility,proto3" json:"disallow_public_visibility,omitempty"`
|
DisallowPublicVisibility bool `protobuf:"varint,1,opt,name=disallow_public_visibility,json=disallowPublicVisibility,proto3" json:"disallow_public_visibility,omitempty"`
|
||||||
// display_with_update_time orders and displays memo with update time.
|
// display_with_update_time orders and displays memo with update time.
|
||||||
@ -468,6 +467,8 @@ type WorkspaceMemoRelatedSetting struct {
|
|||||||
Reactions []string `protobuf:"bytes,10,rep,name=reactions,proto3" json:"reactions,omitempty"`
|
Reactions []string `protobuf:"bytes,10,rep,name=reactions,proto3" json:"reactions,omitempty"`
|
||||||
// disable_markdown_shortcuts disallow the registration of markdown shortcuts.
|
// disable_markdown_shortcuts disallow the registration of markdown shortcuts.
|
||||||
DisableMarkdownShortcuts bool `protobuf:"varint,11,opt,name=disable_markdown_shortcuts,json=disableMarkdownShortcuts,proto3" json:"disable_markdown_shortcuts,omitempty"`
|
DisableMarkdownShortcuts bool `protobuf:"varint,11,opt,name=disable_markdown_shortcuts,json=disableMarkdownShortcuts,proto3" json:"disable_markdown_shortcuts,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceMemoRelatedSetting) Reset() {
|
func (x *WorkspaceMemoRelatedSetting) Reset() {
|
||||||
@ -578,13 +579,12 @@ func (x *WorkspaceMemoRelatedSetting) GetDisableMarkdownShortcuts() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetWorkspaceSettingRequest struct {
|
type GetWorkspaceSettingRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The resource name of the workspace setting.
|
// The resource name of the workspace setting.
|
||||||
// Format: settings/{setting}
|
// Format: settings/{setting}
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetWorkspaceSettingRequest) Reset() {
|
func (x *GetWorkspaceSettingRequest) Reset() {
|
||||||
@ -625,12 +625,11 @@ func (x *GetWorkspaceSettingRequest) GetName() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SetWorkspaceSettingRequest struct {
|
type SetWorkspaceSettingRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// setting is the setting to update.
|
// setting is the setting to update.
|
||||||
Setting *WorkspaceSetting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"`
|
Setting *WorkspaceSetting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SetWorkspaceSettingRequest) Reset() {
|
func (x *SetWorkspaceSettingRequest) Reset() {
|
||||||
@ -672,15 +671,14 @@ func (x *SetWorkspaceSettingRequest) GetSetting() *WorkspaceSetting {
|
|||||||
|
|
||||||
// Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/
|
// Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/
|
||||||
type WorkspaceStorageSetting_S3Config struct {
|
type WorkspaceStorageSetting_S3Config struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
|
AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
|
||||||
AccessKeySecret string `protobuf:"bytes,2,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"`
|
AccessKeySecret string `protobuf:"bytes,2,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"`
|
||||||
Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
||||||
Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
|
Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
|
||||||
Bucket string `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
Bucket string `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceStorageSetting_S3Config) Reset() {
|
func (x *WorkspaceStorageSetting_S3Config) Reset() {
|
||||||
|
@ -311,12 +311,16 @@ paths:
|
|||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
- name: pageToken
|
- name: pageToken
|
||||||
description: "A page token, received from a previous `ListMemos` call.\r\nProvide this to retrieve the subsequent page."
|
description: |-
|
||||||
|
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: "Filter is used to filter memos returned in the list.\r\nFormat: \"creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']\""
|
description: |-
|
||||||
|
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
|
||||||
@ -505,7 +509,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: filter
|
- name: filter
|
||||||
description: "Filter is used to filter users returned in the list.\r\nFormat: \"username == 'frank'\""
|
description: |-
|
||||||
|
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
|
||||||
@ -666,7 +672,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The resource name of the workspace setting.\r\nFormat: settings/{setting}"
|
description: |-
|
||||||
|
The resource name of the workspace setting.
|
||||||
|
Format: settings/{setting}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -688,7 +696,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: setting.name
|
- name: setting.name
|
||||||
description: "name is the name of the setting.\r\nFormat: settings/{setting}"
|
description: |-
|
||||||
|
name is the name of the setting.
|
||||||
|
Format: settings/{setting}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -724,7 +734,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: identityProvider.name
|
- name: identityProvider.name
|
||||||
description: "The name of the identityProvider.\r\nFormat: identityProviders/{id}"
|
description: |-
|
||||||
|
The name of the identityProvider.
|
||||||
|
Format: identityProviders/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -762,7 +774,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: inbox.name
|
- name: inbox.name
|
||||||
description: "The name of the inbox.\r\nFormat: inboxes/{id}"
|
description: |-
|
||||||
|
The name of the inbox.
|
||||||
|
Format: inboxes/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -806,7 +820,10 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: memo.name
|
- name: memo.name
|
||||||
description: "The name of the memo.\r\nFormat: memos/{id}\r\nid is the system generated id."
|
description: |-
|
||||||
|
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
|
||||||
@ -824,7 +841,9 @@ paths:
|
|||||||
$ref: '#/definitions/v1RowStatus'
|
$ref: '#/definitions/v1RowStatus'
|
||||||
creator:
|
creator:
|
||||||
type: string
|
type: string
|
||||||
title: "The name of the creator.\r\nFormat: users/{id}"
|
title: |-
|
||||||
|
The name of the creator.
|
||||||
|
Format: users/{id}
|
||||||
createTime:
|
createTime:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
@ -871,7 +890,9 @@ paths:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
parent:
|
parent:
|
||||||
type: string
|
type: string
|
||||||
title: "The name of the parent memo.\r\nFormat: memos/{id}"
|
title: |-
|
||||||
|
The name of the parent memo.
|
||||||
|
Format: memos/{id}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
snippet:
|
snippet:
|
||||||
type: string
|
type: string
|
||||||
@ -897,7 +918,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name_1
|
- name: name_1
|
||||||
description: "The name of the user.\r\nFormat: users/{id}"
|
description: |-
|
||||||
|
The name of the user.
|
||||||
|
Format: users/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -919,7 +942,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name_1
|
- name: name_1
|
||||||
description: "The name of the identityProvider to delete.\r\nFormat: identityProviders/{id}"
|
description: |-
|
||||||
|
The name of the identityProvider to delete.
|
||||||
|
Format: identityProviders/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -941,7 +966,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name_2
|
- name: name_2
|
||||||
description: "The name of the identityProvider to get.\r\nFormat: identityProviders/{id}"
|
description: |-
|
||||||
|
The name of the identityProvider to get.
|
||||||
|
Format: identityProviders/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -963,7 +990,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name_2
|
- name: name_2
|
||||||
description: "The name of the inbox to delete.\r\nFormat: inboxes/{id}"
|
description: |-
|
||||||
|
The name of the inbox to delete.
|
||||||
|
Format: inboxes/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -985,7 +1014,10 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name_3
|
- name: name_3
|
||||||
description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier."
|
description: |-
|
||||||
|
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
|
||||||
@ -1007,7 +1039,10 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name_3
|
- name: name_3
|
||||||
description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier."
|
description: |-
|
||||||
|
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
|
||||||
@ -1029,7 +1064,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name_4
|
- name: name_4
|
||||||
description: "The name of the memo.\r\nFormat: memos/{id}"
|
description: |-
|
||||||
|
The name of the memo.
|
||||||
|
Format: memos/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1051,7 +1088,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name_4
|
- name: name_4
|
||||||
description: "The name of the memo.\r\nFormat: memos/{id}"
|
description: |-
|
||||||
|
The name of the memo.
|
||||||
|
Format: memos/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1073,7 +1112,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the activity.\r\nFormat: activities/{id}"
|
description: |-
|
||||||
|
The name of the activity.
|
||||||
|
Format: activities/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1095,7 +1136,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the user.\r\nFormat: users/{id}"
|
description: |-
|
||||||
|
The name of the user.
|
||||||
|
Format: users/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1117,7 +1160,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the user.\r\nFormat: users/{id}"
|
description: |-
|
||||||
|
The name of the user.
|
||||||
|
Format: users/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1138,7 +1183,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the user.\r\nFormat: users/{id}"
|
description: |-
|
||||||
|
The name of the user.
|
||||||
|
Format: users/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1166,7 +1213,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the user.\r\nFormat: users/{id}"
|
description: |-
|
||||||
|
The name of the user.
|
||||||
|
Format: users/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1193,7 +1242,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the memo.\r\nFormat: memos/{id}"
|
description: |-
|
||||||
|
The name of the memo.
|
||||||
|
Format: memos/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1214,7 +1265,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the memo.\r\nFormat: memos/{id}"
|
description: |-
|
||||||
|
The name of the memo.
|
||||||
|
Format: memos/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1241,7 +1294,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the memo.\r\nFormat: memos/{id}"
|
description: |-
|
||||||
|
The name of the memo.
|
||||||
|
Format: memos/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1262,7 +1317,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the memo.\r\nFormat: memos/{id}"
|
description: |-
|
||||||
|
The name of the memo.
|
||||||
|
Format: memos/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1289,7 +1346,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the memo.\r\nFormat: memos/{id}"
|
description: |-
|
||||||
|
The name of the memo.
|
||||||
|
Format: memos/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1311,7 +1370,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the memo.\r\nFormat: memos/{id}"
|
description: |-
|
||||||
|
The name of the memo.
|
||||||
|
Format: memos/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1338,7 +1399,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the memo.\r\nFormat: memos/{id}"
|
description: |-
|
||||||
|
The name of the memo.
|
||||||
|
Format: memos/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1360,7 +1423,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the memo.\r\nFormat: memos/{id}"
|
description: |-
|
||||||
|
The name of the memo.
|
||||||
|
Format: memos/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1387,7 +1452,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the user.\r\nFormat: users/{id}"
|
description: |-
|
||||||
|
The name of the user.
|
||||||
|
Format: users/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1410,7 +1477,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: parent
|
- name: parent
|
||||||
description: "The parent, who owns the tags.\r\nFormat: memos/{id}. Use \"memos/-\" to delete all tags."
|
description: |-
|
||||||
|
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
|
||||||
@ -1441,7 +1510,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: parent
|
- name: parent
|
||||||
description: "The parent, who owns the tags.\r\nFormat: memos/{id}. Use \"memos/-\" to rename all tags."
|
description: |-
|
||||||
|
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
|
||||||
@ -1468,7 +1539,10 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: resource.name
|
- name: resource.name
|
||||||
description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier."
|
description: |-
|
||||||
|
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
|
||||||
@ -1500,7 +1574,9 @@ paths:
|
|||||||
format: int64
|
format: int64
|
||||||
memo:
|
memo:
|
||||||
type: string
|
type: string
|
||||||
title: "The related memo.\r\nFormat: memos/{id}"
|
title: |-
|
||||||
|
The related memo.
|
||||||
|
Format: memos/{id}
|
||||||
tags:
|
tags:
|
||||||
- ResourceService
|
- ResourceService
|
||||||
/api/v1/{setting.name}:
|
/api/v1/{setting.name}:
|
||||||
@ -1518,7 +1594,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: setting.name
|
- name: setting.name
|
||||||
description: "The name of the user.\r\nFormat: users/{id}"
|
description: |-
|
||||||
|
The name of the user.
|
||||||
|
Format: users/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1557,7 +1635,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: user.name
|
- name: user.name
|
||||||
description: "The name of the user.\r\nFormat: users/{id}"
|
description: |-
|
||||||
|
The name of the user.
|
||||||
|
Format: users/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1613,7 +1693,9 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the user.\r\nFormat: users/{id}"
|
description: |-
|
||||||
|
The name of the user.
|
||||||
|
Format: users/{id}
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1646,7 +1728,10 @@ paths:
|
|||||||
$ref: '#/definitions/googlerpcStatus'
|
$ref: '#/definitions/googlerpcStatus'
|
||||||
parameters:
|
parameters:
|
||||||
- name: name
|
- name: name
|
||||||
description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier."
|
description: |-
|
||||||
|
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
|
||||||
@ -1839,7 +1924,9 @@ definitions:
|
|||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
title: "The name of the identityProvider.\r\nFormat: identityProviders/{id}"
|
title: |-
|
||||||
|
The name of the identityProvider.
|
||||||
|
Format: identityProviders/{id}
|
||||||
type:
|
type:
|
||||||
$ref: '#/definitions/apiv1IdentityProviderType'
|
$ref: '#/definitions/apiv1IdentityProviderType'
|
||||||
title:
|
title:
|
||||||
@ -1875,7 +1962,10 @@ definitions:
|
|||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
description: "The name of the memo.\r\nFormat: memos/{id}\r\nid is the system generated id."
|
description: |-
|
||||||
|
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.
|
||||||
@ -1883,7 +1973,9 @@ definitions:
|
|||||||
$ref: '#/definitions/v1RowStatus'
|
$ref: '#/definitions/v1RowStatus'
|
||||||
creator:
|
creator:
|
||||||
type: string
|
type: string
|
||||||
title: "The name of the creator.\r\nFormat: users/{id}"
|
title: |-
|
||||||
|
The name of the creator.
|
||||||
|
Format: users/{id}
|
||||||
createTime:
|
createTime:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
@ -1930,7 +2022,9 @@ definitions:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
parent:
|
parent:
|
||||||
type: string
|
type: string
|
||||||
title: "The name of the parent memo.\r\nFormat: memos/{id}"
|
title: |-
|
||||||
|
The name of the parent memo.
|
||||||
|
Format: memos/{id}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
snippet:
|
snippet:
|
||||||
type: string
|
type: string
|
||||||
@ -1963,7 +2057,9 @@ definitions:
|
|||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
title: "The name of the user.\r\nFormat: users/{id}"
|
title: |-
|
||||||
|
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.
|
||||||
@ -2007,7 +2103,10 @@ definitions:
|
|||||||
weekStartDayOffset:
|
weekStartDayOffset:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
description: "week_start_day_offset is the week start day offset from Sunday.\r\n0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday\r\nDefault is Sunday."
|
description: |-
|
||||||
|
week_start_day_offset is the week start day offset from Sunday.
|
||||||
|
0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday
|
||||||
|
Default is Sunday.
|
||||||
disallowChangeUsername:
|
disallowChangeUsername:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: disallow_change_username disallows changing username.
|
description: disallow_change_username disallows changing username.
|
||||||
@ -2058,7 +2157,9 @@ definitions:
|
|||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
title: "name is the name of the setting.\r\nFormat: settings/{setting}"
|
title: |-
|
||||||
|
name is the name of the setting.
|
||||||
|
Format: settings/{setting}
|
||||||
generalSetting:
|
generalSetting:
|
||||||
$ref: '#/definitions/apiv1WorkspaceGeneralSetting'
|
$ref: '#/definitions/apiv1WorkspaceGeneralSetting'
|
||||||
storageSetting:
|
storageSetting:
|
||||||
@ -2073,7 +2174,9 @@ definitions:
|
|||||||
description: storage_type is the storage type.
|
description: storage_type is the storage type.
|
||||||
filepathTemplate:
|
filepathTemplate:
|
||||||
type: string
|
type: string
|
||||||
title: "The template of file path.\r\ne.g. assets/{timestamp}_{filename}"
|
title: |-
|
||||||
|
The template of file path.
|
||||||
|
e.g. assets/{timestamp}_{filename}
|
||||||
uploadSizeLimitMb:
|
uploadSizeLimitMb:
|
||||||
type: string
|
type: string
|
||||||
format: int64
|
format: int64
|
||||||
@ -2232,7 +2335,9 @@ definitions:
|
|||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
title: "The name of the activity.\r\nFormat: activities/{id}"
|
title: |-
|
||||||
|
The name of the activity.
|
||||||
|
Format: activities/{id}
|
||||||
creatorId:
|
creatorId:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
@ -2375,7 +2480,9 @@ definitions:
|
|||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
title: "The name of the inbox.\r\nFormat: inboxes/{id}"
|
title: |-
|
||||||
|
The name of the inbox.
|
||||||
|
Format: inboxes/{id}
|
||||||
sender:
|
sender:
|
||||||
type: string
|
type: string
|
||||||
title: 'Format: users/{id}'
|
title: 'Format: users/{id}'
|
||||||
@ -2449,7 +2556,9 @@ definitions:
|
|||||||
$ref: '#/definitions/v1Inbox'
|
$ref: '#/definitions/v1Inbox'
|
||||||
nextPageToken:
|
nextPageToken:
|
||||||
type: string
|
type: string
|
||||||
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."
|
description: |-
|
||||||
|
A token, which can be sent as `page_token` to retrieve the next page.
|
||||||
|
If this field is omitted, there are no subsequent pages.
|
||||||
v1ListMemoCommentsResponse:
|
v1ListMemoCommentsResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@ -2492,7 +2601,9 @@ definitions:
|
|||||||
$ref: '#/definitions/apiv1Memo'
|
$ref: '#/definitions/apiv1Memo'
|
||||||
nextPageToken:
|
nextPageToken:
|
||||||
type: string
|
type: string
|
||||||
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."
|
description: |-
|
||||||
|
A token, which can be sent as `page_token` to retrieve the next page.
|
||||||
|
If this field is omitted, there are no subsequent pages.
|
||||||
v1ListNode:
|
v1ListNode:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@ -2551,10 +2662,6 @@ definitions:
|
|||||||
v1MemoProperty:
|
v1MemoProperty:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
tags:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
hasLink:
|
hasLink:
|
||||||
type: boolean
|
type: boolean
|
||||||
hasTaskList:
|
hasTaskList:
|
||||||
@ -2568,10 +2675,14 @@ definitions:
|
|||||||
properties:
|
properties:
|
||||||
memo:
|
memo:
|
||||||
$ref: '#/definitions/v1MemoRelationMemo'
|
$ref: '#/definitions/v1MemoRelationMemo'
|
||||||
title: "The name of memo.\r\nFormat: \"memos/{uid}\""
|
title: |-
|
||||||
|
The name of memo.
|
||||||
|
Format: "memos/{uid}"
|
||||||
relatedMemo:
|
relatedMemo:
|
||||||
$ref: '#/definitions/v1MemoRelationMemo'
|
$ref: '#/definitions/v1MemoRelationMemo'
|
||||||
title: "The name of related memo.\r\nFormat: \"memos/{uid}\""
|
title: |-
|
||||||
|
The name of related memo.
|
||||||
|
Format: "memos/{uid}"
|
||||||
type:
|
type:
|
||||||
$ref: '#/definitions/v1MemoRelationType'
|
$ref: '#/definitions/v1MemoRelationType'
|
||||||
v1MemoRelationMemo:
|
v1MemoRelationMemo:
|
||||||
@ -2579,7 +2690,9 @@ definitions:
|
|||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
title: "The name of the memo.\r\nFormat: memos/{id}"
|
title: |-
|
||||||
|
The name of the memo.
|
||||||
|
Format: memos/{id}
|
||||||
uid:
|
uid:
|
||||||
type: string
|
type: string
|
||||||
snippet:
|
snippet:
|
||||||
@ -2753,7 +2866,9 @@ definitions:
|
|||||||
format: int32
|
format: int32
|
||||||
creator:
|
creator:
|
||||||
type: string
|
type: string
|
||||||
title: "The name of the creator.\r\nFormat: users/{id}"
|
title: |-
|
||||||
|
The name of the creator.
|
||||||
|
Format: users/{id}
|
||||||
contentId:
|
contentId:
|
||||||
type: string
|
type: string
|
||||||
reactionType:
|
reactionType:
|
||||||
@ -2770,7 +2885,10 @@ definitions:
|
|||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
description: "The name of the resource.\r\nFormat: resources/{id}\r\nid is the system generated unique identifier."
|
description: |-
|
||||||
|
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.
|
||||||
@ -2792,7 +2910,9 @@ definitions:
|
|||||||
format: int64
|
format: int64
|
||||||
memo:
|
memo:
|
||||||
type: string
|
type: string
|
||||||
title: "The related memo.\r\nFormat: memos/{id}"
|
title: |-
|
||||||
|
The related memo.
|
||||||
|
Format: memos/{id}
|
||||||
v1RestoreMarkdownNodesRequest:
|
v1RestoreMarkdownNodesRequest:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@ -2914,7 +3034,9 @@ definitions:
|
|||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
title: "The name of the user.\r\nFormat: users/{id}"
|
title: |-
|
||||||
|
The name of the user.
|
||||||
|
Format: users/{id}
|
||||||
id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
@ -2988,7 +3110,9 @@ definitions:
|
|||||||
properties:
|
properties:
|
||||||
owner:
|
owner:
|
||||||
type: string
|
type: string
|
||||||
title: "The name of instance owner.\r\nFormat: \"users/{id}\""
|
title: |-
|
||||||
|
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
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: store/activity.proto
|
// source: store/activity.proto
|
||||||
|
|
||||||
@ -21,12 +21,11 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type ActivityMemoCommentPayload struct {
|
type ActivityMemoCommentPayload struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
MemoId int32 `protobuf:"varint,1,opt,name=memo_id,json=memoId,proto3" json:"memo_id,omitempty"`
|
MemoId int32 `protobuf:"varint,1,opt,name=memo_id,json=memoId,proto3" json:"memo_id,omitempty"`
|
||||||
RelatedMemoId int32 `protobuf:"varint,2,opt,name=related_memo_id,json=relatedMemoId,proto3" json:"related_memo_id,omitempty"`
|
RelatedMemoId int32 `protobuf:"varint,2,opt,name=related_memo_id,json=relatedMemoId,proto3" json:"related_memo_id,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ActivityMemoCommentPayload) Reset() {
|
func (x *ActivityMemoCommentPayload) Reset() {
|
||||||
@ -74,11 +73,10 @@ func (x *ActivityMemoCommentPayload) GetRelatedMemoId() int32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ActivityVersionUpdatePayload struct {
|
type ActivityVersionUpdatePayload struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ActivityVersionUpdatePayload) Reset() {
|
func (x *ActivityVersionUpdatePayload) Reset() {
|
||||||
@ -119,12 +117,11 @@ func (x *ActivityVersionUpdatePayload) GetVersion() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ActivityPayload struct {
|
type ActivityPayload struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
MemoComment *ActivityMemoCommentPayload `protobuf:"bytes,1,opt,name=memo_comment,json=memoComment,proto3" json:"memo_comment,omitempty"`
|
MemoComment *ActivityMemoCommentPayload `protobuf:"bytes,1,opt,name=memo_comment,json=memoComment,proto3" json:"memo_comment,omitempty"`
|
||||||
VersionUpdate *ActivityVersionUpdatePayload `protobuf:"bytes,2,opt,name=version_update,json=versionUpdate,proto3" json:"version_update,omitempty"`
|
VersionUpdate *ActivityVersionUpdatePayload `protobuf:"bytes,2,opt,name=version_update,json=versionUpdate,proto3" json:"version_update,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ActivityPayload) Reset() {
|
func (x *ActivityPayload) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: store/idp.proto
|
// source: store/idp.proto
|
||||||
|
|
||||||
@ -67,15 +67,14 @@ func (IdentityProvider_Type) EnumDescriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type IdentityProvider struct {
|
type IdentityProvider struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
Type IdentityProvider_Type `protobuf:"varint,3,opt,name=type,proto3,enum=memos.store.IdentityProvider_Type" json:"type,omitempty"`
|
Type IdentityProvider_Type `protobuf:"varint,3,opt,name=type,proto3,enum=memos.store.IdentityProvider_Type" json:"type,omitempty"`
|
||||||
IdentifierFilter string `protobuf:"bytes,4,opt,name=identifier_filter,json=identifierFilter,proto3" json:"identifier_filter,omitempty"`
|
IdentifierFilter string `protobuf:"bytes,4,opt,name=identifier_filter,json=identifierFilter,proto3" json:"identifier_filter,omitempty"`
|
||||||
Config *IdentityProviderConfig `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`
|
Config *IdentityProviderConfig `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *IdentityProvider) Reset() {
|
func (x *IdentityProvider) Reset() {
|
||||||
@ -144,14 +143,13 @@ func (x *IdentityProvider) GetConfig() *IdentityProviderConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type IdentityProviderConfig struct {
|
type IdentityProviderConfig struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
// Types that are valid to be assigned to Config:
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// Types that are assignable to Config:
|
|
||||||
//
|
//
|
||||||
// *IdentityProviderConfig_Oauth2Config
|
// *IdentityProviderConfig_Oauth2Config
|
||||||
Config isIdentityProviderConfig_Config `protobuf_oneof:"config"`
|
Config isIdentityProviderConfig_Config `protobuf_oneof:"config"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *IdentityProviderConfig) Reset() {
|
func (x *IdentityProviderConfig) Reset() {
|
||||||
@ -184,17 +182,19 @@ func (*IdentityProviderConfig) Descriptor() ([]byte, []int) {
|
|||||||
return file_store_idp_proto_rawDescGZIP(), []int{1}
|
return file_store_idp_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *IdentityProviderConfig) GetConfig() isIdentityProviderConfig_Config {
|
func (x *IdentityProviderConfig) GetConfig() isIdentityProviderConfig_Config {
|
||||||
if m != nil {
|
if x != nil {
|
||||||
return m.Config
|
return x.Config
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *IdentityProviderConfig) GetOauth2Config() *OAuth2Config {
|
func (x *IdentityProviderConfig) GetOauth2Config() *OAuth2Config {
|
||||||
if x, ok := x.GetConfig().(*IdentityProviderConfig_Oauth2Config); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Config.(*IdentityProviderConfig_Oauth2Config); ok {
|
||||||
return x.Oauth2Config
|
return x.Oauth2Config
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -209,13 +209,12 @@ type IdentityProviderConfig_Oauth2Config struct {
|
|||||||
func (*IdentityProviderConfig_Oauth2Config) isIdentityProviderConfig_Config() {}
|
func (*IdentityProviderConfig_Oauth2Config) isIdentityProviderConfig_Config() {}
|
||||||
|
|
||||||
type FieldMapping struct {
|
type FieldMapping struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
|
Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
|
||||||
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||||
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
|
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FieldMapping) Reset() {
|
func (x *FieldMapping) Reset() {
|
||||||
@ -270,10 +269,7 @@ func (x *FieldMapping) GetEmail() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type OAuth2Config struct {
|
type OAuth2Config struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||||
ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
|
ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
|
||||||
AuthUrl string `protobuf:"bytes,3,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`
|
AuthUrl string `protobuf:"bytes,3,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`
|
||||||
@ -281,6 +277,8 @@ type OAuth2Config struct {
|
|||||||
UserInfoUrl string `protobuf:"bytes,5,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"`
|
UserInfoUrl string `protobuf:"bytes,5,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"`
|
||||||
Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`
|
Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`
|
||||||
FieldMapping *FieldMapping `protobuf:"bytes,7,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`
|
FieldMapping *FieldMapping `protobuf:"bytes,7,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *OAuth2Config) Reset() {
|
func (x *OAuth2Config) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: store/inbox.proto
|
// source: store/inbox.proto
|
||||||
|
|
||||||
@ -70,12 +70,11 @@ func (InboxMessage_Type) EnumDescriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type InboxMessage struct {
|
type InboxMessage struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Type InboxMessage_Type `protobuf:"varint,1,opt,name=type,proto3,enum=memos.store.InboxMessage_Type" json:"type,omitempty"`
|
Type InboxMessage_Type `protobuf:"varint,1,opt,name=type,proto3,enum=memos.store.InboxMessage_Type" json:"type,omitempty"`
|
||||||
ActivityId *int32 `protobuf:"varint,2,opt,name=activity_id,json=activityId,proto3,oneof" json:"activity_id,omitempty"`
|
ActivityId *int32 `protobuf:"varint,2,opt,name=activity_id,json=activityId,proto3,oneof" json:"activity_id,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *InboxMessage) Reset() {
|
func (x *InboxMessage) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: store/memo.proto
|
// source: store/memo.proto
|
||||||
|
|
||||||
@ -21,12 +21,14 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type MemoPayload struct {
|
type MemoPayload struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Property *MemoPayload_Property `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
Property *MemoPayload_Property `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||||
Location *MemoPayload_Location `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
|
Location *MemoPayload_Location `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
|
||||||
|
Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
|
||||||
|
// The references of the memo. Should be a list of uuid.
|
||||||
|
References []string `protobuf:"bytes,4,rep,name=references,proto3" json:"references,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *MemoPayload) Reset() {
|
func (x *MemoPayload) Reset() {
|
||||||
@ -73,16 +75,28 @@ func (x *MemoPayload) GetLocation() *MemoPayload_Location {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type MemoPayload_Property struct {
|
func (x *MemoPayload) GetTags() []string {
|
||||||
state protoimpl.MessageState
|
if x != nil {
|
||||||
sizeCache protoimpl.SizeCache
|
return x.Tags
|
||||||
unknownFields protoimpl.UnknownFields
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
|
func (x *MemoPayload) GetReferences() []string {
|
||||||
HasLink bool `protobuf:"varint,2,opt,name=has_link,json=hasLink,proto3" json:"has_link,omitempty"`
|
if x != nil {
|
||||||
HasTaskList bool `protobuf:"varint,3,opt,name=has_task_list,json=hasTaskList,proto3" json:"has_task_list,omitempty"`
|
return x.References
|
||||||
HasCode bool `protobuf:"varint,4,opt,name=has_code,json=hasCode,proto3" json:"has_code,omitempty"`
|
}
|
||||||
HasIncompleteTasks bool `protobuf:"varint,5,opt,name=has_incomplete_tasks,json=hasIncompleteTasks,proto3" json:"has_incomplete_tasks,omitempty"`
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type MemoPayload_Property struct {
|
||||||
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
|
HasLink bool `protobuf:"varint,1,opt,name=has_link,json=hasLink,proto3" json:"has_link,omitempty"`
|
||||||
|
HasTaskList bool `protobuf:"varint,2,opt,name=has_task_list,json=hasTaskList,proto3" json:"has_task_list,omitempty"`
|
||||||
|
HasCode bool `protobuf:"varint,3,opt,name=has_code,json=hasCode,proto3" json:"has_code,omitempty"`
|
||||||
|
HasIncompleteTasks bool `protobuf:"varint,4,opt,name=has_incomplete_tasks,json=hasIncompleteTasks,proto3" json:"has_incomplete_tasks,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *MemoPayload_Property) Reset() {
|
func (x *MemoPayload_Property) Reset() {
|
||||||
@ -115,13 +129,6 @@ func (*MemoPayload_Property) Descriptor() ([]byte, []int) {
|
|||||||
return file_store_memo_proto_rawDescGZIP(), []int{0, 0}
|
return file_store_memo_proto_rawDescGZIP(), []int{0, 0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *MemoPayload_Property) GetTags() []string {
|
|
||||||
if x != nil {
|
|
||||||
return x.Tags
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MemoPayload_Property) GetHasLink() bool {
|
func (x *MemoPayload_Property) GetHasLink() bool {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.HasLink
|
return x.HasLink
|
||||||
@ -151,13 +158,12 @@ func (x *MemoPayload_Property) GetHasIncompleteTasks() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type MemoPayload_Location struct {
|
type MemoPayload_Location struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Placeholder string `protobuf:"bytes,1,opt,name=placeholder,proto3" json:"placeholder,omitempty"`
|
Placeholder string `protobuf:"bytes,1,opt,name=placeholder,proto3" json:"placeholder,omitempty"`
|
||||||
Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
|
Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
|
||||||
Longitude float64 `protobuf:"fixed64,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
|
Longitude float64 `protobuf:"fixed64,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *MemoPayload_Location) Reset() {
|
func (x *MemoPayload_Location) Reset() {
|
||||||
@ -216,7 +222,7 @@ var File_store_memo_proto protoreflect.FileDescriptor
|
|||||||
var file_store_memo_proto_rawDesc = []byte{
|
var file_store_memo_proto_rawDesc = []byte{
|
||||||
0x0a, 0x10, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
|
0x0a, 0x10, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
|
||||||
0x74, 0x6f, 0x12, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22,
|
0x74, 0x6f, 0x12, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22,
|
||||||
0xa0, 0x03, 0x0a, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12,
|
0xc0, 0x03, 0x0a, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12,
|
||||||
0x3d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
0x3d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
|
0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
|
||||||
0x4d, 0x65, 0x6d, 0x6f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x50, 0x72, 0x6f, 0x70,
|
0x4d, 0x65, 0x6d, 0x6f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x50, 0x72, 0x6f, 0x70,
|
||||||
@ -224,17 +230,19 @@ var file_store_memo_proto_rawDesc = []byte{
|
|||||||
0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
||||||
0x32, 0x21, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d,
|
0x32, 0x21, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d,
|
||||||
0x65, 0x6d, 0x6f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74,
|
0x65, 0x6d, 0x6f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74,
|
||||||
0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xaa, 0x01,
|
0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a,
|
||||||
0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61,
|
0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67,
|
||||||
0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x19,
|
0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18,
|
||||||
0x0a, 0x08, 0x68, 0x61, 0x73, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
|
0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
|
||||||
|
0x73, 0x1a, 0x96, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x19,
|
||||||
|
0x0a, 0x08, 0x68, 0x61, 0x73, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
|
||||||
0x52, 0x07, 0x68, 0x61, 0x73, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x61, 0x73,
|
0x52, 0x07, 0x68, 0x61, 0x73, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x61, 0x73,
|
||||||
0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
|
0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
|
||||||
0x52, 0x0b, 0x68, 0x61, 0x73, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x0a,
|
0x52, 0x0b, 0x68, 0x61, 0x73, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x0a,
|
||||||
0x08, 0x68, 0x61, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
|
0x08, 0x68, 0x61, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||||
0x07, 0x68, 0x61, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x68, 0x61, 0x73, 0x5f,
|
0x07, 0x68, 0x61, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x68, 0x61, 0x73, 0x5f,
|
||||||
0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73,
|
0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73,
|
||||||
0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x68, 0x61, 0x73, 0x49, 0x6e, 0x63, 0x6f, 0x6d,
|
0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x68, 0x61, 0x73, 0x49, 0x6e, 0x63, 0x6f, 0x6d,
|
||||||
0x70, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0x66, 0x0a, 0x08, 0x4c, 0x6f,
|
0x70, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0x66, 0x0a, 0x08, 0x4c, 0x6f,
|
||||||
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68,
|
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68,
|
||||||
0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6c, 0x61,
|
0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6c, 0x61,
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: store/resource.proto
|
// source: store/resource.proto
|
||||||
|
|
||||||
@ -74,14 +74,13 @@ func (ResourceStorageType) EnumDescriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ResourcePayload struct {
|
type ResourcePayload struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
// Types that are valid to be assigned to Payload:
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// Types that are assignable to Payload:
|
|
||||||
//
|
//
|
||||||
// *ResourcePayload_S3Object_
|
// *ResourcePayload_S3Object_
|
||||||
Payload isResourcePayload_Payload `protobuf_oneof:"payload"`
|
Payload isResourcePayload_Payload `protobuf_oneof:"payload"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ResourcePayload) Reset() {
|
func (x *ResourcePayload) Reset() {
|
||||||
@ -114,17 +113,19 @@ func (*ResourcePayload) Descriptor() ([]byte, []int) {
|
|||||||
return file_store_resource_proto_rawDescGZIP(), []int{0}
|
return file_store_resource_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ResourcePayload) GetPayload() isResourcePayload_Payload {
|
func (x *ResourcePayload) GetPayload() isResourcePayload_Payload {
|
||||||
if m != nil {
|
if x != nil {
|
||||||
return m.Payload
|
return x.Payload
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ResourcePayload) GetS3Object() *ResourcePayload_S3Object {
|
func (x *ResourcePayload) GetS3Object() *ResourcePayload_S3Object {
|
||||||
if x, ok := x.GetPayload().(*ResourcePayload_S3Object_); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Payload.(*ResourcePayload_S3Object_); ok {
|
||||||
return x.S3Object
|
return x.S3Object
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,16 +140,15 @@ type ResourcePayload_S3Object_ struct {
|
|||||||
func (*ResourcePayload_S3Object_) isResourcePayload_Payload() {}
|
func (*ResourcePayload_S3Object_) isResourcePayload_Payload() {}
|
||||||
|
|
||||||
type ResourcePayload_S3Object struct {
|
type ResourcePayload_S3Object struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
S3Config *StorageS3Config `protobuf:"bytes,1,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"`
|
S3Config *StorageS3Config `protobuf:"bytes,1,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"`
|
||||||
// key is the S3 object key.
|
// key is the S3 object key.
|
||||||
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
||||||
// last_presigned_time is the last time the object was presigned.
|
// last_presigned_time is the last time the object was presigned.
|
||||||
// This is used to determine if the presigned URL is still valid.
|
// This is used to determine if the presigned URL is still valid.
|
||||||
LastPresignedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_presigned_time,json=lastPresignedTime,proto3" json:"last_presigned_time,omitempty"`
|
LastPresignedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_presigned_time,json=lastPresignedTime,proto3" json:"last_presigned_time,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ResourcePayload_S3Object) Reset() {
|
func (x *ResourcePayload_S3Object) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: store/user_setting.proto
|
// source: store/user_setting.proto
|
||||||
|
|
||||||
@ -80,19 +80,18 @@ func (UserSettingKey) EnumDescriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UserSetting struct {
|
type UserSetting struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||||
Key UserSettingKey `protobuf:"varint,2,opt,name=key,proto3,enum=memos.store.UserSettingKey" json:"key,omitempty"`
|
Key UserSettingKey `protobuf:"varint,2,opt,name=key,proto3,enum=memos.store.UserSettingKey" json:"key,omitempty"`
|
||||||
// Types that are assignable to Value:
|
// Types that are valid to be assigned to Value:
|
||||||
//
|
//
|
||||||
// *UserSetting_AccessTokens
|
// *UserSetting_AccessTokens
|
||||||
// *UserSetting_Locale
|
// *UserSetting_Locale
|
||||||
// *UserSetting_Appearance
|
// *UserSetting_Appearance
|
||||||
// *UserSetting_MemoVisibility
|
// *UserSetting_MemoVisibility
|
||||||
Value isUserSetting_Value `protobuf_oneof:"value"`
|
Value isUserSetting_Value `protobuf_oneof:"value"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSetting) Reset() {
|
func (x *UserSetting) Reset() {
|
||||||
@ -139,38 +138,46 @@ func (x *UserSetting) GetKey() UserSettingKey {
|
|||||||
return UserSettingKey_USER_SETTING_KEY_UNSPECIFIED
|
return UserSettingKey_USER_SETTING_KEY_UNSPECIFIED
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *UserSetting) GetValue() isUserSetting_Value {
|
func (x *UserSetting) GetValue() isUserSetting_Value {
|
||||||
if m != nil {
|
if x != nil {
|
||||||
return m.Value
|
return x.Value
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSetting) GetAccessTokens() *AccessTokensUserSetting {
|
func (x *UserSetting) GetAccessTokens() *AccessTokensUserSetting {
|
||||||
if x, ok := x.GetValue().(*UserSetting_AccessTokens); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Value.(*UserSetting_AccessTokens); ok {
|
||||||
return x.AccessTokens
|
return x.AccessTokens
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSetting) GetLocale() string {
|
func (x *UserSetting) GetLocale() string {
|
||||||
if x, ok := x.GetValue().(*UserSetting_Locale); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Value.(*UserSetting_Locale); ok {
|
||||||
return x.Locale
|
return x.Locale
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSetting) GetAppearance() string {
|
func (x *UserSetting) GetAppearance() string {
|
||||||
if x, ok := x.GetValue().(*UserSetting_Appearance); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Value.(*UserSetting_Appearance); ok {
|
||||||
return x.Appearance
|
return x.Appearance
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSetting) GetMemoVisibility() string {
|
func (x *UserSetting) GetMemoVisibility() string {
|
||||||
if x, ok := x.GetValue().(*UserSetting_MemoVisibility); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Value.(*UserSetting_MemoVisibility); ok {
|
||||||
return x.MemoVisibility
|
return x.MemoVisibility
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -203,11 +210,10 @@ func (*UserSetting_Appearance) isUserSetting_Value() {}
|
|||||||
func (*UserSetting_MemoVisibility) isUserSetting_Value() {}
|
func (*UserSetting_MemoVisibility) isUserSetting_Value() {}
|
||||||
|
|
||||||
type AccessTokensUserSetting struct {
|
type AccessTokensUserSetting struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
AccessTokens []*AccessTokensUserSetting_AccessToken `protobuf:"bytes,1,rep,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"`
|
AccessTokens []*AccessTokensUserSetting_AccessToken `protobuf:"bytes,1,rep,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AccessTokensUserSetting) Reset() {
|
func (x *AccessTokensUserSetting) Reset() {
|
||||||
@ -248,15 +254,14 @@ func (x *AccessTokensUserSetting) GetAccessTokens() []*AccessTokensUserSetting_A
|
|||||||
}
|
}
|
||||||
|
|
||||||
type AccessTokensUserSetting_AccessToken struct {
|
type AccessTokensUserSetting_AccessToken struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The access token is a JWT token.
|
// The access token is a JWT token.
|
||||||
// Including expiration time, issuer, etc.
|
// Including expiration time, issuer, etc.
|
||||||
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
||||||
// A description for the access token.
|
// A description for the access token.
|
||||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AccessTokensUserSetting_AccessToken) Reset() {
|
func (x *AccessTokensUserSetting_AccessToken) Reset() {
|
||||||
|
@ -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.35.2
|
// protoc-gen-go v1.36.0
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: store/workspace_setting.proto
|
// source: store/workspace_setting.proto
|
||||||
|
|
||||||
@ -135,18 +135,17 @@ func (WorkspaceStorageSetting_StorageType) EnumDescriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type WorkspaceSetting struct {
|
type WorkspaceSetting struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Key WorkspaceSettingKey `protobuf:"varint,1,opt,name=key,proto3,enum=memos.store.WorkspaceSettingKey" json:"key,omitempty"`
|
Key WorkspaceSettingKey `protobuf:"varint,1,opt,name=key,proto3,enum=memos.store.WorkspaceSettingKey" json:"key,omitempty"`
|
||||||
// Types that are assignable to Value:
|
// Types that are valid to be assigned to Value:
|
||||||
//
|
//
|
||||||
// *WorkspaceSetting_BasicSetting
|
// *WorkspaceSetting_BasicSetting
|
||||||
// *WorkspaceSetting_GeneralSetting
|
// *WorkspaceSetting_GeneralSetting
|
||||||
// *WorkspaceSetting_StorageSetting
|
// *WorkspaceSetting_StorageSetting
|
||||||
// *WorkspaceSetting_MemoRelatedSetting
|
// *WorkspaceSetting_MemoRelatedSetting
|
||||||
Value isWorkspaceSetting_Value `protobuf_oneof:"value"`
|
Value isWorkspaceSetting_Value `protobuf_oneof:"value"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceSetting) Reset() {
|
func (x *WorkspaceSetting) Reset() {
|
||||||
@ -186,38 +185,46 @@ func (x *WorkspaceSetting) GetKey() WorkspaceSettingKey {
|
|||||||
return WorkspaceSettingKey_WORKSPACE_SETTING_KEY_UNSPECIFIED
|
return WorkspaceSettingKey_WORKSPACE_SETTING_KEY_UNSPECIFIED
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *WorkspaceSetting) GetValue() isWorkspaceSetting_Value {
|
func (x *WorkspaceSetting) GetValue() isWorkspaceSetting_Value {
|
||||||
if m != nil {
|
if x != nil {
|
||||||
return m.Value
|
return x.Value
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceSetting) GetBasicSetting() *WorkspaceBasicSetting {
|
func (x *WorkspaceSetting) GetBasicSetting() *WorkspaceBasicSetting {
|
||||||
if x, ok := x.GetValue().(*WorkspaceSetting_BasicSetting); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Value.(*WorkspaceSetting_BasicSetting); ok {
|
||||||
return x.BasicSetting
|
return x.BasicSetting
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceSetting) GetGeneralSetting() *WorkspaceGeneralSetting {
|
func (x *WorkspaceSetting) GetGeneralSetting() *WorkspaceGeneralSetting {
|
||||||
if x, ok := x.GetValue().(*WorkspaceSetting_GeneralSetting); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Value.(*WorkspaceSetting_GeneralSetting); ok {
|
||||||
return x.GeneralSetting
|
return x.GeneralSetting
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceSetting) GetStorageSetting() *WorkspaceStorageSetting {
|
func (x *WorkspaceSetting) GetStorageSetting() *WorkspaceStorageSetting {
|
||||||
if x, ok := x.GetValue().(*WorkspaceSetting_StorageSetting); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Value.(*WorkspaceSetting_StorageSetting); ok {
|
||||||
return x.StorageSetting
|
return x.StorageSetting
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceSetting) GetMemoRelatedSetting() *WorkspaceMemoRelatedSetting {
|
func (x *WorkspaceSetting) GetMemoRelatedSetting() *WorkspaceMemoRelatedSetting {
|
||||||
if x, ok := x.GetValue().(*WorkspaceSetting_MemoRelatedSetting); ok {
|
if x != nil {
|
||||||
|
if x, ok := x.Value.(*WorkspaceSetting_MemoRelatedSetting); ok {
|
||||||
return x.MemoRelatedSetting
|
return x.MemoRelatedSetting
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -250,14 +257,13 @@ func (*WorkspaceSetting_StorageSetting) isWorkspaceSetting_Value() {}
|
|||||||
func (*WorkspaceSetting_MemoRelatedSetting) isWorkspaceSetting_Value() {}
|
func (*WorkspaceSetting_MemoRelatedSetting) isWorkspaceSetting_Value() {}
|
||||||
|
|
||||||
type WorkspaceBasicSetting struct {
|
type WorkspaceBasicSetting struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// The secret key for workspace. Mainly used for session management.
|
// The secret key for workspace. Mainly used for session management.
|
||||||
SecretKey string `protobuf:"bytes,1,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
|
SecretKey string `protobuf:"bytes,1,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
|
||||||
// The current schema version of database.
|
// The current schema version of database.
|
||||||
SchemaVersion string `protobuf:"bytes,2,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
|
SchemaVersion string `protobuf:"bytes,2,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceBasicSetting) Reset() {
|
func (x *WorkspaceBasicSetting) Reset() {
|
||||||
@ -305,10 +311,7 @@ func (x *WorkspaceBasicSetting) GetSchemaVersion() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type WorkspaceGeneralSetting struct {
|
type WorkspaceGeneralSetting struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// disallow_user_registration disallows user registration.
|
// disallow_user_registration disallows user registration.
|
||||||
DisallowUserRegistration bool `protobuf:"varint,1,opt,name=disallow_user_registration,json=disallowUserRegistration,proto3" json:"disallow_user_registration,omitempty"`
|
DisallowUserRegistration bool `protobuf:"varint,1,opt,name=disallow_user_registration,json=disallowUserRegistration,proto3" json:"disallow_user_registration,omitempty"`
|
||||||
// disallow_password_auth disallows password authentication.
|
// disallow_password_auth disallows password authentication.
|
||||||
@ -327,6 +330,8 @@ type WorkspaceGeneralSetting struct {
|
|||||||
DisallowChangeUsername bool `protobuf:"varint,7,opt,name=disallow_change_username,json=disallowChangeUsername,proto3" json:"disallow_change_username,omitempty"`
|
DisallowChangeUsername bool `protobuf:"varint,7,opt,name=disallow_change_username,json=disallowChangeUsername,proto3" json:"disallow_change_username,omitempty"`
|
||||||
// disallow_change_nickname disallows changing nickname.
|
// disallow_change_nickname disallows changing nickname.
|
||||||
DisallowChangeNickname bool `protobuf:"varint,8,opt,name=disallow_change_nickname,json=disallowChangeNickname,proto3" json:"disallow_change_nickname,omitempty"`
|
DisallowChangeNickname bool `protobuf:"varint,8,opt,name=disallow_change_nickname,json=disallowChangeNickname,proto3" json:"disallow_change_nickname,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceGeneralSetting) Reset() {
|
func (x *WorkspaceGeneralSetting) Reset() {
|
||||||
@ -416,15 +421,14 @@ func (x *WorkspaceGeneralSetting) GetDisallowChangeNickname() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type WorkspaceCustomProfile struct {
|
type WorkspaceCustomProfile struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
|
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
|
||||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||||
LogoUrl string `protobuf:"bytes,3,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
|
LogoUrl string `protobuf:"bytes,3,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
|
||||||
Locale string `protobuf:"bytes,4,opt,name=locale,proto3" json:"locale,omitempty"`
|
Locale string `protobuf:"bytes,4,opt,name=locale,proto3" json:"locale,omitempty"`
|
||||||
Appearance string `protobuf:"bytes,5,opt,name=appearance,proto3" json:"appearance,omitempty"`
|
Appearance string `protobuf:"bytes,5,opt,name=appearance,proto3" json:"appearance,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceCustomProfile) Reset() {
|
func (x *WorkspaceCustomProfile) Reset() {
|
||||||
@ -493,10 +497,7 @@ func (x *WorkspaceCustomProfile) GetAppearance() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type WorkspaceStorageSetting struct {
|
type WorkspaceStorageSetting struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// storage_type is the storage type.
|
// storage_type is the storage type.
|
||||||
StorageType WorkspaceStorageSetting_StorageType `protobuf:"varint,1,opt,name=storage_type,json=storageType,proto3,enum=memos.store.WorkspaceStorageSetting_StorageType" json:"storage_type,omitempty"`
|
StorageType WorkspaceStorageSetting_StorageType `protobuf:"varint,1,opt,name=storage_type,json=storageType,proto3,enum=memos.store.WorkspaceStorageSetting_StorageType" json:"storage_type,omitempty"`
|
||||||
// The template of file path.
|
// The template of file path.
|
||||||
@ -506,6 +507,8 @@ type WorkspaceStorageSetting struct {
|
|||||||
UploadSizeLimitMb int64 `protobuf:"varint,3,opt,name=upload_size_limit_mb,json=uploadSizeLimitMb,proto3" json:"upload_size_limit_mb,omitempty"`
|
UploadSizeLimitMb int64 `protobuf:"varint,3,opt,name=upload_size_limit_mb,json=uploadSizeLimitMb,proto3" json:"upload_size_limit_mb,omitempty"`
|
||||||
// The S3 config.
|
// The S3 config.
|
||||||
S3Config *StorageS3Config `protobuf:"bytes,4,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"`
|
S3Config *StorageS3Config `protobuf:"bytes,4,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceStorageSetting) Reset() {
|
func (x *WorkspaceStorageSetting) Reset() {
|
||||||
@ -568,15 +571,14 @@ func (x *WorkspaceStorageSetting) GetS3Config() *StorageS3Config {
|
|||||||
|
|
||||||
// Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/
|
// Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/
|
||||||
type StorageS3Config struct {
|
type StorageS3Config struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
|
AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
|
||||||
AccessKeySecret string `protobuf:"bytes,2,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"`
|
AccessKeySecret string `protobuf:"bytes,2,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"`
|
||||||
Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
||||||
Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
|
Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
|
||||||
Bucket string `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
Bucket string `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *StorageS3Config) Reset() {
|
func (x *StorageS3Config) Reset() {
|
||||||
@ -645,10 +647,7 @@ func (x *StorageS3Config) GetBucket() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type WorkspaceMemoRelatedSetting struct {
|
type WorkspaceMemoRelatedSetting struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// disallow_public_visibility disallows set memo as public visibility.
|
// disallow_public_visibility disallows set memo as public visibility.
|
||||||
DisallowPublicVisibility bool `protobuf:"varint,1,opt,name=disallow_public_visibility,json=disallowPublicVisibility,proto3" json:"disallow_public_visibility,omitempty"`
|
DisallowPublicVisibility bool `protobuf:"varint,1,opt,name=disallow_public_visibility,json=disallowPublicVisibility,proto3" json:"disallow_public_visibility,omitempty"`
|
||||||
// display_with_update_time orders and displays memo with update time.
|
// display_with_update_time orders and displays memo with update time.
|
||||||
@ -671,6 +670,8 @@ type WorkspaceMemoRelatedSetting struct {
|
|||||||
Reactions []string `protobuf:"bytes,10,rep,name=reactions,proto3" json:"reactions,omitempty"`
|
Reactions []string `protobuf:"bytes,10,rep,name=reactions,proto3" json:"reactions,omitempty"`
|
||||||
// disable markdown shortcuts
|
// disable markdown shortcuts
|
||||||
DisableMarkdownShortcuts bool `protobuf:"varint,11,opt,name=disable_markdown_shortcuts,json=disableMarkdownShortcuts,proto3" json:"disable_markdown_shortcuts,omitempty"`
|
DisableMarkdownShortcuts bool `protobuf:"varint,11,opt,name=disable_markdown_shortcuts,json=disableMarkdownShortcuts,proto3" json:"disable_markdown_shortcuts,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkspaceMemoRelatedSetting) Reset() {
|
func (x *WorkspaceMemoRelatedSetting) Reset() {
|
||||||
|
@ -9,12 +9,16 @@ message MemoPayload {
|
|||||||
|
|
||||||
Location location = 2;
|
Location location = 2;
|
||||||
|
|
||||||
|
repeated string tags = 3;
|
||||||
|
|
||||||
|
// The references of the memo. Should be a list of uuid.
|
||||||
|
repeated string references = 4;
|
||||||
|
|
||||||
message Property {
|
message Property {
|
||||||
repeated string tags = 1;
|
bool has_link = 1;
|
||||||
bool has_link = 2;
|
bool has_task_list = 2;
|
||||||
bool has_task_list = 3;
|
bool has_code = 3;
|
||||||
bool has_code = 4;
|
bool has_incomplete_tasks = 4;
|
||||||
bool has_incomplete_tasks = 5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message Location {
|
message Location {
|
||||||
|
@ -21,11 +21,10 @@ import (
|
|||||||
"google.golang.org/protobuf/types/known/emptypb"
|
"google.golang.org/protobuf/types/known/emptypb"
|
||||||
"google.golang.org/protobuf/types/known/timestamppb"
|
"google.golang.org/protobuf/types/known/timestamppb"
|
||||||
|
|
||||||
"github.com/usememos/memos/internal/util"
|
|
||||||
"github.com/usememos/memos/plugin/webhook"
|
"github.com/usememos/memos/plugin/webhook"
|
||||||
v1pb "github.com/usememos/memos/proto/gen/api/v1"
|
v1pb "github.com/usememos/memos/proto/gen/api/v1"
|
||||||
storepb "github.com/usememos/memos/proto/gen/store"
|
storepb "github.com/usememos/memos/proto/gen/store"
|
||||||
"github.com/usememos/memos/server/runner/memoproperty"
|
"github.com/usememos/memos/server/runner/memopayload"
|
||||||
"github.com/usememos/memos/store"
|
"github.com/usememos/memos/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -60,12 +59,8 @@ func (s *APIV1Service) CreateMemo(ctx context.Context, request *v1pb.CreateMemoR
|
|||||||
if len(create.Content) > contentLengthLimit {
|
if len(create.Content) > contentLengthLimit {
|
||||||
return nil, status.Errorf(codes.InvalidArgument, "content too long (max %d characters)", contentLengthLimit)
|
return nil, status.Errorf(codes.InvalidArgument, "content too long (max %d characters)", contentLengthLimit)
|
||||||
}
|
}
|
||||||
property, err := memoproperty.GetMemoPropertyFromContent(create.Content)
|
if err := memopayload.RebuildMemoPayload(create); err != nil {
|
||||||
if err != nil {
|
return nil, status.Errorf(codes.Internal, "failed to rebuild memo payload: %v", err)
|
||||||
return nil, status.Errorf(codes.Internal, "failed to get memo property: %v", err)
|
|
||||||
}
|
|
||||||
create.Payload = &storepb.MemoPayload{
|
|
||||||
Property: property,
|
|
||||||
}
|
}
|
||||||
if request.Location != nil {
|
if request.Location != nil {
|
||||||
create.Payload.Location = convertLocationToStore(request.Location)
|
create.Payload.Location = convertLocationToStore(request.Location)
|
||||||
@ -269,20 +264,12 @@ func (s *APIV1Service) UpdateMemo(ctx context.Context, request *v1pb.UpdateMemoR
|
|||||||
if len(request.Memo.Content) > contentLengthLimit {
|
if len(request.Memo.Content) > contentLengthLimit {
|
||||||
return nil, status.Errorf(codes.InvalidArgument, "content too long (max %d characters)", contentLengthLimit)
|
return nil, status.Errorf(codes.InvalidArgument, "content too long (max %d characters)", contentLengthLimit)
|
||||||
}
|
}
|
||||||
update.Content = &request.Memo.Content
|
memo.Content = request.Memo.Content
|
||||||
|
if err := memopayload.RebuildMemoPayload(memo); err != nil {
|
||||||
property, err := memoproperty.GetMemoPropertyFromContent(*update.Content)
|
return nil, status.Errorf(codes.Internal, "failed to rebuild memo payload: %v", err)
|
||||||
if err != nil {
|
|
||||||
return nil, status.Errorf(codes.Internal, "failed to get memo property: %v", err)
|
|
||||||
}
|
|
||||||
payload := memo.Payload
|
|
||||||
payload.Property = property
|
|
||||||
update.Payload = payload
|
|
||||||
} else if path == "uid" {
|
|
||||||
update.UID = &request.Memo.Uid
|
|
||||||
if !util.UIDMatcher.MatchString(*update.UID) {
|
|
||||||
return nil, status.Errorf(codes.InvalidArgument, "invalid resource name")
|
|
||||||
}
|
}
|
||||||
|
update.Content = &memo.Content
|
||||||
|
update.Payload = memo.Payload
|
||||||
} else if path == "visibility" {
|
} else if path == "visibility" {
|
||||||
workspaceMemoRelatedSetting, err := s.Store.GetWorkspaceMemoRelatedSetting(ctx)
|
workspaceMemoRelatedSetting, err := s.Store.GetWorkspaceMemoRelatedSetting(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -565,23 +552,19 @@ func (s *APIV1Service) RenameMemoTag(ctx context.Context, request *v1pb.RenameMe
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, status.Errorf(codes.Internal, "failed to parse memo: %v", err)
|
return nil, status.Errorf(codes.Internal, "failed to parse memo: %v", err)
|
||||||
}
|
}
|
||||||
memoproperty.TraverseASTNodes(nodes, func(node ast.Node) {
|
memopayload.TraverseASTNodes(nodes, func(node ast.Node) {
|
||||||
if tag, ok := node.(*ast.Tag); ok && tag.Content == request.OldTag {
|
if tag, ok := node.(*ast.Tag); ok && tag.Content == request.OldTag {
|
||||||
tag.Content = request.NewTag
|
tag.Content = request.NewTag
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
content := restore.Restore(nodes)
|
memo.Content = restore.Restore(nodes)
|
||||||
|
if err := memopayload.RebuildMemoPayload(memo); err != nil {
|
||||||
property, err := memoproperty.GetMemoPropertyFromContent(content)
|
return nil, status.Errorf(codes.Internal, "failed to rebuild memo payload: %v", err)
|
||||||
if err != nil {
|
|
||||||
return nil, status.Errorf(codes.Internal, "failed to get memo property: %v", err)
|
|
||||||
}
|
}
|
||||||
payload := memo.Payload
|
|
||||||
payload.Property = property
|
|
||||||
if err := s.Store.UpdateMemo(ctx, &store.UpdateMemo{
|
if err := s.Store.UpdateMemo(ctx, &store.UpdateMemo{
|
||||||
ID: memo.ID,
|
ID: memo.ID,
|
||||||
Content: &content,
|
Content: &memo.Content,
|
||||||
Payload: payload,
|
Payload: memo.Payload,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
return nil, status.Errorf(codes.Internal, "failed to update memo: %v", err)
|
return nil, status.Errorf(codes.Internal, "failed to update memo: %v", err)
|
||||||
}
|
}
|
||||||
@ -658,6 +641,7 @@ func (s *APIV1Service) convertMemoFromStore(ctx context.Context, memo *store.Mem
|
|||||||
Content: memo.Content,
|
Content: memo.Content,
|
||||||
Visibility: convertVisibilityFromStore(memo.Visibility),
|
Visibility: convertVisibilityFromStore(memo.Visibility),
|
||||||
Pinned: memo.Pinned,
|
Pinned: memo.Pinned,
|
||||||
|
Tags: memo.Payload.Tags,
|
||||||
}
|
}
|
||||||
if memo.Payload != nil {
|
if memo.Payload != nil {
|
||||||
memoMessage.Property = convertMemoPropertyFromStore(memo.Payload.Property)
|
memoMessage.Property = convertMemoPropertyFromStore(memo.Payload.Property)
|
||||||
@ -709,7 +693,6 @@ func convertMemoPropertyFromStore(property *storepb.MemoPayload_Property) *v1pb.
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return &v1pb.MemoProperty{
|
return &v1pb.MemoProperty{
|
||||||
Tags: property.Tags,
|
|
||||||
HasLink: property.HasLink,
|
HasLink: property.HasLink,
|
||||||
HasTaskList: property.HasTaskList,
|
HasTaskList: property.HasTaskList,
|
||||||
HasCode: property.HasCode,
|
HasCode: property.HasCode,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package memoproperty
|
package memopayload
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
@ -43,24 +43,17 @@ func (r *Runner) Run(ctx context.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *Runner) RunOnce(ctx context.Context) {
|
func (r *Runner) RunOnce(ctx context.Context) {
|
||||||
emptyPayload := "{}"
|
memos, err := r.Store.ListMemos(ctx, &store.FindMemo{})
|
||||||
memos, err := r.Store.ListMemos(ctx, &store.FindMemo{
|
|
||||||
PayloadFind: &store.FindMemoPayload{
|
|
||||||
Raw: &emptyPayload,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
slog.Error("failed to list memos", "err", err)
|
slog.Error("failed to list memos", "err", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, memo := range memos {
|
for _, memo := range memos {
|
||||||
property, err := GetMemoPropertyFromContent(memo.Content)
|
if err := RebuildMemoPayload(memo); err != nil {
|
||||||
if err != nil {
|
slog.Error("failed to rebuild memo payload", "err", err)
|
||||||
slog.Error("failed to get memo property", "err", err)
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
memo.Payload.Property = property
|
|
||||||
if err := r.Store.UpdateMemo(ctx, &store.UpdateMemo{
|
if err := r.Store.UpdateMemo(ctx, &store.UpdateMemo{
|
||||||
ID: memo.ID,
|
ID: memo.ID,
|
||||||
Payload: memo.Payload,
|
Payload: memo.Payload,
|
||||||
@ -70,19 +63,23 @@ func (r *Runner) RunOnce(ctx context.Context) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetMemoPropertyFromContent(content string) (*storepb.MemoPayload_Property, error) {
|
func RebuildMemoPayload(memo *store.Memo) error {
|
||||||
nodes, err := parser.Parse(tokenizer.Tokenize(content))
|
nodes, err := parser.Parse(tokenizer.Tokenize(memo.Content))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to parse content")
|
return errors.Wrap(err, "failed to parse content")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if memo.Payload == nil {
|
||||||
|
memo.Payload = &storepb.MemoPayload{}
|
||||||
|
}
|
||||||
|
tags := []string{}
|
||||||
property := &storepb.MemoPayload_Property{}
|
property := &storepb.MemoPayload_Property{}
|
||||||
TraverseASTNodes(nodes, func(node ast.Node) {
|
TraverseASTNodes(nodes, func(node ast.Node) {
|
||||||
switch n := node.(type) {
|
switch n := node.(type) {
|
||||||
case *ast.Tag:
|
case *ast.Tag:
|
||||||
tag := n.Content
|
tag := n.Content
|
||||||
if !slices.Contains(property.Tags, tag) {
|
if !slices.Contains(tags, tag) {
|
||||||
property.Tags = append(property.Tags, tag)
|
tags = append(tags, tag)
|
||||||
}
|
}
|
||||||
case *ast.Link, *ast.AutoLink:
|
case *ast.Link, *ast.AutoLink:
|
||||||
property.HasLink = true
|
property.HasLink = true
|
||||||
@ -95,7 +92,9 @@ func GetMemoPropertyFromContent(content string) (*storepb.MemoPayload_Property,
|
|||||||
property.HasCode = true
|
property.HasCode = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return property, nil
|
memo.Payload.Tags = tags
|
||||||
|
memo.Payload.Property = property
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func TraverseASTNodes(nodes []ast.Node, fn func(ast.Node)) {
|
func TraverseASTNodes(nodes []ast.Node, fn func(ast.Node)) {
|
@ -22,7 +22,7 @@ import (
|
|||||||
apiv1 "github.com/usememos/memos/server/router/api/v1"
|
apiv1 "github.com/usememos/memos/server/router/api/v1"
|
||||||
"github.com/usememos/memos/server/router/frontend"
|
"github.com/usememos/memos/server/router/frontend"
|
||||||
"github.com/usememos/memos/server/router/rss"
|
"github.com/usememos/memos/server/router/rss"
|
||||||
"github.com/usememos/memos/server/runner/memoproperty"
|
"github.com/usememos/memos/server/runner/memopayload"
|
||||||
"github.com/usememos/memos/server/runner/s3presign"
|
"github.com/usememos/memos/server/runner/s3presign"
|
||||||
"github.com/usememos/memos/server/runner/version"
|
"github.com/usememos/memos/server/runner/version"
|
||||||
"github.com/usememos/memos/store"
|
"github.com/usememos/memos/store"
|
||||||
@ -146,12 +146,12 @@ func (s *Server) StartBackgroundRunners(ctx context.Context) {
|
|||||||
s3presignRunner.RunOnce(ctx)
|
s3presignRunner.RunOnce(ctx)
|
||||||
versionRunner := version.NewRunner(s.Store, s.Profile)
|
versionRunner := version.NewRunner(s.Store, s.Profile)
|
||||||
versionRunner.RunOnce(ctx)
|
versionRunner.RunOnce(ctx)
|
||||||
memopropertyRunner := memoproperty.NewRunner(s.Store)
|
memopayloadRunner := memopayload.NewRunner(s.Store)
|
||||||
memopropertyRunner.RunOnce(ctx)
|
memopayloadRunner.RunOnce(ctx)
|
||||||
|
|
||||||
go s3presignRunner.Run(ctx)
|
go s3presignRunner.Run(ctx)
|
||||||
go versionRunner.Run(ctx)
|
go versionRunner.Run(ctx)
|
||||||
go memopropertyRunner.Run(ctx)
|
go memopayloadRunner.Run(ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) getOrUpsertWorkspaceBasicSetting(ctx context.Context) (*storepb.WorkspaceBasicSetting, error) {
|
func (s *Server) getOrUpsertWorkspaceBasicSetting(ctx context.Context) (*storepb.WorkspaceBasicSetting, error) {
|
||||||
|
@ -13,8 +13,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (d *DB) CreateMemo(ctx context.Context, create *store.Memo) (*store.Memo, error) {
|
func (d *DB) CreateMemo(ctx context.Context, create *store.Memo) (*store.Memo, error) {
|
||||||
fields := []string{"`uid`", "`creator_id`", "`content`", "`visibility`", "`tags`", "`payload`"}
|
fields := []string{"`uid`", "`creator_id`", "`content`", "`visibility`", "`payload`"}
|
||||||
placeholder := []string{"?", "?", "?", "?", "?", "?"}
|
placeholder := []string{"?", "?", "?", "?", "?"}
|
||||||
payload := "{}"
|
payload := "{}"
|
||||||
if create.Payload != nil {
|
if create.Payload != nil {
|
||||||
payloadBytes, err := protojson.Marshal(create.Payload)
|
payloadBytes, err := protojson.Marshal(create.Payload)
|
||||||
@ -23,7 +23,7 @@ func (d *DB) CreateMemo(ctx context.Context, create *store.Memo) (*store.Memo, e
|
|||||||
}
|
}
|
||||||
payload = string(payloadBytes)
|
payload = string(payloadBytes)
|
||||||
}
|
}
|
||||||
args := []any{create.UID, create.CreatorID, create.Content, create.Visibility, "[]", payload}
|
args := []any{create.UID, create.CreatorID, create.Content, create.Visibility, payload}
|
||||||
|
|
||||||
stmt := "INSERT INTO `memo` (" + strings.Join(fields, ", ") + ") VALUES (" + strings.Join(placeholder, ", ") + ")"
|
stmt := "INSERT INTO `memo` (" + strings.Join(fields, ", ") + ") VALUES (" + strings.Join(placeholder, ", ") + ")"
|
||||||
result, err := d.db.ExecContext(ctx, stmt, args...)
|
result, err := d.db.ExecContext(ctx, stmt, args...)
|
||||||
@ -92,7 +92,7 @@ func (d *DB) ListMemos(ctx context.Context, find *store.FindMemo) ([]*store.Memo
|
|||||||
}
|
}
|
||||||
if len(v.TagSearch) != 0 {
|
if len(v.TagSearch) != 0 {
|
||||||
for _, tag := range v.TagSearch {
|
for _, tag := range v.TagSearch {
|
||||||
where, args = append(where, "(JSON_CONTAINS(JSON_EXTRACT(`memo`.`payload`, '$.property.tags'), ?) OR JSON_CONTAINS(JSON_EXTRACT(`memo`.`payload`, '$.property.tags'), ?))"), append(args, fmt.Sprintf(`"%s"`, tag), fmt.Sprintf(`"%s/"`, tag))
|
where, args = append(where, "(JSON_CONTAINS(JSON_EXTRACT(`memo`.`payload`, '$.tags'), ?) OR JSON_CONTAINS(JSON_EXTRACT(`memo`.`payload`, '$.tags'), ?))"), append(args, fmt.Sprintf(`"%s"`, tag), fmt.Sprintf(`"%s/"`, tag))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if v.HasLink {
|
if v.HasLink {
|
||||||
|
@ -83,7 +83,7 @@ func (d *DB) ListMemos(ctx context.Context, find *store.FindMemo) ([]*store.Memo
|
|||||||
}
|
}
|
||||||
if len(v.TagSearch) != 0 {
|
if len(v.TagSearch) != 0 {
|
||||||
for _, tag := range v.TagSearch {
|
for _, tag := range v.TagSearch {
|
||||||
where, args = append(where, "EXISTS (SELECT 1 FROM jsonb_array_elements(memo.payload->'property'->'tags') AS tag WHERE tag::text = "+placeholder(len(args)+1)+" OR tag::text LIKE "+placeholder(len(args)+2)+")"), append(args, fmt.Sprintf(`"%s"`, tag), fmt.Sprintf(`"%s/%%"`, tag))
|
where, args = append(where, "EXISTS (SELECT 1 FROM jsonb_array_elements(memo.payload->'tags') AS tag WHERE tag::text = "+placeholder(len(args)+1)+" OR tag::text LIKE "+placeholder(len(args)+2)+")"), append(args, fmt.Sprintf(`"%s"`, tag), fmt.Sprintf(`"%s/%%"`, tag))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if v.HasLink {
|
if v.HasLink {
|
||||||
|
@ -84,7 +84,7 @@ func (d *DB) ListMemos(ctx context.Context, find *store.FindMemo) ([]*store.Memo
|
|||||||
}
|
}
|
||||||
if len(v.TagSearch) != 0 {
|
if len(v.TagSearch) != 0 {
|
||||||
for _, tag := range v.TagSearch {
|
for _, tag := range v.TagSearch {
|
||||||
where, args = append(where, "(JSON_EXTRACT(`memo`.`payload`, '$.property.tags') LIKE ? OR JSON_EXTRACT(`memo`.`payload`, '$.property.tags') LIKE ?)"), append(args, fmt.Sprintf(`%%"%s"%%`, tag), fmt.Sprintf(`%%"%s/%%`, tag))
|
where, args = append(where, "(JSON_EXTRACT(`memo`.`payload`, '$.tags') LIKE ? OR JSON_EXTRACT(`memo`.`payload`, '$.tags') LIKE ?)"), append(args, fmt.Sprintf(`%%"%s"%%`, tag), fmt.Sprintf(`%%"%s/%%`, tag))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if v.HasLink {
|
if v.HasLink {
|
||||||
|
@ -44,7 +44,6 @@ CREATE TABLE `memo` (
|
|||||||
`row_status` VARCHAR(256) NOT NULL DEFAULT 'NORMAL',
|
`row_status` VARCHAR(256) NOT NULL DEFAULT 'NORMAL',
|
||||||
`content` TEXT NOT NULL,
|
`content` TEXT NOT NULL,
|
||||||
`visibility` VARCHAR(256) NOT NULL DEFAULT 'PRIVATE',
|
`visibility` VARCHAR(256) NOT NULL DEFAULT 'PRIVATE',
|
||||||
`tags` JSON NOT NULL,
|
|
||||||
`payload` JSON NOT NULL
|
`payload` JSON NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -44,7 +44,6 @@ CREATE TABLE memo (
|
|||||||
row_status TEXT NOT NULL DEFAULT 'NORMAL',
|
row_status TEXT NOT NULL DEFAULT 'NORMAL',
|
||||||
content TEXT NOT NULL,
|
content TEXT NOT NULL,
|
||||||
visibility TEXT NOT NULL DEFAULT 'PRIVATE',
|
visibility TEXT NOT NULL DEFAULT 'PRIVATE',
|
||||||
tags JSONB NOT NULL DEFAULT '[]',
|
|
||||||
payload JSONB NOT NULL DEFAULT '{}'
|
payload JSONB NOT NULL DEFAULT '{}'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -47,14 +47,12 @@ CREATE TABLE memo (
|
|||||||
row_status TEXT NOT NULL CHECK (row_status IN ('NORMAL', 'ARCHIVED')) DEFAULT 'NORMAL',
|
row_status TEXT NOT NULL CHECK (row_status IN ('NORMAL', 'ARCHIVED')) DEFAULT 'NORMAL',
|
||||||
content TEXT NOT NULL DEFAULT '',
|
content TEXT NOT NULL DEFAULT '',
|
||||||
visibility TEXT NOT NULL CHECK (visibility IN ('PUBLIC', 'PROTECTED', 'PRIVATE')) DEFAULT 'PRIVATE',
|
visibility TEXT NOT NULL CHECK (visibility IN ('PUBLIC', 'PROTECTED', 'PRIVATE')) DEFAULT 'PRIVATE',
|
||||||
tags TEXT NOT NULL DEFAULT '[]',
|
|
||||||
payload TEXT NOT NULL DEFAULT '{}'
|
payload TEXT NOT NULL DEFAULT '{}'
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX idx_memo_creator_id ON memo (creator_id);
|
CREATE INDEX idx_memo_creator_id ON memo (creator_id);
|
||||||
CREATE INDEX idx_memo_content ON memo (content);
|
CREATE INDEX idx_memo_content ON memo (content);
|
||||||
CREATE INDEX idx_memo_visibility ON memo (visibility);
|
CREATE INDEX idx_memo_visibility ON memo (visibility);
|
||||||
CREATE INDEX idx_memo_tags ON memo (tags);
|
|
||||||
|
|
||||||
-- memo_organizer
|
-- memo_organizer
|
||||||
CREATE TABLE memo_organizer (
|
CREATE TABLE memo_organizer (
|
||||||
|
4
store/migration/sqlite/prod/0.24/00_memo_tags.sql
Normal file
4
store/migration/sqlite/prod/0.24/00_memo_tags.sql
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-- Drop deprecated tags column.
|
||||||
|
ALTER TABLE memo DROP COLUMN tags;
|
||||||
|
|
||||||
|
DROP INDEX IF EXISTS idx_memo_tags;
|
File diff suppressed because one or more lines are too long
@ -75,10 +75,8 @@ func TestMemoListByTags(t *testing.T) {
|
|||||||
Content: "test_content",
|
Content: "test_content",
|
||||||
Visibility: store.Public,
|
Visibility: store.Public,
|
||||||
Payload: &storepb.MemoPayload{
|
Payload: &storepb.MemoPayload{
|
||||||
Property: &storepb.MemoPayload_Property{
|
|
||||||
Tags: []string{"test_tag"},
|
Tags: []string{"test_tag"},
|
||||||
},
|
},
|
||||||
},
|
|
||||||
}
|
}
|
||||||
memo, err := ts.CreateMemo(ctx, memoCreate)
|
memo, err := ts.CreateMemo(ctx, memoCreate)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
@ -81,14 +81,14 @@ const MemoDetailSidebar = ({ memo, className }: Props) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{property.tags.length > 0 && (
|
{memo.tags.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<div className="flex flex-row justify-start items-center w-full gap-1 mb-1 text-sm leading-6 text-gray-400 dark:text-gray-500 select-none">
|
<div className="flex flex-row justify-start items-center w-full gap-1 mb-1 text-sm leading-6 text-gray-400 dark:text-gray-500 select-none">
|
||||||
<span>{t("common.tags")}</span>
|
<span>{t("common.tags")}</span>
|
||||||
<span className="shrink-0">({property.tags.length})</span>
|
<span className="shrink-0">({memo.tags.length})</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="w-full flex flex-row justify-start items-center relative flex-wrap gap-x-2 gap-y-1">
|
<div className="w-full flex flex-row justify-start items-center relative flex-wrap gap-x-2 gap-y-1">
|
||||||
{property.tags.map((tag) => (
|
{memo.tags.map((tag) => (
|
||||||
<div
|
<div
|
||||||
key={tag}
|
key={tag}
|
||||||
className="shrink-0 w-auto max-w-full text-sm rounded-md leading-6 flex flex-row justify-start items-center select-none hover:opacity-80 text-gray-600 dark:text-gray-400 dark:border-zinc-800"
|
className="shrink-0 w-auto max-w-full text-sm rounded-md leading-6 flex flex-row justify-start items-center select-none hover:opacity-80 text-gray-600 dark:text-gray-400 dark:border-zinc-800"
|
||||||
|
@ -56,10 +56,10 @@ export const useMemoMetadataStore = create(
|
|||||||
|
|
||||||
export const useMemoTagList = () => {
|
export const useMemoTagList = () => {
|
||||||
const memoStore = useMemoMetadataStore();
|
const memoStore = useMemoMetadataStore();
|
||||||
const data = Object.values(memoStore.getState().dataMapByName);
|
const memos = Object.values(memoStore.getState().dataMapByName);
|
||||||
const tagAmounts: Record<string, number> = {};
|
const tagAmounts: Record<string, number> = {};
|
||||||
data.forEach((memo) => {
|
memos.forEach((memo) => {
|
||||||
memo.property?.tags.forEach((tag) => {
|
memo.tags.forEach((tag) => {
|
||||||
if (tagAmounts[tag]) {
|
if (tagAmounts[tag]) {
|
||||||
tagAmounts[tag] += 1;
|
tagAmounts[tag] += 1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user