protobuf-platform 1.2.195 → 1.2.196
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/log/log.proto +44 -1
- package/package.json +1 -1
package/log/log.proto
CHANGED
|
@@ -8,23 +8,35 @@ service Log {
|
|
|
8
8
|
rpc readListIssues(PaginationRequest) returns (IssueItemsResponse);
|
|
9
9
|
//User Activities
|
|
10
10
|
rpc readListUserActivities(PaginationRequest) returns (UserActivitiesItemsResponse);
|
|
11
|
+
//Activity Trail
|
|
12
|
+
rpc readListActivityTrail(PaginationRequest) returns (ActivityTrailItemsResponse);
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
message PingRequest { string ping = 1; }
|
|
14
16
|
message PongResponse { string pong = 1; }
|
|
17
|
+
|
|
15
18
|
message PaginationRequest {
|
|
16
19
|
int32 limit = 1;
|
|
17
20
|
int32 offset = 2;
|
|
18
21
|
optional LogSearchRequest log_search_params = 3;
|
|
19
22
|
optional UserSearchRequest user_search_params = 4;
|
|
23
|
+
optional ActivitySearchRequest activity_search_params = 5;
|
|
20
24
|
}
|
|
25
|
+
|
|
21
26
|
message LogSearchRequest {
|
|
22
27
|
repeated string service = 1;
|
|
23
28
|
repeated string type = 2;
|
|
24
29
|
}
|
|
30
|
+
|
|
25
31
|
message UserSearchRequest {
|
|
26
32
|
int32 user_id = 1;
|
|
27
33
|
}
|
|
34
|
+
|
|
35
|
+
message ActivitySearchRequest {
|
|
36
|
+
string entity_type = 1;
|
|
37
|
+
string entity_id = 2;
|
|
38
|
+
}
|
|
39
|
+
|
|
28
40
|
//Issues
|
|
29
41
|
message IssueItem {
|
|
30
42
|
string hash = 1;
|
|
@@ -33,11 +45,13 @@ message IssueItem {
|
|
|
33
45
|
string message = 4;
|
|
34
46
|
string created = 5;
|
|
35
47
|
}
|
|
48
|
+
|
|
36
49
|
message IssueItemsResponse {
|
|
37
50
|
repeated IssueItem items = 1;
|
|
38
51
|
optional int32 total_pages = 2;
|
|
39
52
|
optional int32 total_items = 3;
|
|
40
53
|
}
|
|
54
|
+
|
|
41
55
|
//User Activities
|
|
42
56
|
message UserActivityItem {
|
|
43
57
|
string hash = 1;
|
|
@@ -46,8 +60,37 @@ message UserActivityItem {
|
|
|
46
60
|
string message = 4;
|
|
47
61
|
string created = 5;
|
|
48
62
|
}
|
|
63
|
+
|
|
49
64
|
message UserActivitiesItemsResponse {
|
|
50
65
|
repeated UserActivityItem items = 1;
|
|
51
66
|
optional int32 total_pages = 2;
|
|
52
67
|
optional int32 total_items = 3;
|
|
53
|
-
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
//Activity Trail
|
|
71
|
+
message ActivityChange {
|
|
72
|
+
string path = 1;
|
|
73
|
+
string op = 2; // e.g. "set"
|
|
74
|
+
string from = 3;
|
|
75
|
+
string to = 4;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
message ActivityTrailItem {
|
|
79
|
+
string hash = 1; // eventId
|
|
80
|
+
string ts = 2; // ISO string
|
|
81
|
+
string action = 3; // create/update/delete/add/remove/priorityUpdate/bulkUpdate
|
|
82
|
+
string service = 4;
|
|
83
|
+
string request_id = 5;
|
|
84
|
+
string actor_id = 6;
|
|
85
|
+
string actor_role = 7;
|
|
86
|
+
string entity_type = 8;
|
|
87
|
+
string entity_id = 9;
|
|
88
|
+
repeated ActivityChange changes = 10;
|
|
89
|
+
optional string details_json = 11; // JSON string
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message ActivityTrailItemsResponse {
|
|
93
|
+
repeated ActivityTrailItem items = 1;
|
|
94
|
+
optional int32 total_pages = 2;
|
|
95
|
+
optional int32 total_items = 3;
|
|
96
|
+
}
|