@acequants/aegis-contracts 0.1.32 → 0.1.34

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.
@@ -7,6 +7,8 @@ option java_multiple_files = true;
7
7
  import "google/protobuf/timestamp.proto";
8
8
  // import "shared/v1/shared.proto";
9
9
 
10
+
11
+ // ********************************* SHARED *********************************
10
12
  message GrpcDtoPagination {
11
13
  int32 total_items = 1;
12
14
  int32 total_pages = 2;
@@ -31,7 +33,25 @@ message GrpcDtoPermissionsAdd {
31
33
  repeated GrpcDtoPermission permissions = 1;
32
34
  }
33
35
 
34
- // ---- /end to be shared/ ----
36
+ message GrpcDtoClientType {
37
+ string public_id = 1;
38
+ string name = 2;
39
+ google.protobuf.Timestamp created_at = 3;
40
+ google.protobuf.Timestamp updated_at = 4;
41
+ google.protobuf.Timestamp deleted_at = 5;
42
+ }
43
+
44
+ message GrpcDtoClient {
45
+ string publicId = 1;
46
+ string name = 2;
47
+ optional string description = 3;
48
+ GrpcDtoClientType clientType = 4;
49
+ google.protobuf.Timestamp createdAt = 5;
50
+ google.protobuf.Timestamp updatedAt = 6;
51
+ google.protobuf.Timestamp deletedAt = 7;
52
+ }
53
+
54
+ // *************************** /end to be shared/ ***************************
35
55
 
36
56
  // ---- AUTH ----
37
57
  message GrpcDtoService {
@@ -110,11 +130,12 @@ message GrpcDtoPermissionsPaginated {
110
130
 
111
131
  // ---- ROLE ----
112
132
  message GrpcInputRoles {
113
- optional string search = 1;
114
- int32 page = 2;
115
- int32 page_size = 3;
116
- optional string sort_by = 4;
117
- optional string sort_order = 5;
133
+ optional string clientPublicId = 1;
134
+ optional string search = 2;
135
+ int32 page = 3;
136
+ int32 page_size = 4;
137
+ optional string sort_by = 5;
138
+ optional string sort_order = 6;
118
139
  }
119
140
 
120
141
  message GrpcInputRole {
@@ -124,12 +145,15 @@ message GrpcInputRole {
124
145
  message GrpcInputRoleCreate {
125
146
  string name = 1;
126
147
  optional string description = 2;
148
+ optional bool isAgent = 3;
149
+ optional string clientPublicId = 4;
127
150
  }
128
151
 
129
152
  message GrpcInputRoleUpdate {
130
153
  string publicId = 1;
131
154
  optional string name = 2;
132
155
  optional string description = 3;
156
+ optional bool isAgent = 4;
133
157
  }
134
158
 
135
159
  message GrpcInputRoleRecycle {
@@ -152,12 +176,14 @@ message GrpcInputRolePermissionsRemove {
152
176
  message GrpcDtoRole {
153
177
  string public_id = 1;
154
178
  string name = 2;
155
- optional string description = 3;
156
- google.protobuf.Timestamp created_at = 4;
157
- google.protobuf.Timestamp updated_at = 5;
158
- google.protobuf.Timestamp deleted_at = 6;
159
- repeated GrpcDtoPermission permissions = 7;
160
- repeated GrpcDtoUser users = 8;
179
+ bool isAgent = 3;
180
+ optional string description = 4;
181
+ google.protobuf.Timestamp created_at = 5;
182
+ google.protobuf.Timestamp updated_at = 6;
183
+ google.protobuf.Timestamp deleted_at = 7;
184
+ repeated GrpcDtoPermission permissions = 8;
185
+ repeated GrpcDtoUser users = 9;
186
+ optional GrpcDtoClient client = 10;
161
187
  }
162
188
 
163
189
  message GrpcDtoRoles {
@@ -33,8 +33,6 @@ message GrpcDtoPermissionsAdd {
33
33
  repeated GrpcDtoPermission permissions = 1;
34
34
  }
35
35
 
36
- // ---- /end to be shared/ ----
37
-
38
36
  // ---- CLIENT TYPE ----
39
37
  message GrpcInputClientTypeSeed {
40
38
  string name = 1;
@@ -174,6 +172,78 @@ message GrpcDtoFeaturePermissions {
174
172
  repeated GrpcDtoFeaturePermission featurePermissions = 1;
175
173
  }
176
174
 
175
+ // ---- CLIENT ----
176
+ message GrpcInputClientCreate {
177
+ string clientTypePublicId=1;
178
+ string name = 2;
179
+ optional string managerPublicId=3;
180
+ optional string description = 4;
181
+ }
182
+
183
+ message GrpcInputClientUpdate {
184
+ string publicId = 1;
185
+ optional string name = 2;
186
+ optional string description = 3;
187
+ optional string clientTypePublicId=4;
188
+ optional string managerPublicId=5;
189
+ }
190
+
191
+ message GrpcInputClientFeaturesAdd {
192
+ string publicId=1;
193
+ repeated string featureIds=2;
194
+ }
195
+
196
+ message GrpcInputClientFeaturesRemove {
197
+ repeated string publicClientFeatureIds=1;
198
+ }
199
+
200
+ message GrpcInputClient {
201
+ string publicId = 1;
202
+ }
203
+
204
+ message GrpcInputClientFeatures {
205
+ string clientPublicId = 1;
206
+ }
207
+
208
+ message GrpcInputClients {
209
+ optional string clientTypePublicId=1;
210
+ optional string managerPublicId=2;
211
+ optional string search = 3;
212
+ optional int32 page = 4;
213
+ optional int32 pageSize = 5;
214
+ optional string sortBy = 6;
215
+ optional string sortOrder = 7;
216
+ }
217
+
218
+ message GrpcDtoClient {
219
+ string publicId = 1;
220
+ string name = 2;
221
+ optional string description = 3;
222
+ GrpcDtoClientType clientType = 4;
223
+ google.protobuf.Timestamp createdAt = 5;
224
+ google.protobuf.Timestamp updatedAt = 6;
225
+ google.protobuf.Timestamp deletedAt = 7;
226
+ }
227
+
228
+ message GrpcDtoClients {
229
+ repeated GrpcDtoClient items = 1;
230
+ GrpcDtoPagination meta = 2;
231
+ }
232
+
233
+ message GrpcDtoFeaturesAdd {
234
+ repeated GrpcDtoFeature features = 1;
235
+ }
236
+
237
+ message GrpcDtoClientFeature {
238
+ string public_id = 1;
239
+ GrpcDtoFeature feature = 2;
240
+ optional GrpcDtoClient client = 3;
241
+ }
242
+
243
+ message GrpcDtoClientFeatures {
244
+ repeated GrpcDtoClientFeature clientFeatures = 1;
245
+ }
246
+
177
247
  service SystemService {
178
248
  // --- Client Type ---
179
249
  rpc ClientTypesSeed (GrpcInputClientTypesSeed) returns (GrpcDtoClientTypesSeed);
@@ -192,4 +262,13 @@ service SystemService {
192
262
  rpc FeaturePermissions (GrpcInputFeaturePermissions) returns (GrpcDtoFeaturePermissions);
193
263
  rpc FeaturePermissionsAdd (GrpcInputFeaturePermissionsAdd) returns (GrpcDtoPermissionsAdd);
194
264
  rpc FeaturePermissionsRemove (GrpcInputFeaturePermissionsRemove) returns (GrpcDtoMessage);
265
+
266
+ // --- Client ---
267
+ rpc ClientCreate (GrpcInputClientCreate) returns (GrpcDtoClient);
268
+ rpc ClientUpdate (GrpcInputClientUpdate) returns (GrpcDtoClient);
269
+ rpc Clients (GrpcInputClients) returns (GrpcDtoClients);
270
+ rpc Client (GrpcInputClient) returns (GrpcDtoClient);
271
+ rpc ClientFeaturesAdd (GrpcInputClientFeaturesAdd) returns (GrpcDtoFeaturesAdd);
272
+ rpc ClientFeaturesRemove (GrpcInputClientFeaturesRemove) returns (GrpcDtoMessage);
273
+ rpc ClientFeatures (GrpcInputClientFeatures) returns (GrpcDtoClientFeatures);
195
274
  }