Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: optimize inbox api (#6837)
ecmadao41aaa66da814
diff --git a/backend/api/v1/inbox_service.go b/backend/api/v1/inbox_service.goindex 064e2de1c0..03a90d78ee 100644--- a/backend/api/v1/inbox_service.go+++ b/backend/api/v1/inbox_service.go@@ -5,12 +5,15 @@ import ("fmt""time"+ "go.uber.org/zap""google.golang.org/grpc/codes""google.golang.org/grpc/status""github.com/bytebase/bytebase/backend/common"+ "github.com/bytebase/bytebase/backend/common/log"api "github.com/bytebase/bytebase/backend/legacyapi""github.com/bytebase/bytebase/backend/store"+ storepb "github.com/bytebase/bytebase/proto/generated-go/store"v1pb "github.com/bytebase/bytebase/proto/generated-go/v1")@@ -34,9 +37,32 @@ func (s *InboxService) ListInbox(ctx context.Context, request *v1pb.ListInboxReqreturn nil, status.Errorf(codes.InvalidArgument, err.Error())}+ var pageToken storepb.PageToken+ if request.PageToken != "" {+ if err := unmarshalPageToken(request.PageToken, &pageToken); err != nil {+ return nil, status.Errorf(codes.InvalidArgument, "invalid page token: %v", err)+ }+ if pageToken.Limit != request.PageSize {+ return nil, status.Errorf(codes.InvalidArgument, "request page size does not match the page token")+ }+ } else {+ pageToken.Limit = request.PageSize+ }+ limit := int(pageToken.Limit)+ if limit <= 0 {+ limit = 100+ }+ if limit > 1000 {+ limit = 1000+ }+ limitPlusOne := limit + 1+ offset := int(pageToken.Offset)+principalID := ctx.Value(common.PrincipalIDContextKey).(int)find := &store.FindInboxMessage{ReceiverUID: &principalID,+ Limit: &limitPlusOne,+ Offset: &offset,}for _, spec := range filters {@@ -61,9 +87,27 @@ func (s *InboxService) ListInbox(ctx context.Context, request *v1pb.ListInboxReqreturn nil, status.Errorf(codes.Internal, "failed to list inbox messages with error: %v", err.Error())}- resp := &v1pb.ListInboxResponse{}+ nextPageToken := ""+ if len(inboxList) == limitPlusOne {+ inboxList = inboxList[:limit]+ if nextPageToken, err = marshalPageToken(&storepb.PageToken{+ Limit: int32(limit),+ Offset: int32(limit + offset),+ }); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to marshal next page token, error: %v", err)+ }+ }++ resp := &v1pb.ListInboxResponse{+ NextPageToken: nextPageToken,+ }for _, inbox := range inboxList {- resp.InboxMessages = append(resp.InboxMessages, convertToInboxMessage(inbox))+ inboxV1, err := s.convertToInboxMessage(ctx, inbox)+ if err != nil {+ log.Error("failed to convert inbox message", zap.Int("inbox", inbox.UID), zap.Error(err))+ continue+ }+ resp.InboxMessages = append(resp.InboxMessages, inboxV1)}return resp, nil@@ -122,7 +166,7 @@ func (s *InboxService) UpdateInbox(ctx context.Context, request *v1pb.UpdateInboreturn nil, status.Errorf(codes.Internal, "failed to update inbox message %s with error: %v", request.InboxMessage.Name, err.Error())}- return convertToInboxMessage(inbox), nil+ return s.convertToInboxMessage(ctx, inbox)}func converToInboxAPIStatus(inboxStatus v1pb.InboxMessage_Status) (api.InboxStatus, error) {@@ -136,7 +180,7 @@ func converToInboxAPIStatus(inboxStatus v1pb.InboxMessage_Status) (api.InboxStat}}-func convertToInboxMessage(inbox *store.InboxMessage) *v1pb.InboxMessage {+func (s *InboxService) convertToInboxMessage(ctx context.Context, inbox *store.InboxMessage) (*v1pb.InboxMessage, error) {status := v1pb.InboxMessage_STATUS_UNSPECIFIEDswitch inbox.Status {case api.Unread:@@ -144,9 +188,15 @@ func convertToInboxMessage(inbox *store.InboxMessage) *v1pb.InboxMessage {case api.Read:status = v1pb.InboxMessage_STATUS_READ}+ activity, err := convertToLogEntity(ctx, s.store, inbox.Activity)+ if err != nil {+ return nil, err+ }+return &v1pb.InboxMessage{Name: fmt.Sprintf("%s%d", inboxNamePrefix, inbox.UID),ActivityUid: fmt.Sprintf("%d", inbox.ActivityUID),Status: status,- }+ Activity: activity,+ }, nil}diff --git a/backend/api/v1/logging_service.go b/backend/api/v1/logging_service.goindex b15bb41892..5c258cdfb8 100644--- a/backend/api/v1/logging_service.go+++ b/backend/api/v1/logging_service.go@@ -257,7 +257,7 @@ func (s *LoggingService) ListLogs(ctx context.Context, request *v1pb.ListLogsReqNextPageToken: nextPageToken,}for _, activity := range activityList {- logEntity, err := s.convertToLogEntity(ctx, activity)+ logEntity, err := convertToLogEntity(ctx, s.store, activity)if err != nil {return nil, status.Errorf(codes.Internal, "failed to convert log entity, error: %v", err)}@@ -282,14 +282,14 @@ func (s *LoggingService) GetLog(ctx context.Context, request *v1pb.GetLogRequestreturn nil, status.Errorf(codes.NotFound, "cannot found activity %s", request.Name)}- logEntity, err := s.convertToLogEntity(ctx, activity)+ logEntity, err := convertToLogEntity(ctx, s.store, activity)if err != nil {return nil, status.Errorf(codes.Internal, "failed to convert log entity, error: %v", err)}return logEntity, nil}-func (s *LoggingService) convertToLogEntity(ctx context.Context, activity *store.ActivityMessage) (*v1pb.LogEntity, error) {+func convertToLogEntity(ctx context.Context, db *store.Store, activity *store.ActivityMessage) (*v1pb.LogEntity, error) {resource := ""switch activity.Type {case@@ -297,7 +297,7 @@ func (s *LoggingService) convertToLogEntity(ctx context.Context, activity *storeapi.ActivityMemberRoleUpdate,api.ActivityMemberActivate,api.ActivityMemberDeactivate:- user, err := s.store.GetUserByID(ctx, activity.ContainerUID)+ user, err := db.GetUserByID(ctx, activity.ContainerUID)if err != nil {return nil, err}@@ -326,7 +326,7 @@ func (s *LoggingService) convertToLogEntity(ctx context.Context, activity *storeapi.ActivityProjectMemberDelete,api.ActivityProjectMemberRoleUpdate,api.ActivityDatabaseRecoveryPITRDone:- project, err := s.store.GetProjectV2(ctx, &store.FindProjectMessage{+ project, err := db.GetProjectV2(ctx, &store.FindProjectMessage{UID: &activity.ContainerUID,})if err != nil {@@ -339,7 +339,7 @@ func (s *LoggingService) convertToLogEntity(ctx context.Context, activity *storecaseapi.ActivitySQLEditorQuery,api.ActivitySQLExport:- instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{+ instance, err := db.GetInstanceV2(ctx, &store.FindInstanceMessage{UID: &activity.ContainerUID,})if err != nil {@@ -351,7 +351,7 @@ func (s *LoggingService) convertToLogEntity(ctx context.Context, activity *storeresource = fmt.Sprintf("%s%s", instanceNamePrefix, instance.ResourceID)}- user, err := s.store.GetUserByID(ctx, activity.CreatorUID)+ user, err := db.GetUserByID(ctx, activity.CreatorUID)if err != nil {return nil, err}diff --git a/backend/store/inbox.go b/backend/store/inbox.goindex a40af89cb6..e42634fdd7 100644--- a/backend/store/inbox.go+++ b/backend/store/inbox.go@@ -20,6 +20,7 @@ type InboxMessage struct {ReceiverUID intActivityUID intStatus api.InboxStatus+ Activity *ActivityMessage}// InboxSummaryMessage is the API message for inbox summary info.@@ -36,6 +37,8 @@ type FindInboxMessage struct {ReceiverUID *int// If specified, then it will only fetch "UNREAD" item or "READ" item whose activity created after "CreatedAfterTs"ReadCreatedAfterTs *int64+ Limit *int+ Offset *int}// UpdateInboxMessage is the API message to update the inbox.@@ -185,16 +188,35 @@ func findInboxImpl(ctx context.Context, tx *Tx, find *FindInboxMessage) ([]*Inbowhere, args = append(where, fmt.Sprintf("(status != 'READ' OR created_ts >= $%d)", len(args)+1)), append(args, *v)}- rows, err := tx.QueryContext(ctx, `+ query := `SELECT- inbox.id,+ inbox.id AS inbox_id,inbox.receiver_id,inbox.activity_id,- inbox.status+ inbox.status,+ activity.id AS activity_id,+ activity.creator_id,+ activity.updater_id,+ activity.created_ts,+ activity.updated_ts,+ activity.container_id,+ activity.type,+ activity.level,+ activity.comment,+ activity.payloadFROM inboxLEFT JOIN activity ON inbox.activity_id = activity.id- WHERE `+strings.Join(where, " AND ")+`- ORDER BY activity.created_ts DESC`,+ WHERE ` + strings.Join(where, " AND ") + `+ ORDER BY activity.created_ts DESC`++ if v := find.Limit; v != nil {+ query += fmt.Sprintf(" LIMIT %d", *v)+ }+ if v := find.Offset; v != nil {+ query += fmt.Sprintf(" OFFSET %d", *v)+ }++ rows, err := tx.QueryContext(ctx, query,args...,)if err != nil {@@ -206,14 +228,33 @@ func findInboxImpl(ctx context.Context, tx *Tx, find *FindInboxMessage) ([]*Inbovar inboxList []*InboxMessagefor rows.Next() {var inbox InboxMessage+ var activity ActivityMessage+ var protoPayload stringif err := rows.Scan(&inbox.UID,&inbox.ReceiverUID,&inbox.ActivityUID,&inbox.Status,+ &activity.UID,+ &activity.CreatorUID,+ &activity.UpdaterUID,+ &activity.CreatedTs,+ &activity.UpdatedTs,+ &activity.ContainerUID,+ &activity.Type,+ &activity.Level,+ &activity.Comment,+ &protoPayload,); err != nil {return nil, err}+ if protoPayload == "" {+ protoPayload = "{}"+ }+ if activity.Payload, err = convertProtoPayloadToAPIPayload(activity.Type, protoPayload); err != nil {+ return nil, err+ }+ inbox.Activity = &activityinboxList = append(inboxList, &inbox)}if err := rows.Err(); err != nil {@@ -230,12 +271,29 @@ func patchInboxImpl(ctx context.Context, tx *Tx, patch *UpdateInboxMessage) (*Inargs = append(args, patch.UID)var response InboxMessage+ var activity ActivityMessage+ var protoPayload string// Execute update query with RETURNING.if err := tx.QueryRowContext(ctx, `UPDATE inboxSET `+strings.Join(set, ", ")+`- WHERE id = $2- RETURNING id, receiver_id, activity_id, status+ FROM activity+ WHERE inbox.activity_id = activity.id AND inbox.id = $2+ RETURNING+ inbox.id AS inbox_id,+ inbox.receiver_id,+ inbox.activity_id,+ inbox.status,+ activity.id AS activity_id,+ activity.creator_id,+ activity.updater_id,+ activity.created_ts,+ activity.updated_ts,+ activity.container_id,+ activity.type,+ activity.level,+ activity.comment,+ activity.payload`,args...,).Scan(@@ -243,11 +301,31 @@ func patchInboxImpl(ctx context.Context, tx *Tx, patch *UpdateInboxMessage) (*In&response.ReceiverUID,&response.ActivityUID,&response.Status,+ &activity.UID,+ &activity.CreatorUID,+ &activity.UpdaterUID,+ &activity.CreatedTs,+ &activity.UpdatedTs,+ &activity.ContainerUID,+ &activity.Type,+ &activity.Level,+ &activity.Comment,+ &protoPayload,); err != nil {if err == sql.ErrNoRows {return nil, &common.Error{Code: common.NotFound, Err: errors.Errorf("inbox ID not found: %d", patch.UID)}}return nil, err}++ if protoPayload == "" {+ protoPayload = "{}"+ }+ payload, err := convertProtoPayloadToAPIPayload(activity.Type, protoPayload)+ if err != nil {+ return nil, err+ }+ activity.Payload = payload+ response.Activity = &activityreturn &response, nil}diff --git a/frontend/src/components/InboxList.vue b/frontend/src/components/InboxList.vueindex 46197486e1..12e040ff8b 100644--- a/frontend/src/components/InboxList.vue+++ b/frontend/src/components/InboxList.vue@@ -11,7 +11,7 @@<PrincipalAvatar:username="getUser(inbox.activity)?.title":size="'SMALL'"- :class="inbox.activity.comment ? '' : '-mt-0.5'"+ :class="inbox.activity?.comment ? '' : '-mt-0.5'"/><div class="flex-1 space-y-1"><div class="flex w-full justify-between space-x-2">@@ -28,14 +28,14 @@</template><span> {{ actionSentence(inbox.activity) }}</span><template- v-if="inbox.activity.level == LogEntity_Level.LEVEL_WARNING"+ v-if="inbox.activity?.level == LogEntity_Level.LEVEL_WARNING"><heroicons-outline:exclamationclass="ml-1 h-6 w-6 text-warning"/></template><template- v-else-if="inbox.activity.level == LogEntity_Level.LEVEL_ERROR"+ v-else-if="inbox.activity?.level == LogEntity_Level.LEVEL_ERROR"><heroicons-outline:exclamation-circleclass="ml-1 w-6 h-6 text-error"@@ -44,11 +44,11 @@</h3><p class="text-sm text-control whitespace-nowrap">{{- humanizeTs((inbox.activity.createTime?.getTime() ?? 0) / 1000)+ humanizeTs((inbox.activity?.createTime?.getTime() ?? 0) / 1000)}}</p></div>- <div v-if="inbox.activity.comment" class="text-sm text-control">+ <div v-if="inbox.activity?.comment" class="text-sm text-control">{{ inbox.activity.comment }}</div></div>@@ -69,7 +69,6 @@ import {ActivityTaskStatusUpdatePayload,ActivityTaskStatementUpdatePayload,ActivityTaskEarliestAllowedTimeUpdatePayload,- ComposedInbox,} from "../types";import { useRouter } from "vue-router";import { isEmpty } from "lodash-es";@@ -85,11 +84,12 @@ import {import { extractUserResourceName, extractUserUID } from "@/utils";import { useUserStore } from "@/store";import { InboxMessage_Status } from "@/types/proto/v1/inbox_service";+import { InboxMessage } from "@/types/proto/v1/inbox_service";defineProps({inboxList: {required: true,- type: Object as PropType<ComposedInbox[]>,+ type: Object as PropType<InboxMessage[]>,},});@@ -98,17 +98,20 @@ const inboxV1Store = useInboxV1Store();const activityV1Store = useActivityV1Store();const router = useRouter();-const getUser = (activity: LogEntity) => {- const email = extractUserResourceName(activity.creator);+const getUser = (activity: LogEntity | undefined) => {+ const email = extractUserResourceName(activity?.creator ?? "");return useUserStore().getUserByEmail(email);};-const getUserId = (activity: LogEntity) => {+const getUserId = (activity: LogEntity | undefined) => {const username = getUser(activity)?.name ?? "";return extractUserUID(username);};-const actionLink = (activity: LogEntity): string => {+const actionLink = (activity: LogEntity | undefined): string => {+ if (!activity) {+ return "";+ }if (activity.resource.startsWith("issues")) {return `/issue/${activityV1Store.getResourceId(activity)}`;} else if (@@ -125,17 +128,18 @@ const actionLink = (activity: LogEntity): string => {return "";};-const showCreator = (activity: LogEntity): boolean => {+const showCreator = (activity: LogEntity | undefined): boolean => {return (- activity.resource.startsWith("issues") ||- activity.action == LogEntity_Action.ACTION_PIPELINE_TASK_STATEMENT_UPDATE ||- activity.action ==+ activity?.resource.startsWith("issues") ||+ activity?.action ==+ LogEntity_Action.ACTION_PIPELINE_TASK_STATEMENT_UPDATE ||+ activity?.action ==LogEntity_Action.ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE);};-const actionSentence = (activity: LogEntity): string => {- if (activity.resource.startsWith("issues")) {+const actionSentence = (activity: LogEntity | undefined): string => {+ if (activity?.resource.startsWith("issues")) {const [tid, params] = issueActivityActionSentence(activity);const actionStr = t(tid, params);switch (activity.action) {@@ -166,7 +170,7 @@ const actionSentence = (activity: LogEntity): string => {}return actionStr;}- switch (activity.action) {+ switch (activity?.action) {case LogEntity_Action.ACTION_PIPELINE_TASK_STATUS_UPDATE: {const payload = JSON.parse(activity.payload@@ -230,14 +234,14 @@ const actionSentence = (activity: LogEntity): string => {return "";};-const clickInbox = (inbox: ComposedInbox) => {+const clickInbox = (inbox: InboxMessage) => {if (inbox.status == InboxMessage_Status.STATUS_UNREAD) {inbox.status = InboxMessage_Status.STATUS_READ;inboxV1Store.patchInbox(inbox).then(() => {inboxV1Store.updateInboxSummary({unread: -1,unreadError:- inbox.activity.level === LogEntity_Level.LEVEL_ERROR ? -1 : 0,+ inbox.activity?.level === LogEntity_Level.LEVEL_ERROR ? -1 : 0,});});}diff --git a/frontend/src/store/modules/v1/inbox.ts b/frontend/src/store/modules/v1/inbox.tsindex b51987a7af..dc752d04b4 100644--- a/frontend/src/store/modules/v1/inbox.ts+++ b/frontend/src/store/modules/v1/inbox.ts@@ -4,38 +4,16 @@ import utc from "dayjs/plugin/utc";import { reactive } from "vue";import { InboxMessage, InboxSummary } from "@/types/proto/v1/inbox_service";import { inboxServiceClient } from "@/grpcweb";-import { useActivityV1Store } from "./activity";-import { ComposedInbox } from "@/types";dayjs.extend(utc);export const useInboxV1Store = defineStore("inbox_v1", () => {- const inboxMessageList = reactive<ComposedInbox[]>([]);+ const inboxMessageList = reactive<InboxMessage[]>([]);const inboxSummary = reactive<InboxSummary>({unread: 0,unreadError: 0,});- const composeActivity = async (- inboxMessage: InboxMessage- ): Promise<ComposedInbox | undefined> => {- try {- const activity = await useActivityV1Store().fetchActivityByUID(- inboxMessage.activityUid- );- if (!activity) {- return;- }- return {- ...inboxMessage,- activity,- };- } catch {- // nothing, we will skip inbox with undefined activity.- }- return;- };-const fetchInboxList = async (readCreatedAfterTs: number) => {if (inboxMessageList.length > 0) {return inboxMessageList;@@ -44,12 +22,9 @@ export const useInboxV1Store = defineStore("inbox_v1", () => {filter: `create_time >= ${dayjs(readCreatedAfterTs).utc().format()}`,});- const list = await Promise.all(resp.inboxMessages.map(composeActivity));inboxMessageList.splice(0, inboxMessageList.length);- for (const inbox of list) {- if (inbox) {- inboxMessageList.push(inbox);- }+ for (const inbox of resp.inboxMessages) {+ inboxMessageList.push(inbox);}return inboxMessageList;diff --git a/frontend/src/types/inbox.ts b/frontend/src/types/inbox.tsdeleted file mode 100644index ef19aaaf5b..0000000000--- a/frontend/src/types/inbox.ts+++ /dev/null@@ -1,6 +0,0 @@-import { LogEntity } from "@/types/proto/v1/logging_service";-import { InboxMessage } from "@/types/proto/v1/inbox_service";--export interface ComposedInbox extends InboxMessage {- activity: LogEntity;-}diff --git a/frontend/src/types/index.ts b/frontend/src/types/index.tsindex eac01145e3..cc6f552944 100644--- a/frontend/src/types/index.ts+++ b/frontend/src/types/index.ts@@ -13,7 +13,6 @@ export * from "./error";export * from "./errorList";export * from "./help";export * from "./id";-export * from "./inbox";export * from "./instance";export * from "./issue";export * from "./issueSubscriber";diff --git a/frontend/src/types/proto/v1/inbox_service.ts b/frontend/src/types/proto/v1/inbox_service.tsindex c9aa153e88..c71006e399 100644--- a/frontend/src/types/proto/v1/inbox_service.ts+++ b/frontend/src/types/proto/v1/inbox_service.ts@@ -2,6 +2,7 @@import type { CallContext, CallOptions } from "nice-grpc-common";import * as _m0 from "protobufjs/minimal";import { FieldMask } from "../google/protobuf/field_mask";+import { LogEntity } from "./logging_service";export const protobufPackage = "bytebase.v1";@@ -54,6 +55,7 @@ export interface InboxMessage {name: string;activityUid: string;status: InboxMessage_Status;+ activity?: LogEntity;}export enum InboxMessage_Status {@@ -380,7 +382,7 @@ export const UpdateInboxRequest = {};function createBaseInboxMessage(): InboxMessage {- return { name: "", activityUid: "", status: 0 };+ return { name: "", activityUid: "", status: 0, activity: undefined };}export const InboxMessage = {@@ -394,6 +396,9 @@ export const InboxMessage = {if (message.status !== 0) {writer.uint32(24).int32(message.status);}+ if (message.activity !== undefined) {+ LogEntity.encode(message.activity, writer.uint32(34).fork()).ldelim();+ }return writer;},@@ -425,6 +430,13 @@ export const InboxMessage = {message.status = reader.int32() as any;continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.activity = LogEntity.decode(reader, reader.uint32());+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -439,6 +451,7 @@ export const InboxMessage = {name: isSet(object.name) ? String(object.name) : "",activityUid: isSet(object.activityUid) ? String(object.activityUid) : "",status: isSet(object.status) ? inboxMessage_StatusFromJSON(object.status) : 0,+ activity: isSet(object.activity) ? LogEntity.fromJSON(object.activity) : undefined,};},@@ -447,6 +460,8 @@ export const InboxMessage = {message.name !== undefined && (obj.name = message.name);message.activityUid !== undefined && (obj.activityUid = message.activityUid);message.status !== undefined && (obj.status = inboxMessage_StatusToJSON(message.status));+ message.activity !== undefined &&+ (obj.activity = message.activity ? LogEntity.toJSON(message.activity) : undefined);return obj;},@@ -459,6 +474,9 @@ export const InboxMessage = {message.name = object.name ?? "";message.activityUid = object.activityUid ?? "";message.status = object.status ?? 0;+ message.activity = (object.activity !== undefined && object.activity !== null)+ ? LogEntity.fromPartial(object.activity)+ : undefined;return message;},};diff --git a/frontend/src/views/Inbox.vue b/frontend/src/views/Inbox.vueindex 3eb1395437..275960a0c5 100644--- a/frontend/src/views/Inbox.vue+++ b/frontend/src/views/Inbox.vue@@ -36,18 +36,21 @@<script lang="ts">import { reactive, watchEffect } from "vue";import InboxList from "../components/InboxList.vue";-import { ComposedInbox, UNKNOWN_ID } from "@/types";+import { UNKNOWN_ID } from "@/types";import { useRouter } from "vue-router";import { useCurrentUser, useInboxV1Store } from "@/store";-import { InboxMessage_Status } from "@/types/proto/v1/inbox_service";+import {+ InboxMessage,+ InboxMessage_Status,+} from "@/types/proto/v1/inbox_service";// We alway fetch all "UNREAD" items. But for "READ" items, by default, we only fetch the most recent 7 days.// And each time clicking "View older" will extend 7 days further.const READ_INBOX_DURATION_STEP = 3600 * 24 * 7;interface LocalState {- readList: ComposedInbox[];- unreadList: ComposedInbox[];+ readList: InboxMessage[];+ unreadList: InboxMessage[];readCreatedAfterTs: number;}diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex caa029a4cf..7abf6a735c 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -228,6 +228,17 @@- [IdentityProviderService](#bytebase-v1-IdentityProviderService)+- [v1/logging_service.proto](#v1_logging_service-proto)+ - [GetLogRequest](#bytebase-v1-GetLogRequest)+ - [ListLogsRequest](#bytebase-v1-ListLogsRequest)+ - [ListLogsResponse](#bytebase-v1-ListLogsResponse)+ - [LogEntity](#bytebase-v1-LogEntity)++ - [LogEntity.Action](#bytebase-v1-LogEntity-Action)+ - [LogEntity.Level](#bytebase-v1-LogEntity-Level)++ - [LoggingService](#bytebase-v1-LoggingService)+- [v1/inbox_service.proto](#v1_inbox_service-proto)- [GetInboxSummaryRequest](#bytebase-v1-GetInboxSummaryRequest)- [InboxMessage](#bytebase-v1-InboxMessage)@@ -273,17 +284,6 @@- [InstanceService](#bytebase-v1-InstanceService)-- [v1/logging_service.proto](#v1_logging_service-proto)- - [GetLogRequest](#bytebase-v1-GetLogRequest)- - [ListLogsRequest](#bytebase-v1-ListLogsRequest)- - [ListLogsResponse](#bytebase-v1-ListLogsResponse)- - [LogEntity](#bytebase-v1-LogEntity)-- - [LogEntity.Action](#bytebase-v1-LogEntity-Action)- - [LogEntity.Level](#bytebase-v1-LogEntity-Level)-- - [LoggingService](#bytebase-v1-LoggingService)-- [v1/project_service.proto](#v1_project_service-proto)- [Activity](#bytebase-v1-Activity)- [AddWebhookRequest](#bytebase-v1-AddWebhookRequest)@@ -3808,6 +3808,160 @@ The identity provider's `name` field is used to identify the identity provid+<a name="v1_logging_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## v1/logging_service.proto++++<a name="bytebase-v1-GetLogRequest"></a>++### GetLogRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the log to retrieve. Format: logs/{uid} |+++++++<a name="bytebase-v1-ListLogsRequest"></a>++### ListLogsRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| filter | [string](#string) | | filter is the filter to apply on the list logs request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. The field only support in filter: - creator, example: - creator = "users/{email}" - resource, example: - resource = "projects/{project resource id}" - level, example: - level = "INFO" - level = "ERROR | WARN" - action, example: - action = "ACTION_MEMBER_CREATE" | "ACTION_ISSUE_CREATE" - create_time, example: - create_time <= "2022-01-01T12:00:00.000Z" - create_time >= "2022-01-01T12:00:00.000Z" For example: List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' |+| order_by | [string](#string) | | The order by of the log. Only support order by create_time. For example: - order_by = "create_time asc" - order_by = "create_time desc" |+| page_size | [int32](#int32) | | Not used. The maximum number of logs to return. The service may return fewer than this value. If unspecified, at most 100 log entries will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `ListLogs` call. Provide this to retrieve the subsequent page. |+++++++<a name="bytebase-v1-ListLogsResponse"></a>++### ListLogsResponse++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| log_entities | [LogEntity](#bytebase-v1-LogEntity) | repeated | The list of log entities. |+| next_page_token | [string](#string) | | A token to retrieve next page of log entities. Pass this value in the page_token field in the subsequent call to `ListLogs` method to retrieve the next page of log entities. |+++++++<a name="bytebase-v1-LogEntity"></a>++### LogEntity++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the log. Format: logs/{uid} |+| creator | [string](#string) | | The creator of the log entity. Format: users/{email} |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| action | [LogEntity.Action](#bytebase-v1-LogEntity-Action) | | |+| level | [LogEntity.Level](#bytebase-v1-LogEntity-Level) | | |+| resource | [string](#string) | | The name of the resource associated with this log entity. For example, the resource user associated with log entity type of "ACTION_MEMBER_CREATE". Format: For ACTION_MEMBER_*: users/{email} For ACTION_ISSUE_*: issues/{issue uid} For ACTION_PIPELINE_*: pipelines/{pipeline uid} For ACTION_PROJECT_*: projects/{project resource id} For ACTION_DATABASE_*: instances/{instance resource id} |+| payload | [string](#string) | | The payload of the log entity. TODO: use oneof |+| comment | [string](#string) | | |+++++++++<a name="bytebase-v1-LogEntity-Action"></a>++### LogEntity.Action+++| Name | Number | Description |+| ---- | ------ | ----------- |+| ACTION_UNSPECIFIED | 0 | In worksapce resource only. |+| ACTION_MEMBER_CREATE | 1 | Member related activity types. Enum value 1 - 20++ACTION_MEMBER_CREATE is the type for creating a new member. |+| ACTION_MEMBER_ROLE_UPDATE | 2 | ACTION_MEMBER_ROLE_UPDATE is the type for updating a member's role. |+| ACTION_MEMBER_ACTIVATE | 3 | ACTION_MEMBER_ACTIVATE_UPDATE is the type for activating members. |+| ACTION_MEMBER_DEACTIVE | 4 | ACTION_MEMBER_DEACTIVE is the type for deactiving members. |+| ACTION_ISSUE_CREATE | 21 | Issue related activity types. Enum value 21 - 40++ACTION_ISSUE_CREATE is the type for creating a new issue. |+| ACTION_ISSUE_COMMENT_CREATE | 22 | ACTION_ISSUE_COMMENT_CREATE is the type for creating a new comment on an issue. |+| ACTION_ISSUE_FIELD_UPDATE | 23 | ACTION_ISSUE_FIELD_UPDATE is the type for updating an issue's field. |+| ACTION_ISSUE_STATUS_UPDATE | 24 | ACTION_ISSUE_STATUS_UPDATE is the type for updating an issue's status. |+| ACTION_ISSUE_APPROVAL_NOTIFY | 25 | ACTION_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval. |+| ACTION_PIPELINE_STAGE_STATUS_UPDATE | 31 | ACTION_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now. |+| ACTION_PIPELINE_TASK_STATUS_UPDATE | 32 | ACTION_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now. |+| ACTION_PIPELINE_TASK_FILE_COMMIT | 33 | ACTION_PIPELINE_TASK_FILE_COMMIT represents the VCS trigger to commit a file to update the task statement. |+| ACTION_PIPELINE_TASK_STATEMENT_UPDATE | 34 | ACTION_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement. |+| ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE | 35 | ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time. |+| ACTION_PROJECT_REPOSITORY_PUSH | 41 | Project related activity types. Enum value 41 - 60++ACTION_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository. |+| ACTION_PROJECT_MEMBER_CREATE | 42 | ACTION_PROJECT_MEMBER_CREATE represents adding a member to the project. |+| ACTION_PROJECT_MEMBER_DELETE | 43 | ACTION_PROJECT_MEMBER_DELETE represents removing a member from the project. |+| ACTION_PROJECT_MEMBER_ROLE_UPDATE | 44 | ACTION_PROJECT_MEMBER_ROLE_UPDATE represents updating the member role, for example, from ADMIN to MEMBER. |+| ACTION_PROJECT_DATABASE_RECOVERY_PITR_DONE | 45 | ACTION_PROJECT_DATABASE_RECOVERY_PITR_DONE is the type for database PITR recovery done. |+| ACTION_PROJECT_DATABASE_TRANSFER | 46 | ACTION_PROJECT_DATABASE_TRANSFER represents transfering the database from one project to another. |+| ACTION_DATABASE_SQL_EDITOR_QUERY | 61 | Database related activity types. Enum value 61 - 80++ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query. |+| ACTION_DATABASE_SQL_EXPORT | 62 | ACTION_DATABASE_SQL_EXPORT is the type for exporting SQL. |++++<a name="bytebase-v1-LogEntity-Level"></a>++### LogEntity.Level+++| Name | Number | Description |+| ---- | ------ | ----------- |+| LEVEL_UNSPECIFIED | 0 | |+| LEVEL_INFO | 1 | LEVEL_INFO is the type for information. |+| LEVEL_WARNING | 2 | LEVEL_WARNING is the type for warning. |+| LEVEL_ERROR | 3 | LEVEL_ERROR is the type for error. |++++++++<a name="bytebase-v1-LoggingService"></a>++### LoggingService+++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| ListLogs | [ListLogsRequest](#bytebase-v1-ListLogsRequest) | [ListLogsResponse](#bytebase-v1-ListLogsResponse) | |+| GetLog | [GetLogRequest](#bytebase-v1-GetLogRequest) | [LogEntity](#bytebase-v1-LogEntity) | |+++++<a name="v1_inbox_service-proto"></a><p align="right"><a href="#top">Top</a></p>@@ -3836,6 +3990,7 @@ The identity provider's `name` field is used to identify the identity provid| name | [string](#string) | | The message name in inbox/{uid} format. || activity_uid | [string](#string) | | || status | [InboxMessage.Status](#bytebase-v1-InboxMessage-Status) | | |+| activity | [LogEntity](#bytebase-v1-LogEntity) | | |@@ -4422,160 +4577,6 @@ The instance's `name` field is used to identify the instance to update. Form-<a name="v1_logging_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>--## v1/logging_service.proto----<a name="bytebase-v1-GetLogRequest"></a>--### GetLogRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the log to retrieve. Format: logs/{uid} |-------<a name="bytebase-v1-ListLogsRequest"></a>--### ListLogsRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| filter | [string](#string) | | filter is the filter to apply on the list logs request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. The field only support in filter: - creator, example: - creator = "users/{email}" - resource, example: - resource = "projects/{project resource id}" - level, example: - level = "INFO" - level = "ERROR | WARN" - action, example: - action = "ACTION_MEMBER_CREATE" | "ACTION_ISSUE_CREATE" - create_time, example: - create_time <= "2022-01-01T12:00:00.000Z" - create_time >= "2022-01-01T12:00:00.000Z" For example: List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' |-| order_by | [string](#string) | | The order by of the log. Only support order by create_time. For example: - order_by = "create_time asc" - order_by = "create_time desc" |-| page_size | [int32](#int32) | | Not used. The maximum number of logs to return. The service may return fewer than this value. If unspecified, at most 100 log entries will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `ListLogs` call. Provide this to retrieve the subsequent page. |-------<a name="bytebase-v1-ListLogsResponse"></a>--### ListLogsResponse----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| log_entities | [LogEntity](#bytebase-v1-LogEntity) | repeated | The list of log entities. |-| next_page_token | [string](#string) | | A token to retrieve next page of log entities. Pass this value in the page_token field in the subsequent call to `ListLogs` method to retrieve the next page of log entities. |-------<a name="bytebase-v1-LogEntity"></a>--### LogEntity----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the log. Format: logs/{uid} |-| creator | [string](#string) | | The creator of the log entity. Format: users/{email} |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| action | [LogEntity.Action](#bytebase-v1-LogEntity-Action) | | |-| level | [LogEntity.Level](#bytebase-v1-LogEntity-Level) | | |-| resource | [string](#string) | | The name of the resource associated with this log entity. For example, the resource user associated with log entity type of "ACTION_MEMBER_CREATE". Format: For ACTION_MEMBER_*: users/{email} For ACTION_ISSUE_*: issues/{issue uid} For ACTION_PIPELINE_*: pipelines/{pipeline uid} For ACTION_PROJECT_*: projects/{project resource id} For ACTION_DATABASE_*: instances/{instance resource id} |-| payload | [string](#string) | | The payload of the log entity. TODO: use oneof |-| comment | [string](#string) | | |---------<a name="bytebase-v1-LogEntity-Action"></a>--### LogEntity.Action---| Name | Number | Description |-| ---- | ------ | ----------- |-| ACTION_UNSPECIFIED | 0 | In worksapce resource only. |-| ACTION_MEMBER_CREATE | 1 | Member related activity types. Enum value 1 - 20--ACTION_MEMBER_CREATE is the type for creating a new member. |-| ACTION_MEMBER_ROLE_UPDATE | 2 | ACTION_MEMBER_ROLE_UPDATE is the type for updating a member's role. |-| ACTION_MEMBER_ACTIVATE | 3 | ACTION_MEMBER_ACTIVATE_UPDATE is the type for activating members. |-| ACTION_MEMBER_DEACTIVE | 4 | ACTION_MEMBER_DEACTIVE is the type for deactiving members. |-| ACTION_ISSUE_CREATE | 21 | Issue related activity types. Enum value 21 - 40--ACTION_ISSUE_CREATE is the type for creating a new issue. |-| ACTION_ISSUE_COMMENT_CREATE | 22 | ACTION_ISSUE_COMMENT_CREATE is the type for creating a new comment on an issue. |-| ACTION_ISSUE_FIELD_UPDATE | 23 | ACTION_ISSUE_FIELD_UPDATE is the type for updating an issue's field. |-| ACTION_ISSUE_STATUS_UPDATE | 24 | ACTION_ISSUE_STATUS_UPDATE is the type for updating an issue's status. |-| ACTION_ISSUE_APPROVAL_NOTIFY | 25 | ACTION_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval. |-| ACTION_PIPELINE_STAGE_STATUS_UPDATE | 31 | ACTION_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now. |-| ACTION_PIPELINE_TASK_STATUS_UPDATE | 32 | ACTION_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now. |-| ACTION_PIPELINE_TASK_FILE_COMMIT | 33 | ACTION_PIPELINE_TASK_FILE_COMMIT represents the VCS trigger to commit a file to update the task statement. |-| ACTION_PIPELINE_TASK_STATEMENT_UPDATE | 34 | ACTION_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement. |-| ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE | 35 | ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time. |-| ACTION_PROJECT_REPOSITORY_PUSH | 41 | Project related activity types. Enum value 41 - 60--ACTION_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository. |-| ACTION_PROJECT_MEMBER_CREATE | 42 | ACTION_PROJECT_MEMBER_CREATE represents adding a member to the project. |-| ACTION_PROJECT_MEMBER_DELETE | 43 | ACTION_PROJECT_MEMBER_DELETE represents removing a member from the project. |-| ACTION_PROJECT_MEMBER_ROLE_UPDATE | 44 | ACTION_PROJECT_MEMBER_ROLE_UPDATE represents updating the member role, for example, from ADMIN to MEMBER. |-| ACTION_PROJECT_DATABASE_RECOVERY_PITR_DONE | 45 | ACTION_PROJECT_DATABASE_RECOVERY_PITR_DONE is the type for database PITR recovery done. |-| ACTION_PROJECT_DATABASE_TRANSFER | 46 | ACTION_PROJECT_DATABASE_TRANSFER represents transfering the database from one project to another. |-| ACTION_DATABASE_SQL_EDITOR_QUERY | 61 | Database related activity types. Enum value 61 - 80--ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query. |-| ACTION_DATABASE_SQL_EXPORT | 62 | ACTION_DATABASE_SQL_EXPORT is the type for exporting SQL. |----<a name="bytebase-v1-LogEntity-Level"></a>--### LogEntity.Level---| Name | Number | Description |-| ---- | ------ | ----------- |-| LEVEL_UNSPECIFIED | 0 | |-| LEVEL_INFO | 1 | LEVEL_INFO is the type for information. |-| LEVEL_WARNING | 2 | LEVEL_WARNING is the type for warning. |-| LEVEL_ERROR | 3 | LEVEL_ERROR is the type for error. |--------<a name="bytebase-v1-LoggingService"></a>--### LoggingService---| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| ListLogs | [ListLogsRequest](#bytebase-v1-ListLogsRequest) | [ListLogsResponse](#bytebase-v1-ListLogsResponse) | |-| GetLog | [GetLogRequest](#bytebase-v1-GetLogRequest) | [LogEntity](#bytebase-v1-LogEntity) | |-----<a name="v1_project_service-proto"></a><p align="right"><a href="#top">Top</a></p>diff --git a/proto/generated-go/v1/inbox_service.pb.go b/proto/generated-go/v1/inbox_service.pb.goindex ff6f00ed2e..9a315d12cd 100644--- a/proto/generated-go/v1/inbox_service.pb.go+++ b/proto/generated-go/v1/inbox_service.pb.go@@ -308,6 +308,7 @@ type InboxMessage struct {Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`ActivityUid string `protobuf:"bytes,2,opt,name=activity_uid,json=activityUid,proto3" json:"activity_uid,omitempty"`Status InboxMessage_Status `protobuf:"varint,3,opt,name=status,proto3,enum=bytebase.v1.InboxMessage_Status" json:"status,omitempty"`+ Activity *LogEntity `protobuf:"bytes,4,opt,name=activity,proto3" json:"activity,omitempty"`}func (x *InboxMessage) Reset() {@@ -363,6 +364,13 @@ func (x *InboxMessage) GetStatus() InboxMessage_Status {return InboxMessage_STATUS_UNSPECIFIED}+func (x *InboxMessage) GetActivity() *LogEntity {+ if x != nil {+ return x.Activity+ }+ return nil+}+type InboxSummary struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -430,76 +438,81 @@ var file_v1_inbox_service_proto_rawDesc = []byte{0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62,0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67,0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66,- 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,- 0x66, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70,- 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08,- 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65,- 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61,- 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x82, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74,- 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a,- 0x0e, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18,- 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,- 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73,- 0x61, 0x67, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67,- 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e,- 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x18, 0x0a, 0x16,- 0x47, 0x65, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x96, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a,- 0x0d, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42,- 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61,- 0x67, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,- 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d,- 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22,- 0xc5, 0x01, 0x0a, 0x0c, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,- 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79,- 0x5f, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69,- 0x76, 0x69, 0x74, 0x79, 0x55, 0x69, 0x64, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,- 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61,- 0x67, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,- 0x73, 0x22, 0x44, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53,- 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e,- 0x52, 0x45, 0x41, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53,- 0x5f, 0x52, 0x45, 0x41, 0x44, 0x10, 0x02, 0x22, 0x49, 0x0a, 0x0c, 0x49, 0x6e, 0x62, 0x6f, 0x78,- 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x72, 0x65, 0x61,- 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x12,- 0x21, 0x0a, 0x0c, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x45, 0x72, 0x72,- 0x6f, 0x72, 0x32, 0xfc, 0x02, 0x0a, 0x0c, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x65, 0x72, 0x76,- 0x69, 0x63, 0x65, 0x12, 0x5d, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78,- 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,- 0x69, 0x73, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,- 0x73, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,- 0x11, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0b, 0x12, 0x09, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x62,- 0x6f, 0x78, 0x12, 0x6c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x75,- 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x75, 0x6d, 0x6d,- 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x75,- 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f,- 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x3a, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79,- 0x12, 0x9e, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x78,- 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x53, 0xda, 0x41,- 0x19, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2c, 0x75,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31,- 0x3a, 0x0d, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32,- 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73,- 0x61, 0x67, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x2f, 0x2a,- 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67,- 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,+ 0x18, 0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76,+ 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x66, 0x0a, 0x10, 0x4c, 0x69, 0x73,+ 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a,+ 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66,+ 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69,+ 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69,+ 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,+ 0x6e, 0x22, 0x82, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52,+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0e, 0x69, 0x6e, 0x62, 0x6f, 0x78,+ 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e,+ 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,+ 0x0d, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x26,+ 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,+ 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67,+ 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x18, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x62,+ 0x6f, 0x78, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x22, 0x96, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x78,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x0d, 0x69, 0x6e, 0x62, 0x6f, 0x78,+ 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x62,+ 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c,+ 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3b, 0x0a, 0x0b,+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xf9, 0x01, 0x0a, 0x0c, 0x49, 0x6e,+ 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21,+ 0x0a, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x55, 0x69,+ 0x64, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x74, 0x61,+ 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x32, 0x0a, 0x08, 0x61,+ 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x45,+ 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x22,+ 0x44, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41,+ 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,+ 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x52, 0x45,+ 0x41, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52,+ 0x45, 0x41, 0x44, 0x10, 0x02, 0x22, 0x49, 0x0a, 0x0c, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x75,+ 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x21, 0x0a,+ 0x0c, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x05, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72,+ 0x32, 0xfc, 0x02, 0x0a, 0x0c, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,+ 0x65, 0x12, 0x5d, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x12, 0x1d,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,+ 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,+ 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x11, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x0b, 0x12, 0x09, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x78,+ 0x12, 0x6c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x75, 0x6d, 0x6d,+ 0x61, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72,+ 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x75, 0x6d, 0x6d,+ 0x61, 0x72, 0x79, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x76, 0x31,+ 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x3a, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x9e,+ 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x12, 0x1f,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e,+ 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x53, 0xda, 0x41, 0x19, 0x69,+ 0x6e, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2c, 0x75, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x3a, 0x0d,+ 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x20, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,+ 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x2f, 0x2a, 0x7d, 0x42,+ 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f,+ 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (@@ -525,23 +538,25 @@ var file_v1_inbox_service_proto_goTypes = []interface{}{(*InboxMessage)(nil), // 5: bytebase.v1.InboxMessage(*InboxSummary)(nil), // 6: bytebase.v1.InboxSummary(*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask+ (*LogEntity)(nil), // 8: bytebase.v1.LogEntity}var file_v1_inbox_service_proto_depIdxs = []int32{5, // 0: bytebase.v1.ListInboxResponse.inbox_messages:type_name -> bytebase.v1.InboxMessage5, // 1: bytebase.v1.UpdateInboxRequest.inbox_message:type_name -> bytebase.v1.InboxMessage7, // 2: bytebase.v1.UpdateInboxRequest.update_mask:type_name -> google.protobuf.FieldMask0, // 3: bytebase.v1.InboxMessage.status:type_name -> bytebase.v1.InboxMessage.Status- 1, // 4: bytebase.v1.InboxService.ListInbox:input_type -> bytebase.v1.ListInboxRequest- 3, // 5: bytebase.v1.InboxService.GetInboxSummary:input_type -> bytebase.v1.GetInboxSummaryRequest- 4, // 6: bytebase.v1.InboxService.UpdateInbox:input_type -> bytebase.v1.UpdateInboxRequest- 2, // 7: bytebase.v1.InboxService.ListInbox:output_type -> bytebase.v1.ListInboxResponse- 6, // 8: bytebase.v1.InboxService.GetInboxSummary:output_type -> bytebase.v1.InboxSummary- 5, // 9: bytebase.v1.InboxService.UpdateInbox:output_type -> bytebase.v1.InboxMessage- 7, // [7:10] is the sub-list for method output_type- 4, // [4:7] is the sub-list for method input_type- 4, // [4:4] is the sub-list for extension type_name- 4, // [4:4] is the sub-list for extension extendee- 0, // [0:4] is the sub-list for field type_name+ 8, // 4: bytebase.v1.InboxMessage.activity:type_name -> bytebase.v1.LogEntity+ 1, // 5: bytebase.v1.InboxService.ListInbox:input_type -> bytebase.v1.ListInboxRequest+ 3, // 6: bytebase.v1.InboxService.GetInboxSummary:input_type -> bytebase.v1.GetInboxSummaryRequest+ 4, // 7: bytebase.v1.InboxService.UpdateInbox:input_type -> bytebase.v1.UpdateInboxRequest+ 2, // 8: bytebase.v1.InboxService.ListInbox:output_type -> bytebase.v1.ListInboxResponse+ 6, // 9: bytebase.v1.InboxService.GetInboxSummary:output_type -> bytebase.v1.InboxSummary+ 5, // 10: bytebase.v1.InboxService.UpdateInbox:output_type -> bytebase.v1.InboxMessage+ 8, // [8:11] is the sub-list for method output_type+ 5, // [5:8] is the sub-list for method input_type+ 5, // [5:5] is the sub-list for extension type_name+ 5, // [5:5] is the sub-list for extension extendee+ 0, // [0:5] is the sub-list for field type_name}func init() { file_v1_inbox_service_proto_init() }@@ -549,6 +564,7 @@ func file_v1_inbox_service_proto_init() {if File_v1_inbox_service_proto != nil {return}+ file_v1_logging_service_proto_init()if !protoimpl.UnsafeEnabled {file_v1_inbox_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ListInboxRequest); i {diff --git a/proto/v1/inbox_service.proto b/proto/v1/inbox_service.protoindex dd65d4ff6c..4c2b1ff34d 100644--- a/proto/v1/inbox_service.proto+++ b/proto/v1/inbox_service.proto@@ -6,6 +6,7 @@ import "google/api/annotations.proto";import "google/api/client.proto";import "google/api/field_behavior.proto";import "google/protobuf/field_mask.proto";+import "v1/logging_service.proto";option go_package = "generated-go/v1";@@ -78,6 +79,8 @@ message InboxMessage {STATUS_READ = 2;}Status status = 3;++ LogEntity activity = 4;}message InboxSummary {