← Back to packages

Package rct.common

Message Avatar

Message CreateMeta

Message PageRequest

Message PageResponse

Message Principal

Message TextItem

Message UpdateMeta

Enum AvatarType

Enum CatalogItemType

Enum PrincipalType

Enum TextType

Messages

message Avatar

Field Type Description Default Value
1 type rct.common.AvatarType
2 uri string

message CreateMeta

Field Type Description Default Value
1 createdBy rct.common.Principal
2 createdAt int64

message PageRequest

Field Type Description Default Value
1 pageSize int32

* Mandatory number of items to return in the response. Must be limited on the backend.

2 pageToken string

* Optional opaque page token. If empty - the first page is returned.

message PageResponse

Field Type Description Default Value
1 nextPageToken string

* Opaque page token to use in the subsequent request to get the next page of items. If empty - there are no more items.

2 prevPageToken string

* Opaque page token to use in the subsequent request to get the previous page of items. If empty - there are no more items.

3 requestedPageSize int32

* Page size as originally specified in the PageRequest.

4 totalCount int32

* Total count of items across all pages.

5 curPageToken string

* Opaque page token to use to request this page of item. For example, to refetch the same page of data. If empty - it is the first page.

message Principal

Field Type Description Default Value
1 type rct.common.PrincipalType
2 id string
3 displayName string

message TextItem

Field Type Description Default Value
1 type rct.common.TextType
2 value string

message UpdateMeta

Field Type Description Default Value
1 updatedBy rct.common.Principal
2 updatedAt int64

Enums

enum AvatarType

Name Number Description
AVATAR_TYPE_UNSPECIFIED 0
AVATAR_TYPE_BUILD_IN 1
AVATAR_TYPE_CUSTOM 2

enum CatalogItemType

Name Number Description
CATALOG_ITEM_UNSPECIFIED 0
CATALOG_ITEM_SLO_TARGET_TYPE 1
CATALOG_ITEM_TIME_ZONE 2
CATALOG_ITEM_SLO_TYPE 3

enum PrincipalType

Name Number Description
PRINCIPAL_TYPE_UNSPECIFIED 0
PRINCIPAL_TYPE_USER 1
PRINCIPAL_TYPE_BOT 2
PRINCIPAL_TYPE_SYSTEM 3
PRINCIPAL_TYPE_RCT_ADMIN 4

enum TextType

Name Number Description
TEXT_TYPE_UNSPECIFIED 0
TEXT_TYPE_PLAIN 1
TEXT_TYPE_MARKDOWN 2