|
|
|
|
@ -210,6 +210,8 @@ type InstanceProfile struct {
|
|
|
|
|
// The first administrator who set up this instance.
|
|
|
|
|
// When null, instance requires initial setup (creating the first admin account).
|
|
|
|
|
Admin *User `protobuf:"bytes,7,opt,name=admin,proto3" json:"admin,omitempty"`
|
|
|
|
|
// Commit is the current build commit of instance.
|
|
|
|
|
Commit string `protobuf:"bytes,8,opt,name=commit,proto3" json:"commit,omitempty"`
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
}
|
|
|
|
|
@ -272,6 +274,13 @@ func (x *InstanceProfile) GetAdmin() *User {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *InstanceProfile) GetCommit() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Commit
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Request for instance profile.
|
|
|
|
|
type GetInstanceProfileRequest struct {
|
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
|
|
@ -1377,12 +1386,13 @@ var File_api_v1_instance_service_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
const file_api_v1_instance_service_proto_rawDesc = "" +
|
|
|
|
|
"\n" +
|
|
|
|
|
"\x1dapi/v1/instance_service.proto\x12\fmemos.api.v1\x1a\x19api/v1/user_service.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/type/color.proto\"\x8c\x01\n" +
|
|
|
|
|
"\x1dapi/v1/instance_service.proto\x12\fmemos.api.v1\x1a\x19api/v1/user_service.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/type/color.proto\"\xa4\x01\n" +
|
|
|
|
|
"\x0fInstanceProfile\x12\x18\n" +
|
|
|
|
|
"\aversion\x18\x02 \x01(\tR\aversion\x12\x12\n" +
|
|
|
|
|
"\x04demo\x18\x03 \x01(\bR\x04demo\x12!\n" +
|
|
|
|
|
"\finstance_url\x18\x06 \x01(\tR\vinstanceUrl\x12(\n" +
|
|
|
|
|
"\x05admin\x18\a \x01(\v2\x12.memos.api.v1.UserR\x05admin\"\x1b\n" +
|
|
|
|
|
"\x05admin\x18\a \x01(\v2\x12.memos.api.v1.UserR\x05admin\x12\x16\n" +
|
|
|
|
|
"\x06commit\x18\b \x01(\tR\x06commit\"\x1b\n" +
|
|
|
|
|
"\x19GetInstanceProfileRequest\"\xe6\x19\n" +
|
|
|
|
|
"\x0fInstanceSetting\x12\x17\n" +
|
|
|
|
|
"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12W\n" +
|
|
|
|
|
|