@acequants/aegis-contracts 0.1.9 → 0.1.11
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/dist/src/gen/auth/v1/auth.d.ts +64 -62
- package/dist/src/gen/auth/v1/auth.d.ts.map +1 -1
- package/dist/src/gen/auth/v1/auth.js +135 -100
- package/package.json +1 -1
- package/proto/auth/v1/auth.proto +33 -29
|
@@ -2,12 +2,7 @@ import type { handleUnaryCall, UntypedServiceImplementation } from "@grpc/grpc-j
|
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
4
|
export declare const protobufPackage = "aegis.auth.v1";
|
|
5
|
-
export
|
|
6
|
-
ASC = 0,
|
|
7
|
-
DESC = 1,
|
|
8
|
-
UNRECOGNIZED = -1
|
|
9
|
-
}
|
|
10
|
-
export interface DtoPaginationMeta {
|
|
5
|
+
export interface DtoPagination {
|
|
11
6
|
totalItems: number;
|
|
12
7
|
totalPages: number;
|
|
13
8
|
currentPage: number;
|
|
@@ -37,7 +32,22 @@ export interface AuthorizeResponse {
|
|
|
37
32
|
allowed: boolean;
|
|
38
33
|
reason: string;
|
|
39
34
|
}
|
|
40
|
-
|
|
35
|
+
export interface InputPermission {
|
|
36
|
+
publicId: string;
|
|
37
|
+
}
|
|
38
|
+
export interface InputPermissions {
|
|
39
|
+
page: number;
|
|
40
|
+
pageSize: number;
|
|
41
|
+
search?: string | undefined;
|
|
42
|
+
sortBy?: string | undefined;
|
|
43
|
+
sortOrder?: string | undefined;
|
|
44
|
+
}
|
|
45
|
+
export interface InputSeedPermission {
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
48
|
+
export interface InputSeedPermissions {
|
|
49
|
+
permissions: InputSeedPermission[];
|
|
50
|
+
}
|
|
41
51
|
export interface DtoPermission {
|
|
42
52
|
publicId: string;
|
|
43
53
|
name: string;
|
|
@@ -49,28 +59,16 @@ export interface DtoPermission {
|
|
|
49
59
|
description: string;
|
|
50
60
|
}
|
|
51
61
|
export interface DtoPermissions {
|
|
52
|
-
|
|
53
|
-
items: DtoPermission[];
|
|
54
|
-
}
|
|
55
|
-
export interface PermissionsRequest {
|
|
56
|
-
page: number;
|
|
57
|
-
pageSize: number;
|
|
58
|
-
sortBy: string;
|
|
59
|
-
sortOrder: SortOrder;
|
|
62
|
+
permissions: DtoPermission[];
|
|
60
63
|
}
|
|
61
|
-
export interface
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
export interface InputPermission {
|
|
65
|
-
name: string;
|
|
66
|
-
}
|
|
67
|
-
export interface PermissionsSeedRequest {
|
|
68
|
-
permissions: InputPermission[];
|
|
64
|
+
export interface DtoPermissionsPaginated {
|
|
65
|
+
items: DtoPermission[];
|
|
66
|
+
meta?: DtoPagination | undefined;
|
|
69
67
|
}
|
|
70
68
|
export declare const AEGIS_AUTH_V1_PACKAGE_NAME = "aegis.auth.v1";
|
|
71
|
-
export declare const
|
|
72
|
-
encode(message:
|
|
73
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
69
|
+
export declare const DtoPagination: {
|
|
70
|
+
encode(message: DtoPagination, writer?: _m0.Writer): _m0.Writer;
|
|
71
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DtoPagination;
|
|
74
72
|
};
|
|
75
73
|
export declare const AuthContext: {
|
|
76
74
|
encode(message: AuthContext, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -92,6 +90,22 @@ export declare const AuthorizeResponse: {
|
|
|
92
90
|
encode(message: AuthorizeResponse, writer?: _m0.Writer): _m0.Writer;
|
|
93
91
|
decode(input: _m0.Reader | Uint8Array, length?: number): AuthorizeResponse;
|
|
94
92
|
};
|
|
93
|
+
export declare const InputPermission: {
|
|
94
|
+
encode(message: InputPermission, writer?: _m0.Writer): _m0.Writer;
|
|
95
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InputPermission;
|
|
96
|
+
};
|
|
97
|
+
export declare const InputPermissions: {
|
|
98
|
+
encode(message: InputPermissions, writer?: _m0.Writer): _m0.Writer;
|
|
99
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InputPermissions;
|
|
100
|
+
};
|
|
101
|
+
export declare const InputSeedPermission: {
|
|
102
|
+
encode(message: InputSeedPermission, writer?: _m0.Writer): _m0.Writer;
|
|
103
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InputSeedPermission;
|
|
104
|
+
};
|
|
105
|
+
export declare const InputSeedPermissions: {
|
|
106
|
+
encode(message: InputSeedPermissions, writer?: _m0.Writer): _m0.Writer;
|
|
107
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InputSeedPermissions;
|
|
108
|
+
};
|
|
95
109
|
export declare const DtoPermission: {
|
|
96
110
|
encode(message: DtoPermission, writer?: _m0.Writer): _m0.Writer;
|
|
97
111
|
decode(input: _m0.Reader | Uint8Array, length?: number): DtoPermission;
|
|
@@ -100,45 +114,33 @@ export declare const DtoPermissions: {
|
|
|
100
114
|
encode(message: DtoPermissions, writer?: _m0.Writer): _m0.Writer;
|
|
101
115
|
decode(input: _m0.Reader | Uint8Array, length?: number): DtoPermissions;
|
|
102
116
|
};
|
|
103
|
-
export declare const
|
|
104
|
-
encode(message:
|
|
105
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
106
|
-
};
|
|
107
|
-
export declare const PermissionRequest: {
|
|
108
|
-
encode(message: PermissionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
109
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionRequest;
|
|
110
|
-
};
|
|
111
|
-
export declare const InputPermission: {
|
|
112
|
-
encode(message: InputPermission, writer?: _m0.Writer): _m0.Writer;
|
|
113
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): InputPermission;
|
|
114
|
-
};
|
|
115
|
-
export declare const PermissionsSeedRequest: {
|
|
116
|
-
encode(message: PermissionsSeedRequest, writer?: _m0.Writer): _m0.Writer;
|
|
117
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionsSeedRequest;
|
|
117
|
+
export declare const DtoPermissionsPaginated: {
|
|
118
|
+
encode(message: DtoPermissionsPaginated, writer?: _m0.Writer): _m0.Writer;
|
|
119
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DtoPermissionsPaginated;
|
|
118
120
|
};
|
|
119
121
|
export interface AuthServiceClient {
|
|
120
|
-
/** ---
|
|
122
|
+
/** --- Authentication --- */
|
|
121
123
|
validateAccess(request: ValidateAccessRequest): Observable<ValidateAccessResponse>;
|
|
122
124
|
authorize(request: AuthorizeRequest): Observable<AuthorizeResponse>;
|
|
123
125
|
/** --- Permission --- */
|
|
124
|
-
permissionsSeed(request:
|
|
125
|
-
permissions(request:
|
|
126
|
-
permission(request:
|
|
126
|
+
permissionsSeed(request: InputSeedPermissions): Observable<DtoPermissions>;
|
|
127
|
+
permissions(request: InputPermissions): Observable<DtoPermissionsPaginated>;
|
|
128
|
+
permission(request: InputPermission): Observable<DtoPermission>;
|
|
127
129
|
}
|
|
128
130
|
export interface AuthServiceController {
|
|
129
|
-
/** ---
|
|
131
|
+
/** --- Authentication --- */
|
|
130
132
|
validateAccess(request: ValidateAccessRequest): Promise<ValidateAccessResponse> | Observable<ValidateAccessResponse> | ValidateAccessResponse;
|
|
131
133
|
authorize(request: AuthorizeRequest): Promise<AuthorizeResponse> | Observable<AuthorizeResponse> | AuthorizeResponse;
|
|
132
134
|
/** --- Permission --- */
|
|
133
|
-
permissionsSeed(request:
|
|
134
|
-
permissions(request:
|
|
135
|
-
permission(request:
|
|
135
|
+
permissionsSeed(request: InputSeedPermissions): Promise<DtoPermissions> | Observable<DtoPermissions> | DtoPermissions;
|
|
136
|
+
permissions(request: InputPermissions): Promise<DtoPermissionsPaginated> | Observable<DtoPermissionsPaginated> | DtoPermissionsPaginated;
|
|
137
|
+
permission(request: InputPermission): Promise<DtoPermission> | Observable<DtoPermission> | DtoPermission;
|
|
136
138
|
}
|
|
137
139
|
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
138
140
|
export declare const AUTH_SERVICE_NAME = "AuthService";
|
|
139
141
|
export type AuthServiceService = typeof AuthServiceService;
|
|
140
142
|
export declare const AuthServiceService: {
|
|
141
|
-
/** ---
|
|
143
|
+
/** --- Authentication --- */
|
|
142
144
|
readonly validateAccess: {
|
|
143
145
|
readonly path: "/aegis.auth.v1.AuthService/ValidateAccess";
|
|
144
146
|
readonly requestStream: false;
|
|
@@ -162,8 +164,8 @@ export declare const AuthServiceService: {
|
|
|
162
164
|
readonly path: "/aegis.auth.v1.AuthService/PermissionsSeed";
|
|
163
165
|
readonly requestStream: false;
|
|
164
166
|
readonly responseStream: false;
|
|
165
|
-
readonly requestSerialize: (value:
|
|
166
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
167
|
+
readonly requestSerialize: (value: InputSeedPermissions) => Buffer<ArrayBuffer>;
|
|
168
|
+
readonly requestDeserialize: (value: Buffer) => InputSeedPermissions;
|
|
167
169
|
readonly responseSerialize: (value: DtoPermissions) => Buffer<ArrayBuffer>;
|
|
168
170
|
readonly responseDeserialize: (value: Buffer) => DtoPermissions;
|
|
169
171
|
};
|
|
@@ -171,28 +173,28 @@ export declare const AuthServiceService: {
|
|
|
171
173
|
readonly path: "/aegis.auth.v1.AuthService/Permissions";
|
|
172
174
|
readonly requestStream: false;
|
|
173
175
|
readonly responseStream: false;
|
|
174
|
-
readonly requestSerialize: (value:
|
|
175
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
176
|
-
readonly responseSerialize: (value:
|
|
177
|
-
readonly responseDeserialize: (value: Buffer) =>
|
|
176
|
+
readonly requestSerialize: (value: InputPermissions) => Buffer<ArrayBuffer>;
|
|
177
|
+
readonly requestDeserialize: (value: Buffer) => InputPermissions;
|
|
178
|
+
readonly responseSerialize: (value: DtoPermissionsPaginated) => Buffer<ArrayBuffer>;
|
|
179
|
+
readonly responseDeserialize: (value: Buffer) => DtoPermissionsPaginated;
|
|
178
180
|
};
|
|
179
181
|
readonly permission: {
|
|
180
182
|
readonly path: "/aegis.auth.v1.AuthService/Permission";
|
|
181
183
|
readonly requestStream: false;
|
|
182
184
|
readonly responseStream: false;
|
|
183
|
-
readonly requestSerialize: (value:
|
|
184
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
185
|
+
readonly requestSerialize: (value: InputPermission) => Buffer<ArrayBuffer>;
|
|
186
|
+
readonly requestDeserialize: (value: Buffer) => InputPermission;
|
|
185
187
|
readonly responseSerialize: (value: DtoPermission) => Buffer<ArrayBuffer>;
|
|
186
188
|
readonly responseDeserialize: (value: Buffer) => DtoPermission;
|
|
187
189
|
};
|
|
188
190
|
};
|
|
189
191
|
export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
190
|
-
/** ---
|
|
192
|
+
/** --- Authentication --- */
|
|
191
193
|
validateAccess: handleUnaryCall<ValidateAccessRequest, ValidateAccessResponse>;
|
|
192
194
|
authorize: handleUnaryCall<AuthorizeRequest, AuthorizeResponse>;
|
|
193
195
|
/** --- Permission --- */
|
|
194
|
-
permissionsSeed: handleUnaryCall<
|
|
195
|
-
permissions: handleUnaryCall<
|
|
196
|
-
permission: handleUnaryCall<
|
|
196
|
+
permissionsSeed: handleUnaryCall<InputSeedPermissions, DtoPermissions>;
|
|
197
|
+
permissions: handleUnaryCall<InputPermissions, DtoPermissionsPaginated>;
|
|
198
|
+
permission: handleUnaryCall<InputPermission, DtoPermission>;
|
|
197
199
|
}
|
|
198
200
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/gen/auth/v1/auth.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAEnF,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAE/C,
|
|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";
|
|
7
7
|
import _m0 from "protobufjs/minimal";
|
|
8
8
|
export const protobufPackage = "aegis.auth.v1";
|
|
9
|
-
export var SortOrder;
|
|
10
|
-
(function (SortOrder) {
|
|
11
|
-
SortOrder[SortOrder["ASC"] = 0] = "ASC";
|
|
12
|
-
SortOrder[SortOrder["DESC"] = 1] = "DESC";
|
|
13
|
-
SortOrder[SortOrder["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
14
|
-
})(SortOrder || (SortOrder = {}));
|
|
15
9
|
export const AEGIS_AUTH_V1_PACKAGE_NAME = "aegis.auth.v1";
|
|
16
|
-
function
|
|
10
|
+
function createBaseDtoPagination() {
|
|
17
11
|
return { totalItems: 0, totalPages: 0, currentPage: 0, pageSize: 0 };
|
|
18
12
|
}
|
|
19
|
-
export const
|
|
13
|
+
export const DtoPagination = {
|
|
20
14
|
encode(message, writer = _m0.Writer.create()) {
|
|
21
15
|
if (message.totalItems !== 0) {
|
|
22
16
|
writer.uint32(8).int32(message.totalItems);
|
|
@@ -35,7 +29,7 @@ export const DtoPaginationMeta = {
|
|
|
35
29
|
decode(input, length) {
|
|
36
30
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37
31
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38
|
-
const message =
|
|
32
|
+
const message = createBaseDtoPagination();
|
|
39
33
|
while (reader.pos < end) {
|
|
40
34
|
const tag = reader.uint32();
|
|
41
35
|
switch (tag >>> 3) {
|
|
@@ -304,26 +298,20 @@ export const AuthorizeResponse = {
|
|
|
304
298
|
return message;
|
|
305
299
|
},
|
|
306
300
|
};
|
|
307
|
-
function
|
|
308
|
-
return { publicId: ""
|
|
301
|
+
function createBaseInputPermission() {
|
|
302
|
+
return { publicId: "" };
|
|
309
303
|
}
|
|
310
|
-
export const
|
|
304
|
+
export const InputPermission = {
|
|
311
305
|
encode(message, writer = _m0.Writer.create()) {
|
|
312
306
|
if (message.publicId !== "") {
|
|
313
307
|
writer.uint32(10).string(message.publicId);
|
|
314
308
|
}
|
|
315
|
-
if (message.name !== "") {
|
|
316
|
-
writer.uint32(18).string(message.name);
|
|
317
|
-
}
|
|
318
|
-
if (message.description !== "") {
|
|
319
|
-
writer.uint32(26).string(message.description);
|
|
320
|
-
}
|
|
321
309
|
return writer;
|
|
322
310
|
},
|
|
323
311
|
decode(input, length) {
|
|
324
312
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
325
313
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
326
|
-
const message =
|
|
314
|
+
const message = createBaseInputPermission();
|
|
327
315
|
while (reader.pos < end) {
|
|
328
316
|
const tag = reader.uint32();
|
|
329
317
|
switch (tag >>> 3) {
|
|
@@ -333,17 +321,73 @@ export const DtoPermission = {
|
|
|
333
321
|
}
|
|
334
322
|
message.publicId = reader.string();
|
|
335
323
|
continue;
|
|
324
|
+
}
|
|
325
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
328
|
+
reader.skipType(tag & 7);
|
|
329
|
+
}
|
|
330
|
+
return message;
|
|
331
|
+
},
|
|
332
|
+
};
|
|
333
|
+
function createBaseInputPermissions() {
|
|
334
|
+
return { page: 0, pageSize: 0 };
|
|
335
|
+
}
|
|
336
|
+
export const InputPermissions = {
|
|
337
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
338
|
+
if (message.page !== 0) {
|
|
339
|
+
writer.uint32(8).int32(message.page);
|
|
340
|
+
}
|
|
341
|
+
if (message.pageSize !== 0) {
|
|
342
|
+
writer.uint32(16).int32(message.pageSize);
|
|
343
|
+
}
|
|
344
|
+
if (message.search !== undefined) {
|
|
345
|
+
writer.uint32(26).string(message.search);
|
|
346
|
+
}
|
|
347
|
+
if (message.sortBy !== undefined) {
|
|
348
|
+
writer.uint32(34).string(message.sortBy);
|
|
349
|
+
}
|
|
350
|
+
if (message.sortOrder !== undefined) {
|
|
351
|
+
writer.uint32(42).string(message.sortOrder);
|
|
352
|
+
}
|
|
353
|
+
return writer;
|
|
354
|
+
},
|
|
355
|
+
decode(input, length) {
|
|
356
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
357
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
358
|
+
const message = createBaseInputPermissions();
|
|
359
|
+
while (reader.pos < end) {
|
|
360
|
+
const tag = reader.uint32();
|
|
361
|
+
switch (tag >>> 3) {
|
|
362
|
+
case 1:
|
|
363
|
+
if (tag !== 8) {
|
|
364
|
+
break;
|
|
365
|
+
}
|
|
366
|
+
message.page = reader.int32();
|
|
367
|
+
continue;
|
|
336
368
|
case 2:
|
|
337
|
-
if (tag !==
|
|
369
|
+
if (tag !== 16) {
|
|
338
370
|
break;
|
|
339
371
|
}
|
|
340
|
-
message.
|
|
372
|
+
message.pageSize = reader.int32();
|
|
341
373
|
continue;
|
|
342
374
|
case 3:
|
|
343
375
|
if (tag !== 26) {
|
|
344
376
|
break;
|
|
345
377
|
}
|
|
346
|
-
message.
|
|
378
|
+
message.search = reader.string();
|
|
379
|
+
continue;
|
|
380
|
+
case 4:
|
|
381
|
+
if (tag !== 34) {
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
message.sortBy = reader.string();
|
|
385
|
+
continue;
|
|
386
|
+
case 5:
|
|
387
|
+
if (tag !== 42) {
|
|
388
|
+
break;
|
|
389
|
+
}
|
|
390
|
+
message.sortOrder = reader.string();
|
|
347
391
|
continue;
|
|
348
392
|
}
|
|
349
393
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -354,23 +398,20 @@ export const DtoPermission = {
|
|
|
354
398
|
return message;
|
|
355
399
|
},
|
|
356
400
|
};
|
|
357
|
-
function
|
|
358
|
-
return {
|
|
401
|
+
function createBaseInputSeedPermission() {
|
|
402
|
+
return { name: "" };
|
|
359
403
|
}
|
|
360
|
-
export const
|
|
404
|
+
export const InputSeedPermission = {
|
|
361
405
|
encode(message, writer = _m0.Writer.create()) {
|
|
362
|
-
if (message.
|
|
363
|
-
|
|
364
|
-
}
|
|
365
|
-
for (const v of message.items) {
|
|
366
|
-
DtoPermission.encode(v, writer.uint32(18).fork()).ldelim();
|
|
406
|
+
if (message.name !== "") {
|
|
407
|
+
writer.uint32(10).string(message.name);
|
|
367
408
|
}
|
|
368
409
|
return writer;
|
|
369
410
|
},
|
|
370
411
|
decode(input, length) {
|
|
371
412
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
372
413
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
373
|
-
const message =
|
|
414
|
+
const message = createBaseInputSeedPermission();
|
|
374
415
|
while (reader.pos < end) {
|
|
375
416
|
const tag = reader.uint32();
|
|
376
417
|
switch (tag >>> 3) {
|
|
@@ -378,13 +419,7 @@ export const DtoPermissions = {
|
|
|
378
419
|
if (tag !== 10) {
|
|
379
420
|
break;
|
|
380
421
|
}
|
|
381
|
-
message.
|
|
382
|
-
continue;
|
|
383
|
-
case 2:
|
|
384
|
-
if (tag !== 18) {
|
|
385
|
-
break;
|
|
386
|
-
}
|
|
387
|
-
message.items.push(DtoPermission.decode(reader, reader.uint32()));
|
|
422
|
+
message.name = reader.string();
|
|
388
423
|
continue;
|
|
389
424
|
}
|
|
390
425
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -395,55 +430,28 @@ export const DtoPermissions = {
|
|
|
395
430
|
return message;
|
|
396
431
|
},
|
|
397
432
|
};
|
|
398
|
-
function
|
|
399
|
-
return {
|
|
433
|
+
function createBaseInputSeedPermissions() {
|
|
434
|
+
return { permissions: [] };
|
|
400
435
|
}
|
|
401
|
-
export const
|
|
436
|
+
export const InputSeedPermissions = {
|
|
402
437
|
encode(message, writer = _m0.Writer.create()) {
|
|
403
|
-
|
|
404
|
-
writer.uint32(
|
|
405
|
-
}
|
|
406
|
-
if (message.pageSize !== 0) {
|
|
407
|
-
writer.uint32(16).int32(message.pageSize);
|
|
408
|
-
}
|
|
409
|
-
if (message.sortBy !== "") {
|
|
410
|
-
writer.uint32(26).string(message.sortBy);
|
|
411
|
-
}
|
|
412
|
-
if (message.sortOrder !== 0) {
|
|
413
|
-
writer.uint32(32).int32(message.sortOrder);
|
|
438
|
+
for (const v of message.permissions) {
|
|
439
|
+
InputSeedPermission.encode(v, writer.uint32(10).fork()).ldelim();
|
|
414
440
|
}
|
|
415
441
|
return writer;
|
|
416
442
|
},
|
|
417
443
|
decode(input, length) {
|
|
418
444
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
419
445
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
420
|
-
const message =
|
|
446
|
+
const message = createBaseInputSeedPermissions();
|
|
421
447
|
while (reader.pos < end) {
|
|
422
448
|
const tag = reader.uint32();
|
|
423
449
|
switch (tag >>> 3) {
|
|
424
450
|
case 1:
|
|
425
|
-
if (tag !==
|
|
426
|
-
break;
|
|
427
|
-
}
|
|
428
|
-
message.page = reader.int32();
|
|
429
|
-
continue;
|
|
430
|
-
case 2:
|
|
431
|
-
if (tag !== 16) {
|
|
432
|
-
break;
|
|
433
|
-
}
|
|
434
|
-
message.pageSize = reader.int32();
|
|
435
|
-
continue;
|
|
436
|
-
case 3:
|
|
437
|
-
if (tag !== 26) {
|
|
438
|
-
break;
|
|
439
|
-
}
|
|
440
|
-
message.sortBy = reader.string();
|
|
441
|
-
continue;
|
|
442
|
-
case 4:
|
|
443
|
-
if (tag !== 32) {
|
|
451
|
+
if (tag !== 10) {
|
|
444
452
|
break;
|
|
445
453
|
}
|
|
446
|
-
message.
|
|
454
|
+
message.permissions.push(InputSeedPermission.decode(reader, reader.uint32()));
|
|
447
455
|
continue;
|
|
448
456
|
}
|
|
449
457
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -454,20 +462,26 @@ export const PermissionsRequest = {
|
|
|
454
462
|
return message;
|
|
455
463
|
},
|
|
456
464
|
};
|
|
457
|
-
function
|
|
458
|
-
return { publicId: "" };
|
|
465
|
+
function createBaseDtoPermission() {
|
|
466
|
+
return { publicId: "", name: "", description: "" };
|
|
459
467
|
}
|
|
460
|
-
export const
|
|
468
|
+
export const DtoPermission = {
|
|
461
469
|
encode(message, writer = _m0.Writer.create()) {
|
|
462
470
|
if (message.publicId !== "") {
|
|
463
471
|
writer.uint32(10).string(message.publicId);
|
|
464
472
|
}
|
|
473
|
+
if (message.name !== "") {
|
|
474
|
+
writer.uint32(18).string(message.name);
|
|
475
|
+
}
|
|
476
|
+
if (message.description !== "") {
|
|
477
|
+
writer.uint32(26).string(message.description);
|
|
478
|
+
}
|
|
465
479
|
return writer;
|
|
466
480
|
},
|
|
467
481
|
decode(input, length) {
|
|
468
482
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
469
483
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
470
|
-
const message =
|
|
484
|
+
const message = createBaseDtoPermission();
|
|
471
485
|
while (reader.pos < end) {
|
|
472
486
|
const tag = reader.uint32();
|
|
473
487
|
switch (tag >>> 3) {
|
|
@@ -477,6 +491,18 @@ export const PermissionRequest = {
|
|
|
477
491
|
}
|
|
478
492
|
message.publicId = reader.string();
|
|
479
493
|
continue;
|
|
494
|
+
case 2:
|
|
495
|
+
if (tag !== 18) {
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
message.name = reader.string();
|
|
499
|
+
continue;
|
|
500
|
+
case 3:
|
|
501
|
+
if (tag !== 26) {
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
504
|
+
message.description = reader.string();
|
|
505
|
+
continue;
|
|
480
506
|
}
|
|
481
507
|
if ((tag & 7) === 4 || tag === 0) {
|
|
482
508
|
break;
|
|
@@ -486,20 +512,20 @@ export const PermissionRequest = {
|
|
|
486
512
|
return message;
|
|
487
513
|
},
|
|
488
514
|
};
|
|
489
|
-
function
|
|
490
|
-
return {
|
|
515
|
+
function createBaseDtoPermissions() {
|
|
516
|
+
return { permissions: [] };
|
|
491
517
|
}
|
|
492
|
-
export const
|
|
518
|
+
export const DtoPermissions = {
|
|
493
519
|
encode(message, writer = _m0.Writer.create()) {
|
|
494
|
-
|
|
495
|
-
writer.uint32(10).
|
|
520
|
+
for (const v of message.permissions) {
|
|
521
|
+
DtoPermission.encode(v, writer.uint32(10).fork()).ldelim();
|
|
496
522
|
}
|
|
497
523
|
return writer;
|
|
498
524
|
},
|
|
499
525
|
decode(input, length) {
|
|
500
526
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
501
527
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
502
|
-
const message =
|
|
528
|
+
const message = createBaseDtoPermissions();
|
|
503
529
|
while (reader.pos < end) {
|
|
504
530
|
const tag = reader.uint32();
|
|
505
531
|
switch (tag >>> 3) {
|
|
@@ -507,7 +533,7 @@ export const InputPermission = {
|
|
|
507
533
|
if (tag !== 10) {
|
|
508
534
|
break;
|
|
509
535
|
}
|
|
510
|
-
message.
|
|
536
|
+
message.permissions.push(DtoPermission.decode(reader, reader.uint32()));
|
|
511
537
|
continue;
|
|
512
538
|
}
|
|
513
539
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -518,20 +544,23 @@ export const InputPermission = {
|
|
|
518
544
|
return message;
|
|
519
545
|
},
|
|
520
546
|
};
|
|
521
|
-
function
|
|
522
|
-
return {
|
|
547
|
+
function createBaseDtoPermissionsPaginated() {
|
|
548
|
+
return { items: [] };
|
|
523
549
|
}
|
|
524
|
-
export const
|
|
550
|
+
export const DtoPermissionsPaginated = {
|
|
525
551
|
encode(message, writer = _m0.Writer.create()) {
|
|
526
|
-
for (const v of message.
|
|
527
|
-
|
|
552
|
+
for (const v of message.items) {
|
|
553
|
+
DtoPermission.encode(v, writer.uint32(10).fork()).ldelim();
|
|
554
|
+
}
|
|
555
|
+
if (message.meta !== undefined) {
|
|
556
|
+
DtoPagination.encode(message.meta, writer.uint32(18).fork()).ldelim();
|
|
528
557
|
}
|
|
529
558
|
return writer;
|
|
530
559
|
},
|
|
531
560
|
decode(input, length) {
|
|
532
561
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
533
562
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
534
|
-
const message =
|
|
563
|
+
const message = createBaseDtoPermissionsPaginated();
|
|
535
564
|
while (reader.pos < end) {
|
|
536
565
|
const tag = reader.uint32();
|
|
537
566
|
switch (tag >>> 3) {
|
|
@@ -539,7 +568,13 @@ export const PermissionsSeedRequest = {
|
|
|
539
568
|
if (tag !== 10) {
|
|
540
569
|
break;
|
|
541
570
|
}
|
|
542
|
-
message.
|
|
571
|
+
message.items.push(DtoPermission.decode(reader, reader.uint32()));
|
|
572
|
+
continue;
|
|
573
|
+
case 2:
|
|
574
|
+
if (tag !== 18) {
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
message.meta = DtoPagination.decode(reader, reader.uint32());
|
|
543
578
|
continue;
|
|
544
579
|
}
|
|
545
580
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -566,7 +601,7 @@ export function AuthServiceControllerMethods() {
|
|
|
566
601
|
}
|
|
567
602
|
export const AUTH_SERVICE_NAME = "AuthService";
|
|
568
603
|
export const AuthServiceService = {
|
|
569
|
-
/** ---
|
|
604
|
+
/** --- Authentication --- */
|
|
570
605
|
validateAccess: {
|
|
571
606
|
path: "/aegis.auth.v1.AuthService/ValidateAccess",
|
|
572
607
|
requestStream: false,
|
|
@@ -590,8 +625,8 @@ export const AuthServiceService = {
|
|
|
590
625
|
path: "/aegis.auth.v1.AuthService/PermissionsSeed",
|
|
591
626
|
requestStream: false,
|
|
592
627
|
responseStream: false,
|
|
593
|
-
requestSerialize: (value) => Buffer.from(
|
|
594
|
-
requestDeserialize: (value) =>
|
|
628
|
+
requestSerialize: (value) => Buffer.from(InputSeedPermissions.encode(value).finish()),
|
|
629
|
+
requestDeserialize: (value) => InputSeedPermissions.decode(value),
|
|
595
630
|
responseSerialize: (value) => Buffer.from(DtoPermissions.encode(value).finish()),
|
|
596
631
|
responseDeserialize: (value) => DtoPermissions.decode(value),
|
|
597
632
|
},
|
|
@@ -599,17 +634,17 @@ export const AuthServiceService = {
|
|
|
599
634
|
path: "/aegis.auth.v1.AuthService/Permissions",
|
|
600
635
|
requestStream: false,
|
|
601
636
|
responseStream: false,
|
|
602
|
-
requestSerialize: (value) => Buffer.from(
|
|
603
|
-
requestDeserialize: (value) =>
|
|
604
|
-
responseSerialize: (value) => Buffer.from(
|
|
605
|
-
responseDeserialize: (value) =>
|
|
637
|
+
requestSerialize: (value) => Buffer.from(InputPermissions.encode(value).finish()),
|
|
638
|
+
requestDeserialize: (value) => InputPermissions.decode(value),
|
|
639
|
+
responseSerialize: (value) => Buffer.from(DtoPermissionsPaginated.encode(value).finish()),
|
|
640
|
+
responseDeserialize: (value) => DtoPermissionsPaginated.decode(value),
|
|
606
641
|
},
|
|
607
642
|
permission: {
|
|
608
643
|
path: "/aegis.auth.v1.AuthService/Permission",
|
|
609
644
|
requestStream: false,
|
|
610
645
|
responseStream: false,
|
|
611
|
-
requestSerialize: (value) => Buffer.from(
|
|
612
|
-
requestDeserialize: (value) =>
|
|
646
|
+
requestSerialize: (value) => Buffer.from(InputPermission.encode(value).finish()),
|
|
647
|
+
requestDeserialize: (value) => InputPermission.decode(value),
|
|
613
648
|
responseSerialize: (value) => Buffer.from(DtoPermission.encode(value).finish()),
|
|
614
649
|
responseDeserialize: (value) => DtoPermission.decode(value),
|
|
615
650
|
},
|
package/package.json
CHANGED
package/proto/auth/v1/auth.proto
CHANGED
|
@@ -4,14 +4,10 @@ package aegis.auth.v1;
|
|
|
4
4
|
|
|
5
5
|
option java_multiple_files = true;
|
|
6
6
|
|
|
7
|
+
// import "google/protobuf/empty.proto";
|
|
7
8
|
// import "google/protobuf/timestamp.proto";
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
ASC = 0;
|
|
11
|
-
DESC = 1;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
message DtoPaginationMeta {
|
|
10
|
+
message DtoPagination {
|
|
15
11
|
int32 total_items = 1;
|
|
16
12
|
int32 total_pages = 2;
|
|
17
13
|
int32 current_page = 3;
|
|
@@ -48,6 +44,27 @@ message AuthorizeResponse {
|
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
// ---- PERMISSION ----
|
|
47
|
+
|
|
48
|
+
message InputPermission {
|
|
49
|
+
string publicId = 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message InputPermissions {
|
|
53
|
+
int32 page = 1;
|
|
54
|
+
int32 page_size = 2;
|
|
55
|
+
optional string search = 3;
|
|
56
|
+
optional string sort_by = 4;
|
|
57
|
+
optional string sort_order = 5;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message InputSeedPermission {
|
|
61
|
+
string name = 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message InputSeedPermissions {
|
|
65
|
+
repeated InputSeedPermission permissions = 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
51
68
|
message DtoPermission {
|
|
52
69
|
string public_id = 1;
|
|
53
70
|
string name = 2;
|
|
@@ -58,36 +75,23 @@ message DtoPermission {
|
|
|
58
75
|
}
|
|
59
76
|
|
|
60
77
|
message DtoPermissions {
|
|
61
|
-
|
|
62
|
-
repeated DtoPermission items = 2;
|
|
78
|
+
repeated DtoPermission permissions = 1;
|
|
63
79
|
}
|
|
64
80
|
|
|
65
|
-
message
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
string sortBy = 3;
|
|
69
|
-
SortOrder sortOrder = 4;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
message PermissionRequest {
|
|
73
|
-
string publicId = 1;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message InputPermission {
|
|
77
|
-
string name = 1;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message PermissionsSeedRequest {
|
|
81
|
-
repeated InputPermission permissions = 1;
|
|
81
|
+
message DtoPermissionsPaginated {
|
|
82
|
+
repeated DtoPermission items = 1;
|
|
83
|
+
DtoPagination meta = 2;
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
service AuthService {
|
|
85
|
-
// ---
|
|
87
|
+
// --- Authentication ---
|
|
86
88
|
rpc ValidateAccess (ValidateAccessRequest) returns (ValidateAccessResponse);
|
|
87
89
|
rpc Authorize (AuthorizeRequest) returns (AuthorizeResponse);
|
|
88
90
|
|
|
89
91
|
// --- Permission ---
|
|
90
|
-
rpc PermissionsSeed (
|
|
91
|
-
rpc Permissions (
|
|
92
|
-
rpc Permission (
|
|
92
|
+
rpc PermissionsSeed (InputSeedPermissions) returns (DtoPermissions);
|
|
93
|
+
rpc Permissions (InputPermissions) returns (DtoPermissionsPaginated);
|
|
94
|
+
rpc Permission (InputPermission) returns (DtoPermission);
|
|
93
95
|
}
|
|
96
|
+
|
|
97
|
+
// rpc Permissions (google.protobuf.Empty) returns (DtoPermissions);
|