963 lines
29 KiB
Go
963 lines
29 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: state/v1/audit.proto
|
|
|
|
package statev1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// AuditFilter selects the entries a page returns. An empty list places no
|
|
// restriction; categories, severities and outcomes are closed vocabularies
|
|
// owned by internal/domain/audit.
|
|
type AuditFilter struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Categories []string `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"`
|
|
Actions []string `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
|
|
Kinds []string `protobuf:"bytes,3,rep,name=kinds,proto3" json:"kinds,omitempty"`
|
|
Actor string `protobuf:"bytes,4,opt,name=actor,proto3" json:"actor,omitempty"`
|
|
TargetKinds []string `protobuf:"bytes,5,rep,name=target_kinds,json=targetKinds,proto3" json:"target_kinds,omitempty"`
|
|
TargetIds []string `protobuf:"bytes,6,rep,name=target_ids,json=targetIds,proto3" json:"target_ids,omitempty"`
|
|
Severities []string `protobuf:"bytes,7,rep,name=severities,proto3" json:"severities,omitempty"`
|
|
Outcomes []string `protobuf:"bytes,8,rep,name=outcomes,proto3" json:"outcomes,omitempty"`
|
|
// from is inclusive and to is exclusive, both in UTC.
|
|
From *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=from,proto3" json:"from,omitempty"`
|
|
To *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=to,proto3" json:"to,omitempty"`
|
|
// q is a substring match over metadata only: record key, kind, actor,
|
|
// source, field names, task/workflow/repo/stage. Never a value.
|
|
Q string `protobuf:"bytes,11,opt,name=q,proto3" json:"q,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AuditFilter) Reset() {
|
|
*x = AuditFilter{}
|
|
mi := &file_state_v1_audit_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AuditFilter) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AuditFilter) ProtoMessage() {}
|
|
|
|
func (x *AuditFilter) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_audit_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AuditFilter.ProtoReflect.Descriptor instead.
|
|
func (*AuditFilter) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_audit_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *AuditFilter) GetCategories() []string {
|
|
if x != nil {
|
|
return x.Categories
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuditFilter) GetActions() []string {
|
|
if x != nil {
|
|
return x.Actions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuditFilter) GetKinds() []string {
|
|
if x != nil {
|
|
return x.Kinds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuditFilter) GetActor() string {
|
|
if x != nil {
|
|
return x.Actor
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditFilter) GetTargetKinds() []string {
|
|
if x != nil {
|
|
return x.TargetKinds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuditFilter) GetTargetIds() []string {
|
|
if x != nil {
|
|
return x.TargetIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuditFilter) GetSeverities() []string {
|
|
if x != nil {
|
|
return x.Severities
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuditFilter) GetOutcomes() []string {
|
|
if x != nil {
|
|
return x.Outcomes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuditFilter) GetFrom() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.From
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuditFilter) GetTo() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.To
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuditFilter) GetQ() string {
|
|
if x != nil {
|
|
return x.Q
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListAuditRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Filter *AuditFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
|
|
// cursor is opaque; a malformed one means newest.
|
|
Cursor string `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
|
|
// limit is the page size. Zero means 100; the server caps it at 500.
|
|
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListAuditRequest) Reset() {
|
|
*x = ListAuditRequest{}
|
|
mi := &file_state_v1_audit_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListAuditRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListAuditRequest) ProtoMessage() {}
|
|
|
|
func (x *ListAuditRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_audit_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListAuditRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListAuditRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_audit_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ListAuditRequest) GetFilter() *AuditFilter {
|
|
if x != nil {
|
|
return x.Filter
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListAuditRequest) GetCursor() string {
|
|
if x != nil {
|
|
return x.Cursor
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListAuditRequest) GetLimit() int32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// AuditField is one changed field of a change set. old_value_json and
|
|
// new_value_json are JSON values; an absent side is the JSON literal null.
|
|
type AuditField struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
|
|
OldValueJson string `protobuf:"bytes,2,opt,name=old_value_json,json=oldValueJson,proto3" json:"old_value_json,omitempty"`
|
|
NewValueJson string `protobuf:"bytes,3,opt,name=new_value_json,json=newValueJson,proto3" json:"new_value_json,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AuditField) Reset() {
|
|
*x = AuditField{}
|
|
mi := &file_state_v1_audit_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AuditField) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AuditField) ProtoMessage() {}
|
|
|
|
func (x *AuditField) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_audit_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AuditField.ProtoReflect.Descriptor instead.
|
|
func (*AuditField) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_audit_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *AuditField) GetField() string {
|
|
if x != nil {
|
|
return x.Field
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditField) GetOldValueJson() string {
|
|
if x != nil {
|
|
return x.OldValueJson
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditField) GetNewValueJson() string {
|
|
if x != nil {
|
|
return x.NewValueJson
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// AuditEntry is one row of the feed: a grouped change set, a lifecycle event,
|
|
// an aggregated denial, or a runtime event. Free-form values are redacted
|
|
// before they reach this message.
|
|
type AuditEntry struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// id is stable across pages and live refreshes.
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
|
|
At *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=at,proto3" json:"at,omitempty"`
|
|
Actor string `protobuf:"bytes,4,opt,name=actor,proto3" json:"actor,omitempty"`
|
|
ActorKind string `protobuf:"bytes,5,opt,name=actor_kind,json=actorKind,proto3" json:"actor_kind,omitempty"`
|
|
PrincipalId string `protobuf:"bytes,6,opt,name=principal_id,json=principalId,proto3" json:"principal_id,omitempty"`
|
|
TargetKind string `protobuf:"bytes,7,opt,name=target_kind,json=targetKind,proto3" json:"target_kind,omitempty"`
|
|
TargetId string `protobuf:"bytes,8,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
|
|
Kind string `protobuf:"bytes,9,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
RecordVersion int64 `protobuf:"varint,10,opt,name=record_version,json=recordVersion,proto3" json:"record_version,omitempty"`
|
|
RequestId string `protobuf:"bytes,11,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
|
|
Source string `protobuf:"bytes,12,opt,name=source,proto3" json:"source,omitempty"`
|
|
Fields []*AuditField `protobuf:"bytes,13,rep,name=fields,proto3" json:"fields,omitempty"`
|
|
Action string `protobuf:"bytes,14,opt,name=action,proto3" json:"action,omitempty"`
|
|
Severity string `protobuf:"bytes,15,opt,name=severity,proto3" json:"severity,omitempty"`
|
|
Outcome string `protobuf:"bytes,16,opt,name=outcome,proto3" json:"outcome,omitempty"`
|
|
Detail string `protobuf:"bytes,17,opt,name=detail,proto3" json:"detail,omitempty"`
|
|
WorkspaceId string `protobuf:"bytes,18,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
|
|
TaskId int64 `protobuf:"varint,19,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
|
|
// data_json is the redacted event data, empty when the row has none.
|
|
DataJson string `protobuf:"bytes,20,opt,name=data_json,json=dataJson,proto3" json:"data_json,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AuditEntry) Reset() {
|
|
*x = AuditEntry{}
|
|
mi := &file_state_v1_audit_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AuditEntry) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AuditEntry) ProtoMessage() {}
|
|
|
|
func (x *AuditEntry) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_audit_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AuditEntry.ProtoReflect.Descriptor instead.
|
|
func (*AuditEntry) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_audit_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *AuditEntry) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetCategory() string {
|
|
if x != nil {
|
|
return x.Category
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.At
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuditEntry) GetActor() string {
|
|
if x != nil {
|
|
return x.Actor
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetActorKind() string {
|
|
if x != nil {
|
|
return x.ActorKind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetPrincipalId() string {
|
|
if x != nil {
|
|
return x.PrincipalId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetTargetKind() string {
|
|
if x != nil {
|
|
return x.TargetKind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetTargetId() string {
|
|
if x != nil {
|
|
return x.TargetId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetKind() string {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetRecordVersion() int64 {
|
|
if x != nil {
|
|
return x.RecordVersion
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AuditEntry) GetRequestId() string {
|
|
if x != nil {
|
|
return x.RequestId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetSource() string {
|
|
if x != nil {
|
|
return x.Source
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetFields() []*AuditField {
|
|
if x != nil {
|
|
return x.Fields
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuditEntry) GetAction() string {
|
|
if x != nil {
|
|
return x.Action
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetSeverity() string {
|
|
if x != nil {
|
|
return x.Severity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetOutcome() string {
|
|
if x != nil {
|
|
return x.Outcome
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetDetail() string {
|
|
if x != nil {
|
|
return x.Detail
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetWorkspaceId() string {
|
|
if x != nil {
|
|
return x.WorkspaceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditEntry) GetTaskId() int64 {
|
|
if x != nil {
|
|
return x.TaskId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AuditEntry) GetDataJson() string {
|
|
if x != nil {
|
|
return x.DataJson
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListAuditResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Entries []*AuditEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
|
|
NextCursor string `protobuf:"bytes,2,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"`
|
|
HasMore bool `protobuf:"varint,3,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListAuditResponse) Reset() {
|
|
*x = ListAuditResponse{}
|
|
mi := &file_state_v1_audit_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListAuditResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListAuditResponse) ProtoMessage() {}
|
|
|
|
func (x *ListAuditResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_audit_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListAuditResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListAuditResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_audit_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ListAuditResponse) GetEntries() []*AuditEntry {
|
|
if x != nil {
|
|
return x.Entries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListAuditResponse) GetNextCursor() string {
|
|
if x != nil {
|
|
return x.NextCursor
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListAuditResponse) GetHasMore() bool {
|
|
if x != nil {
|
|
return x.HasMore
|
|
}
|
|
return false
|
|
}
|
|
|
|
type GetAuditHeadRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAuditHeadRequest) Reset() {
|
|
*x = GetAuditHeadRequest{}
|
|
mi := &file_state_v1_audit_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAuditHeadRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAuditHeadRequest) ProtoMessage() {}
|
|
|
|
func (x *GetAuditHeadRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_audit_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetAuditHeadRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetAuditHeadRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_audit_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
type GetAuditHeadResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAuditHeadResponse) Reset() {
|
|
*x = GetAuditHeadResponse{}
|
|
mi := &file_state_v1_audit_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAuditHeadResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAuditHeadResponse) ProtoMessage() {}
|
|
|
|
func (x *GetAuditHeadResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_audit_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetAuditHeadResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetAuditHeadResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_audit_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *GetAuditHeadResponse) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CountAuditRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Filter *AuditFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountAuditRequest) Reset() {
|
|
*x = CountAuditRequest{}
|
|
mi := &file_state_v1_audit_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountAuditRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountAuditRequest) ProtoMessage() {}
|
|
|
|
func (x *CountAuditRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_audit_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CountAuditRequest.ProtoReflect.Descriptor instead.
|
|
func (*CountAuditRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_audit_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *CountAuditRequest) GetFilter() *AuditFilter {
|
|
if x != nil {
|
|
return x.Filter
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CountAuditResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountAuditResponse) Reset() {
|
|
*x = CountAuditResponse{}
|
|
mi := &file_state_v1_audit_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountAuditResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountAuditResponse) ProtoMessage() {}
|
|
|
|
func (x *CountAuditResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_audit_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CountAuditResponse.ProtoReflect.Descriptor instead.
|
|
func (*CountAuditResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_audit_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *CountAuditResponse) GetCount() int64 {
|
|
if x != nil {
|
|
return x.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RecordAuditExportRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Format string `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty"`
|
|
// filters_hash is the normalised filter's fingerprint, so an operator can
|
|
// tell one exported view from another without storing the filter itself.
|
|
FiltersHash string `protobuf:"bytes,2,opt,name=filters_hash,json=filtersHash,proto3" json:"filters_hash,omitempty"`
|
|
Rows int64 `protobuf:"varint,3,opt,name=rows,proto3" json:"rows,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RecordAuditExportRequest) Reset() {
|
|
*x = RecordAuditExportRequest{}
|
|
mi := &file_state_v1_audit_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RecordAuditExportRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RecordAuditExportRequest) ProtoMessage() {}
|
|
|
|
func (x *RecordAuditExportRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_audit_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RecordAuditExportRequest.ProtoReflect.Descriptor instead.
|
|
func (*RecordAuditExportRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_audit_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *RecordAuditExportRequest) GetFormat() string {
|
|
if x != nil {
|
|
return x.Format
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RecordAuditExportRequest) GetFiltersHash() string {
|
|
if x != nil {
|
|
return x.FiltersHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RecordAuditExportRequest) GetRows() int64 {
|
|
if x != nil {
|
|
return x.Rows
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RecordAuditExportResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RecordAuditExportResponse) Reset() {
|
|
*x = RecordAuditExportResponse{}
|
|
mi := &file_state_v1_audit_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RecordAuditExportResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RecordAuditExportResponse) ProtoMessage() {}
|
|
|
|
func (x *RecordAuditExportResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_audit_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RecordAuditExportResponse.ProtoReflect.Descriptor instead.
|
|
func (*RecordAuditExportResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_audit_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
var File_state_v1_audit_proto protoreflect.FileDescriptor
|
|
|
|
const file_state_v1_audit_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x14state/v1/audit.proto\x12\bstate.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdb\x02\n" +
|
|
"\vAuditFilter\x12\x1e\n" +
|
|
"\n" +
|
|
"categories\x18\x01 \x03(\tR\n" +
|
|
"categories\x12\x18\n" +
|
|
"\aactions\x18\x02 \x03(\tR\aactions\x12\x14\n" +
|
|
"\x05kinds\x18\x03 \x03(\tR\x05kinds\x12\x14\n" +
|
|
"\x05actor\x18\x04 \x01(\tR\x05actor\x12!\n" +
|
|
"\ftarget_kinds\x18\x05 \x03(\tR\vtargetKinds\x12\x1d\n" +
|
|
"\n" +
|
|
"target_ids\x18\x06 \x03(\tR\ttargetIds\x12\x1e\n" +
|
|
"\n" +
|
|
"severities\x18\a \x03(\tR\n" +
|
|
"severities\x12\x1a\n" +
|
|
"\boutcomes\x18\b \x03(\tR\boutcomes\x12.\n" +
|
|
"\x04from\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\x04from\x12*\n" +
|
|
"\x02to\x18\n" +
|
|
" \x01(\v2\x1a.google.protobuf.TimestampR\x02to\x12\f\n" +
|
|
"\x01q\x18\v \x01(\tR\x01q\"o\n" +
|
|
"\x10ListAuditRequest\x12-\n" +
|
|
"\x06filter\x18\x01 \x01(\v2\x15.state.v1.AuditFilterR\x06filter\x12\x16\n" +
|
|
"\x06cursor\x18\x02 \x01(\tR\x06cursor\x12\x14\n" +
|
|
"\x05limit\x18\x03 \x01(\x05R\x05limit\"n\n" +
|
|
"\n" +
|
|
"AuditField\x12\x14\n" +
|
|
"\x05field\x18\x01 \x01(\tR\x05field\x12$\n" +
|
|
"\x0eold_value_json\x18\x02 \x01(\tR\foldValueJson\x12$\n" +
|
|
"\x0enew_value_json\x18\x03 \x01(\tR\fnewValueJson\"\xd9\x04\n" +
|
|
"\n" +
|
|
"AuditEntry\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1a\n" +
|
|
"\bcategory\x18\x02 \x01(\tR\bcategory\x12*\n" +
|
|
"\x02at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x02at\x12\x14\n" +
|
|
"\x05actor\x18\x04 \x01(\tR\x05actor\x12\x1d\n" +
|
|
"\n" +
|
|
"actor_kind\x18\x05 \x01(\tR\tactorKind\x12!\n" +
|
|
"\fprincipal_id\x18\x06 \x01(\tR\vprincipalId\x12\x1f\n" +
|
|
"\vtarget_kind\x18\a \x01(\tR\n" +
|
|
"targetKind\x12\x1b\n" +
|
|
"\ttarget_id\x18\b \x01(\tR\btargetId\x12\x12\n" +
|
|
"\x04kind\x18\t \x01(\tR\x04kind\x12%\n" +
|
|
"\x0erecord_version\x18\n" +
|
|
" \x01(\x03R\rrecordVersion\x12\x1d\n" +
|
|
"\n" +
|
|
"request_id\x18\v \x01(\tR\trequestId\x12\x16\n" +
|
|
"\x06source\x18\f \x01(\tR\x06source\x12,\n" +
|
|
"\x06fields\x18\r \x03(\v2\x14.state.v1.AuditFieldR\x06fields\x12\x16\n" +
|
|
"\x06action\x18\x0e \x01(\tR\x06action\x12\x1a\n" +
|
|
"\bseverity\x18\x0f \x01(\tR\bseverity\x12\x18\n" +
|
|
"\aoutcome\x18\x10 \x01(\tR\aoutcome\x12\x16\n" +
|
|
"\x06detail\x18\x11 \x01(\tR\x06detail\x12!\n" +
|
|
"\fworkspace_id\x18\x12 \x01(\tR\vworkspaceId\x12\x17\n" +
|
|
"\atask_id\x18\x13 \x01(\x03R\x06taskId\x12\x1b\n" +
|
|
"\tdata_json\x18\x14 \x01(\tR\bdataJson\"\x7f\n" +
|
|
"\x11ListAuditResponse\x12.\n" +
|
|
"\aentries\x18\x01 \x03(\v2\x14.state.v1.AuditEntryR\aentries\x12\x1f\n" +
|
|
"\vnext_cursor\x18\x02 \x01(\tR\n" +
|
|
"nextCursor\x12\x19\n" +
|
|
"\bhas_more\x18\x03 \x01(\bR\ahasMore\"\x15\n" +
|
|
"\x13GetAuditHeadRequest\",\n" +
|
|
"\x14GetAuditHeadResponse\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\"B\n" +
|
|
"\x11CountAuditRequest\x12-\n" +
|
|
"\x06filter\x18\x01 \x01(\v2\x15.state.v1.AuditFilterR\x06filter\"*\n" +
|
|
"\x12CountAuditResponse\x12\x14\n" +
|
|
"\x05count\x18\x01 \x01(\x03R\x05count\"i\n" +
|
|
"\x18RecordAuditExportRequest\x12\x16\n" +
|
|
"\x06format\x18\x01 \x01(\tR\x06format\x12!\n" +
|
|
"\ffilters_hash\x18\x02 \x01(\tR\vfiltersHash\x12\x12\n" +
|
|
"\x04rows\x18\x03 \x01(\x03R\x04rows\"\x1b\n" +
|
|
"\x19RecordAuditExportResponse2\xca\x02\n" +
|
|
"\fAuditService\x12D\n" +
|
|
"\tListAudit\x12\x1a.state.v1.ListAuditRequest\x1a\x1b.state.v1.ListAuditResponse\x12M\n" +
|
|
"\fGetAuditHead\x12\x1d.state.v1.GetAuditHeadRequest\x1a\x1e.state.v1.GetAuditHeadResponse\x12G\n" +
|
|
"\n" +
|
|
"CountAudit\x12\x1b.state.v1.CountAuditRequest\x1a\x1c.state.v1.CountAuditResponse\x12\\\n" +
|
|
"\x11RecordAuditExport\x12\".state.v1.RecordAuditExportRequest\x1a#.state.v1.RecordAuditExportResponseB\xa4\x01\n" +
|
|
"\fcom.state.v1B\n" +
|
|
"AuditProtoP\x01ZGgithub.com/samcharles93/archie-core/internal/contracts/state/v1;statev1\xa2\x02\x03SXX\xaa\x02\bState.V1\xca\x02\bState\\V1\xe2\x02\x14State\\V1\\GPBMetadata\xea\x02\tState::V1b\x06proto3"
|
|
|
|
var (
|
|
file_state_v1_audit_proto_rawDescOnce sync.Once
|
|
file_state_v1_audit_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_state_v1_audit_proto_rawDescGZIP() []byte {
|
|
file_state_v1_audit_proto_rawDescOnce.Do(func() {
|
|
file_state_v1_audit_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_state_v1_audit_proto_rawDesc), len(file_state_v1_audit_proto_rawDesc)))
|
|
})
|
|
return file_state_v1_audit_proto_rawDescData
|
|
}
|
|
|
|
var file_state_v1_audit_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
|
var file_state_v1_audit_proto_goTypes = []any{
|
|
(*AuditFilter)(nil), // 0: state.v1.AuditFilter
|
|
(*ListAuditRequest)(nil), // 1: state.v1.ListAuditRequest
|
|
(*AuditField)(nil), // 2: state.v1.AuditField
|
|
(*AuditEntry)(nil), // 3: state.v1.AuditEntry
|
|
(*ListAuditResponse)(nil), // 4: state.v1.ListAuditResponse
|
|
(*GetAuditHeadRequest)(nil), // 5: state.v1.GetAuditHeadRequest
|
|
(*GetAuditHeadResponse)(nil), // 6: state.v1.GetAuditHeadResponse
|
|
(*CountAuditRequest)(nil), // 7: state.v1.CountAuditRequest
|
|
(*CountAuditResponse)(nil), // 8: state.v1.CountAuditResponse
|
|
(*RecordAuditExportRequest)(nil), // 9: state.v1.RecordAuditExportRequest
|
|
(*RecordAuditExportResponse)(nil), // 10: state.v1.RecordAuditExportResponse
|
|
(*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp
|
|
}
|
|
var file_state_v1_audit_proto_depIdxs = []int32{
|
|
11, // 0: state.v1.AuditFilter.from:type_name -> google.protobuf.Timestamp
|
|
11, // 1: state.v1.AuditFilter.to:type_name -> google.protobuf.Timestamp
|
|
0, // 2: state.v1.ListAuditRequest.filter:type_name -> state.v1.AuditFilter
|
|
11, // 3: state.v1.AuditEntry.at:type_name -> google.protobuf.Timestamp
|
|
2, // 4: state.v1.AuditEntry.fields:type_name -> state.v1.AuditField
|
|
3, // 5: state.v1.ListAuditResponse.entries:type_name -> state.v1.AuditEntry
|
|
0, // 6: state.v1.CountAuditRequest.filter:type_name -> state.v1.AuditFilter
|
|
1, // 7: state.v1.AuditService.ListAudit:input_type -> state.v1.ListAuditRequest
|
|
5, // 8: state.v1.AuditService.GetAuditHead:input_type -> state.v1.GetAuditHeadRequest
|
|
7, // 9: state.v1.AuditService.CountAudit:input_type -> state.v1.CountAuditRequest
|
|
9, // 10: state.v1.AuditService.RecordAuditExport:input_type -> state.v1.RecordAuditExportRequest
|
|
4, // 11: state.v1.AuditService.ListAudit:output_type -> state.v1.ListAuditResponse
|
|
6, // 12: state.v1.AuditService.GetAuditHead:output_type -> state.v1.GetAuditHeadResponse
|
|
8, // 13: state.v1.AuditService.CountAudit:output_type -> state.v1.CountAuditResponse
|
|
10, // 14: state.v1.AuditService.RecordAuditExport:output_type -> state.v1.RecordAuditExportResponse
|
|
11, // [11:15] is the sub-list for method output_type
|
|
7, // [7:11] is the sub-list for method input_type
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
0, // [0:7] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_state_v1_audit_proto_init() }
|
|
func file_state_v1_audit_proto_init() {
|
|
if File_state_v1_audit_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_state_v1_audit_proto_rawDesc), len(file_state_v1_audit_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 11,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_state_v1_audit_proto_goTypes,
|
|
DependencyIndexes: file_state_v1_audit_proto_depIdxs,
|
|
MessageInfos: file_state_v1_audit_proto_msgTypes,
|
|
}.Build()
|
|
File_state_v1_audit_proto = out.File
|
|
file_state_v1_audit_proto_goTypes = nil
|
|
file_state_v1_audit_proto_depIdxs = nil
|
|
}
|